From ba4f23dd830eedad3de915b6443665ebeb29673c Mon Sep 17 00:00:00 2001 From: rvelices Date: Fri, 29 Feb 2008 01:25:13 +0000 Subject: picture, footer and picture modify template migration git-svn-id: http://piwigo.org/svn/trunk@2227 68402e56-0260-453c-a942-63ccdbb3a9ee --- template/yoga/admin/picture_modify.tpl | 146 ++++++++--------- template/yoga/footer.tpl | 37 ++--- template/yoga/picture.tpl | 285 ++++++++++++++++++--------------- template/yoga/picture_nav_buttons.tpl | 173 ++++++++++---------- template/yoga/slideshow.tpl | 27 ++-- 5 files changed, 345 insertions(+), 323 deletions(-) (limited to 'template/yoga') diff --git a/template/yoga/admin/picture_modify.tpl b/template/yoga/admin/picture_modify.tpl index b0fe64911..2dada069f 100644 --- a/template/yoga/admin/picture_modify.tpl +++ b/template/yoga/admin/picture_modify.tpl @@ -1,129 +1,125 @@ - - -

{lang:title_picmod}

+{* $Id$ *} +

{'title_picmod'|@translate}

-{lang:thumbnail} +{'thumbnail'|@translate} -
+
- {lang:Informations} + {'Informations'|@translate} - - + + - - + + - - + + - - + + - +{if isset($HIGH_FILESIZE) } - - + + - +{/if} - - + + - + {if isset($related_categories) } - + - + {/if}
{lang:Path}{PATH}{'Path'|@translate}{$PATH}
{lang:Post date}{REGISTRATION_DATE}{'Post date'|@translate}{$REGISTRATION_DATE}
{lang:Dimensions}{DIMENSIONS}{'Dimensions'|@translate}{$DIMENSIONS}
{lang:Filesize}{FILESIZE}{'Filesize'|@translate}{$FILESIZE}
{lang:High filesize}{high.FILESIZE}{'High filesize'|@translate}{$HIGH_FILESIZE}
{lang:Storage category}{STORAGE_CATEGORY}{'Storage category'|@translate}{$STORAGE_CATEGORY}
{lang:Linked categories}{'Linked categories'|@translate}
    - -
  • {links.category.NAME}
  • - + {foreach from=$related_categories item=name} +
  • {$name}
  • + {/foreach}
- {lang:Properties} + {'Properties'|@translate} - - + + - - + + - + - - + + - - + + - + @@ -131,38 +127,34 @@
{lang:Name}{'Name'|@translate}
{lang:Author}{'Author'|@translate}
{lang:Creation date}{'Creation date'|@translate} - - {lang:set to} + + {'set to'|@translate} + value="{$DATE_CREATION_YEAR_VALUE}" />
{lang:Tags}{TAG_SELECTION}{'Tags'|@translate}{$TAG_SELECTION}
{lang:Description}{'Description'|@translate}
{lang:Minimum privacy level}{'Minimum privacy level'|@translate}

- - + +

-
+
- {lang:Association to categories} + {'Association to categories'|@translate}
-

{lang:Associated}

+

{'Associated'|@translate}

-

+

-

{lang:Dissociated}

+

{'Dissociated'|@translate}

-

+

@@ -170,30 +162,26 @@
-
+
- {lang:Representation of categories} + {'Representation of categories'|@translate}
-

{lang:Represents}

+

{'Represents'|@translate}

-

+

-

{lang:Does not represent}

+

{'Does not represent'|@translate}

-

+

diff --git a/template/yoga/footer.tpl b/template/yoga/footer.tpl index e21969078..37aab1fba 100644 --- a/template/yoga/footer.tpl +++ b/template/yoga/footer.tpl @@ -1,31 +1,32 @@ - +{* $Id$ *} - -{footer_element.CONTENT} - +{if isset($footer_elemets)} +{foreach from=$footer_elements item=v} +{$v} +{/foreach} +{/if} - - {debug.QUERIES_LIST} - +{if isset($debug.QUERIES_LIST)}{$debug.QUERIES_LIST}{/if} diff --git a/template/yoga/picture.tpl b/template/yoga/picture.tpl index ebfba0998..9f77b8b56 100644 --- a/template/yoga/picture.tpl +++ b/template/yoga/picture.tpl @@ -1,207 +1,230 @@ - - +{* $Id$ *} +{if isset($errors)}
-
    - -
  • {errors.error.TEXT}
  • - -
+
    + {foreach from=$errors item=error} +
  • {$error}
  • + {/foreach} +
- - +{/if} + +{if isset($infos)}
-
    - -
  • {infos.info.TEXT}
  • - -
+
    + {foreach from=$infos item=info} +
  • {$info}
  • + {/foreach} +
- +{/if}
- {lang:home} - {LEVEL_SEPARATOR}{SECTION_TITLE} - {LEVEL_SEPARATOR}{PICTURE_TITLE} + {'home'|@translate} + {$LEVEL_SEPARATOR}{$SECTION_TITLE} + {$LEVEL_SEPARATOR}{$current.TITLE}
-
{PHOTO}
- -

{TITLE}

- +
{$PHOTO}
+ {if $SHOW_PICTURE_NAME_ON_TITLE } +

{$current.TITLE}

