summaryrefslogtreecommitdiff
path: root/templates/image_order.tpl
diff options
context:
space:
mode:
authorChristian Fowler <spider@viovio.com>2006-09-15 02:08:34 +0000
committerChristian Fowler <spider@viovio.com>2006-09-15 02:08:34 +0000
commitcf9b37e2a6af8f31e5740dab33ec355ca63e2083 (patch)
treeee8205fa197f5e4ee2a2544b46e481bd3c1900f4 /templates/image_order.tpl
parenta5170f7286b9d0c5e720343e2631e5cde6c30cc1 (diff)
downloadfisheye-cf9b37e2a6af8f31e5740dab33ec355ca63e2083.tar.gz
fisheye-cf9b37e2a6af8f31e5740dab33ec355ca63e2083.tar.bz2
fisheye-cf9b37e2a6af8f31e5740dab33ec355ca63e2083.zip
fix pagination for matrix organization
Diffstat (limited to 'templates/image_order.tpl')
-rw-r--r--templates/image_order.tpl7
1 files changed, 4 insertions, 3 deletions
diff --git a/templates/image_order.tpl b/templates/image_order.tpl
index d28b15e..4716b56 100644
--- a/templates/image_order.tpl
+++ b/templates/image_order.tpl
@@ -24,8 +24,8 @@
<th scope="col">{tr}Miscellaneous{/tr}</th>
</tr>
- {counter start=0 print=false assign=imageCount}
- {counter start=1 assign=pageCount}
+ {counter name=imageCount start=0 assign=imageCount}
+ {counter name=pageCount start=1 assign=pageCount}
{foreach from=$gContent->mItems item=galItem key=itemContentId}
{assign var=thisMantissa value=$galItem->getField('item_position')|floor}
{if ($gContent->getPreference('gallery_pagination')==$smarty.const.FISHEYE_PAGINATION_POSITION_NUMBER && $lastMantissa != $thisMantissa) || ($gContent->mInfo.images_per_page && $imageCount % $gContent->mInfo.images_per_page == 0)}
@@ -34,9 +34,10 @@
{tr}Gallery Page{/tr} {$pageCount}
</th>
</tr>
+ {counter name=pageCount print=false}
{/if}
<tr class="{$pageClass}">
- {counter print=false}
+ {counter name=imageCount print=false}
<td class="{$galItem->mType.content_type_guid}">
<a href="{$galItem->getDisplayUrl()|escape}"><img class="thumb" src="{$gContent->mItems.$itemContentId->getThumbnailUrl()|replace:"&":"&amp;"}{if $batchEdit.$contentId ne ''}?{math equation="1 + rand(1,9999)"}{/if}" alt="{$galItem->mInfo.title|escape}" /></a>
</td>