Ignore:
Timestamp:
Oct 22, 2010, 10:53:03 AM (14 years ago)
Author:
patdenice
Message:

Added feature: hide main block on home page.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/PWG_Stuffs/admin/template/manage.tpl

    r5727 r7340  
    5353      {if $module.TYPE != 'MainBlock'}
    5454      <ul class="categoryActions">
    55         {if $module.TYPE != 'MainBlock'}
    5655        <li class="stuffs_line">
    5756          {'stuffs_id_ligne'|@translate}&nbsp;
     
    6463          <input type="text" size="2" maxlength="2" value="{$module.WIDTH}" name="width[{$module.ID}]" > %
    6564        </li>
    66         {/if}
    6765        <li><a href="{$module.U_EDIT}" title="{'stuffs_edit'|@translate}"><img src="{$themeconf.admin_icon_dir}/category_edit.png" class="button" alt="{'stuffs_edit'|@translate}"/></a></li>
    6866        {if !empty($module.U_DELETE) }
     
    7977
    8078      {if !empty($module.DESC)}
    81       <p style="margin-left: 30px;"><i>{$module.DESC}</i></p>
     79        <p style="margin-left: 30px;"><i>{$module.DESC}</i></p>
     80      {elseif $module.TYPE == 'MainBlock'}
     81        <p style="margin-left: 30px;"><input name="hidemb" type="checkbox" {if $HIDEMB}checked="checked"{/if}> &nbsp;{'Hide on home page'|@translate}</p>
    8282      {/if}
    8383
     
    9797  </p>
    9898</form>
    99 
    100 
    101 
    102 {*
    103         <legend>{'stuffs_mods_management'|@translate}</legend>
    104         <table class="table2">
    105         <thead>
    106                 <tr class="throw">
    107                 <td>{'stuffs_module_title'|@translate}</td>
    108                 <td>{'stuffs_desc'|@translate}</td>
    109                         <td>{'stuffs_type'|@translate}</td>
    110                         <td>{'stuffs_position'|@translate}</td>
    111                         <td>{'stuffs_id_ligne'|@translate}</td>
    112                         <td>{'stuffs_width'|@translate}</td>
    113                         <td>{'stuffs_action'|@translate}</td>
    114                 </tr>
    115         </thead>
    116 
    117         {foreach from=$modules item=module}
    118         <tr class="{$module.CLASS}" height="28">
    119                 <td align="center">{$module.NAME}</td>
    120                 <td align="center">{$module.DESC}</td>
    121                 <td align="center">{$module.TYPE}</td>
    122                 <td align="center"><input type="text" size="2" maxlength="2" value="{$module.POS}" name="position[{$module.ID}]"/></td>
    123                 <td align="center">{$module.ID_LINE}</td>
    124                 <td align="center">{$module.WIDTH}</td>
    125                 <td align="center">{$module.ACTION}</td>
    126         </tr>
    127         {/foreach}
    128 *}
Note: See TracChangeset for help on using the changeset viewer.