summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorChristian Fowler <cfowler2@wcpss.net>2013-04-05 13:38:21 -0400
committerChristian Fowler <cfowler2@wcpss.net>2013-04-05 13:38:21 -0400
commit30a6ea8f3a109c39f6af71813ee39f8c93c99b47 (patch)
tree6ef2659c09a95e07f7a0764812bb5166c8adce3b /templates
parentb0be0be85cee9558ade40b209464f8e7c0786611 (diff)
downloadkernel-30a6ea8f3a109c39f6af71813ee39f8c93c99b47.tar.gz
kernel-30a6ea8f3a109c39f6af71813ee39f8c93c99b47.tar.bz2
kernel-30a6ea8f3a109c39f6af71813ee39f8c93c99b47.zip
major restructing of foundation tpl - rename bitweaver.tpl to html.tpl
Diffstat (limited to 'templates')
-rw-r--r--templates/footer.tpl9
-rw-r--r--templates/header.tpl47
-rw-r--r--templates/html.tpl (renamed from templates/bitweaver.tpl)57
3 files changed, 51 insertions, 62 deletions
diff --git a/templates/footer.tpl b/templates/footer.tpl
deleted file mode 100644
index 05b5e97..0000000
--- a/templates/footer.tpl
+++ /dev/null
@@ -1,9 +0,0 @@
-{* $Header$ *}
-{strip}
- {* get custom footer files from individual packages *}
- {foreach from=$gBitThemes->mAuxFiles.templates.footer_inc item=file}
- {include file=$file}
- {/foreach}
- </body>
-</html>
-{/strip}
diff --git a/templates/header.tpl b/templates/header.tpl
deleted file mode 100644
index 4dc6ea8..0000000
--- a/templates/header.tpl
+++ /dev/null
@@ -1,47 +0,0 @@
-{strip}
-<!DOCTYPE HTML>
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{$bitlanguage|default:'en'}" lang="{$bitlanguage|default:'en'}" {$htmlTagAttributes} {if $gBitLanguage->isLanguageRTL()}dir="rtl"{/if}>
-
-{if $gBitThemes->mDisplayMode}
- {assign var=displayClass value=$gBitThemes->mDisplayMode|cat:"mode"|cat:" "}
-{/if}
-
-{if $gQueryUser->mUserId}
- {assign var=userClass value="user"|cat:$gQueryUser->mUserId|cat:" "}
-{/if}
-
-{if $gContent->mContentId}
- {assign var=contentClass value="cid"|cat:$gContent->mContentId}
-{/if}
-
-
-<head>
- <title>{$browserTitle} - {$gBitSystem->getConfig('site_title')}</title>
-
- {if file_exists("`$smarty.const.CONFIG_THEME_PATH`header_theme_inc.tpl")}
- {include file="`$smarty.const.CONFIG_THEME_PATH`header_theme_inc.tpl"}
- {/if}
-
- {* get custom header files from individual packages *}
- {foreach from=$gBitThemes->mAuxFiles.templates.header_inc item=file}
- {include file=$file}
- {/foreach}
-</head>
-<body
- {if $gBitSystem->mOnload} onload="{foreach from=$gBitSystem->mOnload item=loadString}{$loadString}{/foreach}" {/if}
- {if $gBitSystem->mOnunload} onunload="{foreach from=$gBitSystem->mOnunload item=loadString}{$loadString}{/foreach}" {/if}
- id="{$smarty.const.ACTIVE_PACKAGE}" class="{$displayClass}{$userClass}{$contentClass}">
-
-{if $gBitSystem->mDebugHtml}
- <div id="bw_debughtml">
- <a href="#postdebug" onclick="document.getElementById('bw_debughtml').style.display='none';">Go to content</a><br />
- {$gBitSystem->mDebugHtml}
- </div>
- <a name="postdebug"></a>
-{/if}
-
-{if $gBitSystem->isFeatureActive( 'site_help_popup' )}
- {popup_init src="`$smarty.const.UTIL_PKG_URL`javascript/libs/overlib.js"}
-{/if}
-
-{/strip}
diff --git a/templates/bitweaver.tpl b/templates/html.tpl
index 410d4bc..b305fe9 100644
--- a/templates/bitweaver.tpl
+++ b/templates/html.tpl
@@ -1,6 +1,42 @@
-{include file="bitpackage:kernel/header.tpl"}
+<!DOCTYPE HTML>
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{$bitlanguage|default:'en'}" lang="{$bitlanguage|default:'en'}" {$htmlTagAttributes} {if $gBitLanguage->isLanguageRTL()}dir="rtl"{/if}>
+
+{if $gBitThemes->mDisplayMode}
+ {assign var=displayClass value=$gBitThemes->mDisplayMode|cat:"mode"|cat:" "}
+{/if}
+{if $gQueryUser->mUserId}
+ {assign var=userClass value="user"|cat:$gQueryUser->mUserId|cat:" "}
+{/if}
+{if $gContent->mContentId}
+ {assign var=contentClass value="cid"|cat:$gContent->mContentId}
+{/if}
+
+<head>
+ <title>{$browserTitle} - {$gBitSystem->getConfig('site_title')}</title>
+
+ {* if the theme has a header, it goes first *}
+ {if file_exists("`$smarty.const.CONFIG_THEME_PATH`html_head_inc.tpl")}
+ {include file="`$smarty.const.CONFIG_THEME_PATH`html_head_inc.tpl"}
+ {/if}
+
+ {**** get custom head files from individual packages ****}
+ {foreach from=$gBitThemes->mAuxFiles.templates.html_head_inc item=file}
+ {include file=$file}
+ {/foreach}
+</head>
+<body
+ {if $gBitSystem->mOnload} onload="{foreach from=$gBitSystem->mOnload item=loadString}{$loadString}{/foreach}" {/if}
+ {if $gBitSystem->mOnunload} onunload="{foreach from=$gBitSystem->mOnunload item=loadString}{$loadString}{/foreach}" {/if}
+ id="{$smarty.const.ACTIVE_PACKAGE}" class="{$displayClass}{$userClass}{$contentClass}">
+{if $gBitSystem->mDebugHtml}
+ <div id="bw_debughtml">
+ <a href="#postdebug" onclick="document.getElementById('bw_debughtml').style.display='none';">Go to content</a><br />
+ {$gBitSystem->mDebugHtml}
+ </div>
+ <a name="postdebug"></a>
+{/if}
+
{strip}
-{if $print_page ne "y"}
{if $gBitSystem->isFeatureActive( 'bidirectional_text' )}<div dir="rtl">{/if}
{if $gBitSystem->isFeatureActive( 'site_left_column' ) && $l_modules && !$gHideModules and $gBitSystem->isFeatureActive( 'site_right_column' ) && $r_modules && !$gHideModules
@@ -13,7 +49,8 @@
}{assign var=extraColumns value=0}{
/if}
- <header>
+ <header class="mainheader">
+ {**** Theme Layout Modules : TOP ****}
{if $gBitSystem->isFeatureActive( 'site_top_column' ) && $t_modules && !$gHideModules}
{section name=homeix loop=$t_modules}
{$t_modules[homeix].data}
@@ -26,6 +63,7 @@
{include file="bitpackage:liberty/services_inc.tpl" serviceLocation='container' serviceHash=$gContent->mInfo}
<div id="wrapper" class="span{math equation="12-x*3" x=$extraColumns}">
+ {**** Theme Layout Modules : CENTER ****}
{include file="bitpackage:liberty/services_inc.tpl" serviceLocation='wrapper' serviceHash=$gContent->mInfo}
<div id="content">
{include file="bitpackage:liberty/display_structure.tpl"}
@@ -35,12 +73,14 @@
</div><!-- end #wrapper -->
{if $gBitSystem->isFeatureActive( 'site_left_column' ) && $l_modules && !$gHideModules}
+ {**** Theme Layout Modules : NAVIGATION ****}
<nav id="navigation" class="span3">
{include file="bitpackage:kernel/bit_left.tpl"}
</nav><!-- end #navigation -->{* needed by output filters. *}
{/if}
{if $gBitSystem->isFeatureActive( 'site_right_column' ) && $r_modules && !$gHideModules}
+ {**** Theme Layout Modules : EXTRA ****}
<nav id="extra" class="span3">
{include file="bitpackage:kernel/bit_right.tpl"}
</nav><!-- end #extra -->{* needed by output filters. *}
@@ -48,15 +88,20 @@
<div>
</section>
- <footer>
+ <footer class="mainfooter">
+ {**** Theme Layout Modules : BOTTOM ****}
{if $gBitSystem->isFeatureActive( 'site_bottom_column' ) && $b_modules && !$gHideModules}
{section name=homeix loop=$b_modules}
{$b_modules[homeix].data}
{/section}
{/if}
+ {* get custom footer files from individual packages *}
+ {foreach from=$gBitThemes->mAuxFiles.templates.footer_inc item=file}
+ {include file=$file}
+ {/foreach}
</footer>
{if $gBitSystem->isFeatureActive( 'bidirectional_text' )}</div>{/if}
-{/if}
+ </body>
+</html>
{/strip}
-{include file="bitpackage:kernel/footer.tpl"}