diff options
| -rw-r--r-- | admin/admin_themes_manager.php | 3 | ||||
| -rw-r--r-- | templates/admin_themes_manager.tpl | 6 | ||||
| -rw-r--r-- | templates/header_inc.tpl | 12 |
3 files changed, 17 insertions, 4 deletions
diff --git a/admin/admin_themes_manager.php b/admin/admin_themes_manager.php index 5077789..0f537e1 100644 --- a/admin/admin_themes_manager.php +++ b/admin/admin_themes_manager.php @@ -63,5 +63,8 @@ $biticon_display_options = array( ); $gBitSmarty->assign( "biticon_display_options", $biticon_display_options ); +// crude method of loading css styling but we can fix this later +$gBitSmarty->assign( "loadLayoutGalaCss", TRUE ); + $gBitSystem->display( 'bitpackage:themes/admin_themes_manager.tpl', 'Themes Manager' ); ?> diff --git a/templates/admin_themes_manager.tpl b/templates/admin_themes_manager.tpl index f2c7d0c..845d6d7 100644 --- a/templates/admin_themes_manager.tpl +++ b/templates/admin_themes_manager.tpl @@ -50,10 +50,10 @@ </p> {legend legend="Pick Style Layout"} - <ul style="list-style:none; margin:0; padding:0;"> + <ul id="layoutgala"> {foreach from=$styleLayouts key=key item=layout} - <li class="{cycle values="even,odd"}" style="list-style:none; float:left; display:inline; margin:0 0 10px 10px; width:120px; text-align:center"> - <a style="height:150px; display:block;" href="{$smarty.const.THEMES_PKG_URL}admin/admin_themes_manager.php?site_style_layout={$key}"> + <li class="{cycle values="even,odd"}"> + <a href="{$smarty.const.THEMES_PKG_URL}admin/admin_themes_manager.php?site_style_layout={$key}"> {if $layout.gif}<img src="{$smarty.const.THEMES_PKG_URL}layouts/{$layout.gif}" alt="{tr}Layout{/tr}: {$key}" title="{tr}Layout{/tr}: {$key}"/><br />{/if} {if $gBitSystem->getConfig('site_style_layout') == $key}{biticon ipackage=liberty iname=success iexplain="Current Style Layout"}{/if} {$key|replace:"_":" "} diff --git a/templates/header_inc.tpl b/templates/header_inc.tpl index 4d71497..214f69f 100644 --- a/templates/header_inc.tpl +++ b/templates/header_inc.tpl @@ -1,4 +1,4 @@ -{* $Header: /cvsroot/bitweaver/_bit_themes/templates/header_inc.tpl,v 1.17 2006/08/25 18:28:05 squareing Exp $ *} +{* $Header: /cvsroot/bitweaver/_bit_themes/templates/header_inc.tpl,v 1.18 2006/08/26 19:12:17 squareing Exp $ *} {strip} {if $gBitSystem->isFeatureActive( 'site_style_layout' )} <link rel="stylesheet" title="{$style}" type="text/css" href="{$smarty.const.THEMES_PKG_URL}layouts/{$gBitSystem->getConfig('site_style_layout')}.css" media="all" /> @@ -25,6 +25,16 @@ {/if} {/strip} +{if $loadLayoutGalaCss} + {literal} + <style type="text/css"> + ul#layoutgala {list-style:none; margin:0; padding:0;} + ul#layoutgala li {list-style:none; float:left; display:inline; margin:0 0 10px 10px; width:120px; text-align:center} + ul#layoutgala li a {height:150px; display:block;} + </style> + {/literal} +{/if} + {* drag and drop javascript doesn't work with fat loaded - hardcode css for now *} {if $loadDragDrop} <script type="text/javascript" src="{$smarty.const.UTIL_PKG_URL}javascript/libs/drag/dragdrop.js"></script> |
