1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-31 04:07:55 +01:00

167 lines
2.0 KiB
PHP
Raw Normal View History

<?php
2013-03-26 15:40:41 -07:00
2009-07-18 15:04:03 +00:00
if ( ! defined('e107_INIT')) { exit(); }
2016-04-09 16:12:08 -07:00
e107::lan('theme');
2013-03-26 20:04:06 -07:00
e107::meta('viewport', 'width=device-width, initial-scale=1.0');
//e107::meta('apple-mobile-web-app-capable','yes');
2018-11-09 14:33:23 -08:00
//e107::library('load', 'bootstrap');
define('BOOTSTRAP', 3);
2013-03-26 15:40:41 -07:00
//e107::js('theme', 'js/theme.js');
2013-03-26 20:04:06 -07:00
// e107::css('theme','assets/css/style.css');
// e107::css('url', 'external url ');
2013-03-26 20:04:06 -07:00
2013-03-26 15:40:41 -07:00
// Custom Shortcodes.
//$register_sc[]='BLANK';
2013-03-26 15:40:41 -07:00
function tablestyle($caption, $text, $mode='')
{
2013-03-26 15:40:41 -07:00
global $style;
2013-03-26 15:40:41 -07:00
if($mode == 'wmessage')
{
2013-03-26 15:40:41 -07:00
$style = '';
}
2013-03-26 15:40:41 -07:00
switch($style)
{
2013-03-26 15:40:41 -07:00
case 'home':
echo $caption;
echo $text;
break;
2013-03-26 15:40:41 -07:00
case 'menu':
echo $caption;
echo $text;
break;
2013-03-26 15:40:41 -07:00
case 'full':
echo $caption;
echo $text;
break;
default:
echo $caption;
echo $text;
break;
}
2013-03-26 15:40:41 -07:00
}
2013-03-26 20:04:06 -07:00
// IMPORTANT: make sure there are no characters after <<<TMPL or TMPL;
2013-03-26 15:40:41 -07:00
// DEFAULT
2013-03-26 20:04:06 -07:00
$HEADER['default'] = <<<TMPL
2013-03-26 15:40:41 -07:00
{SETSTYLE=default}
{SETIMAGE: w=0}
2013-03-26 20:04:06 -07:00
TMPL;
$FOOTER['default'] = <<<TMPL
2013-03-26 15:40:41 -07:00
{SETSTYLE=menu}
{MENU=1}
2013-03-26 20:04:06 -07:00
TMPL;
2013-03-26 15:40:41 -07:00
2013-03-26 20:04:06 -07:00
2013-03-26 15:40:41 -07:00
// HOME page
2013-03-26 20:04:06 -07:00
$HEADER['home'] = <<<TMPL
2013-03-26 15:40:41 -07:00
2013-03-26 20:04:06 -07:00
{SETSTYLE=home}
{SETIMAGE: w=0}
2013-03-26 15:40:41 -07:00
2013-03-26 20:04:06 -07:00
TMPL;
2013-03-26 15:40:41 -07:00
2013-03-26 20:04:06 -07:00
$FOOTER['home'] = <<<TMPL
TMPL;
2013-03-26 15:40:41 -07:00
// FULL PAGE (no menus) - eg. Forum
2013-03-26 20:04:06 -07:00
$HEADER['full'] = <<<TMPL
2013-03-26 15:40:41 -07:00
{SETSTYLE=full}
{SETIMAGE: w=0}
2013-03-26 20:04:06 -07:00
TMPL;
2013-03-26 15:40:41 -07:00
2013-03-26 20:04:06 -07:00
$FOOTER['full'] = <<<TMPL
2013-03-26 15:40:41 -07:00
2013-03-26 20:04:06 -07:00
TMPL;
2013-03-26 15:40:41 -07:00
// News item styling
$NEWSSTYLE = '
{NEWSTITLE}
{NEWSAUTHOR}
{NEWSDATE=short}
{NEWSIMAGE}
{NEWSBODY} {EXTENDED}
';
// Comment Styling
$COMMENTSTYLE = '
{AVATAR}
{USERNAME}
{REPLY}
{TIMEDATE}
{COMMENT}
';
2013-03-26 15:40:41 -07:00
// news.php?cat.1
$NEWSLISTSTYLE = '
{NEWSTITLE}
{NEWSDATE=short}
{NEWSAUTHOR}
{NEWSIMAGE}
{NEWSBODY}
{EXTENDED}
{EMAILICON}
{PRINTICON}
{PDFICON}
{ADMINOPTIONS}
{NEWSCOMMENTS}
';
2013-03-26 15:40:41 -07:00
$NEWSARCHIVE ='
{ARCHIVE_BULLET}
{ARCHIVE_LINK}
{ARCHIVE_AUTHOR}
{ARCHIVE_DATESTAMP}
{ARCHIVE_CATEGORY}
';
//Render news categories on the bottom of the page
$NEWSCAT = '
{NEWSCATEGORY}
{NEWSCAT_ITEM}
';
//Loop for news items in category
$NEWSCAT_ITEM = '
{NEWSTITLELINK}
';
?>