当前位置: 首页>>代码示例>>PHP>>正文


PHP jeg_get_template_part函数代码示例

本文整理汇总了PHP中jeg_get_template_part函数的典型用法代码示例。如果您正苦于以下问题:PHP jeg_get_template_part函数的具体用法?PHP jeg_get_template_part怎么用?PHP jeg_get_template_part使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了jeg_get_template_part函数的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: get_author_posts_url

if (!vp_metabox('jkreativ_page_meta_top.hide_top_meta', null, JEG_PAGE_ID) && !post_password_required()) {
    ?>
		<span class="meta-top">by <a href="<?php 
    echo get_author_posts_url(get_the_author_meta('ID'));
    ?>
"><?php 
    echo get_the_author();
    ?>
</a>, <?php 
    echo get_the_date();
    ?>
</span>
		<?php 
}
?>

	</div>
	<div class="article-content">
		<p class="post-excerpt">
			<?php 
echo get_the_excerpt();
?>
		</p>
	</div>
	<?php 
if (!vp_metabox('jkreativ_page_meta_btm.hide_bottom_meta', null, JEG_PAGE_ID) && !post_password_required()) {
    jeg_get_template_part('template/blogpost/article-bottom-meta');
}
?>
	<div class="clearfix"></div>
</div>
开发者ID:OpenDoorBrewCo,项目名称:odbc-wp-prod,代码行数:31,代码来源:normal.php

示例2: dynamic_sidebar

			<div class="blog-right-content-float"></div>
		</div>
		<div class="blog-right-content">
			<div class="blog-right-content-wrapper">
				<?php 
    if (function_exists('dynamic_sidebar')) {
        $sidebarname = $pageoption['sidebarname'];
        dynamic_sidebar($sidebarname);
    }
    ?>
			</div>
			<div class="blog-right-content-float"></div>
		</div>
	</div>
</div>
<script>
	(function($) {
		$(document).ready(function() {
			$(".blog-normal-wrapper").jnormalblog({
				followlike : 1
			});
		});
	})(jQuery);
</script>

<?php 
} else {
    jeg_get_template_part('template/password-form');
}
get_footer();
开发者ID:ntnvu,项目名称:tcb_online,代码行数:30,代码来源:single-extra-layout.php

示例3: get_author_posts_url

?>
                </div>
        </div>
    </div>
    <div class="clean-blog-meta">
        <div class="clean-blog-meta-wrapper">
            <div class="clean-meta-top"><a href="<?php 
echo get_author_posts_url(get_the_author_meta('ID'));
?>
"><?php 
echo get_the_author();
?>
</a>, <?php 
echo get_the_date();
?>
</div>

            <?php 
if (!vp_metabox('jkreativ_page_share.hide_share_button', null, JEG_PAGE_ID) && !post_password_required()) {
    ?>
                <div class="article-sharing">
                    <?php 
    jeg_get_template_part('template/blogpost/article-sharing-clean');
    ?>
                </div> <!-- article sharing -->
            <?php 
}
?>
        </div>
    </div>
</div>
开发者ID:ntnvu,项目名称:tcb_online,代码行数:31,代码来源:clean-quote.php

示例4: wp_get_current_user

    ?>
            <li class="topaccount">
                <a href="#">
                    <?php 
    $current_user = wp_get_current_user();
    echo get_avatar($current_user->user_email, 50);
    ?>
                    <span><?php 
    _e('My Account', 'jeg_textdomain');
    ?>
</span>
                </a>
                <div class="accountdrop ">
                    <ul id="right-account-menu">
                        <?php 
    jeg_get_template_part('template/accountnavigation');
    ?>
                    </ul>
                </div>
            </li>
        <?php 
}
?>
        <li class="topcart ">
            <a href="#">
                <?php 
$itemcount = $woocommerce->cart->cart_contents_count;
if (sizeof($woocommerce->cart->get_cart()) > 0) {
    echo sprintf(_n("An Item", "%s Items", $itemcount, 'jeg_textdomain'), $itemcount);
    echo " / ";
    echo $woocommerce->cart->get_cart_subtotal();
开发者ID:ntnvu,项目名称:tcb_online,代码行数:31,代码来源:navigation-side-woo.php

示例5: WP_Query

        $statement['category__in'] = $_REQUEST['category'];
    }
}
if (!empty($_REQUEST['sort'])) {
    if ($_REQUEST['sort'] === 'date') {
        $statement['orderby'] = "date";
        $statement['order'] = "DESC";
    } else {
        $statement['meta_key'] = "post_views_count";
        $statement['orderby'] = "meta_value_num";
        $statement['order'] = "DESC";
    }
}
$query = new WP_Query($statement);
if ($query->have_posts()) {
    while ($query->have_posts()) {
        $query->the_post();
        $blogitemtype = vp_metabox('jkreativ_blog_format.format');
        jeg_get_template_part('template/blogpost/masonry', $blogitemtype);
    }
} else {
}
wp_reset_postdata();
?>
	</div>
	<?php 
