本文整理汇总了PHP中infinity_get_template_part函数的典型用法代码示例。如果您正苦于以下问题:PHP infinity_get_template_part函数的具体用法?PHP infinity_get_template_part怎么用?PHP infinity_get_template_part使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了infinity_get_template_part函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: infinity_base_author_box
/**
* Show author box (if on an author page)
*
* @package Infinity
* @subpackage base
*/
function infinity_base_author_box()
{
if (is_author()) {
// queue the first post, that way we know who the author is when we
// try to get their name, URL, description, avatar, etc.
if (have_posts()) {
the_post();
// if a user has filled out their description, show a bio on their entries.
if (get_the_author_meta('description')) {
infinity_get_template_part('templates/parts/author-box');
}
// reset the loop so we don't break later queries
rewind_posts();
}
}
}
示例2: bloginfo
?>
"><?php
bloginfo('name');
?>
</a>
<span id="site-description"><?php
bloginfo('description');
?>
</span>
</<?php
echo $heading_tag;
?>
>
<?php
}
// Load Main Menu only if it's enabled
if (current_theme_supports('infinity-main-menu-setup')) {
infinity_get_template_part('templates/parts/main-menu', 'header');
}
do_action('close_header');
?>
</div>
</header><!-- end header -->
<?php
// Load Sub Menu only if it's enabled
if (current_theme_supports('infinity-sub-menu-setup')) {
infinity_get_template_part('templates/parts/sub-menu', 'header');
}
?>
</div><!-- end top wrap -->
示例3: infinity_get_header
infinity_get_header();
?>
<div id="content" role="main" class="<?php
do_action('content_class');
?>
">
<?php
do_action('open_content');
do_action('open_archive');
?>
<div class="page" id="blog-archive">
<header>
<h1 class="page-title">
<?php
printf(__('You are browsing the archive for %1$s.', infinity_text_domain), wp_title(false, false));
?>
</h1>
</header>
<?php
infinity_get_template_part('templates/loops/loop', 'excerpt');
?>
</div>
<?php
do_action('close_archive');
do_action('close_content');
?>
</div>
<?php
infinity_get_sidebar();
infinity_get_footer();
示例4: while
<?php
if (have_posts()) {
while (have_posts()) {
the_post();
do_action('open_loop');
?>
<header>
<h1 class="pagetitle">
<?php
the_title();
?>
</h1>
</header>
<!-- show page thumb -->
<?php
infinity_get_template_part('templates/parts/post-meta-top');
?>
<!-- the post -->
<div class="post" id="post-<?php
the_ID();
?>
">
<?php
do_action('open_loop_page');
?>
<div class="entry">
<?php
the_content(__('<p class="serif">Read the rest of this page →</p>', infinity_text_domain));
?>
示例5: infinity_get_header
infinity_get_header();
?>
<div id="content" role="main" class="<?php
do_action('content_class');
?>
">
<?php
do_action('open_content');
do_action('open_page');
?>
<div class="page-<?php
the_ID();
?>
" <?php
post_class();
?>
>
<?php
infinity_get_template_part('templates/loops/loop', 'page');
?>
</div><!-- .page -->
<?php
do_action('close_page');
do_action('close_content');
?>
</div>
<?php
infinity_get_sidebar();
infinity_get_footer();
示例6: do_action
?>
">
<?php
do_action('open_content');
do_action('open_search');
if (have_posts()) {
?>
<header>
<h1 class="page-title search-title">
<?php
printf(__('Search Results for: <span>%s</span>', infinity_text_domain), get_search_query());
?>
</h1>
</header>
<?php
infinity_get_template_part('templates/loops/loop', 'search');
} else {
?>
<div id="post-0" class="post no-results not-found">
<h2 class="entry-title">
<?php
_e('Nothing Found', infinity_text_domain);
?>
</h2>
<div class="entry-content">
<p>
<?php
_e('Sorry, but nothing matched your search criteria. Please try again with some different keywords.', infinity_text_domain);
?>
</p>
<?php
示例7: infinity_get_header
* @author Bowe Frankema <bowe@presscrew.com>
* @link http://infinity.presscrew.com/
* @copyright Copyright (C) 2010-2011 Bowe Frankema
* @license http://www.gnu.org/licenses/gpl.html GPLv2 or later
* @package Infinity
* @subpackage templates
* @since 1.0
*/
infinity_get_header();
?>
<div id="content" role="main" class="<?php
do_action('content_class');
?>
">
<?php
do_action('before_content');
do_action('before_attachment');
?>
<div class="page" id="single-attachment">
<?php
infinity_get_template_part('templates/loops/loop', 'attachment');
?>
</div>
<?php
do_action('after_attachment');
do_action('after_content');
?>
</div>
<?php
infinity_get_sidebar();
infinity_get_footer();
示例8: do_action
">
<?php
do_action('open_footer_wrap');
?>
<!-- begin footer -->
<footer id="footer" role="contentinfo">
<?php
do_action('open_footer');
infinity_get_template_part('templates/parts/footer-widgets');
?>
<div id="powered-by">
<div id="footer-info" class="column ten">
<?php
// Load Footer Menu only if it's enabled
if (current_theme_supports('infinity-footer-menu-setup')) {
infinity_get_template_part('templates/parts/footer-menu', 'footer');
}
?>
</div>
<div id="copyright-info" class="column six">
<?php
echo infinity_option_get('infinity-core-options.footer-text');
?>
</div>
</div>
<?php
do_action('close_footer');
?>
</footer>
<?php
do_action('close_footer_wrap');
示例9: cbox_theme_member_navigation
/**
* Add Member Navigation to Member Pages
*/
function cbox_theme_member_navigation()
{
if (bp_is_user()) {
infinity_get_template_part('templates/parts/member-navigation');
}
}
示例10: the_title
?>
>
<header>
<h1 class="pagetitle">
<?php
the_title();
edit_post_link(' ✍', '', ' ');
?>
</h1>
</header>
<?php
do_action('open_loop_page');
?>
<!-- show page thumb -->
<?php
infinity_get_template_part('templates/parts/post-thumbnail');
?>
<div class="entry">
<?php
the_content(__('<p class="serif">Read the rest of this page →</p>', infinity_text_domain));
?>
<div style="clear: both;"></div>
<?php
nxt_link_pages(array('before' => __('<p><strong>Pages:</strong> ', infinity_text_domain), 'after' => '</p>', 'next_or_number' => 'number'));
edit_post_link(__('Edit this entry.', infinity_text_domain), '<p>', '</p>');
?>
</div>
<?php
do_action('close_loop_page');
do_action('close_loop');
示例11: infinity_get_header
* @package Infinity
* @subpackage templates
* @since 1.0
*/
infinity_get_header();
?>
<div id="content" role="main" class="<?php
do_action('content_class');
?>
">
<?php
do_action('open_content');
do_action('open_home');
?>
<div id="home-page" role="main" <?php
post_class();
?>
>
<?php
infinity_get_template_part('templates/parts/introduction-boxes', 'index');
infinity_get_template_part('templates/loops/loop-blog', 'index');
?>
</div>
<?php
do_action('close_home');
do_action('close_content');
?>
</div>
<?php
infinity_get_sidebar();
infinity_get_footer();
示例12: infinity_get_header
* @subpackage templates
* @since 1.0
*/
infinity_get_header();
?>
<div id="content" role="main" class="<?php
do_action('content_class');
?>
">
<?php
do_action('open_content');
do_action('open_author');
?>
<div class="page" id="blog-author">
<?php
if (current_theme_supports('infinity-introduction-boxes')) {
infinity_get_template_part('templates/parts/introduction-boxes');
}
infinity_get_template_part('templates/loops/loop', 'author');
?>
</div>
<?php
do_action('close_author');
do_action('close_content');
?>
</div>
<?php
infinity_get_sidebar();
infinity_get_footer();
示例13: infinity_get_header
* @license http://www.gnu.org/licenses/gpl.html GPLv2 or later
* @package Infinity
* @subpackage templates
* @since 1.0
*/
infinity_get_header();
?>
<div id="content" role="main" class="<?php
do_action('content_class');
?>
">
<?php
do_action('open_content');
do_action('open_single');
?>
<?php
/* Load Single Post Loop */
infinity_get_template_part('templates/loops/loop', 'single');
?>
<?php
do_action('close_single');
do_action('close_content');
?>
</div>
<?php
infinity_get_sidebar();
infinity_get_footer();
?>
示例14: infinity_get_header
* @license http://www.gnu.org/licenses/gpl.html GPLv2 or later
* @package Infinity
* @subpackage templates
* @since 1.0
*/
infinity_get_header();
?>
<div id="content" role="main" class="<?php
do_action('content_class');
?>
">
<?php
do_action('open_content');
do_action('open_category');
?>
<div class="page" id="blog-category">
<?php
if (current_theme_supports('infinity-introduction-boxes')) {
infinity_get_template_part('templates/parts/introduction-boxes');
}
infinity_get_template_part('templates/loops/loop', 'category');
?>
</div>
<?php
do_action('close_category');
do_action('close_content');
?>
</div>
<?php
infinity_get_sidebar();
infinity_get_footer();
示例15: do_action
<?php
do_action('open_single_entry');
the_content(__('Read the rest of this entry →', infinity_text_domain));
?>
<div style="clear: both;"></div>
<?php
wp_link_pages(array('before' => __('<p><strong>Pages:</strong> ', infinity_text_domain), 'after' => '</p>', 'next_or_number' => 'number'));
do_action('close_single_entry');
?>
</div>
<?php
do_action('after_single_entry');
?>
<?php
infinity_get_template_part('templates/parts/post-meta-bottom');
infinity_get_template_part('templates/parts/author-box');
?>
</div>
<?php
do_action('close_loop_single');
?>
</div>
<?php
comments_template('', true);
do_action('close_loop');
}
} else {
?>
<h1>
<?php
_e('Sorry, no posts matched your criteria.', infinity_text_domain);