-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathpage_theme.php
executable file
·141 lines (127 loc) · 3.78 KB
/
page_theme.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
<?php
/**
* Theme Boilerplate Theme Controller File.
*
* This file is used to specify settings & defaults
* for the theme and blocks on pages that this theme is actived on.
*
* @author Oliver Green <oliver@c5labs.com>
* @license See attached license file
*/
namespace Concrete\Theme\ThemeBoilerplate;
use Concrete\Core\Area\Layout\Preset\Provider\ThemeProviderInterface;
use Concrete\Core\Page\Theme\Theme as Theme;
defined('C5_EXECUTE') or die("Access Denied.");
/**
* Theme Boilerplate Theme Controller Class.
*
* @author Oliver Green <oliver@c5labs.com>
* @license See attached license file
*/
class PageTheme extends Theme implements ThemeProviderInterface
{
/**
* The themes name.
*
* @var string
*/
protected $pThemeName = 'Theme Boilerplate';
/**
* The themes description.
*
* @var string
*/
protected $pThemeDescription = 'A theme boilerplate to start building from.';
/**
* The themes handle.
*
* @var string
*/
protected $pThemeHandle = 'theme-boilerplate';
/**
* Set the grid framework see http://goo.gl/1MFxbL
*/
protected $pThemeGridFrameworkHandle = 'bootstrap3';
/**
* Register theme assets, see http://goo.gl/rpJUSy
*
* public function registerAssets() {
* $this->providesAsset('css', 'bootstrap/*');
* $this->providesAsset('css', 'blocks/form');
* $this->requireAsset('javascript', 'jquery');
* }
*/
/**
* Set the block CSS class overrides
*
* public function getThemeBlockClasses()
* {
* return array(
* 'next_previous' => array('block-sidebar-wrapped'),
* 'share_this_page' => array('block-sidebar-wrapped'),
* 'content' => array('block-sidebar-wrapped'),
* 'date_navigation' => array('block-sidebar-padded')
* );
* }
*/
/**
* Set theme area CSS class overides
*
* public function getThemeAreaClasses()
* {
* return array(
* 'Page Footer' => array('area-content-accent')
* );
* }
*/
/**
* Set default blocks template for the theme
*
* public function getThemeDefaultBlockTemplates()
* {
* return array(
* 'image' => 'some_special_image_template'
* );
* }
*/
/**
* Set theme content editor styles classes
*
* public function getThemeEditorClasses()
* {
* return array(
* array('title' => t('Title Thin'), 'menuClass' => 'title-thin', 'spanClass' => 'title-thin'),
* array('title' => t('Image Caption'), 'menuClass' => 'image-caption', 'spanClass' => 'image-caption'),
* array('title' => t('Primary Button'), 'menuClass' => '', 'spanClass' => 'btn btn-primary')
* );
* }
*/
/**
* Theme layout presets (bootstrap 3 tags used)
*/
public function getThemeAreaLayoutPresets()
{
$presets = array();
/* $presets = array(
* array(
* 'handle' => 'left_sidebar',
* 'name' => 'Left Sidebar',
* 'container' => '<div class="row"></div>',
* 'columns' => array(
* '<div class="col-sm-4"></div>',
* '<div class="col-sm-8"></div>'
* ),
* ),
* array(
* 'handle' => 'right_sidebar',
* 'name' => 'Right Sidebar',
* 'container' => '<div class="row"></div>',
* 'columns' => array(
* '<div class="col-sm-8"></div>',
* '<div class="col-sm-4"></div>'
* ),
* )
* ); */
return $presets;
}
}