-
Notifications
You must be signed in to change notification settings - Fork 0
/
eventHandler.cfc
100 lines (80 loc) · 3.79 KB
/
eventHandler.cfc
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
<!--- This file is part of Mura CMS.
Mura CMS is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, Version 2 of the License.
Mura CMS is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Mura CMS. If not, see <http://www.gnu.org/licenses/>.
Linking Mura CMS statically or dynamically with other modules constitutes the preparation of a derivative work based on
Mura CMS. Thus, the terms and conditions of the GNU General Public License version 2 ("GPL") cover the entire combined work.
However, as a special exception, the copyright holders of Mura CMS grant you permission to combine Mura CMS with programs
or libraries that are released under the GNU Lesser General Public License version 2.1.
In addition, as a special exception, the copyright holders of Mura CMS grant you permission to combine Mura CMS with
independent software modules (plugins, themes and bundles), and to distribute these plugins, themes and bundles without
Mura CMS under the license of your choice, provided that you follow these specific guidelines:
Your custom code
• Must not alter any default objects in the Mura CMS database and
• May not alter the default display of the Mura CMS logo within Mura CMS and
• Must not alter any files in the following directories.
/admin/
/tasks/
/config/
/requirements/mura/
/Application.cfc
/index.cfm
/MuraProxy.cfc
You may copy and distribute Mura CMS with a plug-in, theme or bundle that meets the above guidelines as a combined work
under the terms of GPL for Mura CMS, provided that you include the source code of that other code when and as the GNU GPL
requires distribution of source code.
For clarity, if you create a modified version of Mura CMS, you are not obligated to grant this special exception for your
modified version; it is your choice whether to do so, or to make such modified version available under the GNU General Public License
version 2 without this exception. You may, if you choose, apply this exception to your own modified versions of Mura CMS.
--->
<cfcomponent extends="mura.cfobject">
<!---
<cffunction name="onPageDefaultBodyRender" output="true" returntype="void">
<cfargument name="$">
<cfoutput>#$.setDynamicContent($.content("body"))#</cfoutput>
</cffunction>
--->
<cffunction name="onApplicationLoad">
<cfargument name="$">
<cfscript>
var local = {};
// dynamically alter the available display regions from within a theme
local.data = {
siteID = $.siteConfig('siteid')
, columnCount = 5
, primaryColumn = 2
, columnNames = 'Left Column^Main Content^Right Column^Footer Left^Footer Right'
};
local.siteBean = $.getBean('settingsManager');
local.siteBean.update(local.data);
</cfscript>
</cffunction>
<cffunction name="onRenderStart" output="false">
<cfargument name="$" hint="mura scope" />
<cfscript>
var renderer = arguments.$.getContentRenderer();
// general vars
renderer.jsLibLoaded = true;
//renderer.generalWrapperClass = 'well';
// heading vars
renderer.headline = 'h1';
renderer.subHead1 = 'h2';
renderer.subHead2 = 'h3';
renderer.subHead3 = 'h4';
renderer.subHead4 = 'h5';
renderer.subHead5 = 'h6';
//default showMetaImage setting to false
if (isBoolean($.content("showMetaImage")) eq false) {
$.content("showMetaImage",0);
}
// nav and list item vars
renderer.ulTopClass = 'link-list';
</cfscript>
</cffunction>
</cfcomponent>