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
<?php | |
$testimeta = get_post_custom($testimq->post->ID); | |
if ( $testimeta['s25_testim_cred'][0] !='' ) { $cred = ', '. $testimeta['s25_testim_cred'][0]; } else { $cred = ''; } | |
echo '<div class="entry-content">'. wpautop( get_the_content($testimq->post->ID), true ) .'</div>'; | |
echo '<p class="attrib"><em>– '. get_the_title($testimq->post->ID) . $cred .'</em></p>'; | |
echo '</div>'; | |
} |
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
<?php | |
function s25_full_bg() { | |
$pgmeta = get_post_custom(); | |
$pgbg = $pgmeta['s25_bg_image'][0]; | |
if ( !is_null( $pgbg ) ) : | |
echo '<style type="text/css">body{background-image:none !important;background-color:#000 !important;}</style>'; | |
echo '<div class="lpage_bg" style="position:fixed;left:0;top:0;width:100%;height:100%;z-index:-1;background: #ccc url('. $pgbg .') no-repeat fixed center center;-webkit-background-size: cover;-moz-background-size: cover;-o-background-size: cover;background-size: cover;filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'. $pgbg .'", sizingMethod=\'scale\');-ms-filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'. $pgbg .'", sizingMethod=\'scale\')";> </div>'; | |
echo '<!--[if IE 8 ]> |
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
<?php | |
function namespace_add_custom_types( $query ) { | |
if( is_tag() && empty( $query->query_vars['suppress_filters'] ) ) { | |
$post_type = get_query_var('post_type'); | |
if($post_type) | |
$post_type = $post_type; | |
else | |
$post_type = array( 'post', 'case_study','solution_sheet','white_paper' ); | |
$query->set( 'post_type', $post_type ); | |
return $query; |
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
<?php | |
/** | |
* [short_title description] | |
* @param $postid the ID of the $post object | |
* @param $length How long the title should be | |
* @return Post / Page title shortened to the number of characters in $length | |
* Usage: short_title( $postid, 45 ); | |
*/ | |
function short_title( $postid,$length) { | |
global $post; |
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
jQuery(document).ready(function($){ | |
$('h2.title').html(function(){ | |
// separate the text by spaces | |
var text= $(this).text().split(' '); | |
// drop the last word and store it in a variable | |
var last = text.pop(); | |
// join the text back and if it has more than 1 word add the span tag | |
// to the last word | |
return text.join(" ") + (text.length > 0 ? ' <span class="last">'+last+'</span>' : last); |
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
/** | |
* | |
* Add Google Webfonts | |
*/ | |
add_action('wp_head','s25_webfont_load'); | |
function s25_webfont_load() { | |
echo '<link href="//fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic,700italic|Archivo+Black" rel="stylesheet" type="text/css" />'; | |
} |
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
<?php | |
/** | |
* | |
* Customize Post Info on a specific multi-site blog | |
* | |
* http://wordpress.org/support/topic/how-to-get-current-site-blog-id?replies=9#post-1610948 | |
* http://my.studiopress.com/snippets/post-info/#customize | |
*/ | |
add_filter( 'genesis_post_info', 'post_info_filter' ); |
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
<?php | |
/** | |
* | |
* Remove Default Credits Text in StudioPress Child Themes | |
*/ | |
add_filter( 'genesis_footer_creds_text', 'custom_footer_creds_text' ); | |
function custom_footer_creds_text() { | |
echo ''; | |
} |