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
if ($gs_theme_support_functions['three']) { | |
$gs_structural_wrap = of_get_option('gs_structural_wraps', 'none' ); | |
add_theme_support( 'genesis-structural-wraps', array_keys($gs_structural_wrap, 1) ); | |
} |
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 | |
add_action( 'genesis_after_header', 'sf_featured_slideshow' ); | |
/** | |
* Add slide show widget area after the header. | |
* | |
* @author Sure Fire Web Services | |
* @link http://surefirewebservices.com/?p=1542 | |
* | |
* @return Return null if not the homepage post. | |
*/ |
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
$("#submit").click(function() { | |
$.post("add.php", $("#addform").serialize()); | |
}); |
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
@import url(http://fonts.googleapis.com/css?family=Open+Sans:400,700); | |
body, | |
h1, | |
h2, | |
h2 a, | |
h2 a:visited, | |
h3, | |
h4, |
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 | |
$thisPage = $_SERVER["REQUEST_URI"]; | |
function get_page_name ( $page ) | |
{ | |
$array = explode( "/", $page ); | |
for ( $i = 0; $i < count( $array ); $i++ ) | |
{ | |
$name = $array[ $i ]; | |
} |
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 | |
/** Remove ?ver=xxx from styles and scripts */ | |
function remove_cssjs_ver( $src ) { | |
if( strpos( $src, '?ver=' ) ) | |
$src = remove_query_arg( 'ver', $src ); | |
return $src; | |
} | |
add_filter( 'style_loader_src', 'remove_cssjs_ver', 10, 2 ); |
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
/* Table of Contents | |
01 Import Fonts | |
02 Base Styles | |
Defaults | |
Wraps | |
Containers and Columns | |
Entry Content Structure | |
Headings and Titles | |
-- Layout -- |
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 | |
global $post; | |
$lookup = array( | |
// category ID => ad ID | |
'1084' => '600', | |
'1085' => '601', | |
'1095' => '602', | |
'1086' => '603', |
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 | |
/** Edit read more link */ | |
add_filter( 'excerpt_more', 'sf_read_more_link' ); | |
add_filter( 'get_the_content_more_link', 'sf_read_more_link' ); | |
add_filter( 'the_content_more_link', 'sf_read_more_link' ); | |
function sf_read_more_link() { | |
return '<a class="more-link" href="' . get_permalink() . '" rel="nofollow">Read More</a>'; | |
} |
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 | |
add_action('genesis_before_post_title', 'sfws_homepage_teaser_image'); | |
/** | |
* Adds Images to Posts in Grid | |
* | |
* Takes the amount of posts and applies the right size image, whether it's a featured post or a grid block post. | |
* | |
* @category Grid Loop | |
* @author Jonathan Perez, SureFireWebServices <[email protected]> |
OlderNewer