diff options
author | rvelices <rv-github@modusoptimus.com> | 2013-06-20 03:38:47 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2013-06-20 03:38:47 +0000 |
commit | 6fc07742f8fca9d32db23243d374ea27e8ee4c1e (patch) | |
tree | bc7240c53a1c6bdff6c785153deb6306585c4062 /themes | |
parent | 9843eb362dd7d1b9d762871777ef76fa84e8202a (diff) |
smarty 3 - first pass for tests
git-svn-id: http://piwigo.org/svn/trunk@23384 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'themes')
-rw-r--r-- | themes/default/template/comment_list.tpl | 2 | ||||
-rw-r--r-- | themes/default/template/index.tpl | 2 | ||||
-rw-r--r-- | themes/default/template/menubar_categories.tpl | 2 | ||||
-rw-r--r-- | themes/default/template/picture.tpl | 2 |
4 files changed, 4 insertions, 4 deletions
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} <span class="commentAuthor">{if $comment.WEBSITE_URL}<a href="{$comment.WEBSITE_URL}" class="external" target="_blank" rel="nofollow">{$comment.AUTHOR}</a>{else}{$comment.AUTHOR}{/if}</span> - {if $comment.EMAIL}- <a href="mailto:{$comment.EMAIL}">{$comment.EMAIL}</a>{/if} + {if isset($comment.EMAIL)}- <a href="mailto:{$comment.EMAIL}">{$comment.EMAIL}</a>{/if} - <span class="commentDate">{$comment.DATE}</span> {if isset($comment.IN_EDIT)} <a name="edit_comment"></a> 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 @@ <span class="pwg-icon pwg-icon-camera-calendar"> </span><span class="pwg-button-text">{'Calendar'|@translate}</span> </a>{/strip}</li> {/if} -{foreach from=$PLUGIN_INDEX_BUTTONS item=button}<li>{$button}</li>{/foreach} +{if isset($PLUGIN_INDEX_BUTTONS)}{foreach from=$PLUGIN_INDEX_BUTTONS item=button}<li>{$button}</li>{/foreach}{/if} {if !empty($PLUGIN_INDEX_ACTIONS)}{$PLUGIN_INDEX_ACTIONS}{/if} </ul> 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 @@ <ul> {else} </li> - {'</ul></li>'|@str_repeat:$ref_level-$cat.LEVEL} + {'</ul></li>'|@str_repeat:($ref_level-$cat.LEVEL)} {/if} <li {if $cat.SELECTED}class="selected"{/if}> <a href="{$cat.URL}" {if $cat.IS_UPPERCAT}rel="up"{/if} title="{$cat.TITLE}">{$cat.NAME}</a> 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"); <span class="pwg-icon pwg-icon-save"> </span><span class="pwg-button-text">{'Download'|@translate}</span> </a> {/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)} <a href="{$favorite.U_FAVORITE}" title="{if $favorite.IS_FAVORITE}{'delete this photo from your favorites'|@translate}{else}{'add this photo to your favorites'|@translate}{/if}" class="pwg-state-default pwg-button" rel="nofollow"> |