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)
|
|
|
|
*
|
|
|
|
*/
|
2011-12-07 21:07:21 +00:00
|
|
|
|
2021-01-04 12:48:37 -08:00
|
|
|
if(!defined('e107_INIT'))
|
|
|
|
{
|
|
|
|
exit;
|
|
|
|
}
|
2011-12-07 21:07:21 +00:00
|
|
|
|
2021-01-04 12:48:37 -08:00
|
|
|
$PAGE_WRAPPER = array();
|
2011-12-07 21:07:21 +00:00
|
|
|
|
2021-01-04 12:48:37 -08:00
|
|
|
$PAGE_WRAPPER['default']['CPAGESUBTITLE'] = '<h4>{---}</h4>';
|
|
|
|
$PAGE_WRAPPER['default']['CPAGEMESSAGE'] = '{---}<div class="clear"><!-- --></div>';
|
|
|
|
$PAGE_WRAPPER['default']['CPAGEAUTHOR'] = "{---}, ";
|
|
|
|
$PAGE_WRAPPER['default']['CPAGENAV'] = '<div class="f-right pull-right float-right col-md-3">{---}</div>';
|
2011-12-07 21:07:21 +00:00
|
|
|
|
|
|
|
|
|
|
|
#### default template - BC ####
|
2021-01-04 12:48:37 -08:00
|
|
|
// used only for parsing comment outside of the page tablerender-ed content
|
|
|
|
// leave empty if you integrate page comments inside the main page template
|
|
|
|
|
|
|
|
|
|
|
|
$PAGE_TEMPLATE['default']['page'] = '
|
2011-12-07 21:07:21 +00:00
|
|
|
{PAGE}
|
|
|
|
{PAGECOMMENTS}
|
2021-01-04 12:48:37 -08:00
|
|
|
';
|
|
|
|
|
|
|
|
// always used - it's inside the {PAGE} sc from 'page' template
|
|
|
|
$PAGE_TEMPLATE['default']['start'] = '<div id="{CPAGESEF}" class="cpage_body cpage-body">{CHAPTER_BREADCRUMB}';
|
|
|
|
|
|
|
|
// page body
|
|
|
|
$PAGE_TEMPLATE['default']['body'] = '
|
|
|
|
{CPAGEMESSAGE}
|
2011-12-07 21:07:21 +00:00
|
|
|
|
2021-01-04 12:48:37 -08:00
|
|
|
{CPAGESUBTITLE}
|
2011-12-07 21:07:21 +00:00
|
|
|
<div class="clear"><!-- --></div>
|
|
|
|
|
2021-01-04 12:48:37 -08:00
|
|
|
{CPAGENAV}
|
|
|
|
{CPAGEBODY}
|
2011-12-07 21:07:21 +00:00
|
|
|
|
|
|
|
<div class="clear"><!-- --></div>
|
2021-01-04 12:48:37 -08:00
|
|
|
{CPAGERATING}
|
2022-04-06 14:21:35 -07:00
|
|
|
<span class="m-3">{CPAGEEDIT}</span>
|
2017-01-18 17:10:12 -08:00
|
|
|
|
|
|
|
|
|
|
|
';
|
|
|
|
|
2021-01-04 12:48:37 -08:00
|
|
|
// {CPAGEFIELD: name=image}
|
2016-04-02 10:51:18 -07:00
|
|
|
|
2021-01-04 13:19:17 -08:00
|
|
|
$PAGE_WRAPPER['default']['CPAGEEDIT'] = "<div class='text-right text-end'>{---}</div>";
|
2016-04-02 10:51:18 -07:00
|
|
|
|
2021-01-04 12:48:37 -08:00
|
|
|
// 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>
|
|
|
|
';
|
2021-01-04 12:48:37 -08:00
|
|
|
|
|
|
|
// used when access is denied (restriction by class)
|
|
|
|
$PAGE_TEMPLATE['default']['restricted'] = '
|
2011-12-07 21:07:21 +00:00
|
|
|
{text}
|
|
|
|
';
|
2021-01-04 12:48:37 -08:00
|
|
|
|
|
|
|
// used when page is not found
|
|
|
|
$PAGE_TEMPLATE['default']['notfound'] = '
|
2011-12-07 21:07:21 +00:00
|
|
|
{text}
|
|
|
|
';
|
2021-01-04 12:48:37 -08:00
|
|
|
|
|
|
|
// always used
|
|
|
|
$PAGE_TEMPLATE['default']['end'] = '{CPAGERELATED: types=page,news}</div>';
|
|
|
|
|
|
|
|
// 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
|
|
|
|
2021-01-04 12:48:37 -08:00
|
|
|
// define different tablerender mode here
|
|
|
|
$PAGE_TEMPLATE['default']['tableRender'] = 'cpage';
|
2016-07-01 16:10:24 -07:00
|
|
|
|
2021-03-22 11:26:51 -07:00
|
|
|
$PAGE_TEMPLATE['default']['related']['caption'] = '{LAN=RELATED}';
|
|
|
|
$PAGE_TEMPLATE['default']['related']['start'] = '{SETIMAGE: w=350&h=350&crop=1}<div class="row">';
|
2021-01-04 12:48:37 -08:00
|
|
|
$PAGE_TEMPLATE['default']['related']['item'] = '<div class="col-md-4"><a href="{RELATED_URL}">{RELATED_IMAGE}</a><h3><a href="{RELATED_URL}">{RELATED_TITLE}</a></h3></div>';
|
|
|
|
$PAGE_TEMPLATE['default']['related']['end'] = '</div>';
|
|
|
|
|
|
|
|
// $PAGE_TEMPLATE['default']['editor'] = '<ul class="fa-ul"><li><i class="fa fa-li fa-edit"></i> Level 1</li><li><i class="fa fa-li fa-cog"></i> Level 2</li></ul>';
|
2016-07-01 16:10:24 -07:00
|
|
|
|
|
|
|
|
2011-12-07 21:07:21 +00:00
|
|
|
#### No table render example template ####
|
2016-07-01 16:10:24 -07:00
|
|
|
|
|
|
|
|
2021-01-04 12:48:37 -08:00
|
|
|
$PAGE_TEMPLATE['custom']['start'] = '<div id="{CPAGESEF}" class="cpage-body">';
|
|
|
|
$PAGE_TEMPLATE['custom']['body'] = '';
|
|
|
|
$PAGE_TEMPLATE['custom']['authorize'] = '
|
2011-12-07 21:07:21 +00:00
|
|
|
';
|
2021-01-04 12:48:37 -08:00
|
|
|
|
|
|
|
$PAGE_TEMPLATE['custom']['restricted'] = '
|
2011-12-07 21:07:21 +00:00
|
|
|
';
|
2021-01-04 12:48:37 -08:00
|
|
|
|
|
|
|
$PAGE_TEMPLATE['custom']['end'] = '</div>';
|
|
|
|
$PAGE_TEMPLATE['custom']['tableRender'] = '';
|
|
|
|
|
|
|
|
|
|
|
|
$PAGE_WRAPPER['profile']['CMENUIMAGE: template=profile'] = '<span class="page-profile-image pull-left col-xs-12 col-sm-4 col-md-4">{---}</span>';
|
|
|
|
$PAGE_TEMPLATE['profile'] = $PAGE_TEMPLATE['default'];
|
|
|
|
$PAGE_TEMPLATE['profile']['body'] = '
|
2016-10-10 13:43:01 -07:00
|
|
|
{CPAGEMESSAGE}
|
|
|
|
{CPAGESUBTITLE}
|
|
|
|
<div class="clear"><!-- --></div>
|
2013-03-06 23:01:16 -08:00
|
|
|
|
2016-10-10 13:43:01 -07:00
|
|
|
{CPAGENAV|default}
|
|
|
|
{SETIMAGE: w=320}
|
|
|
|
{CMENUIMAGE: template=profile}
|
|
|
|
{CPAGEBODY}
|
2012-12-18 01:32:33 -08:00
|
|
|
|
2016-10-10 13:43:01 -07:00
|
|
|
<div class="clear"><!-- --></div>
|
|
|
|
{CPAGERATING}
|
|
|
|
{CPAGEEDIT}
|
|
|
|
';
|
2013-05-29 19:37:06 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|