if ($query->max_num_pages > 1) {
    echo "<div class='blogpagingholder'>\n\t\t\t\t<div class='blogpagingwrapper hideme'>\n\t\t\t\t" . jeg_new_pagination(JEG_PAGE_ID, $paged, $query->max_num_pages) . "\n\t\t\t\t</div>\n\t\t\t</div>";
}
?>
</div>
开发者ID:ntnvu,项目名称:tcb_online,代码行数:31,代码来源:ajax-masonry.php

示例6: while

<div class="contentheaderspace"></div>
<div class="pagewrapper fullwidth  pagecenter <?php 
echo $pageoption['usesidebar'] === '1' ? 'withsidebar' : 'nosidebar';
?>
">
	<div class="pageholder">
		<div class="pageholdwrapper">
			<div class="mainpage blog-normal-article">
				<!-- article -->
				<?php 
if (have_posts()) {
    echo "<div class='pageinnerwrapper postnormaltitle'>\r\n\t\t\t\t\t\t\t<div class='blognormalpagingwrapper'>\r\n\t\t\t\t\t\t\t\t<div class='pagetext'>\r\n\t\t\t\t\t\t\t\t\t<span class='pagetotal'>\r\n\t\t\t\t\t\t\t\t\t" . $pageoption['title'] . "\r\n\t\t\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t</div>";
    while (have_posts()) {
        the_post();
        $blogitemtype = vp_metabox('jkreativ_blog_format.format', null, get_the_ID());
        jeg_get_template_part('template/blogpost/normal', $blogitemtype);
    }
} else {
    echo "<div class='pageinnerwrapper postnotfound'>\r\n\t\t\t\t\t\t\t<div class='blognormalpagingwrapper'>\r\n\t\t\t\t\t\t\t\t<div class='pagetext'>\r\n\t\t\t\t\t\t\t\t\t<span class='pagetotal'>\r\n\t\t\t\t\t\t\t\t\t" . __('Post Not Found', 'jeg_textdomain') . "\r\n\t\t\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t</div>";
}
global $wp_query;
$paged = get_query_var('paged') ? get_query_var('paged') : 1;
if ($wp_query->max_num_pages > 1) {
    echo "<div class='blognormalpaging blogpagingholder'>\r\n\t\t\t\t\t\t\t<div class='blognormalpagingwrapper'>\r\n\t\t\t\t\t\t\t" . jeg_new_pagination(get_the_ID(), $paged, $wp_query->max_num_pages) . "\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t</div>";
}
wp_reset_postdata();
?>
			</div>
			<?php 
