summaryrefslogtreecommitdiff
path: root/templates/admin_layout.tpl
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2007-04-12 17:56:08 +0000
committerMax Kremmel <xing@synapse.plus.com>2007-04-12 17:56:08 +0000
commit7aea4d36587168edc3147eb005b6f2064963f573 (patch)
treefee84f6e8a3bcb7006751d026b98a2f16f2de23a /templates/admin_layout.tpl
parentc28d522c02d69519083998399aa8d500a52e3d17 (diff)
downloadthemes-7aea4d36587168edc3147eb005b6f2064963f573.tar.gz
themes-7aea4d36587168edc3147eb005b6f2064963f573.tar.bz2
themes-7aea4d36587168edc3147eb005b6f2064963f573.zip
add option to turn on modules in header and modules in footer. all options available to left / right modules are available to top / bottom modules as well. css for such modules has not been added yet and probably has to be added manually due to varied requirements of modules placed in these areas
Diffstat (limited to 'templates/admin_layout.tpl')
-rw-r--r--templates/admin_layout.tpl92
1 files changed, 57 insertions, 35 deletions
diff --git a/templates/admin_layout.tpl b/templates/admin_layout.tpl
index 6dd5d4c..e17874a 100644
--- a/templates/admin_layout.tpl
+++ b/templates/admin_layout.tpl
@@ -1,40 +1,52 @@
{strip}
{formfeedback hash=$feedback}
-{form}
- <input type="hidden" name="module_package" value="{$module_package}" />
- <input type="hidden" name="page" value="{$page}" />
+<table style="width:100%" cellpadding="5" cellspacing="0" border="0">
+ <caption>{tr}Current Layout of '{if !$module_package || $module_package=='kernel'}Site Default{else}{$module_package|capitalize}{/if}'{/tr}</caption>
+ <tr>
+ {foreach from=$layoutAreas item=area key=colkey}
+ {if $colkey =='top'}
+ <td class="{cycle values="even,odd"}" colspan="3" style="vertical-align:top;">
+ {elseif $colkey =='bottom'}
+ </tr>
+ <tr>
+ <td class="{cycle values="even,odd"}" colspan="3" style="vertical-align:top;">
+ {else}
+ <td class="{cycle values="even,odd"}" style="width:33%; vertical-align:top;">
+ {/if}
- <table style="width:100%" cellpadding="5" cellspacing="0" border="0">
- <caption>{tr}Current Layout of '{if !$module_package || $module_package=='kernel'}Site Default{else}{$module_package|capitalize}{/if}'{/tr}</caption>
- <tr>
- {foreach from=$layoutAreas item=area key=colkey }
- <td style="width:33%" valign="top">
- <table class="data" style="width:100%">
+ <table class="data" style="width:100%">
+ <tr>
+ <th>{tr}{$colkey} area{/tr}</th>
+ </tr>
+ {section name=ix loop=$layout.$area}
<tr>
- <th>{tr}{$colkey} column{/tr}</th>
+ <td>
+ {include file="bitpackage:themes/module_config_inc.tpl" modInfo=$layout.$area[ix] condensed=1}
+ </td>
</tr>
- {section name=ix loop=$layout.$area}
- <tr class="{cycle values="even,odd"}">
- <td>
- {include file="bitpackage:themes/module_config_inc.tpl" modInfo=$layout.$area[ix]}
- </td>
- </tr>
- {sectionelse}
- <tr class="{cycle values="even,odd"}" >
- <td colspan="3" align="center">
- {if $colkey eq 'center'}{tr}Default{/tr}{else}{tr}None{/tr}{/if}
- </td>
- </tr>
- {/section}
- </table>
- </td>
- {/foreach}
- </tr>
- </table>
+ {sectionelse}
+ <tr>
+ <td colspan="3" align="center">
+ {if $colkey eq 'center'}{tr}Default{/tr}{else}{tr}None{/tr}{/if}
+ </td>
+ </tr>
+ {/section}
+ </table>
+ </td>
+
+ {if $colkey =='top'}
+ </tr>
+ <tr>
+ {/if}
+ {/foreach}
+ </tr>
+</table>
+
+{form}
+ <input type="hidden" name="page" value="{$page}" />
<div class="submit">
- <input type="submit" name="update_modules" value="{tr}Update Module Settings{/tr}" />
<input type="submit" name="fix_pos" value="{tr}Adjust module positions{/tr}" />
</div>
{/form}
@@ -101,8 +113,14 @@
{formlabel label="Position" for="layout_area"}
{forminput}
<select name="fAssign[layout_area]" id="layout_area">
- <option value="l" {if $fAssign.layout_area eq 'l'}selected="selected"{/if}>{tr}left column{/tr}</option>
- <option value="r" {if $fAssign.layout_area eq 'r'}selected="selected"{/if}>{tr}right column{/tr}</option>
+ {if $gBitSystem->isFeatureActive('site_top_column')}
+ <option value="t" {if $fAssign.layout_area eq 't'}selected="selected"{/if}>{tr}Top{/tr}</option>
+ {/if}
+ <option value="l" {if $fAssign.layout_area eq 'l'}selected="selected"{/if}>{tr}Left column{/tr}</option>
+ <option value="r" {if $fAssign.layout_area eq 'r'}selected="selected"{/if}>{tr}Right column{/tr}</option>
+ {if $gBitSystem->isFeatureActive('site_bottom_column')}
+ <option value="b" {if $fAssign.layout_area eq 'b'}selected="selected"{/if}>{tr}Bottom{/tr}</option>
+ {/if}
</select>
{formhelp note="Select the column this module should be displayed in."}
{/forminput}
@@ -272,17 +290,19 @@
{/foreach}
<table id="hidecolumns">
- <caption>{tr}Hide columns in selected packages.{/tr}</caption>
+ <caption>{tr}Hide areas in selected packages.{/tr}</caption>
<thead>
<tr>
<th>{tr}Package{/tr}</th>
- <th>{tr}hide left column{/tr}</th>
- <th>{tr}hide right column{/tr}</th>
+ <th>{tr}Top{/tr}</th>
+ <th>{tr}Left{/tr}</th>
+ <th>{tr}Right{/tr}</th>
+ <th>{tr}Bottom{/tr}</th>
</tr>
</thead>
<tfoot>
<tr>
- <td colspan="3">
+ <td colspan="5">
<div class="row submit">
<input type="submit" name="HideTabSubmit" value="{tr}Change preferences{/tr}" />
</div>
@@ -293,8 +313,10 @@
{foreach from=$hideColumns item=name key=package}
<tr class="{cycle values="odd,even"}">
<td>{$name}</td>
+ <td style="text-align:center;"><input type="checkbox" name="hide[{$package}_hide_top_col]" value="y" {if $gBitSystem->isFeatureActive("`$package`_hide_top_col")}checked="checked"{/if} /></td>
<td style="text-align:center;"><input type="checkbox" name="hide[{$package}_hide_left_col]" value="y" {if $gBitSystem->isFeatureActive("`$package`_hide_left_col")}checked="checked"{/if} /></td>
<td style="text-align:center;"><input type="checkbox" name="hide[{$package}_hide_right_col]" value="y" {if $gBitSystem->isFeatureActive("`$package`_hide_right_col")}checked="checked"{/if} /></td>
+ <td style="text-align:center;"><input type="checkbox" name="hide[{$package}_hide_bottom_col]" value="y" {if $gBitSystem->isFeatureActive("`$package`_hide_bottom_col")}checked="checked"{/if} /></td>
</tr>
{/foreach}
</tbody>