diff --git a/Web/Presenters/templates/components/paginator.xml b/Web/Presenters/templates/components/paginator.xml index 607c0e08..cf717e23 100644 --- a/Web/Presenters/templates/components/paginator.xml +++ b/Web/Presenters/templates/components/paginator.xml @@ -1,7 +1,7 @@ {var $space = 2} {var $pageCount = ceil($conf->count / $conf->perPage)} -
+
{if $conf->page > $space} « {/if} diff --git a/Web/Presenters/templates/components/post/oldpost.xml b/Web/Presenters/templates/components/post/oldpost.xml index f59a9cf7..f2769636 100644 --- a/Web/Presenters/templates/components/post/oldpost.xml +++ b/Web/Presenters/templates/components/post/oldpost.xml @@ -7,7 +7,7 @@ - {if !$post->isPostedOnBehalfOfGroup() && !$compact} + {if !$post->isPostedOnBehalfOfGroup() && !($compact ?? false)} {_online} diff --git a/Web/Presenters/templates/components/textArea.xml b/Web/Presenters/templates/components/textArea.xml index 889ad4fd..c27d0506 100644 --- a/Web/Presenters/templates/components/textArea.xml +++ b/Web/Presenters/templates/components/textArea.xml @@ -1,4 +1,5 @@ -{var textAreaId = $post === null ? rand(1,300) : $post->getId()} +{php if(!isset($GLOBALS["textAreaCtr"])) $GLOBALS["textAreaCtr"] = 10;} +{var textAreaId = ($post ?? NULL) === null ? (++$GLOBALS["textAreaCtr"]) : $post->getId()}