Ignore:
Timestamp:
Feb 28, 2008, 3:41:48 AM (16 years ago)
Author:
rvelices
Message:
  • migrate many templates to smarty
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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>
Note: See TracChangeset for help on using the changeset viewer.