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
$(document).ready(function() { | |
$("body").css("display", "none"); | |
$("body").fadeIn(1000); | |
}); |
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 | |
if (! defined('ABSPATH')) | |
die('Please do not directly access this file'); | |
include_once(TEMPLATEPATH . '/functions.php'); | |
class ten0nine_child_theme extends thesis_custom_loop { | |
public function __construct() { | |
// run the parent constructor so we can access the thesis custom loop api |
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
/* | |
* This file adds a feature box of social share icons to the Thesis Theme. | |
* The code compliments my personal Facebook Open Graph Tags Plugin | |
* The Google+ and pinterest javascript needs to be inserted into the Thesis Design Options prior | |
*/ | |
function get_featured_social_share() { | |
//choose which pages the social share buttons will feature on | |
if (!is_front_page() && !is_page(array('contact','about')) && !is_404()){ | |
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
/* Customize the comment intro text */ | |
function comment_intro_replace($text) { | |
return $text='Don\'t be shy, <a href="#commentform">add one of your own</a>'; | |
} | |
add_filter('thesis_comments_intro','comment_intro_replace'); |
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
/* Customise the comment intro if there were comments or not */ | |
function comment_intro_replace($text) { | |
global $wp_query; | |
$number = (int) count($wp_query->comments_by_type['comment']); | |
if ($number == 0) | |
$text = ''; | |
return $text; | |
} | |
add_filter('thesis_comments_intro','comment_intro_replace'); |
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
/* Edit the closed comments message */ | |
function no_closed_msg($text) { | |
return $text=''; | |
} | |
add_filter('thesis_comments_intro_closed','no_closed_msg'); |
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
function custom_excerpt_read_more_link() { ?> | |
<div class="custom-read-more"><a href="<?php the_permalink(); ?>"> Read More...</a></div> | |
<?php } | |
add_action ('thesis_hook_post_box_thesis_post_bottom' , 'custom_excerpt_read_more_link'); |
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_filter('widget_posts_args', 'widget_posts_args_add_custom_type'); | |
function widget_posts_args_add_custom_type($params) { | |
$params['tax_query'] = array( | |
array( | |
'taxonomy' => 'thesis_content', | |
'field' => 'slug', | |
'terms' => array( 'classic-skin', 'pearsonified-skin' ) | |
) | |
/*, | |
array( |
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_filter('widget_posts_args', 'widget_posts_args_add_custom_type'); | |
function widget_posts_args_add_custom_type($params) { | |
$params['post_type'] = array('post', 'custom_post'); | |
return $params; | |
} |
OlderNewer