diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2007-04-12 14:23:47 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2007-04-12 14:23:47 +0000 |
| commit | b67211fe478bd9a2c56a6076bf1fb8e2527e1576 (patch) | |
| tree | dc93afc75c939b35218846264936a8a78424c639 /templates/module.tpl | |
| parent | 42c465ea4e1388dc1542696b3e771d1e2f1a58a4 (diff) | |
| download | themes-b67211fe478bd9a2c56a6076bf1fb8e2527e1576.tar.gz themes-b67211fe478bd9a2c56a6076bf1fb8e2527e1576.tar.bz2 themes-b67211fe478bd9a2c56a6076bf1fb8e2527e1576.zip | |
try to simplify modules tpl by removing unnecessary classes and apply positional data as the module id
Diffstat (limited to 'templates/module.tpl')
| -rw-r--r-- | templates/module.tpl | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/templates/module.tpl b/templates/module.tpl index f183f23..187fc49 100644 --- a/templates/module.tpl +++ b/templates/module.tpl @@ -1,18 +1,22 @@ -{* $Header: /cvsroot/bitweaver/_bit_themes/templates/module.tpl,v 1.4 2007/04/09 02:08:40 wjames5 Exp $ *} +{* $Header: /cvsroot/bitweaver/_bit_themes/templates/module.tpl,v 1.5 2007/04/12 14:23:47 squareing Exp $ *} {strip} -<div class="module box {$modInfo.name|replace:"_":"-"} pos-{$moduleParams.layout_area}{$moduleParams.pos}"> +{if $moduleParams.layout_area == "l"} + {assign var=area value="navig"} +{elseif $moduleParams.layout_area == "r"} + {assign var=area value="extra"} +{/if} + +<div class="module {$modInfo.name|replace:"_":"-"}" id="{$area}{$moduleParams.pos}"> {if $modInfo.title} <h3> {if $gBitSystem->isFeatureActive( 'themes_module_controls' )} <div class="control"> - <a title="{tr}Move module up{/tr}" href="{$smarty.const.KERNEL_PKG_URL}module_controls_inc.php?fMove=up&fPackage={$module_layout}&fModule={$module_id}"> + <a title="{tr}Move module up{/tr}" href="{$smarty.const.THEMES_PKG_URL}module_controls_inc.php?move=up&module_id={$module_id}"> {biticon ipackage=liberty iname="move_up" iexplain="up"}</a> - <a title="{tr}Move module down{/tr}" href="{$smarty.const.KERNEL_PKG_URL}module_controls_inc.php?fMove=down&fPackage={$module_layout}&fModule={$module_id}"> + <a title="{tr}Move module down{/tr}" href="{$smarty.const.THEMES_PKG_URL}module_controls_inc.php?move=down&module_id={$module_id}"> {biticon ipackage=liberty iname="move_down" iexplain="down"}</a> - <a title="{tr}Move module to opposite side{/tr}" href="{$smarty.const.KERNEL_PKG_URL}module_controls_inc.php?fMove={$colkey}&fPackage={$module_layout}&fModule={$module_id}"> + <a title="{tr}Move module to opposite side{/tr}" href="{$smarty.const.THEMES_PKG_URL}module_controls_inc.php?move={$moduleParams.layout_area}&module_id={$module_id}"> {biticon ipackage=liberty iname="move_left_right" iexplain="move left right"}</a> - <a title="{tr}Unassign this module{/tr}" href="{$smarty.const.KERNEL_PKG_URL}module_controls_inc.php?fMove=unassign&fPackage={$module_layout}&fModule={$module_id}" onclick="return confirm('{tr}Are you sure you want to unassign this module?{/tr}')"> - {biticon ipackage="icons" iname="edit-delete" iexplain="remove"}</a> </div> {/if} {if $gBitSystem->isFeatureActive( 'themes_collapsible_modules' )}<a href="javascript:toggle('{$modInfo.name}');">{/if} @@ -20,7 +24,7 @@ {if $gBitSystem->isFeatureActive( 'themes_collapsible_modules' )}</a>{/if} </h3> {/if} - <div class="boxcontent {$modInfo.name} pos-{$moduleParams.layout_area}{$moduleParams.pos}"{if $gBitSystem->isFeatureActive( 'themes_collapsible_modules' )} style="display:{$moduleParams.toggle_state};"{/if}> + <div class="boxcontent"{if $gBitSystem->isFeatureActive( 'themes_collapsible_modules' )} style="display:{$moduleParams.toggle_state};"{/if}> {$modInfo.data} </div> </div> |