if ($pageoption['usesidebar'] === '1') {
    ?>
开发者ID:OpenDoorBrewCo,项目名称:odbc-wp-prod,代码行数:31,代码来源:normal-layout.php

示例7: get_header

<?php

/** 
Template Name: No Wrapper
*/
get_header();
if (function_exists('is_woocommerce')) {
    if (is_account_page() && is_user_logged_in()) {
        jeg_get_template_part('template/nowrap', 'account');
    } else {
        if (is_checkout()) {
            if (is_wc_endpoint_url('order-received')) {
                jeg_get_template_part('template/nowrap');
            } else {
                jeg_get_template_part('template/nowrap', 'checkout');
            }
        } else {
            jeg_get_template_part('template/nowrap');
        }
    }
} else {
    jeg_get_template_part('template/nowrap');
}
开发者ID:ntnvu,项目名称:tcb_online,代码行数:23,代码来源:template-nowrap.php

示例8: jeg_blog_list

function jeg_blog_list($atts, $content = null)
{
    $atts = shortcode_atts(array('number' => '', 'readmorepage' => ''), $atts);
    $statement = array('post_type' => "post", 'orderby' => "date", 'order' => "DESC", 'posts_per_page' => $atts['number'] - 1);
    ob_start();
    $query = new WP_Query($statement);
    echo "</div><div class='section-blog-list'>";
    if ($query->have_posts()) {
        while ($query->have_posts()) {
            $query->the_post();
            $blogitemtype = vp_metabox('jkreativ_blog_format.format');
            jeg_get_template_part('template/blogpost/blog-shortcode', $blogitemtype);
        }
    }
    echo '<a class="notes-list-entry readmore" href="' . get_page_link($atts['readmorepage']) . '">' . '<span class="color-overlay"></span>' . '<div class="sectioncontainer blog-list-shortcode-content">' . '<h2 class="note-readmore">' . __("view all post", 'jeg_textdomain') . '</h2>' . '</div>' . '</a>';
    echo "</div><div>";
    wp_reset_postdata();
    return ob_get_clean();
}
开发者ID:OpenDoorBrewCo,项目名称:odbc-wp-prod,代码行数:19,代码来源:build-shortcode.php

示例9: dynamic_sidebar

dynamic_sidebar(JEG_NAVI_WIDGET);
?>
	</div>

	<div class="leftfooter">
		<div class="leftfooterwrapper">
			<?php 
jeg_side_bottom_navigation();
?>

            <?php 
jeg_get_template_part('template/navigation-top', 'wpml');
?>

			<?php 
jeg_get_template_part('template/navigation-top', 'social');
?>
			<div class="footcopy">
				<?php 
echo vp_option('joption.website_copyright', '&copy; Jegtheme 2013. All Rights Reserved.');
?>
			</div>
		</div>
	</div>

	<div class="csbwrapper">
		<div class="cbsheader">
			<div class="csbhicon"></div>
		</div>
		<div class="csbfooter">
			<?php 
开发者ID:OpenDoorBrewCo,项目名称:odbc-wp-prod,代码行数:31,代码来源:navigation-side.php

示例10: get_search_form

                <?php 
if ($navobj['navpos'] === 'transparent') {
    ?>
                <div class="abs-search">
                    <?php 
    get_search_form();
    ?>
                </div>
                <?php 
}
?>

			</div>
            <?php 
jeg_get_template_part('template/navigation-top', 'menu');
?>

            <?php 
if ($navobj['navpos'] === 'top') {
    ?>
			<div class="topsearchwrapper">
				<?php 
    get_search_form();
    ?>
				<div class="closesearch">
					<i class="fa fa-times"></i>
				</div>
			</div>
            <?php 
}
开发者ID:OpenDoorBrewCo,项目名称:odbc-wp-prod,代码行数:30,代码来源:navigation-top.php

示例11: get_header

<?php

/**
 * @author Jegbagus
 */
get_header();
?>

<div class="headermenu">
	<?php 
jeg_get_template_part('template/rightheader');
?>
</div> <!-- headermenu -->

<div class="contentheaderspace"></div>
<div class="pagewrapper pagecenter fullwidth nosidebar cartpage">
	<div class="pageholder">
		
		<div class="pageholdwrapper">										
			<div class="mainpage blog-normal-article">
				<div class="pageinnerwrapper">
					<div class="article-header">	
						<h2><?php 
echo the_title();
?>
</h2>
					</div>
					<div class="article-content">						
						<div class="jkreativ-woocommerce">
							<div class="cart_wrapper">
						        <div class="row-fluid">
开发者ID:ntnvu,项目名称:tcb_online,代码行数:31,代码来源:nowrap-account.php

示例12: jeg_get_navigation_setup

<?php

$navobj = jeg_get_navigation_setup();
if ($navobj['navpos'] == 'side' && $navobj['navtopmenu']) {
    ?>
<div class="searchcontent">
	<?php 
    get_search_form();
    ?>
	<div class="closesearch">
		<i class="fa fa-times"></i>
	</div>
</div>
<div class="searchheader">
	<i class="fa fa-search"></i>
</div>
<?php 
    if (function_exists('is_woocommerce')) {
        jeg_get_template_part('template/navigation-side', 'woo');
    }
}
开发者ID:OpenDoorBrewCo,项目名称:odbc-wp-prod,代码行数:21,代码来源:rightheader.php

示例13: jeg_get_navigation_setup

$navobj = jeg_get_navigation_setup();
if ($navobj['navpos'] == 'side') {
    jeg_get_template_part('template/navigation', 'side');
} else {
    if ($navobj['navpos'] == 'top') {
        global $post;
        $template = get_post_meta($post->ID, '_wp_page_template', true);
        if ($template === 'template/template-landing-page.php') {
            if (vp_metabox('jkreativ_page_landing.bottom_menu', 0) == 1) {
                // empty, do nothing
            } else {
                jeg_get_template_part('template/navigation', 'top');
            }
        } else {
            if ($template === 'template/template-landing-page-vc.php') {
                if (vp_metabox('jkreativ_page_landing_vc.bottom_menu', 0) == 1) {
                    // empty, do nothing
                } else {
                    jeg_get_template_part('template/navigation', 'top');
                }
            } else {
                jeg_get_template_part('template/navigation', 'top');
            }
        }
    } else {
        if ($navobj['navpos'] == 'transparent') {
            jeg_get_template_part('template/navigation', 'top');
        }
    }
}
开发者ID:OpenDoorBrewCo,项目名称:odbc-wp-prod,代码行数:30,代码来源:navigation.php


注:本文中的jeg_get_template_part函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。