From 9428613b2da6132ef507e92461535283d48ecdc1 Mon Sep 17 00:00:00 2001 From: rvelices Date: Wed, 4 Feb 2009 02:33:50 +0000 Subject: merge 3120 from trunk optimizations (php only) - removed unnecessary call to array_unique in get_image_ids_for_tags - put back in smarty exec time counting (debug mode) for each included template - prefix some smarty modifiers with @ in some templates - do not call format_date (still very slow due to mktime and date even after prev commit) from category_default.inc.php - if used in templates format_date can be used as a smarty modifier git-svn-id: http://piwigo.org/svn/branches/2.0@3121 68402e56-0260-453c-a942-63ccdbb3a9ee --- template/yoga/header.tpl | 4 ++-- template/yoga/mainpage_categories.tpl | 20 ++++++++++---------- template/yoga/picture_content.tpl | 2 +- 3 files changed, 13 insertions(+), 13 deletions(-) (limited to 'template') diff --git a/template/yoga/header.tpl b/template/yoga/header.tpl index 668d7c505..abe063799 100644 --- a/template/yoga/header.tpl +++ b/template/yoga/header.tpl @@ -6,13 +6,13 @@ {if isset($meta_ref) } {if isset($INFO_AUTHOR)} - + {/if} {if isset($related_tags)} {/if} {if isset($COMMENT_IMG)} - + {else} {/if} diff --git a/template/yoga/mainpage_categories.tpl b/template/yoga/mainpage_categories.tpl index e56b637aa..e1cc953ff 100644 --- a/template/yoga/mainpage_categories.tpl +++ b/template/yoga/mainpage_categories.tpl @@ -6,7 +6,7 @@
@@ -14,15 +14,15 @@ {$cat.NAME} {$cat.ICON_TS} -
- {if isset($cat.INFO_DATES) } -

{$cat.INFO_DATES}

- {/if} -

{$cat.CAPTION_NB_IMAGES}

- {if not empty($cat.DESCRIPTION)} -

{$cat.DESCRIPTION}

- {/if} -
+
+ {if isset($cat.INFO_DATES) } +

{$cat.INFO_DATES}

+ {/if} +

{$cat.CAPTION_NB_IMAGES}

+ {if not empty($cat.DESCRIPTION)} +

{$cat.DESCRIPTION}

+ {/if} +
diff --git a/template/yoga/picture_content.tpl b/template/yoga/picture_content.tpl index b6e148fdd..dcf0f6d24 100644 --- a/template/yoga/picture_content.tpl +++ b/template/yoga/picture_content.tpl @@ -4,7 +4,7 @@ {/if} {$ALT_IMG} {if isset($high) } -- cgit v1.2.3