From c9dfb3a41f0341531594de215a25d7cb0091ca56 Mon Sep 17 00:00:00 2001 From: plegall Date: Tue, 9 Mar 2010 20:17:00 +0000 Subject: feature 1494: move all *.tpl files from template/yoga to the new template/default (from which yoga derives) git-svn-id: http://piwigo.org/svn/trunk@5095 68402e56-0260-453c-a942-63ccdbb3a9ee --- template/default/picture.tpl | 280 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 280 insertions(+) create mode 100644 template/default/picture.tpl (limited to 'template/default/picture.tpl') diff --git a/template/default/picture.tpl b/template/default/picture.tpl new file mode 100644 index 000000000..25f065868 --- /dev/null +++ b/template/default/picture.tpl @@ -0,0 +1,280 @@ + +{* Example of resizeable *} +{* +{include file='include/autosize.inc.tpl'} +*} + +{if isset($errors)} +
+ +
+{/if} + +{if isset($infos)} +
+ +
+{/if} + +{if !empty($PLUGIN_PICTURE_BEFORE)}{$PLUGIN_PICTURE_BEFORE}{/if} + +
+
+ {'Home'|@translate} + {if !$IS_HOME}{$LEVEL_SEPARATOR}{$SECTION_TITLE}{/if} + {$LEVEL_SEPARATOR}{$current.TITLE} +
+
{$PHOTO}
+ {if $SHOW_PICTURE_NAME_ON_TITLE } +

{$current.TITLE}

+ {/if} +
+ +
+
+ {if isset($U_SLIDESHOW_START) } + {'slideshow'|@translate} + {/if} + {if isset($U_SLIDESHOW_STOP) } + {'stop the slideshow'|@translate} + {/if} + metadata + {if isset($current.U_DOWNLOAD) } + {'download'|@translate} + {/if} + {if isset($PLUGIN_PICTURE_ACTIONS)}{$PLUGIN_PICTURE_ACTIONS}{/if} + {if isset($favorite) } + favorite + {/if} + {if !empty($U_SET_AS_REPRESENTATIVE) } + {'representative'|@translate} + {/if} + {if isset($U_ADMIN) } + {'edit'|@translate} + {/if} + {if isset($U_CADDIE) }{*caddie management BEGIN*} + + {'caddie'|@translate} + {/if}{*caddie management END*} +
+ {include file='picture_nav_buttons.tpl'|@get_extent:'picture_nav_buttons'} +
+ +
+{$ELEMENT_CONTENT} + +{if isset($COMMENT_IMG)} +

{$COMMENT_IMG}

+{/if} + +{if isset($U_SLIDESHOW_STOP) } +

+ [ {'stop the slideshow'|@translate} ] +

+{/if} + +
+ +{if isset($previous) } + +{/if} +{if isset($next) } + +{/if} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +{if isset($rate_summary) } + + + + +{/if} + +{if isset($rating)} + + + + +{/if} + +{if isset($available_permission_levels) } + + + +{/if} + +
{'Author'|@translate}{if isset($INFO_AUTHOR)}{$INFO_AUTHOR}{else}{'N/A'|@translate}{/if}
{'Created on'|@translate}{if isset($INFO_CREATION_DATE)}{$INFO_CREATION_DATE}{else}{'N/A'|@translate}{/if}
{'Posted on'|@translate}{$INFO_POSTED_DATE}
{'Dimensions'|@translate}{if isset($INFO_DIMENSIONS)}{$INFO_DIMENSIONS}{else}{'N/A'|@translate}{/if}
{'File'|@translate}{$INFO_FILE}
{'Filesize'|@translate}{if isset($INFO_FILESIZE)}{$INFO_FILESIZE}{else}{'N/A'|@translate}{/if}
{'Tags'|@translate} + {if isset($related_tags)} + {foreach from=$related_tags item=tag name=tag_loop}{if !$smarty.foreach.tag_loop.first}, {/if} + {$tag.name}{/foreach} + {/if} +
{'Categories'|@translate} + {if isset($related_categories)} +
    + {foreach from=$related_categories item=cat} +
  • {$cat}
  • + {/foreach} +
+ {/if} +
{'Visits'|@translate}{$INFO_VISITS}
{'Average rate'|@translate} + {if $rate_summary.count} + {assign var='rate_text' value='%.2f (rated %d times, standard deviation = %.2f)'|@translate } + {$pwg->sprintf($rate_text, $rate_summary.average, $rate_summary.count, $rate_summary.std) } + {else} + {'no rate'|@translate} + {/if} +
+ {if isset($rating.USER_RATE)}{'Rate this picture'|@translate}{else}{'Rate this picture'|@translate}{/if} + +
+
  + {foreach from=$rating.marks item=mark name=rate_loop} + {if !$smarty.foreach.rate_loop.first} | {/if} + {if isset($rating.USER_RATE) && $mark==$rating.USER_RATE} + + {else} + + {/if} + {/foreach} + + +
+
+
{'Privacy level'|@translate}: + + +
+ +{if isset($metadata)} + +{foreach from=$metadata item=meta} + + + + {foreach from=$meta.lines item=value key=label} + + + + + {/foreach} +{/foreach} +
{$meta.TITLE}
{$label}{$value}
+{/if} + + +
+ +{if isset($COMMENT_COUNT)} +
+ {if $COMMENT_COUNT > 0} +

{$pwg->l10n_dec('%d comment', '%d comments',$COMMENT_COUNT)}

+ {/if} + {if !empty($navbar) }{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if} + + {if isset($comments)} + {include file='comment_list.tpl'} + {/if} + + {if isset($comment_add)} +
+
+ {'Add a comment'|@translate} + {if $comment_add.SHOW_AUTHOR} + + {/if} + + + +
+
+ {/if} +
+{/if} {*comments*} + +{if !empty($PLUGIN_PICTURE_AFTER)}{$PLUGIN_PICTURE_AFTER}{/if} -- cgit v1.2.3