Skip to content

Instantly share code, notes, and snippets.

View kellybell's full-sized avatar

Kelly Bell kellybell

View GitHub Profile
@kellybell
kellybell / clockingIt.css
Created July 19, 2011 19:47 — forked from wemakeweb/clockingIt.css
clockingIt - simple & clean
/* for firefox stylish addon */
.content_body{
border:1px solid rgba(0,0,0,0.15);
padding-top: 1px !important;
padding-left:1px;
}
#main-table{
padding-top:5px;
}
#globalMenu {background:none !important; border:none !important}
@kellybell
kellybell / settings.php redirect for Pantheon sites
Created April 26, 2012 02:08
Pantheon settings.php URL normalizing code - rewrites www.sitename.com to sitename.com
if (isset($_SERVER['PANTHEON_ENVIRONMENT']) &&
$_SERVER['PANTHEON_ENVIRONMENT'] === 'live') {
if ( $_SERVER['HTTP_HOST'] == 'live.SITENAME.gotpantheon.com' ||
$_SERVER['HTTP_HOST'] == 'www.SITENAME.com') {
header('HTTP/1.0 301 Moved Permanently');
header('Location: http://SITENAME.com'. $_SERVER['REQUEST_URI']);
exit();
}
}