Anthony Eggert stylephreak

View CSS3 Rounded Corners
1 2 3
-webkit-border-radius: .5em;
-moz-border-radius: .5em;
border-radius: .5em;
View tag.forceHttps
1 2 3 4 5 6 7 8
// 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();
}
View jQuery.fn.attrToClass
1 2 3 4 5 6 7 8 9 10
//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
Something went wrong with that request. Please try again.