コード例 #1
0
ファイル: meta.php プロジェクト: iq007/MadScape
			<?php 
        if ('author' == $block) {
            ?>
				<li class="meta-author"><span class="fa fa-user"></span><span class="vcard author"<?php 
            wpex_schema_markup('author_name');
            ?>
><span class="fn"><?php 
            the_author_posts_link();
            ?>
</span></span></li>
			<?php 
        }
        ?>

			<?php 
        if ('categories' == $block && ($categories = wpex_list_post_terms(wpex_get_post_type_cat_tax(), true, false))) {
            ?>
				<li class="meta-category"><span class="fa fa-folder-o"></span><?php 
            echo $categories;
            ?>
</li>
			<?php 
        }
        ?>

			<?php 
        if ('comments' == $block && comments_open() && !post_password_required()) {
            ?>
				<li class="meta-comments comment-scroll"><span class="fa fa-comment-o"></span><?php 
            comments_popup_link(esc_html__('0 Comments', 'total'), esc_html__('1 Comment', 'total'), esc_html__('% Comments', 'total'), 'comments-link');
            ?>
コード例 #2
0
 * @subpackage Partials
 * @version 3.3.0
 */
// Exit if accessed directly
if (!defined('ABSPATH')) {
    exit;
}
// Only used for inside position
if ('inside_link' != $position) {
    return;
}
// Get category taxonomy for current post type
$taxonomy = wpex_get_post_type_cat_tax();
// Get terms
if ($taxonomy) {
    $terms = wpex_list_post_terms($taxonomy, $show_links = false, $echo = false);
}
?>

<div class="overlay-title-category-visible theme-overlay">
	<div class="overlay-title-category-visible-inner clr">
		<div class="overlay-title-category-visible-text clr">
			<div class="overlay-title-category-visible-title">
				<?php 
the_title();
?>
			</div>
			<?php 
if (!empty($terms)) {
    ?>
				<div class="overlay-title-category-visible-category">
コード例 #3
0
ファイル: core-functions.php プロジェクト: iq007/MadScape
/**
 * Returns a list of terms for specific taxonomy
 * 
 * @since 2.1.3
 */
function wpex_get_list_post_terms($taxonomy = 'category', $show_links = true)
{
    return wpex_list_post_terms($taxonomy, $show_links, false);
}
コード例 #4
0
		<?php 
    // Author
    if ('author' == $meta_section) {
        ?>
			<li class="meta-author"><span class="fa fa-user"></span><?php 
        the_author_posts_link();
        ?>
</li>
		<?php 
    }
    ?>

		<?php 
    // Categories
    if ('categories' == $meta_section && ($categories = wpex_list_post_terms('download_category', true, false))) {
        ?>
			<li class="meta-category"><span class="fa fa-folder-o"></span><?php 
        echo $categories;
        ?>
</li>
		<?php 
    }
    ?>

		<?php 
    // Comments
    if ('comments' == $meta_section && comments_open() && !post_password_required()) {
        ?>
			<li class="meta-comments comment-scroll"><span class="fa fa-comment-o"></span><?php 
        comments_popup_link(__('0 Comments', 'wpex'), __('1 Comment', 'wpex'), __('% Comments', 'wpex'), 'comments-link');
コード例 #5
0
ファイル: single-meta.php プロジェクト: PlanoBWeb/BDA
?>

<ul class="post-meta clr">

	<li class="meta-date">
		<?php 
_e('Posted on', 'wpex');
?>
		<span class="meta-date-text"><?php 
echo get_the_date();
?>
</span>
	</li>

	<?php 
if ($cats = wpex_list_post_terms('portfolio_category', false)) {
    ?>

		<li class="meta-category">
			<span class="meta-seperator">/</span><?php 
    _e('Under', 'wpex');
    ?>
			<?php 
    echo $cats;
    ?>
		</li>

	<?php 
}
?>
コード例 #6
0
ファイル: vcex_staff_grid.php プロジェクト: iq007/MadScape
                ?>
"<?php 
                echo $categories_style;
                ?>
>
										<?php 
                if ('true' == $show_first_category_only) {
                    ?>
											<?php 
                    wpex_first_term_link($post->ID, 'staff_category');
                    ?>
										<?php 
                } else {
                    ?>
											<?php 
                    wpex_list_post_terms('staff_category', true, true);
                    ?>
										<?php 
                }
                ?>
									</div><!-- .staff-entry-categories -->

								<?php 
            }
            ?>

								<?php 
            // Display excerpt and readmore
            if ($post->excerpt) {
                ?>
コード例 #7
0
ファイル: meta.php プロジェクト: PlanoBWeb/BDA
?>

<ul class="post-meta clr">

	<li class="meta-date">
		<?php 
_e('Posted on', 'wpex');
?>
		<span class="meta-date-text"><?php 
echo get_the_date();
?>
</span>
	</li>

	<?php 
if ($terms = wpex_list_post_terms('category', false)) {
    ?>
		<li class="meta-category">
			<span class="meta-seperator">/</span><?php 
    _e('Under', 'wpex');
    ?>
			<?php 
    echo $terms;
    ?>
		</li>
	<?php 
}
?>

	<?php 
if (comments_open()) {
コード例 #8
0
</span></li>

														<?php 
                        // Display category
                        if ('yes' != $tax_query) {
                            ?>

															<?php 
                            $category = wpex_get_post_type_cat_tax($post_type);
                            ?>

															<?php 
                            if ($category) {
                                ?>
																<li class="meta-category"><span class="fa fa-folder-o"></span><?php 
                                wpex_list_post_terms($category);
                                ?>
</li>
															<?php 
                            }
                            ?>

														<?php 
                        }
                        ?>

													<?php 
                    }
                    ?>

												</ul><!-- .vcex-posttype-slider-meta -->
コード例 #9
0
            if ('true' == $show_categories) {
                ?>

									<div class="<?php 
                echo $categories_classes;
                ?>
"<?php 
                echo $categories_style;
                ?>
>
										<?php 
                // Display categories
                if ('true' == $show_first_category_only) {
                    wpex_first_term_link($post->ID, 'portfolio_category');
                } else {
                    wpex_list_post_terms('portfolio_category', true, true);
                }
                ?>
									</div><!-- .portfolio-entry-categories -->

								<?php 
            }
            ?>

								<?php 
            // Display excerpt
            if ('true' == $excerpt && $post->excerpt) {
                ?>

									<div class="portfolio-entry-excerpt entry-excerpt wpex-clr"<?php 
                echo $excerpt_style;