1: <?php
2: /*
3: You may not change or alter any portion of this comment or credits
4: of supporting developers from this source code or any supporting source code
5: which is considered copyrighted (c) material of the original comment or credit authors.
6:
7: This program is distributed in the hope that it will be useful,
8: but WITHOUT ANY WARRANTY; without even the implied warranty of
9: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10: */
11:
12: namespace Xoops\Core\Theme;
13:
14: /**
15: * A null theme, mainly for testing
16: *
17: * @category Xoops\Core\Theme
18: * @package Xoops\Core
19: * @author Richard Griffith <richard@geekwright.com>
20: * @copyright 2015 XOOPS Project (http://xoops.org)
21: * @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
22: * @link http://xoops.org
23: */
24: class NullTheme extends XoopsTheme
25: {
26: /**
27: * Initializes this theme
28: *
29: * @return bool
30: */
31: public function xoInit()
32: {
33: return true;
34: }
35:
36: /**
37: * Render the page
38: *
39: * @return bool
40: */
41: public function render()
42: {
43: return true;
44: }
45:
46: /**
47: * Add StyleSheet or CSS code to the document head
48: *
49: * @return void
50: */
51: public function addStylesheet()
52: {
53: }
54:
55: /**
56: * addScriptAssets - add a list of scripts to the page
57: *
58: * @return void
59: */
60: public function addScriptAssets()
61: {
62: }
63:
64: /**
65: * addStylesheetAssets - add a list of stylesheets to the page
66: *
67: * @return void
68: */
69: public function addStylesheetAssets()
70: {
71: }
72:
73: /**
74: * addBaseAssets - add a list of assets to the page, these will all
75: * be combined into a single asset file at render time
76: *
77: * @return void
78: */
79: public function addBaseAssets()
80: {
81: }
82:
83: /**
84: * addBaseScriptAssets - add a list of scripts to the page
85: *
86: * @return void
87: */
88: public function addBaseScriptAssets()
89: {
90: }
91:
92: /**
93: * addBaseStylesheetAssets - add a list of stylesheets to the page
94: *
95: * @return void
96: */
97: public function addBaseStylesheetAssets()
98: {
99: }
100:
101: /**
102: * setNamedAsset - Add an asset reference to the asset manager.
103: *
104: * @return boolean true if asset registers, false on error
105: */
106: public function setNamedAsset()
107: {
108: }
109: }
110: