Changeset 2223 for trunk/template/yoga


Ignore:
Timestamp:
Feb 28, 2008, 3:41:48 AM (16 years ago)
Author:
rvelices
Message:
  • migrate many templates to smarty
Location:
trunk/template/yoga
Files:
19 edited

Legend:

Unmodified
Added
Removed
  • trunk/template/yoga/about.tpl

    r2222 r2223  
    1 <!-- DEV TAG: not smarty migrated -->
     1{* $Id$ *}
    22<div id="content">
    33  <div class="titrePage">
    44    <ul class="categoryActions">
    55      <li>
    6         <a href="{U_HOME}" title="{lang:return to homepage}">
    7           <img src="{themeconf:icon_dir}/home.png" class="button" alt="{lang:home}"/>
     6        <a href="{$U_HOME}" title="{'return to homepage'|@translate}">
     7          <img src="{$themeconf.icon_dir}/home.png" class="button" alt="{'home'|@translate}"/>
    88        </a>
    99      </li>
    1010    </ul>
    11     <h2>{lang:About}</h2>
     11    <h2>{'About'|@translate}</h2>
    1212  </div>
    1313  <ul>
    14   {ABOUT_MESSAGE}
    15   <!-- BEGIN theme -->
    16   <li>{theme.ABOUT}</li>
    17   <!-- END theme -->
     14  {$ABOUT_MESSAGE}
     15  {if isset($THEME_ABOUT) }
     16  <li>{$THEME_ABOUT}</li>
     17  {/if}
    1818  </ul>
    1919</div>
  • trunk/template/yoga/admin/advanced_feature.tpl

    r2222 r2223  
    1 <!-- DEV TAG: not smarty migrated -->
    2 <!-- $Id$ -->
     1{* $Id$ *}
    32<div class="titrePage">
    43  <ul class="categoryActions">
    5     <li><a href="{U_HELP}" onclick="popuphelp(this.href); return false;" title="{lang:Help}"><img src="{themeconf:icon_dir}/help.png" class="button" alt="(?)"></a></li>
     4    <li><a href="{$U_HELP}" onclick="popuphelp(this.href); return false;" title="{'Help'|@translate}"><img src="{$themeconf.icon_dir}/help.png" class="button" alt="(?)"></a></li>
    65  </ul>
    7   <h2>{lang:Advanced_features}</h2>
     6  <h2>{'Advanced_features'|@translate}</h2>
    87</div>
    98
    109<ul>
    11   <!-- BEGIN advanced_features -->
    12     <!-- BEGIN advanced_feature -->
    13       <li><a href="{advanced_features.advanced_feature.URL}" {TAG_INPUT_ENABLED}>{advanced_features.advanced_feature.CAPTION}</a></li>
    14     <!-- END advanced_feature -->
    15   <!-- END advanced_features -->
     10  {foreach from=$advanced_features item=feature}
     11    <li><a href="{$feature.URL}" {$TAG_INPUT_ENABLED}>{$feature.CAPTION}</a></li>
     12  {/foreach}
    1613</ul>
  • trunk/template/yoga/admin/cat_list.tpl

    r2222 r2223  
    1 <!-- DEV TAG: not smarty migrated -->
    2 <!-- $Id$ -->
    3 <h2>{lang:title_categories}</h2>
     1{* $Id$ *}
     2<h2>{'title_categories'|@translate}</h2>
    43
    5 <h3>{CATEGORIES_NAV}</h3>
     4<h3>{$CATEGORIES_NAV}</h3>
    65
    7 <form id="addVirtual" action="{F_ACTION}" method="post">
     6<form id="addVirtual" action="{$F_ACTION}" method="post">
    87  <p>
    9     {L_ADD_VIRTUAL} : <input type="text" name="virtual_name" />
    10     <input class="submit" type="submit" value="{L_SUBMIT}" name="submitAdd" {TAG_INPUT_ENABLED} />
    11     <!-- BEGIN eop_link -->
    12     <a href="#EoP" class="button"><img src="{themeconf:icon_dir}/page_end.png" class="button" alt="{lang:page_end}" /></a>
    13     <!-- END eop_link -->
     8    {'cat_add'|@translate} : <input type="text" name="virtual_name" />
     9    <input class="submit" type="submit" value="{'submit'|@translate}" name="submitAdd" {$TAG_INPUT_ENABLED} />
     10    {if count($categories)>9 }
     11    <a href="#EoP" class="button"><img src="{$themeconf.icon_dir}/page_end.png" class="button" alt="{'page_end'|@translate}" /></a>
     12    {/if}
    1413  </p>
    1514</form>
    1615
    17 <!-- BEGIN categories -->
    18 <form id="categoryOrdering" action="{F_ACTION}" method="post">
     16{if count($categories) }
     17<form id="categoryOrdering" action="{$F_ACTION}" method="post">
    1918  <p>
    20     <input class="submit" name="submitOrder" type="submit" value="{lang:Save order}" {TAG_INPUT_ENABLED} />
    21     <input class="submit" name="submitOrderAlphaNum" type="submit" value="{lang:Order alphanumerically}" {TAG_INPUT_ENABLED} />
     19    <input class="submit" name="submitOrder" type="submit" value="{'Save order'|@translate}" {$TAG_INPUT_ENABLED} />
     20    <input class="submit" name="submitOrderAlphaNum" type="submit" value="{'Order alphanumerically'|@translate}" {$TAG_INPUT_ENABLED} />
    2221  </p>
    2322  <ul class="categoryUl">
    2423
    25     <!-- BEGIN category -->
    26     <li class="categoryLi
    27           <!-- BEGIN virtual -->
    28           {categories.category.virtual.CLASS}
    29           <!-- END virtual -->
    30     "> <!-- category {category.ID} -->
    31 
     24    {foreach from=$categories item=category}
     25    <li class="categoryLi{if $category.IS_VIRTUAL} virtual_cat{/if}">
     26      <!-- category {$category.ID} -->
    3227      <ul class="categoryActions">
    33         <li><a href="{categories.category.U_JUMPTO}" title="{lang:jump to category}"><img src="{themeconf:icon_dir}/category_jump-to.png" class="button" alt="{lang:jump to category}" /></a></li>
    34         <li><a href="{categories.category.U_EDIT}" title="{lang:edit category informations}"><img src="{themeconf:icon_dir}/category_edit.png" class="button" alt="{lang:edit}"/></a></li>
    35         <!-- BEGIN elements -->
    36         <li><a href="{categories.category.elements.URL}" title="{lang:manage category elements}"><img src="{themeconf:icon_dir}/category_elements.png" class="button" alt="{lang:elements}" /></a></li>
    37         <!-- END elements -->
    38         <li><a href="{categories.category.U_CHILDREN}" title="{lang:manage sub-categories}"><img src="{themeconf:icon_dir}/category_children.png" class="button" alt="{lang:sub-categories}" /></a></li>
    39         <!-- BEGIN permissions -->
    40         <li><a href="{categories.category.permissions.URL}" title="{lang:edit category permissions}" ><img src="{themeconf:icon_dir}/category_permissions.png" class="button" alt="{lang:permissions}" /></a></li>
    41         <!-- END permissions -->
    42         <!-- BEGIN delete -->
    43         <li><a href="{categories.category.delete.URL}" title="{lang:delete category}" onclick="return confirm('{lang:Are you sure?}');"><img src="{themeconf:icon_dir}/category_delete.png" class="button" alt="{lang:delete}" /></a></li>
    44         <!-- END delete -->
     28        <li><a href="{$category.U_JUMPTO}" title="{'jump to category'|@translate}"><img src="{$themeconf.icon_dir}/category_jump-to.png" class="button" alt="{'jump to category'|@translate}" /></a></li>
     29        <li><a href="{$category.U_EDIT}" title="{'edit category informations'|@translate}"><img src="{$themeconf.icon_dir}/category_edit.png" class="button" alt="{'edit'|@translate}"/></a></li>
     30        {if isset($category.U_MANAGE_ELEMENTS) }
     31        <li><a href="{$category.U_MANAGE_ELEMENTS}" title="{'manage category elements'|@translate}"><img src="{$themeconf.icon_dir}/category_elements.png" class="button" alt="{'elements'|@translate}" /></a></li>
     32        {/if}
     33        <li><a href="{$category.U_CHILDREN}" title="{'manage sub-categories'|@translate}"><img src="{$themeconf.icon_dir}/category_children.png" class="button" alt="{'sub-categories'|@translate}" /></a></li>
     34        {if isset($category.U_MANAGE_PERMISSIONS) }
     35        <li><a href="{$category.U_MANAGE_PERMISSIONS}" title="{'edit category permissions'|@translate}" ><img src="{$themeconf.icon_dir}/category_permissions.png" class="button" alt="{'permissions'|@translate}" /></a></li>
     36        {/if}
     37        {if isset($category.U_DELETE) }
     38        <li><a href="{$category.U_DELETE}" title="{'delete category'|@translate}" onclick="return confirm('{'Are you sure?'|@translate|@escape:javascript}');"><img src="{$themeconf.icon_dir}/category_delete.png" class="button" alt="{'delete'|@translate}" /></a></li>
     39        {/if}
    4540      </ul>
    4641
    4742      <p>
    48       <strong><a href="{categories.category.U_CHILDREN}" title="{lang:manage sub-categories}">{categories.category.NAME}</a></strong>
    49       <!-- BEGIN virtual -->
    50       <img src="{themeconf:icon_dir}/virt_category.png" class="button" alt="{lang:virtual_category}" />
    51       <!-- END virtual -->
     43      <strong><a href="{$category.U_CHILDREN}" title="{'manage sub-categories'|@translate}">{$category.NAME}</a></strong>
     44      {if $category.IS_VIRTUAL}
     45      <img src="{$themeconf.icon_dir}/virt_category.png" class="button" alt="{'virtual_category'|@translate}" />
     46      {/if}
    5247      </p>
    5348
    5449      <p>
    5550        <label>
    56           {lang:Position} :
    57           <input type="text" size="4" name="catOrd[{categories.category.ID}]" maxlength="4" value="{categories.category.RANK}" />
     51          {'Position'|@translate} :
     52          <input type="text" size="4" name="catOrd[{$category.ID}]" maxlength="4" value="{$category.RANK}" />
    5853        </label>
    5954      </p>
    6055
    6156    </li>
    62     <!-- END category -->
     57    {/foreach}
    6358  </ul>
    6459  <p>
    65     <input class="submit" name="submitOrder" type="submit" value="{lang:Save order}" {TAG_INPUT_ENABLED} />
    66     <input class="submit" name="submitOrderAlphaNum" type="submit" value="{lang:Order alphanumerically}" {TAG_INPUT_ENABLED} />
     60    <input class="submit" name="submitOrder" type="submit" value="{'Save order'|@translate}" {$TAG_INPUT_ENABLED} />
     61    <input class="submit" name="submitOrderAlphaNum" type="submit" value="{'Order alphanumerically'|@translate}" {$TAG_INPUT_ENABLED} />
    6762  </p>
    6863
    6964</form>
    70 <!-- END categories -->
    71 
     65{/if}
  • trunk/template/yoga/admin/cat_modify.tpl

    r2222 r2223  
    1 <!-- DEV TAG: not smarty migrated -->
    2 <!-- $Id$ -->
     1{* $Id$ *}
    32<div class="titrePage">
    43  <ul class="categoryActions">
    5     <li><a href="{U_HELP}" onclick="popuphelp(this.href); return false;" title="{lang:Help}"><img src="{themeconf:icon_dir}/help.png" class="button" alt="(?)"></a></li>
     4    <li><a href="{$U_HELP}" onclick="popuphelp(this.href); return false;" title="{'Help'|@translate}"><img src="{$themeconf.icon_dir}/help.png" class="button" alt="(?)"></a></li>
    65  </ul>
    7   <h2>{lang:title_edit_cat}</h2>
     6  <h2>{'title_edit_cat'|@translate}</h2>
    87</div>
    98
    10 <h3>{CATEGORIES_NAV}</h3>
     9<h3>{$CATEGORIES_NAV}</h3>
    1110
    1211<ul class="categoryActions">
    13   <li><a href="{U_JUMPTO}" title="{lang:jump to category}"><img src="{themeconf:icon_dir}/category_jump-to.png" class="button" alt="{lang:jump to category}" /></a></li>
    14   <!-- BEGIN elements -->
    15   <li><a href="{elements.URL}" title="{lang:manage category elements}"><img src="{themeconf:icon_dir}/category_elements.png" class="button" alt="{lang:elements}" /></a></li>
    16   <!-- END elements -->
    17   <li><a href="{U_CHILDREN}" title="{lang:manage sub-categories}"><img src="{themeconf:icon_dir}/category_children.png" class="button" alt="{lang:sub-categories}" /></a></li>
    18   <!-- BEGIN permissions -->
    19   <li><a href="{permissions.URL}" title="{lang:edit category permissions}" ><img src="{themeconf:icon_dir}/category_permissions.png" class="button" alt="{lang:permissions}" /></a></li>
    20   <!-- END permissions -->
    21   <!-- BEGIN delete -->
    22   <li><a href="{delete.URL}" title="{lang:delete category}" onclick="return confirm('{lang:Are you sure?}');"><img src="{themeconf:icon_dir}/category_delete.png" class="button" alt="{lang:delete}" /></a></li>
    23   <!-- END delete -->
     12  <li><a href="{$U_JUMPTO}" title="{'jump to category'|@translate}"><img src="{$themeconf.icon_dir}/category_jump-to.png" class="button" alt="{'jump to category'|@translate}" /></a></li>
     13  {if isset($U_MANAGE_ELEMENTS) }
     14  <li><a href="{$U_MANAGE_ELEMENTS}" title="{'manage category elements'|@translate}"><img src="{$themeconf.icon_dir}/category_elements.png" class="button" alt="{'elements'|@translate}" /></a></li>
     15  {/if}
     16  <li><a href="{$U_CHILDREN}" title="{'manage sub-categories'|@translate}"><img src="{$themeconf.icon_dir}/category_children.png" class="button" alt="{'sub-categories'|@translate}" /></a></li>
     17  {if isset($U_MANAGE_PERMISSIONS) }
     18  <li><a href="{$U_MANAGE_PERMISSIONS}" title="{'edit category permissions'|@translate}" ><img src="{$themeconf.icon_dir}/category_permissions.png" class="button" alt="{'permissions'|@translate}" /></a></li>
     19  {/if}
     20  {if isset($U_DELETE) }
     21  <li><a href="{$U_DELETE}" title="{'delete category'|@translate}" onclick="return confirm('{'Are you sure?'|@translate|@escape:javascript}');"><img src="{$themeconf.icon_dir}/category_delete.png" class="button" alt="{'delete'|@translate}" /></a></li>
     22  {/if}
    2423</ul>
    2524
    26 <form action="{F_ACTION}" method="POST" id="catModify">
     25<form action="{$F_ACTION}" method="POST" id="catModify">
    2726
    2827<fieldset>
    29   <legend>{lang:Informations}</legend>
    30   <table>
    31     <!-- BEGIN server -->
    32     <tr>
    33       <td><strong>{L_REMOTE_SITE}</strong></td>
    34       <td>{server.SITE_URL}</td>
    35     </tr>
    36     <!-- END server -->
    37     <!-- BEGIN storage -->
    38     <tr>
    39       <td><strong>{L_STORAGE}</strong></td>
    40       <td class="row1">{storage.CATEGORY_DIR}</td>
    41     </tr>
    42     <!-- END storage -->
    43     <tr>
    44       <td><strong>{L_EDIT_NAME}</strong></td>
    45       <td>
    46         <input type="text" name="name" value="{CAT_NAME}" maxlength="60"/>
    47       </td>
    48     </tr>
    49     <tr>
    50       <td><strong>{L_EDIT_COMMENT}</strong></td>
    51       <td>
    52         <textarea cols="50" rows="5" name="comment" class="description">{CAT_COMMENT}</textarea>
    53       </td>
    54     </tr>
    55   </table>
    56 </fieldset>
    57 
    58 <!-- BEGIN move -->
     28  <legend>{'Informations'|@translate}</legend>
     29  <table>
     30
     31    {if isset($CAT_FULL_DIR) }
     32    <tr>
     33      <td><strong>{'storage'|@translate}</strong></td>
     34      <td class="row1">{$CAT_FULL_DIR}</td>
     35    </tr>
     36    {/if}
     37   
     38    <tr>
     39      <td><strong>{'name'|@translate}</strong></td>
     40      <td>
     41        <input type="text" name="name" value="{$CAT_NAME}" maxlength="60"/>
     42      </td>
     43    </tr>
     44    <tr>
     45      <td><strong>{'description'|@translate}</strong></td>
     46      <td>
     47        <textarea cols="50" rows="5" name="comment" class="description">{$CAT_COMMENT}</textarea>
     48      </td>
     49    </tr>
     50  </table>
     51</fieldset>
     52
     53{if isset($move_cat_options) }
    5954<fieldset id="move">
    60   <legend>{lang:Move}</legend>
    61   {lang:Parent category}
     55  <legend>{'Move'|@translate}</legend>
     56  {'Parent category'|@translate}
    6257  <select class="categoryDropDown" name="parent">
    63     <!-- BEGIN parent_option -->
    64     <option class="{move.parent_option.CLASS}" {move.parent_option.SELECTED} value="{move.parent_option.VALUE}">{move.parent_option.OPTION}</option>
    65     <!-- END parent_option -->
     58    <option value="0">------------</option>
     59    {html_options options=$move_cat_options selected=$move_cat_options_selected }
    6660  </select>
    6761</fieldset>
    68 <!-- END move -->
     62{/if}
    6963
    7064<fieldset id="options">
    71   <legend>{lang:Options}</legend>
    72   <table>
    73     <tr>
    74       <td><strong>{L_EDIT_STATUS}</strong>
    75       <td>
    76     <input type="radio" name="status" value="public" {STATUS_PUBLIC} />{L_STATUS_PUBLIC}
    77     <input type="radio" name="status" value="private" {STATUS_PRIVATE} />{L_STATUS_PRIVATE}
    78       </td>
    79     </tr>
    80     <tr>
    81       <td><strong>{L_EDIT_LOCK}</strong>
    82       <td>
    83     <input type="radio" name="visible" value="false" {LOCKED} />{L_YES}
    84     <input type="radio" name="visible" value="true" {UNLOCKED} />{L_NO}
    85       </td>
    86     </tr>
    87     <tr>
    88       <td><strong>{L_EDIT_COMMENTABLE}</strong>
    89       <td>
    90           <input type="radio" name="commentable" value="true" {COMMENTABLE_TRUE} />{L_YES}
    91           <input type="radio"  name="commentable" value="false" {COMMENTABLE_FALSE} />{L_NO}
    92       </td>
    93     </tr>
    94     <!-- BEGIN upload -->
    95     <tr>
    96       <td><strong>{L_EDIT_UPLOADABLE}</strong>
    97       <td>
    98           <input type="radio" name="uploadable" value="true" {UPLOADABLE_TRUE} />{L_YES}
    99           <input type="radio" name="uploadable" value="false" {UPLOADABLE_FALSE} />{L_NO}
    100       </td>
    101     </tr>
    102     <!-- END upload -->
     65  <legend>{'Options'|@translate}</legend>
     66  <table>
     67    <tr>
     68      <td><strong>{'conf_access'|@translate}</strong>
     69      <td>
     70        {html_radios name='status' values=$status_values output=$status_values|translate selected=$CAT_STATUS}
     71      </td>
     72    </tr>
     73    <tr>
     74      <td><strong>{'lock'|@translate}</strong>
     75      <td>
     76        {html_radios name='visible' values=$false_true output=$no_yes|translate selected=$CAT_VISIBLE}
     77      </td>
     78    </tr>
     79    <tr>
     80      <td><strong>{'comments'|@translate}</strong>
     81      <td>
     82        {html_radios name='commentable' values=$false_true output=$no_yes|translate selected=$CAT_COMMENTABLE}
     83      </td>
     84    </tr>
     85    {if isset($SHOW_UPLOADABLE) }
     86    <tr>
     87      <td><strong>{'editcat_uploadable'|@translate}</strong>
     88      <td>
     89        {html_radios name='uploadable' values=$false_true output=$no_yes|translate selected=$CAT_UPLOADABLE}
     90      </td>
     91    </tr>
     92    {/if}
    10393  </table>
    10494</fieldset>
    10595
    10696<fieldset id="image_order">
    107   <legend>{lang:Sort order}</legend>
    108   <input type="checkbox" name="image_order_default" id="image_order_default" {IMG_ORDER_DEFAULT} />
    109   <label for="image_order_default">{lang:Use default sort order}</label>
     97  <legend>{'Sort order'|@translate}</legend>
     98  <input type="checkbox" name="image_order_default" id="image_order_default" {$IMG_ORDER_DEFAULT} />
     99  <label for="image_order_default">{'Use default sort order'|@translate}</label>
    110100  <br/>
    111101  <input type="checkbox" name="image_order_subcats" id="image_order_subcats" />
    112   <label for="image_order_subcats">{lang:Apply to subcategories}</label>
     102  <label for="image_order_subcats">{'Apply to subcategories'|@translate}</label>
    113103  <br/>
    114   <!-- BEGIN image_order -->
    115     <select name="order_field_{image_order.NUMBER}">
    116     <!-- BEGIN field -->
    117       <option value="{image_order.field.VALUE}" {image_order.field.SELECTED}>{image_order.field.OPTION}</option>
    118     <!-- END field -->
     104 
     105  {foreach from=$image_orders item=order}
     106    <select name="order_field_{$order.ID}">
     107      {html_options options=$image_order_field_options selected=$order.FIELD }}
    119108    </select>
    120     <select name="order_direction_{image_order.NUMBER}">
    121     <!-- BEGIN order -->
    122       <option value="{image_order.order.VALUE}" {image_order.order.SELECTED}>{image_order.order.OPTION}</option>
    123     <!-- END order -->
     109    <select name="order_direction_{$order.ID}">
     110      {html_options options=$image_order_direction_options selected=$order.DIRECTION }}
    124111    </select><br/>
    125   <!-- END image_order -->
     112  {/foreach}
     113 
    126114</fieldset>
    127115
    128116<p style="text-align:center;">
    129   <input class="submit" type="submit" value="{L_SUBMIT}" name="submit" {TAG_INPUT_ENABLED}/>
    130   <input class="submit" type="reset" value="{lang:Reset}" name="reset" />
     117  <input class="submit" type="submit" value="{'submit'|@translate}" name="submit" {$TAG_INPUT_ENABLED}/>
     118  <input class="submit" type="reset" value="{'Reset'|@translate}" name="reset" />
    131119</p>
    132120
    133 <!-- BEGIN representant -->
     121{if isset($representant) }
    134122<fieldset id="representant">
    135   <legend>{lang:Representant}</legend>
     123  <legend>{'Representant'|@translate}</legend>
    136124  <table>
    137125    <tr>
    138126      <td align="center">
    139         <!-- BEGIN picture -->
    140         <a href="{representant.picture.URL}"><img src="{representant.picture.SRC}" alt="" class="miniature" /></a>
    141         <!-- END picture -->
    142 
    143         <!-- BEGIN random -->
    144         <img src="{themeconf:icon_dir}/category_representant_random.png" class="button" alt="{lang:Random picture}" class="miniature" />
    145         <!-- END random -->
    146       </td>
    147       <td>
    148         <!-- BEGIN set_random -->
    149         <p><input class="submit" type="submit" name="set_random_representant" value="{L_SET_RANDOM_REPRESENTANT}" {TAG_INPUT_ENABLED}/></p>
    150         <!-- END set_random -->
    151 
    152         <!-- BEGIN delete_representant -->
    153         <p><input class="submit" type="submit" name="delete_representant" value="{lang:Delete Representant}" /></p>
    154         <!-- END delete_representant -->
    155       </td>
    156     </tr>
    157   </table>
    158 </fieldset>
    159 <!-- END representant -->
     127        {if isset($representant.picture) }
     128        <a href="{$representant.picture.URL}"><img src="{$representant.picture.SRC}" alt="" class="miniature" /></a>
     129        {else}
     130        <img src="{$themeconf.icon_dir}/category_representant_random.png" class="button" alt="{'Random picture'|@translate}" class="miniature" />
     131        {/if}
     132      </td>
     133      <td>
     134        {if $representant.ALLOW_SET_RANDOM }
     135        <p><input class="submit" type="submit" name="set_random_representant" value="{'cat_representant'|@translate}" {$TAG_INPUT_ENABLED}/></p>
     136        {/if}
     137
     138        {if isset($representant.ALLOW_DELETE) }
     139        <p><input class="submit" type="submit" name="delete_representant" value="{'Delete Representant'|@translate}" /></p>
     140        {/if}
     141      </td>
     142    </tr>
     143  </table>
     144</fieldset>
     145{/if}
    160146
    161147</form>
    162148
    163 <form action="{F_ACTION}" method="POST" id="links">
     149<form action="{$F_ACTION}" method="POST" id="links">
    164150
    165151<fieldset id="linkAllNew">
    166   <legend>{lang:Link all category elements to a new category}</legend>
    167 
    168   <table>
    169     <tr>
    170       <td>{lang:Virtual category name}</td>
     152  <legend>{'Link all category elements to a new category'|@translate}</legend>
     153
     154  <table>
     155    <tr>
     156      <td>{'Virtual category name'|@translate}</td>
    171157      <td><input type="text" name="virtual_name"></td>
    172158    </tr>
    173159
    174160    <tr>
    175       <td>{lang:Parent category}</td>
     161      <td>{'Parent category'|@translate}</td>
    176162      <td>
    177163        <select class="categoryDropDown" name="parent">
    178           <!-- BEGIN category_option_parent -->
    179           <option {category_option_parent.SELECTED} value="{category_option_parent.VALUE}">{category_option_parent.OPTION}</option>
    180           <!-- END category_option_parent -->
     164          <option value="0">------------</option>
     165          {html_options options=$create_new_parent_options }
    181166        </select>
    182167      </td>
     
    185170
    186171  <p>
    187     <input class="submit" type="submit" value="{lang:Submit}" name="submitAdd" {TAG_INPUT_ENABLED}/>
    188     <input class="submit" type="reset" value="{lang:Reset}" name="reset" />
     172    <input class="submit" type="submit" value="{'Submit'|@translate}" name="submitAdd" {$TAG_INPUT_ENABLED}/>
     173    <input class="submit" type="reset" value="{'Reset'|@translate}" name="reset" />
    189174  </p>
    190175
     
    192177
    193178<fieldset id="linkAllExist">
    194   <legend>{lang:Link all category elements to some existing categories}</legend>
    195 
    196   <table>
    197     <tr>
    198       <td>{lang:Categories}</td>
     179  <legend>{'Link all category elements to some existing categories'|@translate}</legend>
     180
     181  <table>
     182    <tr>
     183      <td>{'Categories'|@translate}</td>
    199184      <td>
    200185        <select class="categoryList" name="destinations[]" multiple="multiple" size="5">
    201           <!-- BEGIN category_option_destination -->
    202           <option {category_option_destination.SELECTED} value="{category_option_destination.VALUE}">{category_option_destination.OPTION}</option>
    203           <!-- END category_option_destination -->
     186          {html_options options=$category_destination_options }
    204187        </select>
    205188      </td>
     
    208191
    209192  <p>
    210     <input class="submit" type="submit" value="{lang:Submit}" name="submitDestinations" {TAG_INPUT_ENABLED}/>
    211     <input class="submit" type="reset" value="{lang:Reset}" name="reset" />
     193    <input class="submit" type="submit" value="{'Submit'|@translate}" name="submitDestinations" {$TAG_INPUT_ENABLED}/>
     194    <input class="submit" type="reset" value="{'Reset'|@translate}" name="reset" />
    212195  </p>
    213196
    214197</fieldset>
    215198
    216 <!-- BEGIN group_mail -->
     199{if isset($group_mail_options)}
    217200<fieldset id="emailCatInfo">
    218   <legend>{lang:Send an information email to group members}</legend>
    219 
    220   <table>
    221     <tr>
    222       <td><strong>{lang:Group}</strong></td>
     201  <legend>{'Send an information email to group members'|@translate}</legend>
     202
     203  <table>
     204    <tr>
     205      <td><strong>{'Group'|@translate}</strong></td>
    223206      <td>
    224207        <select name="group">
    225           <!-- BEGIN group_option -->
    226           <option value="{group_mail.group_option.VALUE}">{group_mail.group_option.OPTION}</option>
    227           <!-- END group_option -->
     208          {html_options options=$group_mail_options}
    228209        </select>
    229210      </td>
    230211    </tr>
    231212    <tr>
    232       <td><strong>{lang:mail_content}</strong></td>
    233       <td>
    234         <textarea cols="50" rows="5" name="mail_content" class="description">{MAIL_CONTENT}</textarea>
     213      <td><strong>{'mail_content'|@translate}</strong></td>
     214      <td>
     215        <textarea cols="50" rows="5" name="mail_content" class="description">{$MAIL_CONTENT}</textarea>
    235216      </td>
    236217    </tr>
     
    239220
    240221  <p>
    241     <input class="submit" type="submit" value="{lang:Submit}" name="submitEmail" {TAG_INPUT_ENABLED}/>
    242     <input class="submit" type="reset" value="{lang:Reset}" name="reset" />
     222    <input class="submit" type="submit" value="{'Submit'|@translate}" name="submitEmail" {$TAG_INPUT_ENABLED}/>
     223    <input class="submit" type="reset" value="{'Reset'|@translate}" name="reset" />
    243224  </p>
    244225
    245226</fieldset>
    246 <!-- END group_mail -->
     227{/if}
    247228
    248229</form>
  • trunk/template/yoga/admin/cat_move.tpl

    r2222 r2223  
    1 <!-- DEV TAG: not smarty migrated -->
    2 <!-- $Id$ -->
     1{* $Id$ *}
     2
    33<div class="titrePage">
    44  <ul class="categoryActions">
    5     <li><a href="{U_HELP}" onclick="popuphelp(this.href); return false;" title="{lang:Help}"><img src="{themeconf:icon_dir}/help.png" class="button" alt="(?)"></a></li>
     5    <li><a href="{$U_HELP}" onclick="popuphelp(this.href); return false;" title="{'Help'|@translate}"><img src="{$themeconf.icon_dir}/help.png" class="button" alt="(?)"></a></li>
    66  </ul>
    7   <h2>{lang:Move categories}</h2>
     7  <h2>{'Move categories'|@translate}</h2>
    88</div>
    99
    10 <form method="post" action="{F_ACTION}" class="filter" id="catMove">
     10<form method="post" action="{$F_ACTION}" class="filter" id="catMove">
    1111  <fieldset>
    12     <legend>{lang:Virtual categories movement}</legend>
     12    <legend>{'Virtual categories movement'|@translate}</legend>
    1313
    1414    <label>
    15       {lang:Virtual categories to move}
     15      {'Virtual categories to move'|@translate}
    1616
    1717      <select class="categoryList" name="selection[]" multiple="multiple">
    18         <!-- BEGIN category_option_selection -->
    19         <option {category_option_selection.SELECTED} value="{category_option_selection.VALUE}">{category_option_selection.OPTION}</option>
    20         <!-- END category_option_selection -->
     18        {html_options options=$category_to_move_options}
    2119      </select>
    2220    </label>
    2321
    2422    <label>
    25       {lang:New parent category}
     23      {'New parent category'|@translate}
    2624
    2725      <select class="categoryDropDown" name="parent">
    28         <!-- BEGIN category_option_parent -->
    29         <option {category_option_parent.SELECTED} value="{category_option_parent.VALUE}">{category_option_parent.OPTION}</option>
    30         <!-- END category_option_parent -->
     26        <option value="0">------------</option>
     27        {html_options options=$category_parent_options}
    3128      </select>
    3229    </label>
     
    3532
    3633  <p>
    37     <input class="submit" type="submit" name="submit" value="{lang:Submit}" {TAG_INPUT_ENABLED}>
    38     <input class="submit" type="reset" name="reset" value="{lang:Reset}">
     34    <input class="submit" type="submit" name="submit" value="{'Submit'|@translate}" {$TAG_INPUT_ENABLED}>
     35    <input class="submit" type="reset" name="reset" value="{'Reset'|@translate}">
    3936  </p>
    4037
  • trunk/template/yoga/admin/cat_options.tpl

    r2222 r2223  
    1 <!-- DEV TAG: not smarty migrated -->
    2 <!-- $Id$ -->
     1{* $Id$ *}
    32<div class="titrePage">
    43  <ul class="categoryActions">
    5     <li><a href="{U_HELP}" onclick="popuphelp(this.href); return false;" title="{lang:Help}"><img src="{themeconf:icon_dir}/help.png" class="button" alt="(?)"></a></li>
     4    <li><a href="{$U_HELP}" onclick="popuphelp(this.href); return false;" title="{'Help'|@translate}"><img src="{$themeconf.icon_dir}/help.png" class="button" alt="(?)"></a></li>
    65  </ul>
    7   <h2>{lang:cat_options_title} {TABSHEET_TITLE}</h2>
    8   {TABSHEET}
     6  <h2>{'cat_options_title'|@translate} {$TABSHEET_TITLE}</h2>
     7  {include file='admin/tabsheet.tpl'}
    98</div>
    109
    11 <form method="post" action="{F_ACTION}" id="cat_options">
     10<form method="post" action="{$F_ACTION}" id="cat_options">
    1211  <fieldset>
    13     <legend>{L_SECTION}</legend>
    14     {DOUBLE_SELECT}
     12    <legend>{$L_SECTION}</legend>
     13    {$DOUBLE_SELECT}
    1514  </fieldset>
    1615</form>
    1716
    18 <p class="information">{L_CAT_OPTIONS_INFO}</p>
    19 
  • trunk/template/yoga/admin/cat_perm.tpl

    r2222 r2223  
    1 <!-- DEV TAG: not smarty migrated -->
     1{* $Id$ *}
    22<div class="titrePage">
    33  <ul class="categoryActions">
    4     <li><a href="{U_HELP}" onclick="popuphelp(this.href); return false;" title="{lang:Help}"><img src="{themeconf:icon_dir}/help.png" class="button" alt="(?)"></a></li>
     4    <li><a href="{$U_HELP}" onclick="popuphelp(this.href); return false;" title="{'Help'|@translate}"><img src="{$themeconf.icon_dir}/help.png" class="button" alt="(?)"></a></li>
    55  </ul>
    6   <h2>{lang:Manage permissions for a category}</h2>
     6  <h2>{'Manage permissions for a category'|@translate}</h2>
    77</div>
    88
    9 <h3>{CATEGORIES_NAV}</h3>
     9<h3>{$CATEGORIES_NAV}</h3>
    1010
    11 <form action="{F_ACTION}" method="post" id="categoryPermissions">
     11<form action="{$F_ACTION}" method="post" id="categoryPermissions">
    1212
    13   <h4>{lang:Groups}</h4>
     13  <h4>{'Groups'|@translate}</h4>
    1414
    1515  <fieldset>
    16     <legend>{lang:Permission granted}</legend>
     16    <legend>{'Permission granted'|@translate}</legend>
    1717    <ul>
    18       <!-- BEGIN group_granted -->
    19       <li><label><input type="checkbox" name="deny_groups[]" value="{group_granted.ID}" /> {group_granted.NAME}</label></li>
    20       <!-- END group_granted -->
     18      {foreach from=$group_granted_ids item=id}
     19      <li><label><input type="checkbox" name="deny_groups[]" value="{$id}" /> {$all_groups[$id]}</label></li>
     20      {/foreach}
    2121    </ul>
    22     <input class="submit" type="submit" name="deny_groups_submit" value="{lang:Deny selected groups}" {TAG_INPUT_ENABLED}/>
     22    <input class="submit" type="submit" name="deny_groups_submit" value="{'Deny selected groups'|@translate}" {$TAG_INPUT_ENABLED}/>
    2323  </fieldset>
    2424
    2525  <fieldset>
    26     <legend>{lang:Permission denied}</legend>
     26    <legend>{'Permission denied'|@translate}</legend>
    2727    <ul>
    28       <!-- BEGIN group_denied -->
    29       <li><label><input type="checkbox" name="grant_groups[]" value="{group_denied.ID}"> {group_denied.NAME}</label></li>
    30       <!-- END group_denied -->
     28      {foreach from=$group_denied_ids item=id}
     29      <li><label><input type="checkbox" name="grant_groups[]" value="{$id}"> {$all_groups[$id]}</label></li>
     30      {/foreach}
    3131    </ul>
    32     <input class="submit" type="submit" name="grant_groups_submit" value="{lang:Grant selected groups}" {TAG_INPUT_ENABLED}/>
     32    <input class="submit" type="submit" name="grant_groups_submit" value="{'Grant selected groups'|@translate}" {$TAG_INPUT_ENABLED}/>
    3333  </fieldset>
    3434
    35   <h4>{lang:Users}</h4>
    36  
     35  <h4>{'Users'|@translate}</h4>
     36
    3737  <fieldset>
    38     <legend>{lang:Permission granted}</legend>
     38    <legend>{'Permission granted'|@translate}</legend>
    3939    <ul>
    40       <!-- BEGIN user_granted -->
    41       <li><label><input type="checkbox" name="deny_users[]" value="{user_granted.ID}" /> {user_granted.NAME}</label></li>
    42       <!-- END user_granted -->
     40      {foreach from=$user_granted_direct_ids item=id}
     41      <li><label><input type="checkbox" name="deny_users[]" value="{$id}" /> {$all_users[$id]}</label></li>
     42      {/foreach}
    4343    </ul>
    44     <input class="submit" type="submit" name="deny_users_submit" value="{lang:Deny selected users}" {TAG_INPUT_ENABLED}/>
     44    <input class="submit" type="submit" name="deny_users_submit" value="{'Deny selected users'|@translate}" {$TAG_INPUT_ENABLED}/>
    4545  </fieldset>
    4646
    4747  <fieldset>
    48     <legend>{lang:Permission granted thanks to a group}</legend>
     48    <legend>{'Permission granted thanks to a group'|@translate}</legend>
     49    {if isset($user_granted_indirects) }
    4950    <ul>
    50       <!-- BEGIN user_granted_indirect -->
    51       <li>{user_granted_indirect.NAME} ({user_granted_indirect.GROUP})</li>
    52       <!-- END user_granted_indirect -->
     51      {foreach from=$user_granted_indirects item=user_group}
     52      <li>{$user_group.USER} ({$user_group.GROUP})</li>
     53      {/foreach}
    5354    </ul>
     55    {/if}
    5456  </fieldset>
    5557
    5658  <fieldset>
    57     <legend>{lang:Permission denied}</legend>
     59    <legend>{'Permission denied'|@translate}</legend>
    5860    <ul>
    59       <!-- BEGIN user_denied -->
    60       <li><label><input type="checkbox" name="grant_users[]" value="{user_denied.ID}"> {user_denied.NAME}</label></li>
    61       <!-- END user_denied -->
     61      {foreach from=$user_denied_ids item=id}
     62      <li><label><input type="checkbox" name="grant_users[]" value="{$id}"> {$all_users[$id]}</label></li>
     63      {/foreach}
    6264    </ul>
    63     <input class="submit" type="submit" name="grant_users_submit" value="{lang:Grant selected users}" {TAG_INPUT_ENABLED}/>
     65    <input class="submit" type="submit" name="grant_users_submit" value="{'Grant selected users'|@translate}" {$TAG_INPUT_ENABLED}/>
    6466  </fieldset>
    6567
  • trunk/template/yoga/admin/permalinks.tpl

    r2222 r2223  
    1 <!-- DEV TAG: not smarty migrated -->
     1{* $Id$ *}
    22<div class="titrePage">
    33  <ul class="categoryActions">
    4     <li><a href="{U_HELP}" onclick="popuphelp(this.href); return false;" title="{lang:Help}"><img src="{themeconf:icon_dir}/help.png" class="button" alt="(?)"></a></li>
     4    <li><a href="{$U_HELP}" onclick="popuphelp(this.href); return false;" title="{'Help'|@translate}"><img src="{$themeconf.icon_dir}/help.png" class="button" alt="(?)"></a></li>
    55  </ul>
    6   <h2>{lang:Permalinks}</h2>
     6  <h2>{'Permalinks'|@translate}</h2>
    77</div>
    88
    9 <form method="post" action="{F_ACTION}">
    10 <fieldset><legend>{lang:Add/delete a permalink}</legend>
    11   <label>{lang:Category}:
     9<form method="post" action="{$F_ACTION}">
     10<fieldset><legend>{'Add/delete a permalink'|@translate}</legend>
     11  <label>{'Category'|@translate}:
    1212    <select name="cat_id">
    1313      <option value="0">------</option>
    14 <!-- BEGIN categories -->
    15       <option value="{categories.VALUE}" {categories.SELECTED}>{categories.OPTION}</option>
    16 <!-- END categories -->
     14      {html_options options=$categories selected=$categories_selected}
    1715    </select>
    1816  </label>
    1917
    20   <label>{lang:Permalink}:
     18  <label>{'Permalink'|@translate}:
    2119    <input name="permalink" />
    2220  </label>
    2321
    24   <label>{lang:Save to permalink history}:
     22  <label>{'Save to permalink history'|@translate}:
    2523    <input type="checkbox" name="save" checked="checked" />
    2624  </label>
    2725
    2826  <p>
    29     <input type="submit" class="submit" name="set_permalink" value="{lang:submit}" {TAG_INPUT_ENABLED}/>
     27    <input type="submit" class="submit" name="set_permalink" value="{'submit'|@translate}" {$TAG_INPUT_ENABLED}/>
    3028  </p>
    3129  </fieldset>
    3230</form>
    3331
    34 <h3>{lang:Permalinks}</h3>
     32<h3>{'Permalinks'|@translate}</h3>
    3533<table class="table2">
    3634  <tr class="throw">
    37     <td>Id {SORT_ID}</td>
    38     <td>{lang:Category} {SORT_NAME}</td>
    39     <td>{lang:Permalink} {SORT_PERMALINK}</td>
     35    <td>Id {$SORT_ID}</td>
     36    <td>{'Category'|@translate} {$SORT_NAME}</td>
     37    <td>{'Permalink'|@translate} {$SORT_PERMALINK}</td>
    4038  </tr>
    41 <!-- BEGIN permalink -->
     39{foreach from=$permalinks item=permalink}
    4240  <tr>
    43     <td>{permalink.id}</td>
    44     <td>{permalink.name}</td>
    45     <td>{permalink.permalink}</td>
     41    <td>{$permalink.id}</td>
     42    <td>{$permalink.name}</td>
     43    <td>{$permalink.permalink}</td>
    4644  </tr>
    47 <!-- END permalink -->
     45{/foreach}
    4846</table>
    4947
    50 <h3>{lang:Permalink history} <a name="old_permalinks"></a></h3>
     48<h3>{'Permalink history'|@translate} <a name="old_permalinks"></a></h3>
    5149<table class="table2">
    5250  <tr class="throw">
    53     <td>Id {SORT_OLD_CAT_ID}</td>
    54     <td>{lang:Category}</td>
    55     <td>{lang:Permalink} {SORT_OLD_PERMALINK}</td>
    56     <td>Deleted on {SORT_OLD_DATE_DELETED}</td>
    57     <td>Last hit {SORT_OLD_LAST_HIT}</td>
    58     <td>Hit {SORT_OLD_HIT}</td>
     51    <td>Id {$SORT_OLD_CAT_ID}</td>
     52    <td>{'Category'|@translate}</td>
     53    <td>{'Permalink'|@translate} {$SORT_OLD_PERMALINK}</td>
     54    <td>Deleted on {$SORT_OLD_DATE_DELETED}</td>
     55    <td>Last hit {$SORT_OLD_LAST_HIT}</td>
     56    <td>Hit {$SORT_OLD_HIT}</td>
    5957    <td></td>
    6058  </tr>
    61 <!-- BEGIN deleted_permalink -->
     59{foreach from=$deleted_permalinks item=permalink}
    6260  <tr>
    63     <td>{deleted_permalink.cat_id}</td>
    64     <td>{deleted_permalink.name}</td>
    65     <td>{deleted_permalink.permalink}</td>
    66     <td>{deleted_permalink.date_deleted}</td>
    67     <td>{deleted_permalink.last_hit}</td>
    68     <td>{deleted_permalink.hit}</td>
    69     <td><a href="{deleted_permalink.U_DELETE}" {TAG_INPUT_ENABLED}><img src="{pwg_root}{themeconf:icon_dir}/delete.png" alt="Delete"></a></td>
     61    <td>{$permalink.cat_id}</td>
     62    <td>{$permalink.name}</td>
     63    <td>{$permalink.permalink}</td>
     64    <td>{$permalink.date_deleted}</td>
     65    <td>{$permalink.last_hit}</td>
     66    <td>{$permalink.hit}</td>
     67    <td><a href="{$permalink.U_DELETE}" {$TAG_INPUT_ENABLED}><img src="{$ROOT_URL}{$themeconf.icon_dir}/delete.png" alt="Delete"></a></td>
    7068  </tr>
    71 <!-- END deleted_permalink -->
     69{/foreach}
    7270</table>
  • trunk/template/yoga/admin/rating.tpl

    r2222 r2223  
    1 <!-- DEV TAG: not smarty migrated -->
    2 <h2>{lang:Rating} [{NB_ELEMENTS} {lang:elements}]</h2>
     1{* $Id$ *}
     2<h2>{'Rating'|@translate} [{$NB_ELEMENTS} {'elements'|@translate}]</h2>
    33
    4 <form action="{F_ACTION}" method="GET" id="update" class="filter">
     4<form action="{$F_ACTION}" method="GET" id="update" class="filter">
    55  <fieldset>
    6     <legend>{lang:Filter}</legend>
     6    <legend>{'Filter'|@translate}</legend>
    77
    88    <label>
    9       {lang:Sort by}
     9      {'Sort by'|@translate}
    1010      <select name="order_by">
    11         <!-- BEGIN order_by -->
    12         <option value="{order_by.VALUE}" {order_by.SELECTED}>{order_by.CONTENT}</option>
    13         <!-- END order_by -->
     11        {html_options options=$order_by_options selected=$order_by_options_selected}
    1412      </select>
    1513    </label>
    1614
    1715    <label>
    18       {lang:Users}
     16      {'Users'|@translate}
    1917      <select name="users">
    20         <!-- BEGIN user_option -->
    21         <option value="{user_option.VALUE}" {user_option.SELECTED}>{user_option.CONTENT}</option>
    22         <!-- END user_option -->
     18        {html_options options=$user_options selected=$user_options_selected}
    2319      </select>
    2420    </label>
    2521
    2622    <label>
    27       {lang:Number of items}
    28       <input type="text" name="display" size="2" value="{DISPLAY}">
     23      {'Number of items'|@translate}
     24      <input type="text" name="display" size="2" value="{$DISPLAY}">
    2925    </label>
    3026
    31     <input class="submit" type="submit" name="submit_filter" value="{lang:Submit}" />
     27    <input class="submit" type="submit" name="submit_filter" value="{'Submit'|@translate}" />
    3228    <input type="hidden" name="page" value="rating" />
    3329  </fieldset>
    3430</form>
    3531
    36 <div class="navigationBar">{NAVBAR}</div>
     32<div class="navigationBar">{$NAVBAR}</div>
    3733<table width="99%">
    3834<tr class="throw">
    39   <td>{lang:File}</td>
    40   <td>{lang:Number of rates}</td>
    41   <td>{lang:Average rate}</td>
    42   <td>{lang:Controversy}</td>
    43   <td>{lang:Sum of rates}</td>
    44   <td>{lang:Rate}</td>
    45   <td>{lang:Username}</td>
    46   <td>{lang:Rate date}</td>
     35  <td>{'File'|@translate}</td>
     36  <td>{'Number of rates'|@translate}</td>
     37  <td>{'Average rate'|@translate}</td>
     38  <td>{'Controversy'|@translate}</td>
     39  <td>{'Sum of rates'|@translate}</td>
     40  <td>{'Rate'|@translate}</td>
     41  <td>{'Username'|@translate}</td>
     42  <td>{'Rate date'|@translate}</td>
    4743  <td></td>
    4844</tr>
    49 <!-- BEGIN image -->
     45{foreach from=$images item=image}
    5046<tr valign="bottom">
    51   <td rowspan="{image.NB_RATES_PLUS1}"><a href="{image.U_URL}"><img src="{image.U_THUMB}" alt="{image.FILE}" title="{image.FILE}"></a></td>
    52   <td rowspan="{image.NB_RATES_PLUS1}"><strong>{image.NB_RATES}/{image.NB_RATES_TOTAL}</strong></td>
    53   <td rowspan="{image.NB_RATES_PLUS1}"><strong>{image.AVG_RATE}</strong></td>
    54   <td rowspan="{image.NB_RATES_PLUS1}"><strong>{image.STD_RATE}</strong></td>
    55   <td rowspan="{image.NB_RATES_PLUS1}" style="border-right: 1px solid;" ><strong>{image.SUM_RATE}</strong></td>
     47  <td rowspan="{$image.NB_RATES_TOTAL+1}"><a href="{$image.U_URL}"><img src="{$image.U_THUMB}" alt="{$image.FILE}" title="{$image.FILE}"></a></td>
     48  <td rowspan="{$image.NB_RATES_TOTAL+1}"><strong>{$image.NB_RATES}/{$image.NB_RATES_TOTAL}</strong></td>
     49  <td rowspan="{$image.NB_RATES_TOTAL+1}"><strong>{$image.AVG_RATE}</strong></td>
     50  <td rowspan="{$image.NB_RATES_TOTAL+1}"><strong>{$image.STD_RATE}</strong></td>
     51  <td rowspan="{$image.NB_RATES_TOTAL+1}" style="border-right: 1px solid;" ><strong>{$image.SUM_RATE}</strong></td>
    5652</tr>
    57 <!-- BEGIN rate -->
     53{foreach from=$image.rates item=rate}
    5854<tr>
    59     <td>{image.rate.RATE}</td>
    60     <td><b>{image.rate.USER}</b></td>
    61     <td><span class="date">{image.rate.DATE}</span></td>
    62     <td><a href="{image.rate.U_DELETE}" {TAG_INPUT_ENABLED}><img src="{themeconf:icon_dir}/delete.png" class="button" style="border:none;vertical-align:middle; margin-left:5px;" alt="[{lang:delete}]"/></a></td>
     55    <td>{$rate.RATE}</td>
     56    <td><b>{$rate.USER}</b></td>
     57    <td><span class="date">{$rate.DATE}</span></td>
     58    <td><a href="{$rate.U_DELETE}" {$TAG_INPUT_ENABLED}><img src="{$themeconf.icon_dir}/delete.png" class="button" style="border:none;vertical-align:middle; margin-left:5px;" alt="[{'delete'|@translate}]"/></a></td>
    6359</tr>
    64 <!-- END rate -->
    65 <!-- END image -->
     60{/foreach} {*rates*}
     61{/foreach} {*images*}
    6662</table>
    6763
    68 <div class="navigationBar">{NAVBAR}</div>
     64<div class="navigationBar">{$NAVBAR}</div>
  • trunk/template/yoga/admin/tabsheet.tpl

    r2222 r2223  
    1 <!-- DEV TAG: not smarty migrated -->
    2 <!-- $Id$ -->
     1{* $Id$ *}
     2{if isset($tabsheet) and count($tabsheet)}
    33<ul class="tabsheet">
    4 <!-- BEGIN tab -->
    5   <li class="{tab.CLASSNAME}"><a href="{tab.URL}">{tab.CAPTION}</a></li>
    6 <!-- END tab -->
     4{foreach from=$tabsheet item=tab}
     5  <li class="{if isset($tab.selected) and $tab.selected}selected_tab{else}normal_tab{/if}"><a href="{$tab.url}">{$tab.caption}</a></li>
     6{/foreach}
    77</ul>
     8{/if}
  • trunk/template/yoga/comments.tpl

    r2222 r2223  
    1 <!-- DEV TAG: not smarty migrated -->
    2 <!-- $Id$ -->
     1{* $Id$ *}
    32<div id="content">
    43
    54  <div class="titrePage">
    65    <ul class="categoryActions">
    7       <li><a href="{U_HOME}" title="{lang:return to homepage}"><img src="{themeconf:icon_dir}/home.png" class="button" alt="{lang:home}"/></a></li>
     6      <li><a href="{$U_HOME}" title="{'return to homepage'|@translate}"><img src="{$themeconf.icon_dir}/home.png" class="button" alt="{'home'|@translate}"/></a></li>
    87    </ul>
    9     <h2>{lang:User comments}</h2>
     8    <h2>{'User comments'|@translate}</h2>
    109  </div>
    1110
    12 <form class="filter" action="{F_ACTION}" method="get">
     11<form class="filter" action="{$F_ACTION}" method="get">
    1312
    1413  <fieldset>
    15     <legend>{lang:Filter}</legend>
     14    <legend>{'Filter'|@translate}</legend>
    1615
    17     <label>{lang:Keyword}<input type="text" name="keyword" value="{F_KEYWORD}" /></label>
     16    <label>{'Keyword'|@translate}<input type="text" name="keyword" value="{$F_KEYWORD}" /></label>
    1817
    19     <label>{lang:Author}<input type="text" name="author" value="{F_AUTHOR}" /></label>
     18    <label>{'Author'|@translate}<input type="text" name="author" value="{$F_AUTHOR}" /></label>
    2019
    2120    <label>
    22       {lang:Category}
     21      {'Category'|@translate}
    2322      <select name="cat">
    24         <!-- BEGIN category -->
    25         <option {category.SELECTED} value="{category.VALUE}">{category.OPTION}</option>
    26         <!-- END category -->
     23        <option value="0">------------</option>
     24        {html_options options=$categories selected=$categories_selected}
    2725      </select>
    2826    </label>
    2927
    3028    <label>
    31       {lang:Since}
     29      {'Since'|@translate}
    3230      <select name="since">
    33         <!-- BEGIN since_option -->
    34         <option {since_option.SELECTED} value="{since_option.VALUE}">{since_option.CONTENT}</option>
    35         <!-- END since_option -->
     31        {html_options options=$since_options selected=$since_options_selected}
    3632      </select>
    3733    </label>
     
    4137  <fieldset>
    4238
    43     <legend>{lang:Display}</legend>
     39    <legend>{'Display'|@translate}</legend>
    4440
    4541    <label>
    46       {lang:Sort by}
     42      {'Sort by'|@translate}
    4743      <select name="sort_by">
    48         <!-- BEGIN sort_by_option -->
    49         <option value="{sort_by_option.VALUE}" {sort_by_option.SELECTED} >{sort_by_option.CONTENT}</option>
    50         <!-- END sort_by_option -->
     44        {html_options options=$sort_by_options selected=$sort_by_options_selected}
    5145      </select>
    5246    </label>
    5347
    5448    <label>
    55       {lang:Sort order}
     49      {'Sort order'|@translate}
    5650      <select name="sort_order">
    57         <!-- BEGIN sort_order_option -->
    58         <option value="{sort_order_option.VALUE}" {sort_order_option.SELECTED} >{sort_order_option.CONTENT}</option>
    59         <!-- END sort_order_option -->
     51        {html_options options=$sort_order_options selected=$sort_order_options_selected}
    6052      </select>
    6153    </label>
    6254
    6355    <label>
    64       {lang:Number of items}
     56      {'Number of items'|@translate}
    6557      <select name="items_number">
    66         <!-- BEGIN items_number_option -->
    67         <option value="{items_number_option.VALUE}" {items_number_option.SELECTED} >{items_number_option.CONTENT}</option>
    68         <!-- END items_option -->
     58        {html_options options=$item_number_options selected=$item_number_options_selected}
    6959      </select>
    7060    </label>
     
    7262  </fieldset>
    7363
    74   <p><input class="submit" type="submit" value="{lang:Filter and display}"></p>
     64  <p><input class="submit" type="submit" value="{'Filter and display'|@translate}"></p>
    7565
    7666</form>
    7767
    78 <div class="navigationBar">{NAVBAR}</div>
     68<div class="navigationBar">{$NAVBAR}</div>
    7969
     70{if isset($comments)}
    8071<div id="comments">
    8172
    82   <!-- BEGIN comment -->
     73  {foreach from=$comments item=comment}
    8374  <div class="comment">
    84     <a class="illustration" href="{comment.U_PICTURE}"><img src="{comment.TN_SRC}" alt="{comment.ALT}" /></a>
    85     <p class="commentHeader"><span class="author">{comment.AUTHOR}</span> - <span class="date">{comment.DATE}</span>
    86     <!-- BEGIN action_delete -->
    87     <a href="{comment.action_delete.U_DELETE}" title="{lang:comments_del}">
    88       <img src="{pwg_root}{themeconf:icon_dir}/delete.png" class="button" style="border:none;vertical-align:middle; margin-left:5px;" alt="[{lang:delete}]"/>
     75    <a class="illustration" href="{$comment.U_PICTURE}"><img src="{$comment.TN_SRC}" alt="{$comment.ALT}" /></a>
     76    <p class="commentHeader"><span class="author">{$comment.AUTHOR}</span> - <span class="date">{$comment.DATE}</span>
     77
     78    {if isset($comment.U_DELETE)}
     79    <a href="{$comment.U_DELETE}" title="{'comments_del'|@translate}">
     80      <img src="{$ROOT_URL}{$themeconf.icon_dir}/delete.png" class="button" style="border:none;vertical-align:middle; margin-left:5px;" alt="[{'delete'|@translate}]"/>
    8981    </a>
    90     <!-- END action_delete -->
    91     <!-- BEGIN action_validate -->
    92     <a href="{comment.action_validate.U_VALIDATE}" title="validate this comment">
    93       <img src="{pwg_root}{themeconf:icon_dir}/validate_s.png" class="button" style="border:none;vertical-align:middle; margin-left:5px;" alt="[validate]"/>
     82    {/if}
     83
     84    {if isset($comment.U_VALIDATE)}
     85    <a href="{$comment.U_VALIDATE}" title="validate this comment">
     86      <img src="{$ROOT_URL}{$themeconf.icon_dir}/validate_s.png" class="button" style="border:none;vertical-align:middle; margin-left:5px;" alt="[validate]"/>
    9487    </a>
    95     <!-- END action_validate -->
     88    {/if}
     89
    9690    </p>
    97     <blockquote>{comment.CONTENT}</blockquote>
     91    <blockquote>{$comment.CONTENT}</blockquote>
    9892    <hr class="separation">
    9993  </div>
    100 
    101   <!-- END comment -->
    102 
     94 
     95  {/foreach}
    10396</div>
     97{/if}
    10498
    10599</div> <!-- content -->
  • trunk/template/yoga/identification.tpl

    r2222 r2223  
    1 <!-- DEV TAG: not smarty migrated -->
    2 <!-- $Id$ -->
     1{* $Id$ *}
    32<div id="content">
    43
    54  <div class="titrePage">
    65    <ul class="categoryActions">
    7       <li><a href="{U_LOST_PASSWORD}" title="{lang:Forgot your password?}"><img src="{themeconf:icon_dir}/lost_password.png" class="button" alt="{lang:Forgot your password?}"></a></li>
    8 <!-- BEGIN register -->
    9       <li><a href="{U_REGISTER}" title="{lang:Create a new account}"><img src="{themeconf:icon_dir}/register.png" class="button" alt="{lang:register}"/></a></li>
    10 <!-- END register -->
    11       <li><a href="{U_HOME}" title="{lang:Go through the gallery as a visitor}"><img src="{themeconf:icon_dir}/home.png" class="button" alt="{lang:home}"/></a></li>
     6      <li><a href="{$U_LOST_PASSWORD}" title="{'Forgot your password?'|@translate}"><img src="{$themeconf.icon_dir}/lost_password.png" class="button" alt="{'Forgot your password?'|@translate}"></a></li>
     7      {if isset($U_REGISTER) }
     8      <li><a href="{$U_REGISTER}" title="{'Create a new account'|@translate}"><img src="{$themeconf.icon_dir}/register.png" class="button" alt="{'register'|@translate}"/></a></li>
     9      {/if}
     10      <li><a href="{$U_HOME}" title="{'Go through the gallery as a visitor'|@translate}"><img src="{$themeconf.icon_dir}/home.png" class="button" alt="{'home'|@translate}"/></a></li>
    1211    </ul>
    13     <h2>{lang:Identification}</h2>
     12    <h2>{'Identification'|@translate}</h2>
    1413  </div>
    1514
    16   <!-- BEGIN errors -->
     15  {if isset($errors) }
    1716  <div class="errors">
    1817    <ul>
    19       <!-- BEGIN error -->
    20       <li>{errors.error.ERROR}</li>
    21       <!-- END error -->
     18      {foreach from=$errors item=error}
     19      <li>{$error}</li>
     20      {/foreach}
    2221    </ul>
    2322  </div>
    24   <!-- END errors -->
     23  {/if}
    2524
    26 <form action="{F_LOGIN_ACTION}" method="post" name="login_form" class="properties">
     25<form action="{$F_LOGIN_ACTION}" method="post" name="login_form" class="properties">
    2726  <fieldset>
    28     <legend>{lang:Connection settings}</legend>
     27    <legend>{'Connection settings'|@translate}</legend>
    2928
    30     <input type="hidden" name="redirect" value="{U_REDIRECT}">
     29    <input type="hidden" name="redirect" value="{$U_REDIRECT}">
    3130
    3231    <ul>
    3332      <li>
    3433        <span class="property">
    35           <label for="username">{lang:Username}</label>
     34          <label for="username">{'Username'|@translate}</label>
    3635        </span>
    37         <input tabindex="1" class="login" type="text" name="username" id="username" size="25" maxlength="40" value="{USERNAME}" />
     36        <input tabindex="1" class="login" type="text" name="username" id="username" size="25" maxlength="40" />
    3837      </li>
    3938
    4039      <li>
    4140        <span class="property">
    42           <label for="password">{lang:Password}</label>
     41          <label for="password">{'Password'|@translate}</label>
    4342        </span>
    4443        <input tabindex="2" class="login" type="password" name="password" id="password" size="25" maxlength="25" />
    4544      </li>
    4645
    47       <!-- BEGIN remember_me -->
     46      {if $authorize_remembering }
    4847      <li>
    4948        <span class="property">
    50           <label for="remember_me">{lang:remember_me}</label>
     49          <label for="remember_me">{'remember_me'|@translate}</label>
    5150        </span>
    5251        <input tabindex="3" type="checkbox" name="remember_me" id="remember_me" value="1">
    5352      </li>
    54       <!-- END remember_me -->
     53      {/if}
    5554    </ul>
    5655  </fieldset>
    5756
    58   <p><input class="submit" tabindex="4" type="submit" name="login" value="{lang:submit}"></p>
     57  <p><input class="submit" tabindex="4" type="submit" name="login" value="{'submit'|@translate}"></p>
    5958</form>
    6059
     
    6463
    6564  <p>
    66 <!-- BEGIN register -->
    67     <a href="{U_REGISTER}" title="{lang:Create a new account}"><img src="{themeconf:icon_dir}/register.png" class="button" alt=""> {lang:Register}</a>
    68 <!-- END register -->
    69     <a href="{U_LOST_PASSWORD}" title="{lang:Forgot your password?}"><img src="{themeconf:icon_dir}/lost_password.png" class="button" alt=""> {lang:Forgot your password?}</a>
     65    {if isset($U_REGISTER) }
     66    <a href="{$U_REGISTER}" title="{'Create a new account'|@translate}"><img src="{$themeconf.icon_dir}/register.png" class="button" alt=""> {'Register'|@translate}</a>
     67    {/if}
     68    <a href="{$U_LOST_PASSWORD}" title="{'Forgot your password?'|@translate}"><img src="{$themeconf.icon_dir}/lost_password.png" class="button" alt=""> {'Forgot your password?'|@translate}</a>
    7069  </p>
    7170
  • trunk/template/yoga/notification.tpl

    r2222 r2223  
    1 <!-- DEV TAG: not smarty migrated -->
     1{* $Id$ *}
    22<div id="content">
    33
    44  <div class="titrePage">
    55    <ul class="categoryActions">
    6       <li><a href="{U_HOME}" title="{lang:return to homepage}"><img src="{themeconf:icon_dir}/home.png" class="button" alt="{lang:home}"/></a></li>
     6      <li><a href="{$U_HOME}" title="{'return to homepage'|@translate}"><img src="{$themeconf.icon_dir}/home.png" class="button" alt="{'home'|@translate}"/></a></li>
    77    </ul>
    8     <h2>{lang:Notification}</h2>
     8    <h2>{'Notification'|@translate}</h2>
    99  </div>
    1010
    11   <p>{lang:The RSS notification feed provides notification on news from this website : new pictures, updated categories, new comments. Use a RSS feed reader.}</p>
     11  <p>{'The RSS notification feed provides notification on news from this website : new pictures, updated categories, new comments. Use a RSS feed reader.'|@translate}</p>
    1212
    13   <p><a href="{U_FEED_IMAGE_ONLY}">{lang:Image only RSS feed}</a></p>
    14   <p><a href="{U_FEED}">{lang:Complete RSS feed}</a></p>
     13  <p><a href="{$U_FEED_IMAGE_ONLY}">{'Image only RSS feed'|@translate}</a></p>
     14  <p><a href="{$U_FEED}">{'Complete RSS feed'|@translate}</a></p>
    1515</div>
  • trunk/template/yoga/password.tpl

    r2222 r2223  
    1 <!-- DEV TAG: not smarty migrated -->
    2 <!-- $Id$ -->
     1{* $Id$ *}
    32<div id="content">
    43
    54  <div class="titrePage">
    65    <ul class="categoryActions">
    7       <li><a href="{U_HOME}" title="{lang:Go through the gallery as a visitor}"><img src="{themeconf:icon_dir}/home.png" class="button" alt="{lang:home}"/></a></li>
     6      <li><a href="{$U_HOME}" title="{'Go through the gallery as a visitor'|@translate}"><img src="{$themeconf.icon_dir}/home.png" class="button" alt="{'home'|@translate}"/></a></li>
    87    </ul>
    9     <h2>{lang:Password forgotten}</h2>
     8    <h2>{'Password forgotten'|@translate}</h2>
    109  </div>
    1110
    12   <!-- BEGIN errors -->
     11  {if count($errors)}
    1312  <div class="errors">
    1413    <ul>
    15       <!-- BEGIN error -->
    16       <li>{errors.error.ERROR}</li>
    17       <!-- END error -->
     14      {foreach from=$errors item=error}
     15      <li>{$error}</li>
     16      {/foreach}
    1817    </ul>
    1918  </div>
    20   <!-- END errors -->
     19  {/if}
    2120
    22   <!-- BEGIN infos -->
     21  {if count($infos)}
    2322  <div class="infos">
    2423    <ul>
    25       <!-- BEGIN info -->
    26       <li>{infos.info.INFO}</li>
    27       <!-- END info -->
     24      {foreach from=$infos item=info}
     25      <li>{$info}</li>
     26      {/foreach}
    2827    </ul>
    2928  </div>
    30   <!-- END infos -->
     29  {/if}
    3130
    32 <form action="{F_ACTION}" method="post" class="properties">
     31<form action="{$F_ACTION}" method="post" class="properties">
    3332  <fieldset>
    34     <legend>{lang:Retrieve password}</legend>
     33    <legend>{'Retrieve password'|@translate}</legend>
    3534
    3635    <ul>
    3736      <li>
    3837        <span class="property">
    39           <label for="mail_address">{lang:Email address}</label>
     38          <label for="mail_address">{'Email address'|@translate}</label>
    4039        </span>
    4140        <input class="login" type="text" name="mail_address" id="mail_address" size="40" maxlength="40" >
     
    4342      <li>
    4443        <span class="property">
    45           <label for="no_mail_address">{lang:No email address}</label>
     44          <label for="no_mail_address">{'No email address'|@translate}</label>
    4645        </span>
    4746        <input type="checkbox" id="no_mail_address" name="no_mail_address" value="1">
     
    5049  </fieldset>
    5150
    52   <p><input class="submit" type="submit" name="submit" value="{lang:Send new password}"></p>
     51  <p><input class="submit" type="submit" name="submit" value="{'Send new password'|@translate}"></p>
    5352</form>
    5453
  • trunk/template/yoga/picture.tpl

    r2222 r2223  
    5858  </div>
    5959  {NAV_BUTTONS}
    60   </div>
    61 
    6260</div> <!-- imageToolBar -->
    6361
  • trunk/template/yoga/popuphelp.tpl

    r2222 r2223  
    1 <!-- DEV TAG: not smarty migrated -->
     1{* $Id$ *}
    22<div id="content">
    3 {HELP_CONTENT}
     3{$HELP_CONTENT}
    44</div> <!-- content -->
    55
    6 <p id="pageBottomActions"><a href="#" onclick="window.close();" title="{lang:Close this window}"><img src="{themeconf:icon_dir}/exit.png" class="button" alt="close"></a></p>
     6<p id="pageBottomActions"><a href="#" onclick="window.close();" title="{'Close this window'|@translate}"><img src="{$themeconf.icon_dir}/exit.png" class="button" alt="close"></a></p>
  • trunk/template/yoga/search.tpl

    r2222 r2223  
    1 <!-- DEV TAG: not smarty migrated -->
    2 <!-- $Id$ -->
     1{* $Id$ *}
    32<div id="content">
    43
    54  <div class="titrePage">
    65    <ul class="categoryActions">
    7       <li><a href="{U_HELP}" onclick="popuphelp(this.href); return false;" title="{lang:Help}" rel="nofollow"><img src="{themeconf:icon_dir}/help.png" class="button" alt="(?)"></a></li>
    8       <li><a href="{U_HOME}" title="{lang:return to homepage}" rel="home"><img src="{themeconf:icon_dir}/home.png" class="button" alt="{lang:home}"/></a></li>
     6      <li><a href="{$U_HELP}" onclick="popuphelp(this.href); return false;" title="{'Help'|@translate}" rel="nofollow"><img src="{$themeconf.icon_dir}/help.png" class="button" alt="(?)"></a></li>
     7      <li><a href="{$U_HOME}" title="{'return to homepage'|@translate}" rel="home"><img src="{$themeconf.icon_dir}/home.png" class="button" alt="{'home'|@translate}"/></a></li>
    98    </ul>
    10     <h2>{lang:Search}</h2>
     9    <h2>{'Search'|@translate}</h2>
    1110  </div>
    1211
    13 <form class="filter" method="post" name="search" action="{S_SEARCH_ACTION}">
    14 <!-- BEGIN errors -->
     12{if isset($errors) }
    1513<div class="errors">
    1614  <ul>
    17     <!-- BEGIN error -->
    18     <li>{errors.error.ERROR}</li>
    19     <!-- END error -->
     15    {foreach from=$errors item=error}
     16    <li>{$error}</li>
     17    {/foreach}
    2018  </ul>
    2119</div>
    22 <!-- END errors -->
     20{/if}
     21
     22<form class="filter" method="post" name="search" action="{$F_SEARCH_ACTION}">
    2323<fieldset>
    24   <legend>{lang:Filter}</legend>
    25   <label>{lang:search_keywords}
     24  <legend>{'Filter'|@translate}</legend>
     25  <label>{'search_keywords'|@translate}
    2626    <input type="text" style="width: 300px" name="search_allwords" size="30"  />
    2727  </label>
    2828  <ul>
    2929    <li><label>
    30       <input type="radio" name="mode" value="AND" checked="checked" />{lang:search_mode_and}
     30      <input type="radio" name="mode" value="AND" checked="checked" />{'search_mode_and'|@translate}
    3131    </label></li>
    3232    <li><label>
    33       <input type="radio" name="mode" value="OR" />{lang:search_mode_or}
     33      <input type="radio" name="mode" value="OR" />{'search_mode_or'|@translate}
    3434    </label></li>
    3535  </ul>
    36   <label>{lang:search_author}
     36  <label>{'search_author'|@translate}
    3737    <input type="text" style="width: 300px" name="search_author" size="30"  />
    3838  </label>
    3939</fieldset>
    4040
    41 <!-- BEGIN tags -->
     41{if isset($TAG_SELECTION)}
    4242<fieldset>
    43   <legend>{lang:Search tags}</legend>
    44   {TAG_SELECTION}
    45   <label><span><input type="radio" name="tag_mode" value="AND" checked="checked" /> {lang:All tags}</span></label>
    46   <label><span><input type="radio" name="tag_mode" value="OR" /> {lang:Any tag}</span></label>
     43  <legend>{'Search tags'|@translate}</legend>
     44  {$TAG_SELECTION}
     45  <label><span><input type="radio" name="tag_mode" value="AND" checked="checked" /> {'All tags'|@translate}</span></label>
     46  <label><span><input type="radio" name="tag_mode" value="OR" /> {'Any tag'|@translate}</span></label>
    4747</fieldset>
    48 <!-- END tags -->
     48{/if}
    4949
    5050<fieldset>
    51   <legend>{lang:search_date}</legend>
     51  <legend>{'search_date'|@translate}</legend>
    5252  <ul>
    53     <li><label>{lang:search_date_type}</label></li>
     53    <li><label>{'search_date_type'|@translate}</label></li>
    5454    <li><label>
    55       <input type="radio" name="date_type" value="date_creation" checked="checked" />{lang:Creation date}
     55      <input type="radio" name="date_type" value="date_creation" checked="checked" />{'Creation date'|@translate}
    5656    </label></li>
    5757    <li><label>
    58       <input type="radio" name="date_type" value="date_available" />{lang:Post date}
     58      <input type="radio" name="date_type" value="date_available" />{'Post date'|@translate}
    5959    </label></li>
    6060  </ul>
    6161  <ul>
    62     <li><label>{lang:search_date_from}</label></li>
     62    <li><label>{'search_date_from'|@translate}</label></li>
    6363    <li>
    6464      <select name="start_day">
    65         <!-- BEGIN start_day -->
    66         <option {start_day.SELECTED} value="{start_day.VALUE}">{start_day.OPTION}</option>
    67         <!-- END start_day -->
     65          <option value="0">--</option>
     66        {section name=day start=1 loop=31}
     67          <option value="{$smarty.section.day.index}" {if $smarty.section.day.index==$START_DAY_SELECTED}selected="selected"{/if}>{$smarty.section.day.index}</option>
     68        {/section}
    6869      </select>
    6970      <select name="start_month">
    70         <!-- BEGIN start_month -->
    71         <option {start_month.SELECTED} value="{start_month.VALUE}">{start_month.OPTION}</option>
    72         <!-- END start_month -->
     71        {html_options options=$month_list selected=$START_MONTH_SELECTED}
    7372      </select>
    7473      <input name="start_year" type="text" size="4" maxlength="4" >
    7574    </li>
    7675    <li>
    77       <a href="#" onClick="document.search.start_day.value={TODAY_DAY};document.search.start_month.value={TODAY_MONTH};document.search.start_year.value={TODAY_YEAR};return false;">{lang:today}</a>
     76      <a href="#" onClick="document.search.start_day.value={$smarty.now|date_format:"%d"};document.search.start_month.value={$smarty.now|date_format:"%m"};document.search.start_year.value={$smarty.now|date_format:"%Y"};return false;">{'today'|@translate}</a>
    7877    </li>
    7978  </ul>
    8079  <ul>
    81     <li><label>{lang:search_date_to}</label></li>
     80    <li><label>{'search_date_to'|@translate}</label></li>
    8281    <li>
    8382      <select name="end_day">
    84         <!-- BEGIN end_day -->
    85         <option {end_day.SELECTED} value="{end_day.VALUE}">{end_day.OPTION}</option>
    86         <!-- END end_day -->
     83          <option value="0">--</option>
     84        {section name=day start=1 loop=31}
     85          <option value="{$smarty.section.day.index}" {if $smarty.section.day.index==$END_DAY_SELECTED}selected="selected"{/if}>{$smarty.section.day.index}</option>
     86        {/section}
    8787      </select>
    8888      <select name="end_month">
    89         <!-- BEGIN end_month -->
    90         <option {end_month.SELECTED} value="{end_month.VALUE}">{end_month.OPTION}</option>
    91         <!-- END end_month -->
     89        {html_options options=$month_list selected=$END_MONTH_SELECTED}
    9290      </select>
    9391      <input name="end_year" type="text" size="4" maxlength="4" >
    9492    </li>
    9593    <li>
    96       <a href="#" onClick="document.search.end_day.value={TODAY_DAY};document.search.end_month.value={TODAY_MONTH};document.search.end_year.value={TODAY_YEAR};return false;">{lang:today}</a>
     94      <a href="#" onClick="document.search.end_day.value={$smarty.now|date_format:"%d"};document.search.end_month.value={$smarty.now|date_format:"%m"};document.search.end_year.value={$smarty.now|date_format:"%Y"};return false;">{'today'|@translate}</a>
    9795    </li>
    9896  </ul>
     
    10098
    10199<fieldset>
    102   <legend>{lang:search_options}</legend>
    103   <label>{lang:search_categories}
     100  <legend>{'search_options'|@translate}</legend>
     101  <label>{'search_categories'|@translate}
    104102    <select class="categoryList" name="cat[]" multiple="multiple" >
    105       <!-- BEGIN category_option -->
    106       <option value="{category_option.VALUE}">{category_option.OPTION}</option>
    107       <!-- END category_option -->
     103      {html_options options=$category_options selected=$category_options_selected}
    108104    </select>
    109105  </label>
    110106  <ul>
    111     <li><label>{lang:search_subcats_included}</label></li>
     107    <li><label>{'search_subcats_included'|@translate}</label></li>
    112108    <li><label>
    113       <input type="radio" name="subcats-included" value="1" checked="checked" />{lang:yes}
     109      <input type="radio" name="subcats-included" value="1" checked="checked" />{'yes'|@translate}
    114110    </label></li>
    115111    <li><label>
    116       <input type="radio" name="subcats-included" value="0" />{lang:no}
     112      <input type="radio" name="subcats-included" value="0" />{'no'|@translate}
    117113    </label></li>
    118114  </ul>
    119115  <ul>
    120     <li><label>{lang:search_sort}</label></li>
     116    <li><label>{'search_sort'|@translate}</label></li>
    121117    <li><label>
    122       <input type="radio" name="sd" value="AND" />{lang:search_ascending}
     118      <input type="radio" name="sd" value="AND" />{'search_ascending'|@translate}
    123119    </label></li>
    124120    <li><label>
    125       <input type="radio" name="sd" value="d" checked="checked" />{lang:search_descending}
     121      <input type="radio" name="sd" value="d" checked="checked" />{'search_descending'|@translate}
    126122    </label></li>
    127123  </ul>
    128124</fieldset>
    129125<p>
    130   <input class="submit" type="submit" name="submit" value="{lang:submit}" />
    131   <input class="submit" type="reset" value="{lang:reset}" />
     126  <input class="submit" type="submit" name="submit" value="{'submit'|@translate}" />
     127  <input class="submit" type="reset" value="{'reset'|@translate}" />
    132128</p>
    133129</form>
  • trunk/template/yoga/search_rules.tpl

    r2222 r2223  
    1 <!-- DEV TAG: not smarty migrated -->
     1{* $Id$ *}
    22<div id="content">
    3 <h2>{lang:Search rules}</h2>
     3<h2>{'Search rules'|@translate}</h2>
    44
    5 <p>{INTRODUCTION}</p>
     5{if isset($INTRODUCTION) }
     6<p>{$INTRODUCTION}</p>
     7{/if}
    68
    79<ul>
    810
    9   <!-- BEGIN words -->
    10   <li>{words.CONTENT}</li>
    11   <!-- END words -->
     11  {if isset($search_words) }
     12  {foreach from=$search_words item=v}
     13  <li>{$v}</li>
     14  {/foreach}
     15  {/if}
    1216
    13   <!-- BEGIN tags -->
     17  {if isset($SEARCH_TAGS_MODE) }
    1418  <li>
    15     <p>{tags.LIST_INTRO}</p>
     19    <p>{if 'AND'==$SEARCH_TAGS_MODE}{'All tags must match'|@translate}{else}{'At least one tag must match'|@translate}{/if}</p>
     20    <ul>
     21      {foreach from=$search_tags item=v}
     22      <li>{$v}</li>
     23      {/foreach}
     24    </ul>
     25  </li>
     26  {/if}
     27 
     28  {if isset($DATE_CREATION) }
     29  <li>{$DATE_CREATION}</li>
     30  {/if}
     31
     32  {if isset($DATE_AVAILABLE) }
     33  <li>{$DATE_AVAILABLE}</li>
     34  {/if}
     35
     36  {if isset($search_categories) }
     37  <li>
     38    <p>{'Categories'|@translate}</p>
    1639
    1740    <ul>
    18       <!-- BEGIN tag -->
    19       <li>{tags.tag.NAME}</li>
    20       <!-- END tag -->
     41      {foreach from=$search_categories item=v}
     42      <li>{$v}</li>
     43      {/foreach}
    2144    </ul>
    2245  </li>
    23   <!-- END tags -->
    24  
    25   <!-- BEGIN author -->
    26   <li>{author.CONTENT}</li>
    27   <!-- END author -->
    28 
    29   <!-- BEGIN date_creation -->
    30   <li>{date_creation.CONTENT}</li>
    31   <!-- END date_creation -->
    32 
    33   <!-- BEGIN date_available -->
    34   <li>{date_available.CONTENT}</li>
    35   <!-- END date_available -->
    36 
    37   <!-- BEGIN categories -->
    38   <li>
    39     <p>{categories.LIST_INTRO}</p>
    40 
    41     <ul>
    42       <!-- BEGIN category -->
    43       <li>{categories.category.NAME}</li>
    44       <!-- END category -->
    45     </ul>
    46   </li>
    47   <!-- END categories -->
     46  {/if}
    4847 
    4948</ul>
     
    5251
    5352<p id="pageBottomActions">
    54   <a href="#" onclick="window.close();" title="{lang:Close this window}">
    55     <img src="{themeconf:icon_dir}/exit.png" class="button" alt="close">
     53  <a href="#" onclick="window.close();" title="{'Close this window'|@translate}">
     54    <img src="{$themeconf.icon_dir}/exit.png" class="button" alt="close">
    5655  </a>
    5756</p>
  • trunk/template/yoga/tags.tpl

    r2222 r2223  
    1 <!-- DEV TAG: not smarty migrated -->
    2 <!-- $Id$ -->
     1{* $Id$ *}
    32<div id="content">
    43
    54  <div class="titrePage">
    65    <ul class="categoryActions">
    7       <li><a href="{U_HOME}" title="{lang:return to homepage}"><img src="{themeconf:icon_dir}/home.png" class="button" alt="{lang:home}"/></a></li>
     6      <li><a href="{$U_HOME}" title="{'return to homepage'|@translate}"><img src="{$themeconf.icon_dir}/home.png" class="button" alt="{'home'|@translate}"/></a></li>
    87    </ul>
    9     <h2>{lang:Tags}</h2>
     8    <h2>{'Tags'|@translate}</h2>
    109  </div>
    1110
     11  {if isset($tags)}
    1212  <ul id="fullTagCloud">
    13     <!-- BEGIN tag -->
    14     <li><a href="{tag.URL}" class="{tag.CLASS}" title="{tag.TITLE}">{tag.NAME}</a></li>
    15     <!-- END tag -->
    16     <li>&nbsp;</li> <!-- FIXME W3C HTML Conformity said: No empty UL -->
     13    {foreach from=$tags item=tag}
     14    <li><a href="{$tag.URL}" class="{$tag.CLASS}" title="{$tag.TITLE}">{$tag.NAME}</a></li>
     15    {/foreach}
    1716  </ul>
     17  {/if}
    1818
    1919</div> <!-- content -->
Note: See TracChangeset for help on using the changeset viewer.