Beispiel #1
0
	<div <?php 
hybrid_attr('entry-content');
?>
>
		<?php 
the_content();
?>
		<?php 
wp_link_pages();
?>
	</div><!-- .entry-content -->

	<footer class="entry-footer">
		<p class="entry-meta">
			<?php 
hybrid_post_terms(array('taxonomy' => 'category'));
?>
			<?php 
hybrid_post_terms(array('taxonomy' => 'post_tag'));
?>
		</p>
	</footer><!-- .entry-footer -->

	<?php 
tha_entry_bottom();
?>

</article><!-- .entry -->

<?php 
tha_entry_after();
Beispiel #2
0
			</div><!-- .entry-byline -->

		</header><!-- .entry-header -->

		<div <?php 
    hybrid_attr('entry-summary');
    ?>
>
			<?php 
    the_excerpt();
    ?>
			<?php 
    wp_link_pages();
    ?>
		</div><!-- .entry-summary -->

		<footer class="entry-footer">
			<?php 
    hybrid_post_terms(array('taxonomy' => 'category', 'text' => __('Posted in %s', 'socially-awkward')));
    ?>
			<?php 
    hybrid_post_terms(array('taxonomy' => 'post_tag', 'text' => __('Tagged %s', 'socially-awkward'), 'before' => '<br />'));
    ?>
		</footer><!-- .entry-footer -->

	<?php 
}
// End single post check.
?>

</article><!-- .entry -->
Beispiel #3
0
		</header><!-- .entry-header -->

		<div <?php 
    hybrid_attr('entry-summary');
    ?>
>
			<?php 
    get_the_image();
    ?>
			<?php 
    the_excerpt();
    ?>
		</div><!-- .entry-summary -->
		
		<footer class="entry-footer">
			<?php 
    hybrid_post_terms(array('taxonomy' => 'category', 'text' => esc_html__('Posted in %s', 'magik')));
    ?>
			<?php 
    hybrid_post_terms(array('taxonomy' => 'post_tag', 'text' => esc_html__('Tagged %s', 'magik')));
    ?>
		</footer><!-- .entry-footer -->

	<?php 
}
// End single post check.
?>

</article><!-- .entry -->
</span>
			<time <?php 
    hybrid_attr('entry-published');
    ?>
><?php 
    echo get_the_date();
    ?>
