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 | |
// ADDING A CLASS TO THE BODY TAG | |
function page_bodyclass( $classes ){ | |
if( is_singular() ) { | |
global $post; | |
$parent = get_page($post->post_parent); | |
array_push( $classes, "{$post->post_type}-{$post->post_name}" ); | |
array_push( $classes, "{$post->post_type}-parent-{$parent->post_name}" ); | |
} | |
return $classes; |
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
<!doctype html> | |
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" <?php language_attributes(); ?>> <![endif]--> | |
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" <?php language_attributes(); ?>> <![endif]--> | |
<!--[if IE 8]> <html class="no-js lt-ie9" <?php language_attributes(); ?>> <![endif]--> | |
<!--[if gt IE 8]><!--> <html class="no-js" <?php language_attributes(); ?>> <!--<![endif]--> | |
<head> | |
<meta charset="<?php bloginfo( 'charset' ); ?>" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<title> | |
<?php |
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
<h3 class="showhide">» <a href="javascript:void(0)">Our Volunteers Make Us Strong</a></h3> | |
<div class="hidden" style="display: none;"> | |
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod | |
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, | |
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo | |
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse | |
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non | |
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p> | |
</div> |
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
<!-- BANNER SLIDER --> | |
<div id="branding-area"> | |
<div class="banners"> | |
<?php | |
$loop = new WP_Query(array( | |
'post_type' => 'brandingslides', | |
'post_status' => 'publish', | |
'numberposts' => 4, | |
'posts_per_page' => -1, | |
'orderby'=> 'ASC' |
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
//remove empty p tags | |
$("p").filter(function () { | |
return $.trim($(this).html()) == ''; | |
}).remove(); |
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
// text resizing feature | |
$(".text-size").on('click','a',function(){ | |
var $this = $(this), | |
$body = $("body").eq(0); | |
if($this.hasClass("small")){ | |
$body.addClass("small").removeClass("large normal"); | |
} | |
else if($this.hasClass("normal")){ | |
$body.addClass("normal").removeClass("large small"); |
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
/************************** | |
YUI Fonts Conversions | |
10px = 77% | |
11px = 85% | |
12px = 93% | |
13px = 100% | |
14px = 108% | |
15px = 116% | |
16px = 123.1% | |
17px = 131% |
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 CodepadShortcode() { | |
return '<p>I love Codepad!</p>'; | |
} | |
add_shortcode('codepad', 'CodepadShortcode'); |
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
<object width="100%" height="315"> | |
<param name="movie" value="URL-VIDEO&ap=%2526fmt%3D18?version=3&hl=en_US&showinfo=0&autohide=1"> | |
<param name="allowFullScreen" value="true"> | |
<param name="allowscriptaccess" value="always"><embed src="URL-VIDEO&ap=%2526fmt%3D18?version=3&hl=en_US&showinfo=0&autohide=1" type="application/x-shockwave-flash" width="100%" height="315" allowscriptaccess="always" allowfullscreen="true"></object> |
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
/************************************ | |
HTML5 RESET BOILERPLATE | |
************************************/ | |
article, aside, details, figcaption, figure, footer, header, hgroup, nav, section { display: block; } | |
audio, canvas, video { display: inline-block; *display: inline; *zoom: 1; } | |
audio:not([controls]) { display: none; } | |
[hidden] { display: none; } | |
html { font-size: 100%; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; } | |
html, button, input, select, textarea { font-family: sans-serif; color: #222; } | |
body { margin: 0; font-size: 1em; line-height: 1.4; } |