-
Notifications
You must be signed in to change notification settings - Fork 0
/
eventHandler.cfc
executable file
·59 lines (51 loc) · 1.83 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
<!--- Be sure to reload Mura after making any changes or adding methods here. A site's local eventHandler.cfc does not need to be reinitialized via appreload, only theme-specific ones (like this) --->
<cfcomponent extends="mura.cfobject" output="false">
<cffunction name="onRequestStart" output="false">
<cfargument name="$" hint="mura scope" />
<cfscript>
// http://dominicwatson.github.com/cfstatic/full-guide.html
// minifyMode: none,file,package,all
// if in production, set checkForUpdates=false
arguments.$.static(
outputDirectory = 'compiled'
, minifyMode = 'package'
, checkForUpdates = arguments.$.siteConfig('cache')
);
</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';
// nav and list item vars
renderer.navWrapperClass = 'well';
renderer.liHasKidsClass = '';
renderer.liHasKidsCustomString = '';
renderer.liCurrentClass = 'active';
renderer.liCurrentCustomString = '';
renderer.aHasKidsClass = '';
renderer.aHasKidsCustomString = '';
renderer.aCurrentClass = 'active';
renderer.aCurrentCustomString = '';
renderer.ulTopClass = 'nav nav-list';
renderer.ulNestedClass = 'nav nav-list';
renderer.ulNestedCustomString = '';
renderer.liNestedClass = '';
// pagination vars
renderer.ulPaginationClass = '';
renderer.ulPaginationWrapperClass = 'pagination';
// form vars
renderer.formWrapperClass = 'well';
</cfscript>
</cffunction>
</cfcomponent>