Skip to content

Instantly share code, notes, and snippets.

View muracms's full-sized avatar

Mura muracms

View GitHub Profile
// code snippet 2
public any function setSomething($) {
return true;
}
// here's a comment
public any function doSomething($) {
return true;
}
@muracms
muracms / eventHandler.cfc
Created April 30, 2014 23:23
Override the body output of a Mura content node
<!--- Change "PageDefault" to the {type}{subType} of your class extension --->
<cffunction name="onPageDefaultBodyRender" access="public" output="true" returntype="any">
<cfargument name="$" hint="mura scope" />
<!--- Do Something --->
</cffunction>
@muracms
muracms / bootstrap2settings.cfm
Created January 30, 2014 23:50
Mura Bootstrap 2 theme contentRenderer.cfc settings
this.alertSuccessClass = "";
this.alertInfoClass = "alert alert-info";
this.alertWarningClass = "alert alert-warning";
this.alertDangerClass = "alert alert-danger";
//Display Objects
//Use these variables to pass-in specific classes without having to create custom versions
//calendar/dsp_showMonth.cfm
this.calendarWrapperClass="";
<cfscript>
// dsp_login.cfm
this.loginWrapperClass="";
this.loginWrapperInnerClass="row";
this.loginFormClass="form-horizontal form-signin";
this.forgotPasswordFormClass="form-horizontal form-sendlogin";
this.loginFormGroupWrapperClass=this.formFieldWrapperClass;
this.loginFormFieldLabelClass="control-label col-lg-3";
this.loginFormFieldWrapperClass="col-lg-9";
this.loginFormFieldClass=this.formInputClass;
/{SiteID}/includes/themes/MuraBootstrap/display_objects/custom/extensions/dsp_Page_Bio.cfm
<cfif $.content('bioDisplayType') eq 'tabs'>
<cfinclude template="../page_bio/tabs.cfm">
<cfelse>
<cfinclude template="../page_bio/accordion.cfm">
</cfif>
/css/{your css files would be in here}
/js/{your JavaScript files would be here}
index.html