This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function() { | |
| var isSet = function(val) { | |
| return val !== null && val !== ''; | |
| }; | |
| var el = {{element}}; | |
| var val = ( isSet(el.getAttribute('data-label')) ? el.getAttribute('data-label') : el.text ); | |
| while (el && el !== document.body && !isSet(val)) { | |
| el = el.parentElement; | |
| val = el.getAttribute('data-label'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <cffunction name="phoneFormat"> | |
| <cfargument name="phoneNumber"> | |
| <cfset areacode = left(phoneNumber, 3)> | |
| <cfset firstthree = mid(phoneNumber, 4, 3)> | |
| <cfset lastfour = right(phoneNumber, 4)> | |
| <cfreturn "(#areacode#) #firstthree#-#lastFour#"> | |
| </cffunction> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #* | |
| This page serves as a template and guide to developing and/or editing new shortcodes | |
| Shortcodes should all be stored inside of: _cms/macros/shortcodes/{name} | |
| The shortcode, file and macro names should match exactly. The name is used as a check to: | |
| 1. Import the macro file | |
| 2. "Name" the macro itself | |
| 3. Trigger a check for which macro to run (inside of do_shortcode) | |
| i.e. #macro form ; shortcode is [form id=""]; filename is form | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| ini_set('display_errors', 1); | |
| ini_set('display_startup_errors', 1); | |
| error_reporting(E_ALL); | |
| $_SERVER['CASCADE_URI'] = ''; | |
| $_SERVER['CASCADE_USER'] = ''; | |
| $_SERVER['CASCADE_PASS'] = ''; |
OlderNewer