1<?php
2/*
3 * e107 website system
4 *
5 * Copyright (C) 2008-2013 e107 Inc (e107.org)
6 * Released under the terms and conditions of the
7 * GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
8 *
9*/
10
11if (!defined('e107_INIT')) { exit; }
12$PAGE_WRAPPER = array();
13
14global $sc_style;
15
16$sc_style['CPAGEAUTHOR|default']['pre'] = '';
17$sc_style['CPAGEAUTHOR|default']['post'] = ", ";
18
19$sc_style['CPAGESUBTITLE|default']['pre'] = '<h2>';
20$sc_style['CPAGESUBTITLE|default']['post'] = '</h2>';
21
22$sc_style['CPAGEMESSAGE|default']['pre'] = '';
23$sc_style['CPAGEMESSAGE|default']['post'] = '<div class="clear"><!-- --></div>';
24
25$sc_style['CPAGENAV|default']['pre'] = '<div class="f-right pull-right float-right col-md-3">';
26$sc_style['CPAGENAV|default']['post'] = '</div>';
27
28#### default template - BC ####
29	// used only for parsing comment outside of the page tablerender-ed content
30	// leave empty if you integrate page comments inside the main page template
31
32
33	$PAGE_TEMPLATE['default']['page'] = '
34		{PAGE}
35		{PAGECOMMENTS}
36	';
37
38	// always used - it's inside the {PAGE} sc from 'page' template
39	$PAGE_TEMPLATE['default']['start'] = '<div id="{CPAGESEF}" class="cpage_body cpage-body">{CHAPTER_BREADCRUMB}';
40
41	// page body
42	$PAGE_TEMPLATE['default']['body'] = '
43		{CPAGEMESSAGE|default}
44
45		{CPAGESUBTITLE|default}
46		<div class="clear"><!-- --></div>
47
48		{CPAGENAV|default}
49		{CPAGEBODY|default}
50
51		<div class="clear"><!-- --></div>
52		{CPAGERATING|default}
53		{CPAGEEDIT}
54
55
56	';
57
58	// {CPAGEFIELD: name=image}
59
60	$PAGE_WRAPPER['default']['CPAGEEDIT'] = "<div class='text-right'>{---}</div>";
61
62	// used only when password authorization is required
63	$PAGE_TEMPLATE['default']['authorize'] = '
64		<div class="cpage-restrict ">
65			{message}
66			{form_open}
67			<div class="panel panel-default">
68				<div class="panel-heading">{caption}</div>
69					<div class="panel-body">
70					    <div class="form-group">
71				       		 <label class="col-sm-3 control-label">{label}</label>
72					        <div class="col-sm-9">
73					               {password} {submit}
74					        </div>
75			     		</div>
76					</div>
77      			</div>
78			{form_close}
79		</div>
80	';
81
82	// used when access is denied (restriction by class)
83	$PAGE_TEMPLATE['default']['restricted'] = '
84		{text}
85	';
86
87	// used when page is not found
88	$PAGE_TEMPLATE['default']['notfound'] = '
89		{text}
90	';
91
92	// always used
93	$PAGE_TEMPLATE['default']['end'] = '{CPAGERELATED: types=page,news}</div>';
94
95	// options per template - disable table render
96//	$PAGE_TEMPLATE['default']['noTableRender'] = false; //XXX Deprecated
97
98	// define different tablerender mode here
99	$PAGE_TEMPLATE['default']['tableRender'] = 'cpage';
100
101
102
103	$PAGE_TEMPLATE['default']['related']['start']   = '{SETIMAGE: w=350&h=350&crop=1}<h2 class="caption">{LAN=LAN_RELATED}</h2><div class="row">';
104	$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>';
105	$PAGE_TEMPLATE['default']['related']['end']     = '</div>';
106
107	// $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>';
108
109
110#### No table render example template ####
111
112
113	$PAGE_TEMPLATE['custom']['start'] 			= '<div id="{CPAGESEF}" class="cpage-body">';
114	$PAGE_TEMPLATE['custom']['body'] 			= '';
115	$PAGE_TEMPLATE['custom']['authorize'] 		= '
116	';
117
118	$PAGE_TEMPLATE['custom']['restricted'] 		= '
119	';
120
121	$PAGE_TEMPLATE['custom']['end'] 			= '</div>';
122	$PAGE_TEMPLATE['custom']['tableRender'] 	= '';
123
124
125	$PAGE_WRAPPER['profile']['CMENUIMAGE: template=profile'] = '<span class="page-profile-image pull-left col-xs-12 col-sm-4 col-md-4">{---}</span>';
126	$PAGE_TEMPLATE['profile'] = $PAGE_TEMPLATE['default'];
127	$PAGE_TEMPLATE['profile']['body'] = '
128		{CPAGEMESSAGE}
129		{CPAGESUBTITLE}
130		<div class="clear"><!-- --></div>
131
132		{CPAGENAV|default}
133		{SETIMAGE: w=320}
134		{CMENUIMAGE: template=profile}
135		{CPAGEBODY}
136
137		<div class="clear"><!-- --></div>
138		{CPAGERATING}
139		{CPAGEEDIT}
140	';
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155