Example #1
0
						<!-- #image-navigation -->

					</div>
					<!-- .entry-content -->

					<?php 
    independent_publisher_posted_author_bottom_card();
    ?>

					<footer class="entry-meta">
						<?php 
    do_action('independent_publisher_entry_meta_top');
    ?>

						<?php 
    if (comments_open() && !independent_publisher_hide_comments()) {
        ?>
							<div id="share-comment-button">
								<button>
									<i class="share-comment-icon"></i><?php 
        echo independent_publisher_comments_call_to_action_text();
        ?>
								</button>
							</div>
						<?php 
    }
    ?>

						<?php 
    edit_post_link(__('Edit', 'independent-publisher'), '<span class="edit-link">', '</span>');
    ?>
 /**
  * Returns post date formatted for display in theme
  * @return string
  */
 function independent_publisher_get_post_date()
 {
     if (comments_open() && !independent_publisher_hide_comments() || independent_publisher_show_post_word_count() && !get_post_format()) {
         $separator = ' <span class="sep"> ' . apply_filters('independent_publisher_entry_meta_separator', '|') . ' </span>';
     } else {
         $separator = '';
     }
     return independent_publisher_posted_on_date() . $separator;
 }
/**
 * Enqueue scripts and styles
 */
function independent_publisher_scripts()
{
    global $post;
    wp_enqueue_style('genericons', get_stylesheet_directory_uri() . '/fonts/genericons/genericons.css', array(), '3.1');
    wp_enqueue_script('independent-publisher-skip-link-focus-fix', get_stylesheet_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20130115', true);
    if (independent_publisher_page_load_progress_bar_enabled()) {
        wp_enqueue_style('nprogress', get_stylesheet_directory_uri() . '/css/nprogress.css', array(), '0.1.3');
        wp_enqueue_script('nprogress', get_stylesheet_directory_uri() . '/js/nprogress.js', array(), '0.1.3');
    }
    if (is_singular() && comments_open() && get_option('thread_comments') && !independent_publisher_hide_comments()) {
        wp_enqueue_script('comment-reply');
    }
    if (is_singular() && wp_attachment_is_image($post->ID)) {
        wp_enqueue_script('keyboard-image-navigation', get_stylesheet_directory_uri() . '/js/keyboard-image-navigation.js', array('jquery'), '20120202');
    }
    if (is_singular()) {
        wp_enqueue_script('fade-post-title', get_stylesheet_directory_uri() . '/js/fade-post-title.js', array('jquery'));
    }
    /**
     * Load JetPack Sharing Buttons Style Enhancements
     */
    independent_publisher_jetpack_sharing_css();
    /**
     * Load JetPack Sharing Buttons blank Sharing Label Enhancement
     */
    independent_publisher_jetpack_sharing_label_css();
    /**
     * Load JetPack Infinite Scroll Dark Overlay Bug Fix
     */
    independent_publisher_jetpack_dark_overlay_fix_css();
}
Example #4
0
/**
 * Enqueue scripts and styles
 */
function independent_publisher_scripts()
{
    global $post;
    global $pageBodyID;
    wp_enqueue_style('genericons', get_template_directory_uri() . '/fonts/genericons/genericons.css', array(), '3.1');
    wp_enqueue_script('independent-publisher-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20130115', true);
    if (independent_publisher_page_load_progress_bar_enabled()) {
        wp_enqueue_style('nprogress', get_template_directory_uri() . '/css/nprogress.css', array(), '0.1.3');
        wp_enqueue_script('nprogress', get_template_directory_uri() . '/js/nprogress.js', array(), '0.1.3');
    }
    if ((is_singular() || $pageBodyID == "newsletter") && comments_open() && get_option('thread_comments') && !independent_publisher_hide_comments()) {
        wp_enqueue_script('comment-reply');
    }
    if ((is_singular() || $pageBodyID == "newsletter") && wp_attachment_is_image($post->ID)) {
        wp_enqueue_script('keyboard-image-navigation', get_template_directory_uri() . '/js/keyboard-image-navigation.js', array('jquery'), '20120202');
    }
    if (is_singular() || $pageBodyID == "newsletter") {
        wp_enqueue_script('fade-post-title', get_template_directory_uri() . '/js/fade-post-title.js', array('jquery'));
    }
    //if ( is_singular() ) {
    wp_enqueue_script('oddiCustom', get_template_directory_uri() . '/js/oddiCustom.js', array('jquery'));
    wp_enqueue_script('jsCookie', get_template_directory_uri() . '/js/js.cookie.js', array('jquery'));
    //}
    wp_enqueue_script('jquery-ui-core');
    wp_enqueue_script('jquery-ui-tooltip');
    wp_enqueue_style('jquery-ui-tooltip-style', '//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css');
    /**
     * Load JetPack Sharing Buttons Style Enhancements
     */
    independent_publisher_jetpack_sharing_css();
    /**
     * Load JetPack Sharing Buttons blank Sharing Label Enhancement
     */
    independent_publisher_jetpack_sharing_label_css();
    /**
     * Load JetPack Infinite Scroll Dark Overlay Bug Fix
     */
    independent_publisher_jetpack_dark_overlay_fix_css();
}
Example #5
0
	<div id="primary" class="content-area">
		<main id="content" class="site-content" role="main">

			<?php 
while (have_posts()) {
    the_post();
    ?>

				<?php 
    get_template_part('content', 'single');
    ?>

				<?php 
    // If comments are open or we have at least one comment, load up the comment template
    if (comments_open() || '0' != get_comments_number() && !independent_publisher_hide_comments()) {
        comments_template('', true);
    }
    ?>

				<?php 
    do_action('independent_publisher_before_post_bottom_tag_list');
    ?>

				<?php 
    if (get_the_tag_list()) {
        ?>
					<?php 
        $tag_list_title = apply_filters('independent_publisher_tag_list_title', __('Related Content by Tag', 'independent-publisher'));
        ?>
					<?php 
Example #6
0
?>
		<?php 
if (!post_password_required() && false === get_post_format() && independent_publisher_show_post_word_count() && independent_publisher_is_not_first_post_full_content()) {
    ?>
			<?php 
    echo independent_publisher_get_post_word_count();
    ?>
		<?php 
}
?>

		<?php 
/* Show comments link only when post is not password-protected AND comments are enabled on this post */
?>
		<?php 
if (!post_password_required() && comments_open() && !independent_publisher_hide_comments()) {
    ?>
			<span class="comments-link"><?php 
    comments_popup_link(__('Comment', 'independent-publisher'), __('1 Comment', 'independent-publisher'), __('% Comments', 'independent-publisher'));
    ?>
</span>
		<?php 
}
?>

		<?php 
$separator = apply_filters('independent_publisher_entry_meta_separator', '|');
?>
		<?php 
edit_post_link(__('Edit', 'independent-publisher'), '<span class="sep"> ' . $separator . ' </span> <span class="edit-link">', '</span>');
?>
Example #7
0
if (post_password_required()) {
    return;
}
?>

<?php 
if (comments_open() && !independent_publisher_hide_comments()) {
    ?>
	<div id="commentform-top"></div> <!-- do not remove; used by jQuery to move the comment reply form here -->
	<?php 
    comment_form(independent_publisher_comment_form_args());
}
?>

<?php 
if (!independent_publisher_hide_comments()) {
    ?>

	<div id="comments" class="comments-area">
		<?php 
    // You can start editing here -- including this comment!
    ?>
		<?php 
    if (have_comments()) {
        ?>

			<?php 
        if (get_comments_number() > independent_publisher_min_comments_comment_title()) {
            ?>
				<h2 class="comments-title">
					<i class="comments-title-icon"></i>
Example #8
0
 /**
  * Returns number of words in a post formatted for display in theme
  * @return string
  */
 function independent_publisher_get_post_word_count()
 {
     if (!post_password_required() && comments_open() && !independent_publisher_hide_comments()) {
         $separator = ' <span class="sep"> ' . apply_filters('independent_publisher_entry_meta_separator', '|') . ' </span>';
     } else {
         $separator = '';
     }
     return sprintf('<span>' . __('%1$s words', 'independent-publisher') . '</span>%2$s', independent_publisher_post_word_count(), $separator);
 }