Ignore:
Timestamp:
Mar 1, 2008, 2:12:07 PM (17 years ago)
Author:
rvelices
Message:
  • index.tpl, menubar.tpl, mainpage_categories.tpl and month_calendar.tpl go smarty
  • better template debugging tweak (the smarty console is shown only once at the end)
File:
1 edited

Legend:

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

    r2222 r2231  
    1 <!-- DEV TAG: not smarty migrated -->
    2 <!-- $Id$ -->
    3 {MENUBAR}
     1{* $Id$ *}
     2{$MENUBAR}
    43<div id="content">
    54  <div class="titrePage">
    65    <ul class="categoryActions">
    76      <li>&nbsp;</li>
    8       <!-- BEGIN preferred_image_order -->
     7      {if !empty($image_orders) }
    98      <li>
    10       {lang:Sort order}:
     9      {'Sort order'|@translate}:
    1110      <select onchange="document.location = this.options[this.selectedIndex].value;">
    12         <!-- BEGIN order -->
    13         <option value="{preferred_image_order.order.URL}" {preferred_image_order.order.SELECTED_OPTION}>{preferred_image_order.order.DISPLAY}</option>
    14         <!-- END order -->
     11        {foreach from=$image_orders item=image_order }
     12        <option value="{$image_order.URL}"{if $image_order.SELECTED} selected="selected"{/if}}>{$image_order.DISPLAY}</option>
     13        {/foreach}
    1514      </select>
    1615      </li>
    17       <!-- END preferred_image_order -->
     16      {/if}
    1817
    19       <!-- BEGIN caddie -->
    20       <li><a href="{caddie.URL}" title="{lang:add to caddie}"><img src="{pwg_root}{themeconf:icon_dir}/caddie_add.png" class="button" alt="{lang:caddie}"/></a></li>
    21       <!-- END caddie -->
     18      {if isset($U_CADDIE) }
     19      <li><a href="{$U_CADDIE}" title="{'add to caddie'|@translate}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/caddie_add.png" class="button" alt="{'caddie'|@translate}"/></a></li>
     20      {/if}
    2221
    23       <!-- BEGIN edit -->
    24       <li><a href="{edit.URL}" title="{lang:edit category informations}"><img src="{pwg_root}{themeconf:icon_dir}/category_edit.png" class="button" alt="{lang:edit}"/></a></li>
    25       <!-- END edit -->
     22      {if isset($U_EDIT) }
     23      <li><a href="{$U_EDIT}" title="{'edit category informations'|@translate}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/category_edit.png" class="button" alt="{'edit'|@translate}"/></a></li>
     24      {/if}
    2625
    27       <!-- BEGIN search_rules -->
    28       <li><a href="{search_rules.URL}" style="border:none;" onclick="popuphelp(this.href); return false;" title="{lang:Search rules}" rel="nofollow"><img src="{pwg_root}{themeconf:icon_dir}/search_rules.png" class="button" alt="(?)"></a></li>
    29       <!-- END search_rules -->
     26      {if isset($U_SEARCH_RULES) }
     27      <li><a href="{$U_SEARCH_RULES}" style="border:none;" onclick="popuphelp(this.href); return false;" title="{'Search rules'|@translate}" rel="nofollow"><img src="{$ROOT_URL}{$themeconf.icon_dir}/search_rules.png" class="button" alt="(?)"></a></li>
     28      {/if}
    3029
    31       <!-- BEGIN slideshow -->
    32       <li><a href="{slideshow.URL}" title="{lang:slideshow}"><img src="{pwg_root}{themeconf:icon_dir}/slideshow.png" class="button" alt="{lang:slideshow}"/></a></li>
    33       <!-- END slideshow -->
     30      {if isset($U_SLIDESHOW) }
     31      <li><a href="{$U_SLIDESHOW}" title="{'slideshow'|@translate}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/slideshow.png" class="button" alt="{'slideshow'|@translate}"/></a></li>
     32      {/if}
    3433
    35       <!-- BEGIN mode_normal -->
    36       <li><a href="{mode_normal.URL}" title="{lang:mode_normal_hint}"><img src="{pwg_root}{themeconf:icon_dir}/normal_mode.png" class="button" alt="{lang:mode_normal_hint}"></a></li>
    37       <!-- END mode_normal -->
     34      {if isset($U_MODE_FLAT) }
     35      <li><a href="{$U_MODE_FLAT}" title="{'mode_flat_hint'|@translate}" rel="nofollow"><img src="{$ROOT_URL}{$themeconf.icon_dir}/flat.png" class="button" alt="{'mode_flat_hint'|@translate}"></a></li>
     36      {/if}
    3837
    39       <!-- BEGIN flat -->
    40       <li><a href="{flat.URL}" title="{lang:mode_flat_hint}" rel="nofollow"><img src="{pwg_root}{themeconf:icon_dir}/flat.png" class="button" alt="{lang:mode_flat_hint}"></a></li>
    41       <!-- END flat -->
     38      {if isset($U_MODE_NORMAL) }
     39      <li><a href="{$U_MODE_NORMAL}" title="{'mode_normal_hint'|@translate}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/normal_mode.png" class="button" alt="{'mode_normal_hint'|@translate}"></a></li>
     40      {/if}
    4241
    43       <!-- BEGIN mode_posted -->
    44       <li><a href="{mode_posted.URL}" title="{lang:mode_posted_hint}" rel="nofollow"><img src="{pwg_root}{themeconf:icon_dir}/calendar.png" class="button" alt="{lang:mode_posted_hint}"></a></li>
    45       <!-- END mode_posted -->
    46       <!-- BEGIN mode_created -->
    47       <li><a href="{mode_created.URL}" title="{lang:mode_created_hint}" rel="nofollow"><img src="{pwg_root}{themeconf:icon_dir}/calendar_created.png" class="button" alt="{lang:mode_created_hint}"></a></li>
    48       <!-- END mode_created -->
    49       {PLUGIN_INDEX_ACTIONS}
     42      {if isset($U_MODE_POSTED) }
     43      <li><a href="{$U_MODE_POSTED}" title="{'mode_posted_hint'|@translate}" rel="nofollow"><img src="{$ROOT_URL}{$themeconf.icon_dir}/calendar.png" class="button" alt="{'mode_posted_hint'|@translate}"></a></li>
     44      {/if}
     45     
     46      {if isset($U_MODE_CREATED) }
     47      <li><a href="{$U_MODE_CREATED}" title="{'mode_created_hint'|@translate}" rel="nofollow"><img src="{$ROOT_URL}{$themeconf.icon_dir}/calendar_created.png" class="button" alt="{'mode_created_hint'|@translate}"></a></li>
     48      {/if}
     49     
     50      {if !empty($PLUGIN_INDEX_ACTIONS)}{$PLUGIN_INDEX_ACTIONS}{/if}
    5051    </ul>
    5152
    52   <h2>{TITLE}</h2>
    53   <!-- BEGIN calendar -->
    54   <!-- BEGIN views -->
    55   <div class="calendarViews">{lang:calendar_view}:
     53  <h2>{$TITLE}</h2>
     54
     55  {if isset($chronology_views) }
     56  <div class="calendarViews">{'calendar_view'|@translate}:
    5657    <select onchange="document.location = this.options[this.selectedIndex].value;">
    57     <!-- BEGIN view -->
    58       <option value="{calendar.views.view.VALUE}" {calendar.views.view.SELECTED}>{calendar.views.view.CONTENT}</option>
    59     <!-- END view -->
     58      {foreach from=$chronology_views item=view}
     59      <option value="{$view.VALUE}"{if $view.SELECTED} selected="selected"{/if}}>{$view.CONTENT}</option>
     60      {/foreach}
    6061    </select>
    6162  </div>
    62   <!-- END views -->
    63   <!-- END calendar -->
     63  {/if}
    6464
    65   <!-- BEGIN calendar -->
    66   <h2>{calendar.TITLE}</h2>
    67   <!-- END calendar -->
     65  {if isset($chronology.TITLE) }
     66  <h2>{$chronology.TITLE}</h2>
     67  {/if}
    6868
    6969  </div> <!-- titrePage -->
    7070
    71 {PLUGIN_INDEX_CONTENT_BEGIN}
     71{if !empty($PLUGIN_INDEX_CONTENT_END)}{$PLUGIN_INDEX_CONTENT_BEGIN}{/if}
    7272
    73 <!-- BEGIN category_search_results -->
    74 <div style="font-size:16px;text-align:left;margin:10px">{lang:Category results for} <strong>{QUERY_SEARCH}</strong> : <em><strong>{category_search_results.CONTENT}</strong></em></div>
    75 <!-- END category_search_results -->
    76 <!-- BEGIN tag_search_results -->
    77 <div style="font-size:16px;text-align:left;margin:10px">{lang:Tag results for} <strong>{QUERY_SEARCH}</strong> : <em><strong>{tag_search_results.CONTENT}</strong></em></div>
    78 <!-- END tag_search_results -->
     73{if !empty($category_search_results) }
     74<div style="font-size:16px;text-align:left;margin:10px">{'Category results for'|@translate} <strong>{$QUERY_SEARCH}</strong> :
     75  <em><strong>
     76  {foreach from=$category_search_results item=res name=res_loop}
     77  {if !$smarty.foreach.res_loop.first} &mdash; {/if}
     78  {$res}
     79  {/foreach}
     80  </strong></em>
     81</div>
     82{/if}
     83
     84{if !empty($tag_search_results) }
     85<div style="font-size:16px;text-align:left;margin:10px">{'Tag results for'|@translate} <strong>{$QUERY_SEARCH}</strong> :
     86  <em><strong>
     87  {foreach from=$tag_search_results item=res name=res_loop}
     88  {if !$smarty.foreach.res_loop.first} &mdash; {/if}
     89  {$res}
     90  {/foreach}
     91  </strong></em>
     92</div>
     93{/if}
     94
     95{if isset($FILE_CHRONOLOGY_VIEW) }
     96{include file=$FILE_CHRONOLOGY_VIEW}
     97{/if}
     98
     99{if !empty($CATEGORIES) }{$CATEGORIES}{/if}
     100{if !empty($THUMBNAILS) }{$THUMBNAILS}{/if}
    79101
    80102
    81 <!-- BEGIN calendar -->
    82 <!-- BEGIN navbar -->
    83 <div class="calendarBar">
    84 <!-- BEGIN prev -->
    85         <div style="float:left">&laquo; <a href="{calendar.navbar.prev.URL}">{calendar.navbar.prev.LABEL}</a></div>
    86 <!-- END prev -->
    87 <!-- BEGIN next -->
    88         <div style="float:right"><a href="{calendar.navbar.next.URL}">{calendar.navbar.next.LABEL}</a> &raquo;</div>
    89 <!-- END next -->
    90         {calendar.navbar.BAR}&nbsp;
     103{if !empty($NAV_BAR) }
     104<div class="navigationBar">
     105  {$NAV_BAR}
    91106</div>
    92 <!-- END navbar -->
     107{/if}
    93108
    94 <!-- BEGIN calbar -->
    95 <div class="calendarCalBar">{calendar.calbar.BAR}</div>
    96 <!-- END calbar -->
    97 <!-- END calendar -->
    98 
    99 {MONTH_CALENDAR}
    100 {CATEGORIES}
    101 {THUMBNAILS}
    102 
    103 <!-- BEGIN cat_infos -->
    104 <!-- BEGIN navigation -->
    105 <div class="navigationBar">
    106 {cat_infos.navigation.NAV_BAR}
     109{if !empty($CONTENT_DESCRIPTION) }
     110<div class="additional_info">
     111  {$CONTENT_DESCRIPTION}
    107112</div>
    108 <!-- END navigation -->
    109 <!-- BEGIN comment -->
    110 <div class="additional_info">{cat_infos.comment.COMMENTS}</div>
    111 <!-- END comment -->
    112 <!-- END cat_infos -->
     113{/if}
    113114
    114115
    115 {PLUGIN_INDEX_CONTENT_END}
     116{if !empty($PLUGIN_INDEX_CONTENT_END) }{$PLUGIN_INDEX_CONTENT_END}{/if}
    116117</div> <!-- content -->
Note: See TracChangeset for help on using the changeset viewer.