'prefetch', 'href'=>THEME.'images/browsers.png'));
e107::js("footer-inline", "$('.e-tip').tooltip({container: 'body'})"); // activate bootstrap tooltips.
// Legacy Stuff.
define('OTHERNEWS_COLS',false); // no tables, only divs.
define('OTHERNEWS_LIMIT', 3); // Limit to 3.
define('OTHERNEWS2_COLS',false); // no tables, only divs.
define('OTHERNEWS2_LIMIT', 3); // Limit to 3.
define('COMMENTLINK', e107::getParser()->toGlyph('fa-comment'));
define('COMMENTOFFSTRING', '');
define('PRE_EXTENDEDSTRING', ' ');
/**
* @param string $caption
* @param string $text
* @param string $id : id of the current render
* @param array $info : current style and other menu data.
*/
function tablestyle($caption, $text, $id='', $info=array())
{
// global $style; // no longer needed.
$style = $info['setStyle'];
echo "\n\n";
$type = $style;
if(empty($caption))
{
$type = 'box';
}
if($style == 'navdoc' || $style == 'none')
{
echo $text;
return;
}
/*
if($id == 'wm') // Example - If rendered from 'welcome message'
{
}
if($id == 'featurebox') // Example - If rendered from 'featurebox'
{
}
*/
if($style == 'jumbotron')
{
echo '
';
if(!empty($caption))
{
echo '
'.$caption.' ';
}
echo '
'.$text.'
';
return;
}
if($style == 'col-md-4' || $style == 'col-md-6' || $style == 'col-md-8')
{
echo ' ';
if(!empty($caption))
{
echo '
'.$caption.' ';
}
echo '
'.$text.'
';
return;
}
if($style == 'menu')
{
echo '';
return;
}
if($style == 'portfolio')
{
echo '
'.$text.'
';
return;
}
// default.
if(!empty($caption))
{
echo ''.$caption.' ';
}
echo $text;
return;
}
// applied before every layout.
$LAYOUT['_header_'] = '
{NAVIGATION=main}
{BOOTSTRAP_USERNAV: placement=top}
';
// applied after every layout.
$LAYOUT['_footer_'] = '
{SETSTYLE=default}
{MENU=105}
{NAVIGATION=footer}
{MENU=106}
{XURL_ICONS: size=2x}
{BOOTSTRAP_USERNAV: placement=bottom&dir=up}
';
// $LAYOUT is a combined $HEADER and $FOOTER, automatically split at the point of "{---}"
$LAYOUT['jumbotron_home'] = <<
{ALERTS}
{SETSTYLE=jumbotron}
{WMESSAGE=force}
{SETSTYLE=default}
{MENU=1}
{---}
{SETSTYLE=col-md-4}
{MENU=2}
{MENU=3}
{MENU=4}
{SETSTYLE=col-md-4}
{MENU=5}
{MENU=6}
{MENU=7}
{SETSTYLE=default}
TMPL;
//TODO Add {GALLERY_PORTFOLIO} to portfolio_menu.php
$LAYOUT['modern_business_home'] = <<
{SETSTYLE=none}
{FEATUREBOX}
{ALERTS}
{MENU=10}
{SETSTYLE=col-md-4}
{CMENU=jumbotron-menu-1}
{CMENU=jumbotron-menu-2}
{CMENU=jumbotron-menu-3}
{SETSTYLE=default}
Display Some Work on the Home Page Portfolio
{SETSTYLE=portfolio}
{SETIMAGE: w=400&h=400&crop=1}
{GALLERY_PORTFOLIO: placeholder=1&limit=6}
{SETSTYLE=none}
{---}
TMPL;
$LAYOUT['jumbotron_full'] = '
{SETSTYLE=default}
{ALERTS}
{MENU=1}
{---}
';
$LAYOUT['jumbotron_sidebar_right'] = '
{SETSTYLE=default}
';
/* XXX EVERYTHING BELOW THIS POINT IS UNUSED FOR NOW */
/**
* $HEADER AND $FOOTER are deprecated.
*/
/*
$CUSTOMHEADER, CUSTOMFOOTER and $CUSTOMPAGES are deprecated.
Default custom-pages can be assigned in theme.xml
*/
/*
$LAYOUT['docs'] = <<
TMPL;
*/
$NEWSCAT = "\n\n\n\n\n\n\n\n
{NEWSCATEGORY}
{NEWSCAT_ITEM}
";
$NEWSCAT_ITEM = "\n\n\n\n\n\n\n\n
";
?>