This file contains 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
-webkit-border-radius: .5em; | |
-moz-border-radius: .5em; | |
border-radius: .5em; |
This file contains 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
// CMSMS tag - Forces a CMS Made Simple page to use https | |
if(emptyempty($_SERVER['HTTPS'])) | |
{ | |
// If not, redirect | |
$newurl = 'https://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']; | |
header("location: $newurl"); | |
exit(); | |
} |
This file contains 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
//Appends a class to each designated element by pulling it from a tag attribute. | |
jQuery.fn.attrToClass = function(attribute) { | |
$(this).each( | |
function(intIndex){ | |
$(this).addClass($(this).attr(attribute)); | |
}); | |
}; | |
$(document).ready(function(){ | |
// designate the tag and the attribute to be extracted |