2008-12-09 15:19:03 +00:00
|
|
|
<?php
|
2009-07-18 15:04:03 +00:00
|
|
|
if ( ! defined('e107_INIT')) { exit(); }
|
|
|
|
include_lan(e_THEME."_blank/languages/".e_LANGUAGE.".php");
|
2008-12-09 15:19:03 +00:00
|
|
|
|
|
|
|
$THEME_CORE_JSLIB = array(
|
|
|
|
'jslib/core/decorate.js' => 'all',
|
|
|
|
'jslib/core/tabs.js' => 'admin'
|
|
|
|
);
|
|
|
|
|
|
|
|
$register_sc[]='FS_ADMIN_ALT_NAV';
|
|
|
|
$no_core_css = TRUE;
|
|
|
|
|
2009-07-09 20:52:00 +00:00
|
|
|
define("STANDARDS_MODE",TRUE);
|
|
|
|
|
|
|
|
|
2008-12-09 15:19:03 +00:00
|
|
|
function theme_head() {
|
2009-07-09 20:52:00 +00:00
|
|
|
|
|
|
|
global $theme_pref;
|
|
|
|
|
2008-12-09 15:19:03 +00:00
|
|
|
$ret = '';
|
2008-12-12 11:23:06 +00:00
|
|
|
$ret .= '
|
2008-12-09 15:19:03 +00:00
|
|
|
<link rel="stylesheet" href="'.THEME_ABS.'menu/menu.css" type="text/css" media="all" />
|
|
|
|
<!--[if IE]>
|
|
|
|
<link rel="stylesheet" href="'.THEME_ABS.'ie_all.css" type="text/css" media="all" />
|
|
|
|
<![endif]-->
|
|
|
|
<!--[if lte IE 7]>
|
|
|
|
<script type="text/javascript" src="'.THEME_ABS.'menu/menu.js"></script>
|
|
|
|
<![endif]-->
|
|
|
|
';
|
2008-12-12 11:23:06 +00:00
|
|
|
|
2008-12-09 15:19:03 +00:00
|
|
|
$ret .= "
|
|
|
|
<script type='text/javascript'>
|
|
|
|
/**
|
|
|
|
* Decorate all tables having e-list class
|
2008-12-12 11:23:06 +00:00
|
|
|
* TODO: add 'adminlist' class to all list core tables, allow theme decorate.
|
2008-12-09 15:19:03 +00:00
|
|
|
*/
|
|
|
|
e107.runOnLoad( function() {
|
|
|
|
\$\$('table.adminlist').each(function(element) {
|
|
|
|
e107Utils.Decorate.table(element, {tr_td: 'first last'});
|
|
|
|
});
|
|
|
|
\$\$('div.admintabs').each(function(element) {
|
|
|
|
new e107Widgets.Tabs(element);
|
|
|
|
});
|
|
|
|
|
|
|
|
}, document, true);
|
2008-12-12 11:23:06 +00:00
|
|
|
|
2008-12-09 15:19:03 +00:00
|
|
|
</script>";
|
2009-07-09 20:52:00 +00:00
|
|
|
|
|
|
|
if(THEME_LAYOUT == "alternate") // as matched by $HEADER['alternate'];
|
|
|
|
{
|
|
|
|
$ret .= "<!-- Include Something --> ";
|
|
|
|
}
|
|
|
|
|
|
|
|
if($theme_pref['_blank_example'] == 3) // Pref from admin -> thememanager.
|
|
|
|
{
|
|
|
|
$ret .= "<!-- Include Something Else --> ";
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2008-12-09 15:19:03 +00:00
|
|
|
return $ret;
|
|
|
|
}
|
|
|
|
|
2008-12-18 16:55:46 +00:00
|
|
|
function tablestyle($caption, $text, $mod) {
|
2008-12-09 15:19:03 +00:00
|
|
|
global $style;
|
2009-12-10 22:46:46 +00:00
|
|
|
|
|
|
|
$type = $style;
|
|
|
|
if(empty($caption))
|
|
|
|
{
|
|
|
|
$type = 'box';
|
|
|
|
}
|
|
|
|
|
|
|
|
switch($type)
|
|
|
|
{
|
2009-12-09 18:33:43 +00:00
|
|
|
|
2009-12-10 22:46:46 +00:00
|
|
|
case 'menu' :
|
|
|
|
echo '
|
|
|
|
<div class="block">
|
|
|
|
<h4 class="caption">'.$caption.'</h4>
|
2008-12-09 15:19:03 +00:00
|
|
|
'.$text.'
|
|
|
|
</div>
|
2009-12-10 22:46:46 +00:00
|
|
|
';
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 'box':
|
|
|
|
echo '
|
|
|
|
<div class="block">
|
|
|
|
<div class="block-text">
|
|
|
|
'.$text.'
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
';
|
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
|
|
|
echo '
|
|
|
|
<div class="block">
|
|
|
|
<h1 class="caption">'.$caption.'</h1>
|
|
|
|
<div class="block-text">
|
|
|
|
'.$text.'
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
';
|
|
|
|
break;
|
2008-12-09 15:19:03 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2009-12-09 18:33:43 +00:00
|
|
|
$HEADER['default'] = '
|
|
|
|
<div class="wrapper">
|
|
|
|
<div class="header">
|
|
|
|
<div class="header-content">
|
|
|
|
BLANK HEADER
|
|
|
|
</div>
|
|
|
|
<div style="height: 20px;"><!-- --></div>
|
|
|
|
<div class="navigation">
|
|
|
|
<div id="main-nav">{SITELINKS}</div>
|
|
|
|
<div class="clear"><!-- --></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="page-body">
|
|
|
|
<table class="main-table" cellpadding="0" cellspacing="0">
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
<td class="col-left">
|
|
|
|
{SETSTYLE=menu}
|
|
|
|
{MENU=1}
|
|
|
|
</td>
|
|
|
|
|
|
|
|
<td>
|
|
|
|
<div class="col-main">
|
|
|
|
<div class="inner-wrapper">
|
|
|
|
{SETSTYLE=content}
|
2009-12-10 22:46:46 +00:00
|
|
|
{FEATUREBOX|default=notablestyle}
|
|
|
|
{FEATUREBOX|dynamic=notablestyle}
|
2009-12-09 18:33:43 +00:00
|
|
|
';
|
|
|
|
$FOOTER['default'] = '
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td class="col-right">
|
|
|
|
<div class="col-right">
|
|
|
|
{SETSTYLE=menu}
|
|
|
|
{MENU=2}
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<div class="footer">
|
|
|
|
<!-- -->
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
';
|
2009-07-09 20:52:00 +00:00
|
|
|
|
|
|
|
$HEADER['alternate'] = '';
|
|
|
|
$FOOTER['alternate'] = '';
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
$CUSTOMHEADER, CUSTOMFOOTER and $CUSTOMPAGES are deprecated.
|
|
|
|
Default custom-pages can be assigned in theme.xml
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
2008-12-09 15:19:03 +00:00
|
|
|
|
|
|
|
?>
|