2011-12-07 21:07:21 +00:00
|
|
|
<?php
|
|
|
|
/*
|
2012-12-18 01:32:33 -08:00
|
|
|
* e107 website system
|
|
|
|
*
|
|
|
|
* Copyright (C) 2008-2013 e107 Inc (e107.org)
|
|
|
|
* Released under the terms and conditions of the
|
|
|
|
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
if (!defined('e107_INIT')) { exit; }
|
|
|
|
|
2011-12-07 21:07:21 +00:00
|
|
|
global $sc_style;
|
|
|
|
|
|
|
|
$sc_style['CPAGEAUTHOR|default']['pre'] = '';
|
|
|
|
$sc_style['CPAGEAUTHOR|default']['post'] = ", ";
|
|
|
|
|
|
|
|
$sc_style['CPAGESUBTITLE|default']['pre'] = '<h2>';
|
|
|
|
$sc_style['CPAGESUBTITLE|default']['post'] = '</h2>';
|
|
|
|
|
|
|
|
$sc_style['CPAGEMESSAGE|default']['pre'] = '';
|
|
|
|
$sc_style['CPAGEMESSAGE|default']['post'] = '<div class="clear"><!-- --></div>';
|
|
|
|
|
2014-01-28 06:00:26 -08:00
|
|
|
$sc_style['CPAGENAV|default']['pre'] = '<div class="f-right pull-right col-md-3">';
|
2011-12-07 21:07:21 +00:00
|
|
|
$sc_style['CPAGENAV|default']['post'] = '</div>';
|
|
|
|
|
|
|
|
#### default template - BC ####
|
|
|
|
// used only for parsing comment outside of the page tablerender-ed content
|
|
|
|
// leave empty if you integrate page comments inside the main page template
|
2014-01-22 06:14:23 -08:00
|
|
|
|
|
|
|
|
2011-12-07 21:07:21 +00:00
|
|
|
$PAGE_TEMPLATE['default']['page'] = '
|
|
|
|
{PAGE}
|
|
|
|
{PAGECOMMENTS}
|
|
|
|
';
|
|
|
|
|
|
|
|
// always used - it's inside the {PAGE} sc from 'page' template
|
2014-06-13 19:00:51 -07:00
|
|
|
$PAGE_TEMPLATE['default']['start'] = '<div id="{CPAGESEF}" class="cpage_body cpage-body">{CHAPTER_BREADCRUMB}';
|
2011-12-07 21:07:21 +00:00
|
|
|
|
|
|
|
// page body
|
|
|
|
$PAGE_TEMPLATE['default']['body'] = '
|
|
|
|
{CPAGEMESSAGE|default}
|
|
|
|
|
|
|
|
{CPAGESUBTITLE|default}
|
|
|
|
<div class="clear"><!-- --></div>
|
|
|
|
|
|
|
|
{CPAGENAV|default}
|
|
|
|
{CPAGEBODY|default}
|
|
|
|
|
|
|
|
<div class="clear"><!-- --></div>
|
|
|
|
{CPAGERATING|default}
|
|
|
|
';
|
|
|
|
|
|
|
|
// used only when password authorization is required
|
|
|
|
$PAGE_TEMPLATE['default']['authorize'] = '
|
2015-02-07 01:45:36 -08:00
|
|
|
<div class="cpage-restrict ">
|
2011-12-07 21:07:21 +00:00
|
|
|
{message}
|
|
|
|
{form_open}
|
2015-02-07 01:45:36 -08:00
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">{caption}</div>
|
|
|
|
<div class="panel-body">
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-sm-3 control-label">{label}</label>
|
|
|
|
<div class="col-sm-9">
|
|
|
|
{password} {submit}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2011-12-07 21:07:21 +00:00
|
|
|
{form_close}
|
|
|
|
</div>
|
|
|
|
';
|
|
|
|
|
|
|
|
// used when access is denied (restriction by class)
|
|
|
|
$PAGE_TEMPLATE['default']['restricted'] = '
|
|
|
|
{text}
|
|
|
|
';
|
|
|
|
|
|
|
|
// used when page is not found
|
|
|
|
$PAGE_TEMPLATE['default']['notfound'] = '
|
|
|
|
{text}
|
|
|
|
';
|
|
|
|
|
|
|
|
// always used
|
2014-01-22 06:14:23 -08:00
|
|
|
$PAGE_TEMPLATE['default']['end'] = '{CPAGERELATED: types=page,news}</div>';
|
2011-12-07 21:07:21 +00:00
|
|
|
|
|
|
|
// options per template - disable table render
|
2013-04-14 17:08:38 -07:00
|
|
|
// $PAGE_TEMPLATE['default']['noTableRender'] = false; //XXX Deprecated
|
2011-12-07 21:07:21 +00:00
|
|
|
|
|
|
|
// define different tablerender mode here
|
|
|
|
$PAGE_TEMPLATE['default']['tableRender'] = 'cpage';
|
|
|
|
|
|
|
|
|
|
|
|
#### No table render example template ####
|
2014-02-17 07:31:09 -08:00
|
|
|
$PAGE_TEMPLATE['custom']['start'] = '<div id="{CPAGESEF}" class="cpage-body">';
|
2012-12-16 20:59:14 -08:00
|
|
|
$PAGE_TEMPLATE['custom']['body'] = '';
|
|
|
|
$PAGE_TEMPLATE['custom']['authorize'] = '
|
2011-12-07 21:07:21 +00:00
|
|
|
';
|
|
|
|
|
2012-12-16 20:59:14 -08:00
|
|
|
$PAGE_TEMPLATE['custom']['restricted'] = '
|
2011-12-07 21:07:21 +00:00
|
|
|
';
|
|
|
|
|
2012-12-16 20:59:14 -08:00
|
|
|
$PAGE_TEMPLATE['custom']['end'] = '</div>';
|
|
|
|
$PAGE_TEMPLATE['custom']['tableRender'] = '';
|
2011-12-07 21:07:21 +00:00
|
|
|
|
2012-12-16 20:59:14 -08:00
|
|
|
|
2013-03-06 23:01:16 -08:00
|
|
|
|
2012-12-18 01:32:33 -08:00
|
|
|
|
2013-05-29 19:37:06 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
?>
|