From cc558d869496f051c1b667d37e4dcfc474c007d1 Mon Sep 17 00:00:00 2001 From: rvelices Date: Thu, 4 Oct 2012 04:15:28 +0000 Subject: php optimizations: - use faster [] operator instead of array_push - if tags are grouped by letter, don't add level to tags, sort etc ... git-svn-id: http://piwigo.org/svn/trunk@18455 68402e56-0260-453c-a942-63ccdbb3a9ee --- themes/default/template/tags.tpl | 65 ++++++++++++++++++++-------------------- 1 file changed, 32 insertions(+), 33 deletions(-) (limited to 'themes/default') diff --git a/themes/default/template/tags.tpl b/themes/default/template/tags.tpl index 2e47a3f83..c4327289a 100644 --- a/themes/default/template/tags.tpl +++ b/themes/default/template/tags.tpl @@ -19,40 +19,39 @@ {include file='infos_errors.tpl'} -{if isset($tags)} - {if $display_mode == 'cloud'} -
- {foreach from=$tags item=tag} - {$tag.name} - {/foreach} -
- {/if} - {if $display_mode == 'letters'} - - - - - -
- {foreach from=$letters item=letter} -
- {$letter.TITLE} - - {foreach from=$letter.tags item=tag} - - - - - {/foreach} -
{$tag.name}{$pwg->l10n_dec('%d photo', '%d photos', $tag.counter)}
-
- {if isset($letter.CHANGE_COLUMN) } -
- {/if} - {/foreach} -
- {/if} +{if $display_mode == 'cloud' and isset($tags)} +
+ {foreach from=$tags item=tag} + {$tag.name} + {/foreach} +
+{/if} + +{if $display_mode == 'letters' and isset($letters)} + + + + + +
+ {foreach from=$letters item=letter} +
+ {$letter.TITLE} + + {foreach from=$letter.tags item=tag} + + + + + {/foreach} +
{$tag.name}{$pwg->l10n_dec('%d photo', '%d photos', $tag.counter)}
+
+ {if isset($letter.CHANGE_COLUMN) } +
+ {/if} + {/foreach} +
{/if} -- cgit v1.2.3