-
Notifications
You must be signed in to change notification settings - Fork 9
/
contentRenderer.cfc
executable file
·624 lines (531 loc) · 22.9 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
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
<!---
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>
// GENERAL
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='<i class="mura-preloader fa fa-refresh fa-spin"></i>';
// nav and list item vars
this.navWrapperClass = "mura-nav bg-light p-3 mb-5 border rounded";
this.navWrapperBodyClass = "";
this.navLIClass = "nav-item";
this.liHasKidsClass = "";
this.liHasKidsCustomString = "";
this.liCurrentClass = "";
this.liCurrentCustomString = "";
this.aNotCurrentClass = "nav-link";
this.aHasKidsClass = "";
this.aHasKidsCustomString = "";
this.aCurrentClass = "nav-link active";
this.aCurrentCustomString = "";
this.ulTopClass = "nav flex-column";
this.ulNestedClass = "nav flex-column ml-3 bl-1";
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=true;
// pagination vars
this.ulPaginationClass="pagination";
this.ulPaginationWrapperClass="";
this.liPaginationCurrentClass="page-item active";
this.liPaginationNotCurrentClass="page-item";
this.aPaginationCurrentClass="page-link";
this.aPaginationNotCurrentClass="page-link";
//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 = "form-group";
this.formFieldLabelClass = "control-label";
this.formInputWrapperClass = "input-group";
this.formInputClass ="form-control";
this.formGeneralControlClass = "form-control";
this.formInputClass=this.formGeneralControlClass;
this.formSelectClass = this.formGeneralControlClass;
this.formTextareaClass = this.formGeneralControlClass;
this.formFileClass = this.formGeneralControlClass;
this.formCheckboxClass = "form-check-input";
this.formCheckboxLabelClass = "form-check-label";
this.formCheckboxWrapperClass = "form-check";
this.formRadioClass = "form-check-input";
this.formRadioLabelClass = "form-check-label";
this.formRadioWrapperClass = "form-check";
this.formButtonWrapperClass = "btn-group";
this.formButtonInnerClass="";
this.formButtonClass = "btn btn-primary";
this.formRequiredWrapperClass="";
this.formButtomSubmitclass = "form-submit btn btn-primary";
this.formButtonSubmitLabel = "Submit";
this.formButtonNextClass = "form-nav";
this.formButtonNextLabel = "Next";
this.formButtonBackClass = "form-nav";
this.formButtonBackLabel = "Back";
this.formButtonCancelLabel = "Cancel";
this.formButtonCancelClass = "form-cancel btn btn-danger";
// images
this.imageClass="img-thumbnail";
// tables
this.tableClass = "table table-bordered table-striped";
this.tableHeadClass = "";
this.tableHeaderClass = "";
this.tableBodyClass = "";
this.tableRowClass = "";
this.tableCellClass = "";
this.tableFooterClass = "";
// alerts
this.alertSuccessClass = "alert alert-success";
this.alertInfoClass = "alert alert-info";
this.alertWarningClass = "alert alert-warning";
this.alertDangerClass = "alert alert-danger";
// 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="bg-light p-3 mb-5 border rounded";
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="btn btn-primary";
this.commentMoreCommentsDownClass="btn btn-primary";
this.commentMoreCommentsContainer="";
this.commentRequiredWrapperClass="";
this.commentThumbClass="img-thumbnail";
this.commentSpamClass="";
this.commentSpamLinkClass="";
this.commentClass="";
this.commentDateTimeClass="";
this.commentReplyClass="";
this.commentAwaitingApproval="";
this.commentAdminButtonWrapperClass="btn-group pull-right";
this.commentUserEmailClass="btn btn-default btn-sm";
this.commentDeleteButtonClass="btn btn-default btn-sm";
this.commentEditButtonClass="btn btn-default btn-sm";
this.commentApproveButtonClass="btn btn-default btn-sm";
// 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="dl-horizontal";
// dataresponses/dsp_list.cfm
this.dataResponseTableClass="table table-hover";
this.dataResponsePaginationClass=this.ulPaginationClass;
// draggablefeeds/index.cfm
this.draggableBoxWrapperClass="row";
this.draggableBoxHeaderClass="col-lg-12";
this.draggableBoxRSSWrapperClass="";
this.draggableBoxHeaderButtonClass=this.formButtonClass;
//this.draggableBoxRSSeditFormClass="";
this.draggableBoxAddFeedWrapperClass="";
this.draggableBoxNewFeedFormClass="form-horizontal";
this.draggableBoxSelectFeedWrapperClass="col-lg-6";
this.draggableBoxSelectFeedRowClass="row";
this.draggableBoxSelectFeedMenuClass=this.formFieldWrapperClass;
this.draggableBoxSelectFeedMenuDivClass="col-lg-10";
this.draggableFeedMenuSelectFieldClass=this.formInputClass;
this.addFeedButtonWrapperDivClass=this.formFieldWrapperClass;
this.addFeedButtonWrapperDivInnerClass="col-lg-2";
this.addFeedButtonClass=this.formButtonClass;
// dsp_categories_nest.cfm
this.categoriesNestCheckboxClass="checkbox";
// 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="form-horizontal";
this.editProfileFormGroupWrapperClass=this.formFieldWrapperClass;
this.editProfileFieldLabelClass="control-label";
this.editProfileFormFieldsWrapperClass="";
this.editProfileFormFieldsClass=this.formInputClass;
this.editProfileExtAttributeDownloadClass="";
this.editProfileHelpBlockClass="";
this.editProfileExtAttributeFileWrapperClass="";
this.editProfileExtAttributeDownloadClass="";
this.editProfileExtAttributeDownloadButtonClass=this.formButtonClass;
this.editProfileSubmitButtonWrapperClass="";
this.editProfileSubmitButtonClass="btn btn-primary";
this.editProfileSuccessMessageClass=this.alertSuccessClass;
// dsp_email_dropdown.cfm
this.emailDropdownSelectClass="dropdown";
// 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="form-horizontal form-signin";
this.forgotPasswordFormClass="form-horizontal form-sendlogin";
this.loginFormGroupWrapperClass=this.formFieldWrapperClass;
this.loginFormFieldLabelClass="control-label";
this.loginFormFieldWrapperClass="";
this.loginFormFieldClass=this.formInputClass;
this.loginFormPrefsClass="";
this.loginFormCheckboxClass="checkbox";
this.loginFormSubmitWrapperClass="";
this.loginFormSubmitClass=this.formButtonClass;
this.notRegisteredLinkClass="btn btn-primary";
// dsp_mailing_list_master.cfm
this.mailingListWrapperClass=this.generalWrapperClass;
this.mailingListFormClass="form-horizontal";
this.mailingListFormGroupWrapperClass=this.formFieldWrapperClass;
this.mailingListFormLabelClass="control-label col-lg-2";
this.mailingListFormFieldWrapperClass="col-lg-10";
this.mailingListFormInputClass=this.formInputClass;
this.mailingListCheckboxWrapperClass="col-lg-offset-2 col-lg-10";
this.mailingListCheckboxClass="checkbox";
this.mailingListSubmitWrapperClass="col-lg-offset-2 col-lg-10";
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="btn btn-primary";
// dsp_search_results.cfm
this.searchShowNumbers=0;
this.searchResultWrapperClass="";
this.searchResultInnerClass="lead";
this.searchResultsRowClass="";
this.searchResultsMoreResultsRowClass="bg-light py-2 px-3 mb-3 border rounded";
this.searchResultsListClass="";
this.searchResultsPagerClass="pager";
this.searchAgainRowClass="card";
this.searchAgainInnerClass="card-body";
this.searchAgainFormClass="navbar-form";
this.searchAgainInputWrapperClass=this.formInputWrapperClass;
this.searchAgainFormInputClass=this.formInputClass;
this.searchAgainButtonWrapperClass=this.formButtonInnerClass;
this.searchAgainSubmitClass=this.formButtonClass;
// dsp_user_tools.cfm
this.userToolsLoginWrapperClass="bg-light p-3 mb-5 border rounded";
this.userToolsLoginFormClass="";
this.userToolsFormGroupWrapperClass=this.formFieldWrapperClass;
this.userToolsLoginFormLabelClass="control-label";
this.userToolsLoginFormInputWrapperClass="";
this.userToolsLoginFormInputClass=this.formInputClass;
this.userToolsLoginFormFieldInnerClass="";
this.userToolsLoginFormCheckboxClass="checkbox";
this.userToolsLoginFormSubmitClass=this.formButtonClass;
this.userToolsNotRegisteredLinkClass="btn btn-primary";
this.userToolsWrapperClass="bg-light p-3 mb-5 border rounded";
this.userToolsEditProfileLinkClass="btn btn-primary";
this.userToolsLogoutLinkClass="btn btn-primary";
// 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="dropdown";
this.formBuilderDisabledInputClass="disabled";
this.formBuilderCheckboxClass="checkbox";
// gallery/index.cfm
this.galleryWrapperClass="";
this.galleryULClass="clearfix";
this.galleryThumbnailClass="thumbnail";
// nav/calendarNav/index.cfm
this.navCalendarWrapperClass="";
// nav/calendarNav/navTools.cfc
this.navCalendarTableClass="table table-bordered";
// nav/dsp_sequential.cfm
this.navSequentialWrapperClass="";
this.navSequentialULClass="";
// nav/dsp_tag_cloud.cfm
this.tagCloudWrapperClass="bg-light p-3 mb-5 border rounded";
// navArchive
//this.navArchiveWrapperClass="";
//this.navArchiveListClass="";
// navBreadcrumb
this.navBreadcrumbULClass="breadcrumb";
this.liBreadcrumbCurrentClass="breadcrumb-item active";
this.liBreadcrumbNotCurrentClass="breadcrumb-item";
this.aBreadcrumbCurrentClass="";
this.aBreadcrumbNotCurrentClass="";
// rater/index.cfm
this.raterObjectWrapperClass="";
this.raterWrapperClass="";
this.avgRatingWrapperClass="";
//7.1
this.navPrevDecoration="";
this.navNextDecoration="";
this.userFavoritesWrapperClass="bg-light p-3 mb-5 border rounded";
this.pageToolsWrapperClass="bg-light p-3 mb-5 border rounded";
</cfscript>
<cffunction name="dspCarouselByFeedName" output="false">
<cfargument name="feedName" type="string" default="Slideshow" />
<cfargument name="showCaption" type="boolean" default="true" />
<cfargument name="cssID" type="string" default="myCarousel" />
<cfargument name="size" type="string" default="custom" hint="If you want to use a custom height/width, then use 'custom' ... otherwise, you can use 'small, medium, large' OR any other predefined custom image size 'name' you created via the back-end administrator." />
<cfargument name="width" type="numeric" default="1280" hint="width in pixels" />
<cfargument name="height" type="numeric" default="500" hint="height in pixels" />
<cfargument name="interval" type="any" default="5000" hint="Use either milliseconds OR use 'false' to NOT auto-advance to next slide." />
<cfargument name="autoStart" type="boolean" default="true" />
<cfargument name="showIndicators" type="boolean" default="true" />
<cfscript>
var local = {};
local.imageArgs = {};
if ( not ListFindNoCase('small,medium,large,custom', arguments.size) and variables.$.getBean('imageSize').loadBy(name=arguments.size,siteID=variables.$.event('siteID')).getIsNew() ) {
arguments.size = 'custom';
};
if ( not Len(Trim(arguments.size)) or LCase(arguments.size) eq 'custom' ) {
local.imageArgs.width = Val(arguments.width);
local.imageArgs.height = Val(arguments.height);
} else {
local.imageArgs.size = arguments.size;
};
</cfscript>
<cfsavecontent variable="local.str">
<cfoutput>
<!--- BEGIN: Bootstrap Carousel --->
<!--- IMPORTANT: This will only output items that have associated images --->
<cfset local.feed = variables.$.getBean('feed').loadBy(name=arguments.feedName)>
<cfset local.iterator = local.feed.getIterator()>
<cfif local.feed.getIsNew()>
<div class="alert alert-warning alert-dismissible fade show" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
The <strong>#HTMLEditFormat(arguments.feedName)#</strong> Content Collection/Local Index does not exist.
</div>
<cfelseif local.iterator.hasNext()>
<div id="#arguments.cssID#" class="carousel slide" data-ride="carousel" data-interval="#arguments.interval#">
<!--- Indicators --->
<cfif arguments.showIndicators>
<ol class="carousel-indicators">
<cfset local.iterator.reset()>
<cfset local.idx = 0>
<cfloop condition="local.iterator.hasNext()">
<cfset local.item=iterator.next()>
<cfif ListFindNoCase('jpg,jpeg,gif,png', ListLast(local.item.getImageURL(), '.'))>
<li data-target="###arguments.cssID#" data-slide-to="#idx#" class="<cfif local.idx eq 0>active</cfif>"></li>
<cfset local.idx++>
</cfif>
</cfloop>
</ol>
</cfif>
<!--- Wrapper for slides --->
<div class="carousel-inner">
<cfset local.iterator.reset()>
<cfset local.idx = 0>
<cfloop condition="local.iterator.hasNext()">
<cfset local.item=iterator.next()>
<cfif ListFindNoCase('jpg,jpeg,gif,png', ListLast(local.item.getImageURL(), '.'))>
<div class="carousel-item<cfif local.idx eq 0> active</cfif>">
<img src="#local.item.getImageURL(argumentCollection=local.imageArgs)#" alt="#HTMLEditFormat(local.item.getTitle())#" class="d-block w-100">
<cfif arguments.showCaption>
<div class="carousel-caption d-none d-md-block p-md-5">
<div class="container">
<h3><a href="#local.item.getURL()#">#HTMLEditFormat(local.item.getTitle())#</a></h3>
#local.item.getSummary()#
<a class="btn btn-primary btn-sm mb-2" href="#local.item.getURL()#">Read More</a>
</div>
</div>
</cfif>
</div>
<cfset local.idx++>
</cfif>
</cfloop>
</div>
<cfif local.idx>
<!--- Controls --->
<cfif local.idx gt 1>
<a class="carousel-control-prev" href="###arguments.cssID#" role="button" data-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href="###arguments.cssID#" role="button" data-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
<!--- AutoStart --->
<cfif arguments.autoStart>
<script>jQuery(document).ready(function($){$('###arguments.cssID#').carousel({interval:#arguments.interval#});});</script>
</cfif>
</cfif>
<cfelse>
<div class="alert alert-warning alert-dismissible fade show" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
Your feed has no items <em>with images</em>.
</div>
</cfif>
</div>
<cfelse>
<div class="alert alert-warning alert-dismissible fade show" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<strong>Heads up!</strong> Your feed has no items.
</div>
</cfif>
</cfoutput>
</cfsavecontent>
<cfreturn local.str />
</cffunction>
<cffunction name="dspPrimaryNavKids">
<cfset var returnString="">
<cfset var kids=getFeed('content').set(
arguments
).getIterator()>
<cfset var kid="">
<cfset var started=false>
<cfif kids.hasNext()>
<cfsavecontent variable="returnString">
<cfoutput>
<div class="dropdown-menu">
<cfloop condition="kids.hasNext()">
<cfset kid=kids.next()>
<cfif allowLink(kid.getRestricted(),kid.getRestrictGroups(),m.event('r').loggedIn)>
<cfset started=true>
<a class="dropdown-item" href="#kid.getURL()#">#esapiEncode('html',kid.getMenuTitle())#</a>
</cfif>
</cfloop>
</div>
</cfoutput>
</cfsavecontent>
</cfif>
<cfif started>
<cfreturn returnString>
<cfelse>
<cfreturn "">
</cfif>
</cffunction>
</cfcomponent>