</time>
			<?php 
    edit_post_link();
    ?>
			<?php 
    hybrid_post_terms(array('taxonomy' => 'category', 'text' => esc_html__('Posted in %s', '<%= themeSlug %>'), 'before' => '<br />'));
    ?>
			<?php 
    hybrid_post_terms(array('taxonomy' => 'post_tag', 'text' => esc_html__('Tagged %s', '<%= themeSlug %>'), 'before' => '<br />'));
    ?>
		</footer><!-- .entry-footer -->

	<?php 
} else {
    // If not viewing a single post.
    ?>

		<?php 
    if (get_option('show_avatars')) {
        // If avatars are enabled.
        ?>

			<header class="entry-header">
				<a href="<?php 
function child_theme_do_meta_tags()
{
    if (get_theme_mod('disable_tags_meta', 0)) {
        return;
    }
    hybrid_post_terms(array('taxonomy' => 'post_tag', 'text' => __('Tagged %s', 'author'), 'before' => ''));
}
Beispiel #6
0
</span>
			<time <?php 
    hybrid_attr('entry-published');
    ?>
><?php 
    echo get_the_date();
    ?>
</time>
			<?php 
    edit_post_link();
    ?>
			<?php 
    hybrid_post_terms(array('taxonomy' => 'category', 'text' => __('Posted in %s', 'infusion')));
    ?>
			<?php 
    hybrid_post_terms(array('taxonomy' => 'post_tag', 'text' => __('Tagged %s', 'infusion'), 'before' => '<br />'));
    ?>
		</footer>

	<?php 
} else {
    // If not viewing a single post.
    ?>

		<?php 
    if (get_option('show_avatars')) {
        // If avatars are enabled.
        ?>

			<header class="entry-header">
				<a href="<?php 
function child_theme_do_author_post_meta_share()
{
    if (!hybopress_show_post_meta_list()) {
        return;
    }
    ?>
	<ul class="post-meta-list col-sm-3 clearfix">
		<?php 
    if (hybopress_show_author_box()) {
        printf('<li>');
        printf('<div class="%s">', 'meta-title');
        echo __('Author', 'neat');
        echo '</div>';
        printf('<span class="%s">', 'vcard author post-author');
        printf('<span class="%s">', 'fn');
        printf('<a class="%1$s" rel="%2$s" href="%3$s" title="%4$s">', 'author-posts-url text-capitalize', 'author', trailingslashit(get_author_posts_url(get_the_author_meta('ID'))), __('Posts by', 'neat') . '&nbsp;' . get_the_author());
        echo get_the_author();
        echo '</a>';
        echo '</span>';
        echo '</span>';
        echo '</li>';
    }
    if (1 !== get_theme_mod('disable_categories_meta') && is_single()) {
        printf('<li>');
        $category_title = sprintf('<div class="%s">', 'meta-title');
        $category_title .= __('Category', 'neat');
        $category_title .= '</div>';
        hybrid_post_terms(array('taxonomy' => 'category', 'text' => $category_title . ' %s', 'sep' => _x('<br />', 'taxonomy terms separator', 'neat')));
        echo '</li>';
    }
    if (1 !== get_theme_mod('disable_tags_meta') && is_single()) {
        printf('<li>');
        $tag_title = sprintf('<div class="%s">', 'meta-title');
        $tag_title .= __('Tags', 'neat');
        $tag_title .= '</div>';
        hybrid_post_terms(array('taxonomy' => 'post_tag', 'text' => $tag_title . ' %s', 'sep' => _x('<br />', 'taxonomy terms separator', 'neat')));
        echo '</li>';
    }
    if (1 === get_theme_mod('enable_social_share_icons') && is_single()) {
        printf('<li class="%s">', 'share');
        printf('<div class="%s">', 'meta-title');
        echo __('Share', 'neat');
        echo '</div>';
        echo do_shortcode('[hybopress_social_icons icons_type="share" area="social_share" /]');
        echo '</li>';
    }
    ?>
	</ul>
	<?php 
}
    // If viewing a single post.
    ?>

		<header class="entry-header">

			<h1 <?php 
    hybrid_attr('entry-title');
    ?>
><?php 
    single_post_title();
    ?>
</h1>

			<div class="entry-byline">
				<?php 
    hybrid_post_terms(array('taxonomy' => 'portfolio', 'text' => __('Portfolio: %s', 'socially-awkward')));
    ?>
			</div><!-- .entry-byline -->

		</header><!-- .entry-header -->

		<div <?php 
    hybrid_attr('entry-content');
    ?>
>
			<?php 
    the_content();
    ?>
			<?php 
    wp_link_pages();
    ?>
Beispiel #9
0
</span>
			<time <?php 
    hybrid_attr('entry-published');
    ?>
><?php 
    echo get_the_date();
    ?>
</time>
			<?php 
    edit_post_link();
    ?>
			<?php 
    hybrid_post_terms(array('taxonomy' => 'category', 'text' => esc_html__('Posted in %s', 'hybrid-base'), 'before' => '<br />'));
    ?>
			<?php 
    hybrid_post_terms(array('taxonomy' => 'post_tag', 'text' => esc_html__('Tagged %s', 'hybrid-base'), 'before' => '<br />'));
    ?>
		</footer><!-- .entry-footer -->

	<?php 
} else {
    // If not viewing a single post.
    ?>

		<div <?php 
    hybrid_attr('entry-content');
    ?>
>
			<?php 
    the_content();
    ?>
Beispiel #10
0
    the_content();
    ?>

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

	<?php 
} else {
    // If not a single post.
    ?>

		<div class="entry-byline">
			<?php 
    echo $time;
    ?>
 &bullet; <?php 
    hybrid_post_terms(array('taxonomy' => 'category'));
    ?>
		</div>

		<header class="entry-header">
			<h2 <?php 
    hybrid_attr('entry-title');
    ?>
><a href="<?php 
    the_permalink();
    ?>
" title="<?php 
    the_title_attribute();
    ?>
" rel="bookmark" itemprop="url"><?php 
    the_title();
Beispiel #11
0
    /**
     * Outputs the content for the current widget instance.
     */
    public function widget($args, $instance)
    {
        /** 
         * Combine $instance data with defaults
         * Then extract variables of this array
         */
        extract(wp_parse_args($instance, array('image_id' => '', 'icon' => '', 'title' => '', 'text' => '', 'number_of_posts' => 3)));
        /* Run $text through filter */
        $text = apply_filters('widget_text', $text, $instance, $this);
        /* Get Url of blog section */
        $url = get_option('show_on_front') == 'page' ? get_permalink(get_option('page_for_posts')) : bloginfo('url');
        ?>

		<?php 
        echo $args['before_widget'];
        ?>

		<?php 
        if (!empty($image_id)) {
            // Check if there is an image_id
            ?>
			
			<div class="featured-image-container">
				<?php 
            echo wp_get_attachment_image($image_id, 'featured', false, array('class' => 'featured-image'));
            ?>
			</div>

			<?php 
            if (!empty($icon)) {
                // Check if there is an icon
                ?>

				<div class="icon-container">
					<i class="fa fa-<?php 
                echo $icon;
                ?>
"></i>
				</div>

			<?php 
            }
            // END icon check
            ?>

		<?php 
        }
        // END image_id check
        ?>

		<?php 
        echo $args['before_title'];
        ?>
<a href="<?php 
        echo $url;
        ?>
"><?php 
        echo $title;
        ?>
</a><?php 
        echo $args['after_title'];
        ?>

		<?php 
        if (!empty($text)) {
            // Check if there is text
            ?>

			<div class="textwidget"><?php 
            echo wpautop($text);
            ?>
</div>

		<?php 
        }
        // END text check
        ?>

		<?php 
        /* Get articles of current knowledgebase category */
        $recent_posts_query = new WP_Query(array('post_type' => 'post', 'posts_per_page' => $number_of_posts, 'orderby' => 'post_date', 'order' => 'DESC'));
        ?>

		<?php 
        if ($recent_posts_query->have_posts()) {
            // Checks if any posts were found.
            ?>

	    	<div class="recent-posts">

				<?php 
            while ($recent_posts_query->have_posts()) {
                // Begins the loop through found posts.
                ?>

					<?php 
                $recent_posts_query->the_post();
                // Loads the post data.
                ?>
    
		    		<?php 
                $post_date = sprintf("<time %s>%s</time>", hybrid_get_attr('entry-published'), get_the_date('j F Y'));
                ?>

					<article <?php 
                hybrid_attr('post');
                ?>
>

						<div class="entry-byline">
							<?php 
                echo $post_date;
                ?>
 &bullet; <?php 
                hybrid_post_terms(array('taxonomy' => 'category'));
                ?>
						</div>

						<header class="entry-header">
							<h4 <?php 
                hybrid_attr('entry-title');
                ?>
><a href="<?php 
                the_permalink();
                ?>
" title="<?php 
                the_title_attribute();
                ?>
" rel="bookmark" itemprop="url"><?php 
                the_title();
                ?>
</a></h4>
						</header>

					</article>

				<?php 
            }
            // End found posts loop.
            ?>

			</div>

			<?php 
            wp_reset_postdata();
            ?>

		<?php 
        }
        // End check for posts.
        ?>
	
		<?php 
        echo $args['after_widget'];
        ?>

		<?php 
    }
Beispiel #12
0
<?php

/**
 * A template part for the default entry footer.
 *
 * @package     Compass
 * @subpackage  HybridCore
 * @copyright   Copyright (c) 2015, Flagship Software, LLC
 * @license     GPL-2.0+
 * @since       1.1.0
 */
if (has_term('', 'category') || has_term('', 'post_tag')) {
    ?>

	<footer class="entry-footer">
		<?php 
    hybrid_post_terms(array('taxonomy' => 'category', 'before' => '<p class="entry-meta categories">', 'after' => '</p>'));
    hybrid_post_terms(array('taxonomy' => 'post_tag', 'before' => '<p class="entry-meta tags">', 'after' => '</p>'));
    ?>
	</footer><!-- .entry-footer -->

	<?php 
}
				<span <?php 
    hybrid_attr('entry-author');
    ?>
><?php 
    the_author_posts_link();
    ?>
</span>
				<time <?php 
    hybrid_attr('entry-published');
    ?>
><?php 
    echo get_the_date();
    ?>
</time>
				<?php 
    hybrid_post_terms(array('taxonomy' => 'category', 'text' => esc_html__('%s', 'ubuntugnome')));
    ?>
				<?php 
    comments_popup_link(number_format_i18n(0), number_format_i18n(1), '%', 'comments-link', '');
    ?>
				<?php 
    edit_post_link();
    ?>
			</div><!-- .entry-byline -->

		</header><!-- .entry-header -->

		<div <?php 
    hybrid_attr('entry-summary');
    ?>
>
Beispiel #14
0
    single_post_title();
    ?>
</h1>
		</header><!-- .entry-header -->

		<div <?php 
    hybrid_attr('entry-content');
    ?>
>
			<?php 
    the_content();
    ?>
			<?php 
    echo wpautop(ravel_get_portfolio_item_link());
    ?>
			<?php 
    edit_post_link();
    ?>
		</div><!-- .entry-content -->

		<footer class="entry-footer">
			<?php 
    hybrid_post_terms(array('taxonomy' => 'portfolio', 'sep' => ' '));
    ?>
		</footer><!-- .entry-footer -->

	</article><!-- .entry -->

<?php 
}
// End single post check.
Beispiel #15
0
>
      <?php 
    the_content();
    ?>
      <?php 
    wp_link_pages();
    ?>
    </div><!-- .entry-content -->

    <footer class="entry-footer">
      <div class="entry-meta">
        <?php 
    hybrid_post_terms(array('taxonomy' => 'category', 'text' => __('Posted in %s', 'taylor')));
    ?>
        <?php 
    hybrid_post_terms(array('taxonomy' => 'post_tag', 'text' => __('Tagged %s', 'taylor')));
    ?>
        <?php 
    edit_post_link(__('Edit', 'taylor'), '<span class="edit-link">', '</span>');
    ?>
      </div>
    </footer><!-- .entry-footer -->

  <?php 
} else {
    // If not viewing a single post
    ?>

    <header class="entry-header">

      <?php 
Beispiel #16
0
/**
 * Entry Terms
 * a helper function to print all taxonomy/term attach to a post.
 *
 * @since 0.1.0
 */
function tamatebako_entry_terms()
{
    /* Entry Taxonomies */
    $entry_taxonomies = array();
    /* Get Taxonomies Object */
    $entry_taxonomies_obj = get_object_taxonomies(get_post_type(), 'object');
    foreach ($entry_taxonomies_obj as $entry_tax_id => $entry_tax_obj) {
        /* Only for public taxonomy */
        if (1 == $entry_tax_obj->public) {
            $entry_taxonomies[$entry_tax_id] = array('taxonomy' => $entry_tax_id, 'text' => $entry_tax_obj->labels->name);
        }
    }
    /* If taxonomies not empty */
    if (!empty($entry_taxonomies)) {
        ?>
		<div class="entry-meta">
		<?php 
        foreach ($entry_taxonomies as $tax_id => $entry_tax) {
            ?>
			<?php 
            hybrid_post_terms(array('taxonomy' => $tax_id, 'text' => '<span class="term-name">' . $entry_tax['text'] . '</span>' . ' %s'));
            ?>
		<?php 
        }
        //end foreach
        ?>
		</div>

	<?php 
    }
    //end empty check
}
Beispiel #17
0
    ?>
>
			<?php 
    the_content();
    ?>
			<?php 
    wp_link_pages();
    ?>
		</div><!-- .entry-content -->

		<footer class="entry-footer">
			<?php 
    hybrid_post_terms(array('taxonomy' => 'category', 'text' => esc_html__('Posted in %s', 'vaidusworld')));
    ?>
			<?php 
    hybrid_post_terms(array('taxonomy' => 'post_tag', 'text' => esc_html__('Tagged %s', 'vaidusworld')));
    ?>
		</footer><!-- .entry-footer -->

	<?php 
} else {
    // If not viewing a single post.
    ?>

		<header class="entry-header">

			<?php 
    the_title('<h2 ' . hybrid_get_attr('entry-title') . '><a href="' . get_permalink() . '" rel="bookmark" itemprop="url">', '</a></h2>');
    ?>

			<div class="entry-byline">
Beispiel #18
0
    ?>
>
				<?php 
    the_content();
    ?>
				<?php 
    wp_link_pages();
    ?>
			</div><!-- .entry-content -->

			<footer class="entry-footer">
				<?php 
    hybrid_post_terms(array('taxonomy' => 'category'));
    ?>
				<?php 
    hybrid_post_terms(array('taxonomy' => 'post_tag', 'before' => sprintf('<span class="sep">%s</span>', _x('&middot;', 'post meta separator', 'saga'))));
    ?>
			</footer><!-- .entry-footer -->

		<?php 
} else {
    // If not viewing a single post.
    ?>

			<header class="entry-header">

				<?php 
    the_title('<h2 ' . hybrid_get_attr('entry-title') . '><a href="' . get_permalink() . '" rel="bookmark" itemprop="url">', '</a></h2>');
    ?>

				<div class="entry-byline">
Beispiel #19
0
    ?>
>
			<?php 
    the_content();
    ?>
			<?php 
    wp_link_pages();
    ?>
		</div><!-- .entry-content -->

		<footer class="entry-footer">
			<?php 
    hybrid_post_terms(array('taxonomy' => 'category', 'text' => __('Posted in %s', 'stargazer')));
    ?>
			<?php 
    hybrid_post_terms(array('taxonomy' => 'post_tag', 'text' => __('Tagged %s', 'stargazer'), 'before' => '<br />'));
    ?>
		</footer><!-- .entry-footer -->

	<?php 
} else {
    // If not viewing a single post.
    ?>

		<?php 
    get_the_image(array('size' => 'stargazer-full'));
    ?>

		<header class="entry-header">

			<?php 
Beispiel #20
0
<?php

/**
 * Template part for displaying the entry footer.
 *
 * @link https://codex.wordpress.org/Template_Hierarchy
 */
?>

<footer class="entry-footer">
	<?php 
hybrid_post_terms(array('taxonomy' => 'category', 'text' => esc_html__('Filed Under: %s', 'croft')));
?>
	<?php 
hybrid_post_terms(array('taxonomy' => 'post_tag', 'text' => esc_html__('Tagged With: %s', 'croft')));
?>
</footer><!-- .entry-footer -->