-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathcontentRenderer.cfc
451 lines (383 loc) · 14.8 KB
/
contentRenderer.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
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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
<!---
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">
<!---
This is the THEME contentRenderer.cfc
* Add theme-specific methods here
* Any methods here will be accessible with the following notation:
$.yourFunctionName()
--->
<cfscript>
this.primaryContentTypes='Page,Link,File';
this.templateArray=['default'];
this.cookieConsentEnabled=false;
this.cookieConsentType='drawer';
this.cookieConsentButtonClass="btn btn-primary";
this.cookieConsentWrapperClass="";
this.cookieConsentWidth="sm";
// GENERAL
this.directImages=true;
this.deferMuraJS=true;
this.layoutmanager=true;
this.legacyobjects=false;
this.validateCSRFTokens=true; //This will eventually default to true
this.jsLib = "jquery";
this.jsLibLoaded = true;
this.suppressWhitespace = false;
this.generalWrapperClass = "";
this.generalWrapperBodyClass = "";
this.bodymetaImageClass = "";
// headings
this.headline = "h1";
this.subHead1 = "h2";
this.subHead2 = "h3";
this.subHead3 = "h4";
this.subHead4 = "h5";
// preloader markup for async objects
this.preloaderMarkup='<div class="text-center container"><i class="mura-preloader fa fa-refresh fa-spin"></i></div>';
// nav and list item vars
this.navWrapperClass = "";
this.navWrapperBodyClass = "";
this.navLIClass = "";
this.liHasKidsClass = "";
this.liHasKidsCustomString = "";
this.liCurrentClass = "";
this.liCurrentCustomString = "";
this.aNotCurrentClass = "";
this.aHasKidsClass = "";
this.aHasKidsCustomString = "";
this.aCurrentClass = "";
this.aCurrentCustomString = "";
this.ulTopClass = "";
this.ulNestedClass = "";
this.ulNestedCustomString = "";
this.liNestedClass = "";
this.navSubWrapperClass=this.navWrapperClass;
this.navSubWrapperBodyClass=this.navWrapperBodyClass;
this.navPeerWrapperClass=this.navWrapperClass;
this.navPeerWrapperBodyClass=this.navWrapperBodyClass;
this.navFolderWrapperClass=this.navWrapperClass;
this.navFolderWrapperBodyClass=this.navWrapperBodyClass;
this.navStandardWrapperClass=this.navWrapperClass;
this.navStandardWrapperBodyClass=this.navWrapperBodyClass;
this.navMultiLevelWrapperClass=this.navWrapperClass;
this.navMultiLevelWrapperBodyClass=this.navWrapperBodyClass;
this.navArchiveWrapperClass=this.navWrapperClass;
this.navArchiveWrapperBodyClass=this.navWrapperBodyClass;
this.navCategoryWrapperClass=this.navWrapperClass;
this.navCategoryWrapperBodyClass=this.navWrapperBodyClass;
//Queue async display objects to render when scrolled into view
this.queueObjects=false;
// pagination vars
this.ulPaginationClass="";
this.ulPaginationWrapperClass="";
this.liPaginationCurrentClass="";
this.liPaginationNotCurrentClass="";
this.aPaginationCurrentClass="";
this.aPaginationNotCurrentClass="";
//These are used as primary form settings as well as in the form builder.
this.formWrapperClass = "";
this.formWrapperClass=this.generalWrapperClass;
this.formWrapperBodyClass=this.generalWrapperBodyClass;
this.formErrorWrapperClass = "";
this.formResponseWrapperClass = "";
this.formFieldWrapperClass = "";
this.formFieldLabelClass = "";
this.formInputWrapperClass = "";
this.formInputClass ="";
this.formGeneralControlClass = "";
this.formInputClass=this.formGeneralControlClass;
this.formSelectClass = this.formGeneralControlClass;
this.formTextareaClass = this.formGeneralControlClass;
this.formFileClass = this.formGeneralControlClass;
this.formCheckboxClass = "";
this.formCheckboxLabelClass = "";
this.formCheckboxWrapperClass = "";
this.formRadioClass = "";
this.formRadioLabelClass = "";
this.formRadioWrapperClass = "";
this.formButtonWrapperClass = "";
this.formButtonInnerClass="";
this.formButtonClass = "";
this.formRequiredWrapperClass="";
this.formButtomSubmitclass = "";
this.formButtonSubmitLabel = "";
this.formButtonNextClass = "";
this.formButtonNextLabel = "";
this.formButtonBackClass = "";
this.formButtonBackLabel = "";
this.formButtonCancelLabel = "";
this.formButtonCancelClass = "";
// images
this.imageClass="";
// tables
this.tableClass = "";
this.tableHeadClass = "";
this.tableHeaderClass = "";
this.tableBodyClass = "";
this.tableRowClass = "";
this.tableCellClass = "";
this.tableFooterClass = "";
// alerts
this.alertSuccessClass = "";
this.alertInfoClass = "";
this.alertWarningClass = "";
this.alertDangerClass = "";
// SPECIFIC (Display Objects)
// Use these variables to pass-in specific classes without having to create custom versions of the include
// calendar/dsp_showMonth.cfm
this.calendarWrapperClass="";
this.calendarTableClass=this.tableClass;
//this.calendarTableHeaderClass="";
// calendar/dspList.cfm
this.calendarListWrapperClass="";
// comments/index.cfm
this.commentsWrapperClass="";
this.commentSortContainerClass="";
this.commentSortWrapperClass="";
this.commentSortSelectClass=this.formInputClass;
this.commentFormWrapperClass=this.generalWrapperClass;
this.commentFormClass="";
this.commentNewClass=this.formButtonClass;
this.commentFieldWrapperClass=this.formFieldWrapperClass;
this.commentFieldLabelClass=this.formFieldLabelClass;
this.commentInputWrapperClass="";
this.commentInputClass=this.formInputClass;
this.commentCheckboxClass="";
this.commentPrefsInputWrapperClass="";
this.commentSubmitButtonWrapperClass="";
this.commentSubmitButtonClass=this.formButtonClass;
this.commentMoreCommentsUpClass="";
this.commentMoreCommentsDownClass="";
this.commentMoreCommentsContainer="";
this.commentRequiredWrapperClass="";
this.commentThumbClass="";
this.commentSpamClass="";
this.commentSpamLinkClass="";
this.commentClass="";
this.commentDateTimeClass="";
this.commentReplyClass="";
this.commentAwaitingApproval="";
this.commentAdminButtonWrapperClass="";
this.commentUserEmailClass="";
this.commentDeleteButtonClass="";
this.commentEditButtonClass="";
this.commentApproveButtonClass="";
// comments/dsp_comment.cfm
this.emailLinkClass=this.formButtonClass;
this.commentsLinkClass=this.formButtonClass;
this.approveCommentLinkClass=this.formButtonClass;
this.deleteCommentLinkClass=this.formButtonClass;
// dataresponses/dsp_detail.cfm
this.dataResponseListClass="";
// dataresponses/dsp_list.cfm
this.dataResponseTableClass="";
this.dataResponsePaginationClass=this.ulPaginationClass;
// dsp_categories_nest.cfm
this.categoriesNestCheckboxClass="";
// dsp_content_list.cfm
this.contentListImageStyles=true;
this.contentListImagePadding=20; //must be pixels
this.contentListPropertyMap={
containerEl={tag="div"},
itemEl={tag="dl"},
labelEl={tag="span"},
title={tag="dt"},
date={tag="dt"},
credits={tag="dd",showLabel=true,rbkey="list.by"},
tags={tag="dd",showLabel=true,labelDelim=":",rbkey="tagcloud.tags"},
rating={tag="dd",showLabel=true,labelDelim=":",rbkey="list.rating"},
"default"={tag="dd"}
};
this.contentListWrapperDivClass="";
this.contentListItemImageLinkClass="";
this.aContentListCurrentClass='';
this.aContentListCurrentAttributes='';
this.aContentListNotCurrentClass='';
//dsp_meta_list.cfm
this.aMetaListCurrentClass='';
this.aMetaListCurrentAttributes='';
this.aMetaListNotCurrentClass='';
// dsp_folder.cfm
this.folderWrapperClass="";
// dsp_edit_profile.cfm
this.editProfileWrapperClass="";
this.editProfileFormClass="";
this.editProfileFormGroupWrapperClass=this.formFieldWrapperClass;
this.editProfileFieldLabelClass="";
this.editProfileFormFieldsWrapperClass="";
this.editProfileFormFieldsClass=this.formInputClass;
this.editProfileExtAttributeDownloadClass="";
this.editProfileHelpBlockClass="";
this.editProfileExtAttributeFileWrapperClass="";
this.editProfileExtAttributeDownloadClass="";
this.editProfileExtAttributeDownloadButtonClass=this.formButtonClass;
this.editProfileSubmitButtonWrapperClass="";
this.editProfileSubmitButtonClass="";
this.editProfileSuccessMessageClass=this.alertSuccessClass;
// dsp_email_dropdown.cfm
this.emailDropdownSelectClass="";
// dsp_event_reminder_form.cfm
this.eventReminderFormWrapperClass="";
this.eventReminderFormClass=this.generalWrapperClass;
this.eventReminderFieldWrapperClass="";
this.eventReminderFormLabelsClass=this.formFieldLabelClass;
this.eventReminderSubmitClass=this.formButtonClass;
// dsp_features.cfm
this.featuresWrapperClass="";
// dsp_feed.cfm
this.localIndexWrapperClass="";
this.remoteFeedWrapperClass="";
// dsp_login.cfm
this.loginWrapperClass="";
this.loginWrapperInnerClass="";
this.loginFormClass="";
this.forgotPasswordFormClass="";
this.loginFormGroupWrapperClass=this.formFieldWrapperClass;
this.loginFormFieldLabelClass="";
this.loginFormFieldWrapperClass="";
this.loginFormFieldClass=this.formInputClass;
this.loginFormPrefsClass="";
this.loginFormCheckboxClass="";
this.loginFormSubmitWrapperClass="";
this.loginFormSubmitClass=this.formButtonClass;
this.notRegisteredLinkClass="";
// dsp_mailing_list_master.cfm
this.mailingListWrapperClass=this.generalWrapperClass;
this.mailingListFormClass="f";
this.mailingListFormGroupWrapperClass=this.formFieldWrapperClass;
this.mailingListFormLabelClass="";
this.mailingListFormFieldWrapperClass="";
this.mailingListFormInputClass=this.formInputClass;
this.mailingListCheckboxWrapperClass="";
this.mailingListCheckboxClass="";
this.mailingListSubmitWrapperClass="";
this.mailingListSubmitClass=this.formButtonClass;
// dsp_nextN.cfm
this.nextNWrapperClass="";
this.nextNInnerClass="";
// dsp_search_form.cfm
this.searchFormClass="";
this.searchFormInputWrapperClass=this.formInputWrapperClass;
this.searchFormInputClass=this.formInputClass;
this.searchFormSubmitWrapperClass=this.formButtonInnerClass;
this.searchFormSubmitClass="";
// dsp_search_results.cfm
this.searchShowNumbers=0;
this.searchResultWrapperClass="";
this.searchResultInnerClass="";
this.searchResultsRowClass="";
this.searchResultsMoreResultsRowClass="";
this.searchResultsListClass="";
this.searchResultsPagerClass="";
this.searchAgainRowClass="";
this.searchAgainInnerClass="";
this.searchAgainFormClass="";
this.searchAgainInputWrapperClass=this.formInputWrapperClass;
this.searchAgainFormInputClass=this.formInputClass;
this.searchAgainButtonWrapperClass=this.formButtonInnerClass;
this.searchAgainSubmitClass=this.formButtonClass;
// dsp_user_tools.cfm
this.userToolsLoginWrapperClass="";
this.userToolsLoginFormClass="";
this.userToolsFormGroupWrapperClass=this.formFieldWrapperClass;
this.userToolsLoginFormLabelClass="";
this.userToolsLoginFormInputWrapperClass="";
this.userToolsLoginFormInputClass=this.formInputClass;
this.userToolsLoginFormFieldInnerClass="";
this.userToolsLoginFormCheckboxClass="";
this.userToolsLoginFormSubmitClass=this.formButtonClass;
this.userToolsNotRegisteredLinkClass="";
this.userToolsWrapperClass="";
this.userToolsEditProfileLinkClass="";
this.userToolsLogoutLinkClass="";
// formbuilder/dsp_form.cfm
this.formBuilderFieldWrapperClass=this.formFieldWrapperClass;
this.formBuilderButtonWrapperClass="";
this.formBuilderSubmitClass=this.formButtonClass;
// formbuilder/fields/dsp_checkbox.cfm
// formbuilder/fields/dsp_dropdown.cfm
// formbuilder/fields/dsp_file.cfm
// formbuilder/fields/dsp_radio.cfm
// formbuilder/fields/dsp_textfield.cfm
this.formBuilderFormFieldsClass=this.formInputClass;
// formbuilder/fields/field_dropdown.cfm
this.formBuilderTabHeaderClass="";
this.formBuilderDisabledInputClass="";
this.formBuilderCheckboxClass="";
// gallery/index.cfm
this.galleryWrapperClass="";
this.galleryULClass="";
this.galleryThumbnailClass="";
// nav/calendarNav/index.cfm
this.navCalendarWrapperClass="";
// nav/calendarNav/navTools.cfc
this.navCalendarTableClass="";
// nav/dsp_sequential.cfm
this.navSequentialWrapperClass="";
this.navSequentialULClass="";
// nav/dsp_tag_cloud.cfm
this.tagCloudWrapperClass="";
// navArchive
//this.navArchiveWrapperClass="";
//this.navArchiveListClass="";
// navBreadcrumb
this.navBreadcrumbULClass="";
this.liBreadcrumbCurrentClass="";
this.liBreadcrumbNotCurrentClass="";
this.aBreadcrumbCurrentClass="";
this.aBreadcrumbNotCurrentClass="";
// rater/index.cfm
this.raterObjectWrapperClass="";
this.raterWrapperClass="";
this.avgRatingWrapperClass="";
//7.1
this.navPrevDecoration="";
this.navNextDecoration="";
this.userFavoritesWrapperClass="";
this.pageToolsWrapperClass="";
</cfscript>
</cfcomponent>