aboutsummaryrefslogtreecommitdiffstats
path: root/template/yoga/admin
diff options
context:
space:
mode:
Diffstat (limited to 'template/yoga/admin')
-rw-r--r--template/yoga/admin/advanced_feature.tpl15
-rw-r--r--template/yoga/admin/cat_list.tpl82
-rw-r--r--template/yoga/admin/cat_modify.tpl207
-rw-r--r--template/yoga/admin/cat_move.tpl29
-rw-r--r--template/yoga/admin/cat_options.tpl17
-rw-r--r--template/yoga/admin/cat_perm.tpl66
-rw-r--r--template/yoga/admin/permalinks.tpl72
-rwxr-xr-xtemplate/yoga/admin/rating.tpl72
-rw-r--r--template/yoga/admin/tabsheet.tpl11
9 files changed, 267 insertions, 304 deletions
diff --git a/template/yoga/admin/advanced_feature.tpl b/template/yoga/admin/advanced_feature.tpl
index df3cdb0e9..128428ba1 100644
--- a/template/yoga/admin/advanced_feature.tpl
+++ b/template/yoga/admin/advanced_feature.tpl
@@ -1,16 +1,13 @@
-<!-- DEV TAG: not smarty migrated -->
-<!-- $Id$ -->
+{* $Id$ *}
<div class="titrePage">
<ul class="categoryActions">
- <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>
+ <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>
</ul>
- <h2>{lang:Advanced_features}</h2>
+ <h2>{'Advanced_features'|@translate}</h2>
</div>
<ul>
- <!-- BEGIN advanced_features -->
- <!-- BEGIN advanced_feature -->
- <li><a href="{advanced_features.advanced_feature.URL}" {TAG_INPUT_ENABLED}>{advanced_features.advanced_feature.CAPTION}</a></li>
- <!-- END advanced_feature -->
- <!-- END advanced_features -->
+ {foreach from=$advanced_features item=feature}
+ <li><a href="{$feature.URL}" {$TAG_INPUT_ENABLED}>{$feature.CAPTION}</a></li>
+ {/foreach}
</ul>
diff --git a/template/yoga/admin/cat_list.tpl b/template/yoga/admin/cat_list.tpl
index f80766eee..c7a83f8d7 100644
--- a/template/yoga/admin/cat_list.tpl
+++ b/template/yoga/admin/cat_list.tpl
@@ -1,71 +1,65 @@
-<!-- DEV TAG: not smarty migrated -->
-<!-- $Id$ -->
-<h2>{lang:title_categories}</h2>
+{* $Id$ *}
+<h2>{'title_categories'|@translate}</h2>
-<h3>{CATEGORIES_NAV}</h3>
+<h3>{$CATEGORIES_NAV}</h3>
-<form id="addVirtual" action="{F_ACTION}" method="post">
+<form id="addVirtual" action="{$F_ACTION}" method="post">
<p>
- {L_ADD_VIRTUAL} : <input type="text" name="virtual_name" />
- <input class="submit" type="submit" value="{L_SUBMIT}" name="submitAdd" {TAG_INPUT_ENABLED} />
- <!-- BEGIN eop_link -->
- <a href="#EoP" class="button"><img src="{themeconf:icon_dir}/page_end.png" class="button" alt="{lang:page_end}" /></a>
- <!-- END eop_link -->
+ {'cat_add'|@translate} : <input type="text" name="virtual_name" />
+ <input class="submit" type="submit" value="{'submit'|@translate}" name="submitAdd" {$TAG_INPUT_ENABLED} />
+ {if count($categories)>9 }
+ <a href="#EoP" class="button"><img src="{$themeconf.icon_dir}/page_end.png" class="button" alt="{'page_end'|@translate}" /></a>
+ {/if}
</p>
</form>
-<!-- BEGIN categories -->
-<form id="categoryOrdering" action="{F_ACTION}" method="post">
+{if count($categories) }
+<form id="categoryOrdering" action="{$F_ACTION}" method="post">
<p>
- <input class="submit" name="submitOrder" type="submit" value="{lang:Save order}" {TAG_INPUT_ENABLED} />
- <input class="submit" name="submitOrderAlphaNum" type="submit" value="{lang:Order alphanumerically}" {TAG_INPUT_ENABLED} />
+ <input class="submit" name="submitOrder" type="submit" value="{'Save order'|@translate}" {$TAG_INPUT_ENABLED} />
+ <input class="submit" name="submitOrderAlphaNum" type="submit" value="{'Order alphanumerically'|@translate}" {$TAG_INPUT_ENABLED} />
</p>
<ul class="categoryUl">
- <!-- BEGIN category -->
- <li class="categoryLi
- <!-- BEGIN virtual -->
- {categories.category.virtual.CLASS}
- <!-- END virtual -->
- "> <!-- category {category.ID} -->
-
+ {foreach from=$categories item=category}
+ <li class="categoryLi{if $category.IS_VIRTUAL} virtual_cat{/if}">
+ <!-- category {$category.ID} -->
<ul class="categoryActions">
- <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>
- <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>
- <!-- BEGIN elements -->
- <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>
- <!-- END elements -->
- <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>
- <!-- BEGIN permissions -->
- <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>
- <!-- END permissions -->
- <!-- BEGIN delete -->
- <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>
- <!-- END delete -->
+ <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>
+ <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>
+ {if isset($category.U_MANAGE_ELEMENTS) }
+ <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>
+ {/if}
+ <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>
+ {if isset($category.U_MANAGE_PERMISSIONS) }
+ <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>
+ {/if}
+ {if isset($category.U_DELETE) }
+ <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>
+ {/if}
</ul>
<p>
- <strong><a href="{categories.category.U_CHILDREN}" title="{lang:manage sub-categories}">{categories.category.NAME}</a></strong>
- <!-- BEGIN virtual -->
- <img src="{themeconf:icon_dir}/virt_category.png" class="button" alt="{lang:virtual_category}" />
- <!-- END virtual -->
+ <strong><a href="{$category.U_CHILDREN}" title="{'manage sub-categories'|@translate}">{$category.NAME}</a></strong>
+ {if $category.IS_VIRTUAL}
+ <img src="{$themeconf.icon_dir}/virt_category.png" class="button" alt="{'virtual_category'|@translate}" />
+ {/if}
</p>
<p>
<label>
- {lang:Position} :
- <input type="text" size="4" name="catOrd[{categories.category.ID}]" maxlength="4" value="{categories.category.RANK}" />
+ {'Position'|@translate} :
+ <input type="text" size="4" name="catOrd[{$category.ID}]" maxlength="4" value="{$category.RANK}" />
</label>
</p>
</li>
- <!-- END category -->
+ {/foreach}
</ul>
<p>
- <input class="submit" name="submitOrder" type="submit" value="{lang:Save order}" {TAG_INPUT_ENABLED} />
- <input class="submit" name="submitOrderAlphaNum" type="submit" value="{lang:Order alphanumerically}" {TAG_INPUT_ENABLED} />
+ <input class="submit" name="submitOrder" type="submit" value="{'Save order'|@translate}" {$TAG_INPUT_ENABLED} />
+ <input class="submit" name="submitOrderAlphaNum" type="submit" value="{'Order alphanumerically'|@translate}" {$TAG_INPUT_ENABLED} />
</p>
</form>
-<!-- END categories -->
-
+{/if}
diff --git a/template/yoga/admin/cat_modify.tpl b/template/yoga/admin/cat_modify.tpl
index 04bce8aa9..dc9c98dc3 100644
--- a/template/yoga/admin/cat_modify.tpl
+++ b/template/yoga/admin/cat_modify.tpl
@@ -1,248 +1,229 @@
-<!-- DEV TAG: not smarty migrated -->
-<!-- $Id$ -->
+{* $Id$ *}
<div class="titrePage">
<ul class="categoryActions">
- <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>
+ <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>
</ul>
- <h2>{lang:title_edit_cat}</h2>
+ <h2>{'title_edit_cat'|@translate}</h2>
</div>
-<h3>{CATEGORIES_NAV}</h3>
+<h3>{$CATEGORIES_NAV}</h3>
<ul class="categoryActions">
- <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>
- <!-- BEGIN elements -->
- <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>
- <!-- END elements -->
- <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>
- <!-- BEGIN permissions -->
- <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>
- <!-- END permissions -->
- <!-- BEGIN delete -->
- <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>
- <!-- END delete -->
+ <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>
+ {if isset($U_MANAGE_ELEMENTS) }
+ <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>
+ {/if}
+ <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>
+ {if isset($U_MANAGE_PERMISSIONS) }
+ <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>
+ {/if}
+ {if isset($U_DELETE) }
+ <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>
+ {/if}
</ul>
-<form action="{F_ACTION}" method="POST" id="catModify">
+<form action="{$F_ACTION}" method="POST" id="catModify">
<fieldset>
- <legend>{lang:Informations}</legend>
+ <legend>{'Informations'|@translate}</legend>
<table>
- <!-- BEGIN server -->
- <tr>
- <td><strong>{L_REMOTE_SITE}</strong></td>
- <td>{server.SITE_URL}</td>
- </tr>
- <!-- END server -->
- <!-- BEGIN storage -->
+
+ {if isset($CAT_FULL_DIR) }
<tr>
- <td><strong>{L_STORAGE}</strong></td>
- <td class="row1">{storage.CATEGORY_DIR}</td>
+ <td><strong>{'storage'|@translate}</strong></td>
+ <td class="row1">{$CAT_FULL_DIR}</td>
</tr>
- <!-- END storage -->
+ {/if}
+
<tr>
- <td><strong>{L_EDIT_NAME}</strong></td>
+ <td><strong>{'name'|@translate}</strong></td>
<td>
- <input type="text" name="name" value="{CAT_NAME}" maxlength="60"/>
+ <input type="text" name="name" value="{$CAT_NAME}" maxlength="60"/>
</td>
</tr>
<tr>
- <td><strong>{L_EDIT_COMMENT}</strong></td>
+ <td><strong>{'description'|@translate}</strong></td>
<td>
- <textarea cols="50" rows="5" name="comment" class="description">{CAT_COMMENT}</textarea>
+ <textarea cols="50" rows="5" name="comment" class="description">{$CAT_COMMENT}</textarea>
</td>
</tr>
</table>
</fieldset>
-<!-- BEGIN move -->
+{if isset($move_cat_options) }
<fieldset id="move">
- <legend>{lang:Move}</legend>
- {lang:Parent category}
+ <legend>{'Move'|@translate}</legend>
+ {'Parent category'|@translate}
<select class="categoryDropDown" name="parent">
- <!-- BEGIN parent_option -->
- <option class="{move.parent_option.CLASS}" {move.parent_option.SELECTED} value="{move.parent_option.VALUE}">{move.parent_option.OPTION}</option>
- <!-- END parent_option -->
+ <option value="0">------------</option>
+ {html_options options=$move_cat_options selected=$move_cat_options_selected }
</select>
</fieldset>
-<!-- END move -->
+{/if}
<fieldset id="options">
- <legend>{lang:Options}</legend>
+ <legend>{'Options'|@translate}</legend>
<table>
<tr>
- <td><strong>{L_EDIT_STATUS}</strong>
+ <td><strong>{'conf_access'|@translate}</strong>
<td>
- <input type="radio" name="status" value="public" {STATUS_PUBLIC} />{L_STATUS_PUBLIC}
- <input type="radio" name="status" value="private" {STATUS_PRIVATE} />{L_STATUS_PRIVATE}
+ {html_radios name='status' values=$status_values output=$status_values|translate selected=$CAT_STATUS}
</td>
</tr>
<tr>
- <td><strong>{L_EDIT_LOCK}</strong>
+ <td><strong>{'lock'|@translate}</strong>
<td>
- <input type="radio" name="visible" value="false" {LOCKED} />{L_YES}
- <input type="radio" name="visible" value="true" {UNLOCKED} />{L_NO}
+ {html_radios name='visible' values=$false_true output=$no_yes|translate selected=$CAT_VISIBLE}
</td>
</tr>
<tr>
- <td><strong>{L_EDIT_COMMENTABLE}</strong>
+ <td><strong>{'comments'|@translate}</strong>
<td>
- <input type="radio" name="commentable" value="true" {COMMENTABLE_TRUE} />{L_YES}
- <input type="radio" name="commentable" value="false" {COMMENTABLE_FALSE} />{L_NO}
+ {html_radios name='commentable' values=$false_true output=$no_yes|translate selected=$CAT_COMMENTABLE}
</td>
</tr>
- <!-- BEGIN upload -->
+ {if isset($SHOW_UPLOADABLE) }
<tr>
- <td><strong>{L_EDIT_UPLOADABLE}</strong>
+ <td><strong>{'editcat_uploadable'|@translate}</strong>
<td>
- <input type="radio" name="uploadable" value="true" {UPLOADABLE_TRUE} />{L_YES}
- <input type="radio" name="uploadable" value="false" {UPLOADABLE_FALSE} />{L_NO}
+ {html_radios name='uploadable' values=$false_true output=$no_yes|translate selected=$CAT_UPLOADABLE}
</td>
</tr>
- <!-- END upload -->
+ {/if}
</table>
</fieldset>
<fieldset id="image_order">
- <legend>{lang:Sort order}</legend>
- <input type="checkbox" name="image_order_default" id="image_order_default" {IMG_ORDER_DEFAULT} />
- <label for="image_order_default">{lang:Use default sort order}</label>
+ <legend>{'Sort order'|@translate}</legend>
+ <input type="checkbox" name="image_order_default" id="image_order_default" {$IMG_ORDER_DEFAULT} />
+ <label for="image_order_default">{'Use default sort order'|@translate}</label>
<br/>
<input type="checkbox" name="image_order_subcats" id="image_order_subcats" />
- <label for="image_order_subcats">{lang:Apply to subcategories}</label>
+ <label for="image_order_subcats">{'Apply to subcategories'|@translate}</label>
<br/>
- <!-- BEGIN image_order -->
- <select name="order_field_{image_order.NUMBER}">
- <!-- BEGIN field -->
- <option value="{image_order.field.VALUE}" {image_order.field.SELECTED}>{image_order.field.OPTION}</option>
- <!-- END field -->
+
+ {foreach from=$image_orders item=order}
+ <select name="order_field_{$order.ID}">
+ {html_options options=$image_order_field_options selected=$order.FIELD }}
</select>
- <select name="order_direction_{image_order.NUMBER}">
- <!-- BEGIN order -->
- <option value="{image_order.order.VALUE}" {image_order.order.SELECTED}>{image_order.order.OPTION}</option>
- <!-- END order -->
+ <select name="order_direction_{$order.ID}">
+ {html_options options=$image_order_direction_options selected=$order.DIRECTION }}
</select><br/>
- <!-- END image_order -->
+ {/foreach}
+
</fieldset>
<p style="text-align:center;">
- <input class="submit" type="submit" value="{L_SUBMIT}" name="submit" {TAG_INPUT_ENABLED}/>
- <input class="submit" type="reset" value="{lang:Reset}" name="reset" />
+ <input class="submit" type="submit" value="{'submit'|@translate}" name="submit" {$TAG_INPUT_ENABLED}/>
+ <input class="submit" type="reset" value="{'Reset'|@translate}" name="reset" />
</p>
-<!-- BEGIN representant -->
+{if isset($representant) }
<fieldset id="representant">
- <legend>{lang:Representant}</legend>
+ <legend>{'Representant'|@translate}</legend>
<table>
<tr>
<td align="center">
- <!-- BEGIN picture -->
- <a href="{representant.picture.URL}"><img src="{representant.picture.SRC}" alt="" class="miniature" /></a>
- <!-- END picture -->
-
- <!-- BEGIN random -->
- <img src="{themeconf:icon_dir}/category_representant_random.png" class="button" alt="{lang:Random picture}" class="miniature" />
- <!-- END random -->
+ {if isset($representant.picture) }
+ <a href="{$representant.picture.URL}"><img src="{$representant.picture.SRC}" alt="" class="miniature" /></a>
+ {else}
+ <img src="{$themeconf.icon_dir}/category_representant_random.png" class="button" alt="{'Random picture'|@translate}" class="miniature" />
+ {/if}
</td>
<td>
- <!-- BEGIN set_random -->
- <p><input class="submit" type="submit" name="set_random_representant" value="{L_SET_RANDOM_REPRESENTANT}" {TAG_INPUT_ENABLED}/></p>
- <!-- END set_random -->
+ {if $representant.ALLOW_SET_RANDOM }
+ <p><input class="submit" type="submit" name="set_random_representant" value="{'cat_representant'|@translate}" {$TAG_INPUT_ENABLED}/></p>
+ {/if}
- <!-- BEGIN delete_representant -->
- <p><input class="submit" type="submit" name="delete_representant" value="{lang:Delete Representant}" /></p>
- <!-- END delete_representant -->
+ {if isset($representant.ALLOW_DELETE) }
+ <p><input class="submit" type="submit" name="delete_representant" value="{'Delete Representant'|@translate}" /></p>
+ {/if}
</td>
</tr>
</table>
</fieldset>
-<!-- END representant -->
+{/if}
</form>
-<form action="{F_ACTION}" method="POST" id="links">
+<form action="{$F_ACTION}" method="POST" id="links">
<fieldset id="linkAllNew">
- <legend>{lang:Link all category elements to a new category}</legend>
+ <legend>{'Link all category elements to a new category'|@translate}</legend>
<table>
<tr>
- <td>{lang:Virtual category name}</td>
+ <td>{'Virtual category name'|@translate}</td>
<td><input type="text" name="virtual_name"></td>
</tr>
<tr>
- <td>{lang:Parent category}</td>
+ <td>{'Parent category'|@translate}</td>
<td>
<select class="categoryDropDown" name="parent">
- <!-- BEGIN category_option_parent -->
- <option {category_option_parent.SELECTED} value="{category_option_parent.VALUE}">{category_option_parent.OPTION}</option>
- <!-- END category_option_parent -->
+ <option value="0">------------</option>
+ {html_options options=$create_new_parent_options }
</select>
</td>
</tr>
</table>
<p>
- <input class="submit" type="submit" value="{lang:Submit}" name="submitAdd" {TAG_INPUT_ENABLED}/>
- <input class="submit" type="reset" value="{lang:Reset}" name="reset" />
+ <input class="submit" type="submit" value="{'Submit'|@translate}" name="submitAdd" {$TAG_INPUT_ENABLED}/>
+ <input class="submit" type="reset" value="{'Reset'|@translate}" name="reset" />
</p>
</fieldset>
<fieldset id="linkAllExist">
- <legend>{lang:Link all category elements to some existing categories}</legend>
+ <legend>{'Link all category elements to some existing categories'|@translate}</legend>
<table>
<tr>
- <td>{lang:Categories}</td>
+ <td>{'Categories'|@translate}</td>
<td>
<select class="categoryList" name="destinations[]" multiple="multiple" size="5">
- <!-- BEGIN category_option_destination -->
- <option {category_option_destination.SELECTED} value="{category_option_destination.VALUE}">{category_option_destination.OPTION}</option>
- <!-- END category_option_destination -->
+ {html_options options=$category_destination_options }
</select>
</td>
</tr>
</table>
<p>
- <input class="submit" type="submit" value="{lang:Submit}" name="submitDestinations" {TAG_INPUT_ENABLED}/>
- <input class="submit" type="reset" value="{lang:Reset}" name="reset" />
+ <input class="submit" type="submit" value="{'Submit'|@translate}" name="submitDestinations" {$TAG_INPUT_ENABLED}/>
+ <input class="submit" type="reset" value="{'Reset'|@translate}" name="reset" />
</p>
</fieldset>
-<!-- BEGIN group_mail -->
+{if isset($group_mail_options)}
<fieldset id="emailCatInfo">
- <legend>{lang:Send an information email to group members}</legend>
+ <legend>{'Send an information email to group members'|@translate}</legend>
<table>
<tr>
- <td><strong>{lang:Group}</strong></td>
+ <td><strong>{'Group'|@translate}</strong></td>
<td>
<select name="group">
- <!-- BEGIN group_option -->
- <option value="{group_mail.group_option.VALUE}">{group_mail.group_option.OPTION}</option>
- <!-- END group_option -->
+ {html_options options=$group_mail_options}
</select>
</td>
</tr>
<tr>
- <td><strong>{lang:mail_content}</strong></td>
+ <td><strong>{'mail_content'|@translate}</strong></td>
<td>
- <textarea cols="50" rows="5" name="mail_content" class="description">{MAIL_CONTENT}</textarea>
+ <textarea cols="50" rows="5" name="mail_content" class="description">{$MAIL_CONTENT}</textarea>
</td>
</tr>
</table>
<p>
- <input class="submit" type="submit" value="{lang:Submit}" name="submitEmail" {TAG_INPUT_ENABLED}/>
- <input class="submit" type="reset" value="{lang:Reset}" name="reset" />
+ <input class="submit" type="submit" value="{'Submit'|@translate}" name="submitEmail" {$TAG_INPUT_ENABLED}/>
+ <input class="submit" type="reset" value="{'Reset'|@translate}" name="reset" />
</p>
</fieldset>
-<!-- END group_mail -->
+{/if}
</form>
diff --git a/template/yoga/admin/cat_move.tpl b/template/yoga/admin/cat_move.tpl
index e35731bb1..318a025ab 100644
--- a/template/yoga/admin/cat_move.tpl
+++ b/template/yoga/admin/cat_move.tpl
@@ -1,41 +1,38 @@
-<!-- DEV TAG: not smarty migrated -->
-<!-- $Id$ -->
+{* $Id$ *}
+
<div class="titrePage">
<ul class="categoryActions">
- <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>
+ <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>
</ul>
- <h2>{lang:Move categories}</h2>
+ <h2>{'Move categories'|@translate}</h2>
</div>
-<form method="post" action="{F_ACTION}" class="filter" id="catMove">
+<form method="post" action="{$F_ACTION}" class="filter" id="catMove">
<fieldset>
- <legend>{lang:Virtual categories movement}</legend>
+ <legend>{'Virtual categories movement'|@translate}</legend>
<label>
- {lang:Virtual categories to move}
+ {'Virtual categories to move'|@translate}
<select class="categoryList" name="selection[]" multiple="multiple">
- <!-- BEGIN category_option_selection -->
- <option {category_option_selection.SELECTED} value="{category_option_selection.VALUE}">{category_option_selection.OPTION}</option>
- <!-- END category_option_selection -->
+ {html_options options=$category_to_move_options}
</select>
</label>
<label>
- {lang:New parent category}
+ {'New parent category'|@translate}
<select class="categoryDropDown" name="parent">
- <!-- BEGIN category_option_parent -->
- <option {category_option_parent.SELECTED} value="{category_option_parent.VALUE}">{category_option_parent.OPTION}</option>
- <!-- END category_option_parent -->
+ <option value="0">------------</option>
+ {html_options options=$category_parent_options}
</select>
</label>
</fieldset>
<p>
- <input class="submit" type="submit" name="submit" value="{lang:Submit}" {TAG_INPUT_ENABLED}>
- <input class="submit" type="reset" name="reset" value="{lang:Reset}">
+ <input class="submit" type="submit" name="submit" value="{'Submit'|@translate}" {$TAG_INPUT_ENABLED}>
+ <input class="submit" type="reset" name="reset" value="{'Reset'|@translate}">
</p>
</form>
diff --git a/template/yoga/admin/cat_options.tpl b/template/yoga/admin/cat_options.tpl
index 8551ff3e3..356e66223 100644
--- a/template/yoga/admin/cat_options.tpl
+++ b/template/yoga/admin/cat_options.tpl
@@ -1,19 +1,16 @@
-<!-- DEV TAG: not smarty migrated -->
-<!-- $Id$ -->
+{* $Id$ *}
<div class="titrePage">
<ul class="categoryActions">
- <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>
+ <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>
</ul>
- <h2>{lang:cat_options_title} {TABSHEET_TITLE}</h2>
- {TABSHEET}
+ <h2>{'cat_options_title'|@translate} {$TABSHEET_TITLE}</h2>
+ {include file='admin/tabsheet.tpl'}
</div>
-<form method="post" action="{F_ACTION}" id="cat_options">
+<form method="post" action="{$F_ACTION}" id="cat_options">
<fieldset>
- <legend>{L_SECTION}</legend>
- {DOUBLE_SELECT}
+ <legend>{$L_SECTION}</legend>
+ {$DOUBLE_SELECT}
</fieldset>
</form>
-<p class="information">{L_CAT_OPTIONS_INFO}</p>
-
diff --git a/template/yoga/admin/cat_perm.tpl b/template/yoga/admin/cat_perm.tpl
index 05c300e23..857448112 100644
--- a/template/yoga/admin/cat_perm.tpl
+++ b/template/yoga/admin/cat_perm.tpl
@@ -1,66 +1,68 @@
-<!-- DEV TAG: not smarty migrated -->
+{* $Id$ *}
<div class="titrePage">
<ul class="categoryActions">
- <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>
+ <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>
</ul>
- <h2>{lang:Manage permissions for a category}</h2>
+ <h2>{'Manage permissions for a category'|@translate}</h2>
</div>
-<h3>{CATEGORIES_NAV}</h3>
+<h3>{$CATEGORIES_NAV}</h3>
-<form action="{F_ACTION}" method="post" id="categoryPermissions">
+<form action="{$F_ACTION}" method="post" id="categoryPermissions">
- <h4>{lang:Groups}</h4>
+ <h4>{'Groups'|@translate}</h4>
<fieldset>
- <legend>{lang:Permission granted}</legend>
+ <legend>{'Permission granted'|@translate}</legend>
<ul>
- <!-- BEGIN group_granted -->
- <li><label><input type="checkbox" name="deny_groups[]" value="{group_granted.ID}" /> {group_granted.NAME}</label></li>
- <!-- END group_granted -->
+ {foreach from=$group_granted_ids item=id}
+ <li><label><input type="checkbox" name="deny_groups[]" value="{$id}" /> {$all_groups[$id]}</label></li>
+ {/foreach}
</ul>
- <input class="submit" type="submit" name="deny_groups_submit" value="{lang:Deny selected groups}" {TAG_INPUT_ENABLED}/>
+ <input class="submit" type="submit" name="deny_groups_submit" value="{'Deny selected groups'|@translate}" {$TAG_INPUT_ENABLED}/>
</fieldset>
<fieldset>
- <legend>{lang:Permission denied}</legend>
+ <legend>{'Permission denied'|@translate}</legend>
<ul>
- <!-- BEGIN group_denied -->
- <li><label><input type="checkbox" name="grant_groups[]" value="{group_denied.ID}"> {group_denied.NAME}</label></li>
- <!-- END group_denied -->
+ {foreach from=$group_denied_ids item=id}
+ <li><label><input type="checkbox" name="grant_groups[]" value="{$id}"> {$all_groups[$id]}</label></li>
+ {/foreach}
</ul>
- <input class="submit" type="submit" name="grant_groups_submit" value="{lang:Grant selected groups}" {TAG_INPUT_ENABLED}/>
+ <input class="submit" type="submit" name="grant_groups_submit" value="{'Grant selected groups'|@translate}" {$TAG_INPUT_ENABLED}/>
</fieldset>
- <h4>{lang:Users}</h4>
-
+ <h4>{'Users'|@translate}</h4>
+
<fieldset>
- <legend>{lang:Permission granted}</legend>
+ <legend>{'Permission granted'|@translate}</legend>
<ul>
- <!-- BEGIN user_granted -->
- <li><label><input type="checkbox" name="deny_users[]" value="{user_granted.ID}" /> {user_granted.NAME}</label></li>
- <!-- END user_granted -->
+ {foreach from=$user_granted_direct_ids item=id}
+ <li><label><input type="checkbox" name="deny_users[]" value="{$id}" /> {$all_users[$id]}</label></li>
+ {/foreach}
</ul>
- <input class="submit" type="submit" name="deny_users_submit" value="{lang:Deny selected users}" {TAG_INPUT_ENABLED}/>
+ <input class="submit" type="submit" name="deny_users_submit" value="{'Deny selected users'|@translate}" {$TAG_INPUT_ENABLED}/>
</fieldset>
<fieldset>
- <legend>{lang:Permission granted thanks to a group}</legend>
+ <legend>{'Permission granted thanks to a group'|@translate}</legend>
+ {if isset($user_granted_indirects) }
<ul>
- <!-- BEGIN user_granted_indirect -->
- <li>{user_granted_indirect.NAME} ({user_granted_indirect.GROUP})</li>
- <!-- END user_granted_indirect -->
+ {foreach from=$user_granted_indirects item=user_group}
+ <li>{$user_group.USER} ({$user_group.GROUP})</li>
+ {/foreach}
</ul>
+ {/if}
</fieldset>
<fieldset>
- <legend>{lang:Permission denied}</legend>
+ <legend>{'Permission denied'|@translate}</legend>
<ul>
- <!-- BEGIN user_denied -->
- <li><label><input type="checkbox" name="grant_users[]" value="{user_denied.ID}"> {user_denied.NAME}</label></li>
- <!-- END user_denied -->
+ {foreach from=$user_denied_ids item=id}
+ <li><label><input type="checkbox" name="grant_users[]" value="{$id}"> {$all_users[$id]}</label></li>
+ {/foreach}
</ul>
- <input class="submit" type="submit" name="grant_users_submit" value="{lang:Grant selected users}" {TAG_INPUT_ENABLED}/>
+ <input class="submit" type="submit" name="grant_users_submit" value="{'Grant selected users'|@translate}" {$TAG_INPUT_ENABLED}/>
</fieldset>
</form>
diff --git a/template/yoga/admin/permalinks.tpl b/template/yoga/admin/permalinks.tpl
index 220aa3572..2013666eb 100644
--- a/template/yoga/admin/permalinks.tpl
+++ b/template/yoga/admin/permalinks.tpl
@@ -1,72 +1,70 @@
-<!-- DEV TAG: not smarty migrated -->
+{* $Id$ *}
<div class="titrePage">
<ul class="categoryActions">
- <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>
+ <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>
</ul>
- <h2>{lang:Permalinks}</h2>
+ <h2>{'Permalinks'|@translate}</h2>
</div>
-<form method="post" action="{F_ACTION}">
-<fieldset><legend>{lang:Add/delete a permalink}</legend>
- <label>{lang:Category}:
+<form method="post" action="{$F_ACTION}">
+<fieldset><legend>{'Add/delete a permalink'|@translate}</legend>
+ <label>{'Category'|@translate}:
<select name="cat_id">
<option value="0">------</option>
-<!-- BEGIN categories -->
- <option value="{categories.VALUE}" {categories.SELECTED}>{categories.OPTION}</option>
-<!-- END categories -->
+ {html_options options=$categories selected=$categories_selected}
</select>
</label>
- <label>{lang:Permalink}:
+ <label>{'Permalink'|@translate}:
<input name="permalink" />
</label>
- <label>{lang:Save to permalink history}:
+ <label>{'Save to permalink history'|@translate}:
<input type="checkbox" name="save" checked="checked" />
</label>
<p>
- <input type="submit" class="submit" name="set_permalink" value="{lang:submit}" {TAG_INPUT_ENABLED}/>
+ <input type="submit" class="submit" name="set_permalink" value="{'submit'|@translate}" {$TAG_INPUT_ENABLED}/>
</p>
</fieldset>
</form>
-<h3>{lang:Permalinks}</h3>
+<h3>{'Permalinks'|@translate}</h3>
<table class="table2">
<tr class="throw">
- <td>Id {SORT_ID}</td>
- <td>{lang:Category} {SORT_NAME}</td>
- <td>{lang:Permalink} {SORT_PERMALINK}</td>
+ <td>Id {$SORT_ID}</td>
+ <td>{'Category'|@translate} {$SORT_NAME}</td>
+ <td>{'Permalink'|@translate} {$SORT_PERMALINK}</td>
</tr>
-<!-- BEGIN permalink -->
+{foreach from=$permalinks item=permalink}
<tr>
- <td>{permalink.id}</td>
- <td>{permalink.name}</td>
- <td>{permalink.permalink}</td>
+ <td>{$permalink.id}</td>
+ <td>{$permalink.name}</td>
+ <td>{$permalink.permalink}</td>
</tr>
-<!-- END permalink -->
+{/foreach}
</table>
-<h3>{lang:Permalink history} <a name="old_permalinks"></a></h3>
+<h3>{'Permalink history'|@translate} <a name="old_permalinks"></a></h3>
<table class="table2">
<tr class="throw">
- <td>Id {SORT_OLD_CAT_ID}</td>
- <td>{lang:Category}</td>
- <td>{lang:Permalink} {SORT_OLD_PERMALINK}</td>
- <td>Deleted on {SORT_OLD_DATE_DELETED}</td>
- <td>Last hit {SORT_OLD_LAST_HIT}</td>
- <td>Hit {SORT_OLD_HIT}</td>
+ <td>Id {$SORT_OLD_CAT_ID}</td>
+ <td>{'Category'|@translate}</td>
+ <td>{'Permalink'|@translate} {$SORT_OLD_PERMALINK}</td>
+ <td>Deleted on {$SORT_OLD_DATE_DELETED}</td>
+ <td>Last hit {$SORT_OLD_LAST_HIT}</td>
+ <td>Hit {$SORT_OLD_HIT}</td>
<td></td>
</tr>
-<!-- BEGIN deleted_permalink -->
+{foreach from=$deleted_permalinks item=permalink}
<tr>
- <td>{deleted_permalink.cat_id}</td>
- <td>{deleted_permalink.name}</td>
- <td>{deleted_permalink.permalink}</td>
- <td>{deleted_permalink.date_deleted}</td>
- <td>{deleted_permalink.last_hit}</td>
- <td>{deleted_permalink.hit}</td>
- <td><a href="{deleted_permalink.U_DELETE}" {TAG_INPUT_ENABLED}><img src="{pwg_root}{themeconf:icon_dir}/delete.png" alt="Delete"></a></td>
+ <td>{$permalink.cat_id}</td>
+ <td>{$permalink.name}</td>
+ <td>{$permalink.permalink}</td>
+ <td>{$permalink.date_deleted}</td>
+ <td>{$permalink.last_hit}</td>
+ <td>{$permalink.hit}</td>
+ <td><a href="{$permalink.U_DELETE}" {$TAG_INPUT_ENABLED}><img src="{$ROOT_URL}{$themeconf.icon_dir}/delete.png" alt="Delete"></a></td>
</tr>
-<!-- END deleted_permalink -->
+{/foreach}
</table>
diff --git a/template/yoga/admin/rating.tpl b/template/yoga/admin/rating.tpl
index d10bf57db..aa91892dc 100755
--- a/template/yoga/admin/rating.tpl
+++ b/template/yoga/admin/rating.tpl
@@ -1,68 +1,64 @@
-<!-- DEV TAG: not smarty migrated -->
-<h2>{lang:Rating} [{NB_ELEMENTS} {lang:elements}]</h2>
+{* $Id$ *}
+<h2>{'Rating'|@translate} [{$NB_ELEMENTS} {'elements'|@translate}]</h2>
-<form action="{F_ACTION}" method="GET" id="update" class="filter">
+<form action="{$F_ACTION}" method="GET" id="update" class="filter">
<fieldset>
- <legend>{lang:Filter}</legend>
+ <legend>{'Filter'|@translate}</legend>
<label>
- {lang:Sort by}
+ {'Sort by'|@translate}
<select name="order_by">
- <!-- BEGIN order_by -->
- <option value="{order_by.VALUE}" {order_by.SELECTED}>{order_by.CONTENT}</option>
- <!-- END order_by -->
+ {html_options options=$order_by_options selected=$order_by_options_selected}
</select>
</label>
<label>
- {lang:Users}
+ {'Users'|@translate}
<select name="users">
- <!-- BEGIN user_option -->
- <option value="{user_option.VALUE}" {user_option.SELECTED}>{user_option.CONTENT}</option>
- <!-- END user_option -->
+ {html_options options=$user_options selected=$user_options_selected}
</select>
</label>
<label>
- {lang:Number of items}
- <input type="text" name="display" size="2" value="{DISPLAY}">
+ {'Number of items'|@translate}
+ <input type="text" name="display" size="2" value="{$DISPLAY}">
</label>
- <input class="submit" type="submit" name="submit_filter" value="{lang:Submit}" />
+ <input class="submit" type="submit" name="submit_filter" value="{'Submit'|@translate}" />
<input type="hidden" name="page" value="rating" />
</fieldset>
</form>
-<div class="navigationBar">{NAVBAR}</div>
+<div class="navigationBar">{$NAVBAR}</div>
<table width="99%">
<tr class="throw">
- <td>{lang:File}</td>
- <td>{lang:Number of rates}</td>
- <td>{lang:Average rate}</td>
- <td>{lang:Controversy}</td>
- <td>{lang:Sum of rates}</td>
- <td>{lang:Rate}</td>
- <td>{lang:Username}</td>
- <td>{lang:Rate date}</td>
+ <td>{'File'|@translate}</td>
+ <td>{'Number of rates'|@translate}</td>
+ <td>{'Average rate'|@translate}</td>
+ <td>{'Controversy'|@translate}</td>
+ <td>{'Sum of rates'|@translate}</td>
+ <td>{'Rate'|@translate}</td>
+ <td>{'Username'|@translate}</td>
+ <td>{'Rate date'|@translate}</td>
<td></td>
</tr>
-<!-- BEGIN image -->
+{foreach from=$images item=image}
<tr valign="bottom">
- <td rowspan="{image.NB_RATES_PLUS1}"><a href="{image.U_URL}"><img src="{image.U_THUMB}" alt="{image.FILE}" title="{image.FILE}"></a></td>
- <td rowspan="{image.NB_RATES_PLUS1}"><strong>{image.NB_RATES}/{image.NB_RATES_TOTAL}</strong></td>
- <td rowspan="{image.NB_RATES_PLUS1}"><strong>{image.AVG_RATE}</strong></td>
- <td rowspan="{image.NB_RATES_PLUS1}"><strong>{image.STD_RATE}</strong></td>
- <td rowspan="{image.NB_RATES_PLUS1}" style="border-right: 1px solid;" ><strong>{image.SUM_RATE}</strong></td>
+ <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>
+ <td rowspan="{$image.NB_RATES_TOTAL+1}"><strong>{$image.NB_RATES}/{$image.NB_RATES_TOTAL}</strong></td>
+ <td rowspan="{$image.NB_RATES_TOTAL+1}"><strong>{$image.AVG_RATE}</strong></td>
+ <td rowspan="{$image.NB_RATES_TOTAL+1}"><strong>{$image.STD_RATE}</strong></td>
+ <td rowspan="{$image.NB_RATES_TOTAL+1}" style="border-right: 1px solid;" ><strong>{$image.SUM_RATE}</strong></td>
</tr>
-<!-- BEGIN rate -->
+{foreach from=$image.rates item=rate}
<tr>
- <td>{image.rate.RATE}</td>
- <td><b>{image.rate.USER}</b></td>
- <td><span class="date">{image.rate.DATE}</span></td>
- <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>
+ <td>{$rate.RATE}</td>
+ <td><b>{$rate.USER}</b></td>
+ <td><span class="date">{$rate.DATE}</span></td>
+ <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>
</tr>
-<!-- END rate -->
-<!-- END image -->
+{/foreach} {*rates*}
+{/foreach} {*images*}
</table>
-<div class="navigationBar">{NAVBAR}</div>
+<div class="navigationBar">{$NAVBAR}</div>
diff --git a/template/yoga/admin/tabsheet.tpl b/template/yoga/admin/tabsheet.tpl
index 6daafb506..930771916 100644
--- a/template/yoga/admin/tabsheet.tpl
+++ b/template/yoga/admin/tabsheet.tpl
@@ -1,7 +1,8 @@
-<!-- DEV TAG: not smarty migrated -->
-<!-- $Id$ -->
+{* $Id$ *}
+{if isset($tabsheet) and count($tabsheet)}
<ul class="tabsheet">
-<!-- BEGIN tab -->
- <li class="{tab.CLASSNAME}"><a href="{tab.URL}">{tab.CAPTION}</a></li>
-<!-- END tab -->
+{foreach from=$tabsheet item=tab}
+ <li class="{if isset($tab.selected) and $tab.selected}selected_tab{else}normal_tab{/if}"><a href="{$tab.url}">{$tab.caption}</a></li>
+{/foreach}
</ul>
+{/if} \ No newline at end of file