+ {/if}
- - {lang:slideshow} - - - {lang:slideshow_stop} - - {lang:picture_show_metadata} - - {lang:download} - - {PLUGIN_PICTURE_ACTIONS} - - {favorite.FAVORITE_ALT} - - - {lang:representative} - - - {lang:link_info_image} - - - {lang:caddie} - + {if isset($U_SLIDESHOW_START) } + {'slideshow'|@translate} + {/if} + {if isset($U_SLIDESHOW_STOP) } + {'slideshow_stop'|@translate} + {/if} + {'picture_show_metadata'|@translate} + {if isset($current.U_DOWNLOAD) } + {'download'|@translate} + {/if} + {if isset($PLUGIN_PICTURE_ACTIONS)}{$PLUGIN_PICTURE_ACTIONS}{/if} + {if isset($favorite) } + {$favorite.FAVORITE_ALT} + {/if} + {if !empty($U_SET_AS_REPRESENTATIVE) } + {'representative'|@translate} + {/if} + {if isset($U_ADMIN) } + {'link_info_image'|@translate} + {/if} + {if isset($U_CADDIE) } + {'caddie'|@translate} + {/if}
- {NAV_BUTTONS} + {include file=$FILE_PICTURE_NAV_BUTTONS}
-{ELEMENT_CONTENT} - -

{legend.COMMENT_IMG}

- - +{$ELEMENT_CONTENT} + +{if isset($COMMENT_IMG)} +

{$COMMENT_IMG}

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

- [ {lang:slideshow_stop} ] + [ {'slideshow_stop'|@translate} ]

- +{/if} +
- - - - - - +{/if} - - + + - - + + - - + + - - + + - - + + - - + + - - + + - + - - + + - + {if isset($rate_summary) } - - + + - + {/if}
{lang:Author}{INFO_AUTHOR}{'Author'|@translate}{if isset($INFO_AUTHOR)}{$INFO_AUTHOR}{else}{'N/A'|@translate}{/if}
{lang:Created on}{INFO_CREATION_DATE}{'Created on'|@translate}{if isset($INFO_CREATION_DATE)}{$INFO_CREATION_DATE}{else}{'N/A'|@translate}{/if}
{lang:Posted on}{INFO_POSTED_DATE}{'Posted on'|@translate}{$INFO_POSTED_DATE}
{lang:Dimensions}{INFO_DIMENSIONS}{'Dimensions'|@translate}{if isset($INFO_DIMENSIONS)}{$INFO_DIMENSIONS}{else}{'N/A'|@translate}{/if}
{lang:File}{INFO_FILE}{'File'|@translate}{$INFO_FILE}
{lang:Filesize}{INFO_FILESIZE}{'Filesize'|@translate}{if isset($INFO_FILESIZE)}{$INFO_FILESIZE}{else}{'N/A'|@translate}{/if}
{lang:Tags}{INFO_TAGS}{'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} +
{lang:Categories}{'Categories'|@translate} + {if isset($related_categories)}
    - -
  • {category.LINE}
  • - + {foreach from=$related_categories item=cat} +
  • {$cat}
  • + {/foreach}
+ {/if}
{lang:Visits}{INFO_VISITS}{'Visits'|@translate}{$INFO_VISITS}
{lang:Average rate}{info_rate.CONTENT}{'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($metadata)} - +{foreach from=$metadata item=meta} - + - - + {foreach from=$meta.lines item=value key=label} - - + + - + {/foreach} +{/foreach}
{metadata.headline.TITLE}{$meta.TITLE}
{metadata.line.KEY}{metadata.line.VALUE}{$label}{$value}
- - - - -
{rate.SENTENCE} : - -{rate.rate_option.SEPARATOR} - - - - - - - - +{/if} + +{if isset($rating)} + +
+{if isset($rating.USER_RATE)}{'update_rate'|@translate}{else}{'new_rate'|@translate}{/if} +: +{foreach from=$rating.marks item=mark name=rate_loop} +{if !$smarty.foreach.rate_loop.first} | {/if} +{if $mark==$rating.USER_RATE} + +{else} + +{/if} +{/foreach} +
- +{/if}
- +{if isset($COMMENT_COUNT)}
-

[{comments.NB_COMMENT}] {lang:comments_title}

+

[{$COMMENT_COUNT}] {'comments_title'|@translate}

- + - + {if isset($comments)} + {foreach from=$comments item=comment}
- + {if isset($comment.U_DELETE)}

- - [{lang:delete}] + + [{'delete'|@translate}]

- -

{comments.comment.COMMENT_AUTHOR} - {comments.comment.COMMENT_DATE}

-
{comments.comment.COMMENT}
+ {/if} +

{$comment.AUTHOR} - {$comment.DATE}

+
{$comment.CONTENT}
- + {/foreach} + {/if} - -
+ {if isset($comment_add)} +
- {lang:comments_add} - - - - - - + {'comments_add'|@translate} + {if $comment_add.SHOW_AUTHOR} + + {/if} + + +
- + {/if}
- +{/if} {*comments*} diff --git a/template/yoga/picture_nav_buttons.tpl b/template/yoga/picture_nav_buttons.tpl index 4041f7b42..f82f5f467 100644 --- a/template/yoga/picture_nav_buttons.tpl +++ b/template/yoga/picture_nav_buttons.tpl @@ -1,90 +1,101 @@ - - +{* $Id$ *}