From 6fc07742f8fca9d32db23243d374ea27e8ee4c1e Mon Sep 17 00:00:00 2001 From: rvelices Date: Thu, 20 Jun 2013 03:38:47 +0000 Subject: smarty 3 - first pass for tests git-svn-id: http://piwigo.org/svn/trunk@23384 68402e56-0260-453c-a942-63ccdbb3a9ee --- themes/default/template/comment_list.tpl | 2 +- themes/default/template/index.tpl | 2 +- themes/default/template/menubar_categories.tpl | 2 +- themes/default/template/picture.tpl | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'themes') diff --git a/themes/default/template/comment_list.tpl b/themes/default/template/comment_list.tpl index 433de1ff2..a04baf27e 100644 --- a/themes/default/template/comment_list.tpl +++ b/themes/default/template/comment_list.tpl @@ -57,7 +57,7 @@ {/if} {if $comment.WEBSITE_URL}{$comment.AUTHOR}{else}{$comment.AUTHOR}{/if} - {if $comment.EMAIL}- {$comment.EMAIL}{/if} + {if isset($comment.EMAIL)}- {$comment.EMAIL}{/if} - {$comment.DATE} {if isset($comment.IN_EDIT)} diff --git a/themes/default/template/index.tpl b/themes/default/template/index.tpl index 89ac0f2b4..4e3f2c73a 100644 --- a/themes/default/template/index.tpl +++ b/themes/default/template/index.tpl @@ -93,7 +93,7 @@  {'Calendar'|@translate} {/strip} {/if} -{foreach from=$PLUGIN_INDEX_BUTTONS item=button}
  • {$button}
  • {/foreach} +{if isset($PLUGIN_INDEX_BUTTONS)}{foreach from=$PLUGIN_INDEX_BUTTONS item=button}
  • {$button}
  • {/foreach}{/if} {if !empty($PLUGIN_INDEX_ACTIONS)}{$PLUGIN_INDEX_ACTIONS}{/if} diff --git a/themes/default/template/menubar_categories.tpl b/themes/default/template/menubar_categories.tpl index 65a149cff..3307bdc1e 100644 --- a/themes/default/template/menubar_categories.tpl +++ b/themes/default/template/menubar_categories.tpl @@ -14,7 +14,7 @@ '|@str_repeat:$ref_level-$cat.LEVEL} + {''|@str_repeat:($ref_level-$cat.LEVEL)} {/if}
  • {$cat.NAME} diff --git a/themes/default/template/picture.tpl b/themes/default/template/picture.tpl index 419918aca..94be0b03d 100644 --- a/themes/default/template/picture.tpl +++ b/themes/default/template/picture.tpl @@ -69,7 +69,7 @@ switchBox("#derivativeSwitchLink", "#derivativeSwitchBox"); {'Download'|@translate} {/if}{/strip} -{foreach from=$PLUGIN_PICTURE_BUTTONS item=button}{$button}{/foreach} +{if isset($PLUGIN_PICTURE_BUTTONS)}{foreach from=$PLUGIN_PICTURE_BUTTONS item=button}{$button}{/foreach}{/if} {if isset($PLUGIN_PICTURE_ACTIONS)}{$PLUGIN_PICTURE_ACTIONS}{/if} {strip}{if isset($favorite)} -- cgit v1.2.3