Ignore:
Timestamp:
May 8, 2008, 3:13:13 AM (16 years ago)
Author:
rvelices
Message:

2 template features:

  • added a {html_head} smarty block - allow any template file to add content just before </head> tag (handy for plugins and allows to move more presentation logic to tpls); the content is usually <style> or <link> which must appear inside html <head> tag
  • by config allow some language strings to be replaced during template compilation -> better performance. drawback: changes in the language file will not be propagated until template is recompiled.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/template/yoga/admin/plugins_list.tpl

    r2293 r2334  
    1919  </tr>
    2020</thead>
     21{html_head} {*add the style to html head for strict standard compliance*}
     22<style type="text/css">
     23TABLE.table2 TR TD.pluginState {ldelim}
     24  padding-left:16px;
     25}
     26TABLE.table2 TR TD.active {ldelim}
     27  background: url({$ROOT_URL}{$themeconf.admin_icon_dir}/plugin_active.gif) no-repeat center left
     28}
     29TABLE.table2 TR TD.inactive {ldelim}
     30  background: url({$ROOT_URL}{$themeconf.admin_icon_dir}/plugin_inactive.gif) no-repeat center left
     31}
     32</style>
     33{/html_head}
    2134{foreach from=$plugins item=plugin name=plugins_loop}
    2235        <tr class="{if $smarty.foreach.plugins_loop.index is odd}row1{else}row2{/if}">
    23         <td style="padding-left:16px; {if not empty($plugin.STATE)}background: url({$ROOT_URL}{$themeconf.admin_icon_dir}/plugin_{$plugin.STATE}.gif) no-repeat center left{/if}">
     36        <td class="pluginState{if not empty($plugin.STATE)} {$plugin.STATE}{/if}">
    2437                {$plugin.NAME}
    2538        </td>
Note: See TracChangeset for help on using the changeset viewer.