本文整理汇总了PHP中weaverii_inject_area函数的典型用法代码示例。如果您正苦于以下问题:PHP weaverii_inject_area函数的具体用法?PHP weaverii_inject_area怎么用?PHP weaverii_inject_area使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了weaverii_inject_area函数的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: get_template_part
get_template_part('infobar');
}
weaverii_inject_area('premain');
echo "\t<div id=\"main\">\n";
weaverii_trace_template(__FILE__);
weaverii_get_sidebar_left('author');
?>
<div id="container_wrap"<?php
weaverii_get_page_class('author', 'container-author');
?>
>
<?php
if (weaverii_getopt('wii_infobar_location') == 'content') {
get_template_part('infobar');
}
weaverii_inject_area('precontent');
?>
<section id="container">
<?php
weaverii_get_sidebar_top('author');
?>
<div id="content" role="main">
<?php
if (have_posts()) {
?>
<?php
/* Queue the first post, that way we know
* what author we're dealing with (if that is the case).
*
示例2: weaverii_trace_sidebar
if (!defined('ABSPATH')) {
exit;
}
// Exit if accessed directly
/**
* The Left Sidebar - all in one column
*
* @package WordPress
* @subpackage Weaver II
* @since Weaver II 1.0
*/
?>
<div id="sidebar_wrap_left" class="left-1-col equal_height">
<?php
weaverii_trace_sidebar(__FILE__);
weaverii_inject_area('presidebar_left');
weaverii_show_primary_sidebar();
// show default primary widget area
// Upper/Right -----------------------
if (!weaverii_is_checked_page_opt('hide_sidebar_right') && !weaverii_replace_right()) {
// The Lower/right Widget Area
if (is_active_sidebar('right-widget-area')) {
?>
<div id="sidebar_right" class="widget-area" role="complementary">
<?php
dynamic_sidebar('right-widget-area');
?>
</div><!-- #sidebar_right .widget-area -->
<?php
}
}
示例3: weaverii_the_contnt_featured
</div><!-- .entry-summary -->
<?php
} else {
?>
<div class="entry-content cf">
<?php
weaverii_the_contnt_featured();
wp_link_pages(array('before' => '<div class="page-link"><span>' . __('Pages:', 'weaver-ii') . '</span>', 'after' => '</div>'));
?>
</div><!-- .entry-content -->
<?php
}
?>
<footer class="entry-utility">
<?php
weaverii_post_bottom_info();
weaverii_compact_link('check');
?>
</footer><!-- #entry-utility -->
<?php
weaverii_inject_area('postpostcontent');
// inject post comment body
}
// regular post
?>
</article><!-- #post-<?php
the_ID();
?>
-->
示例4: weaverii_trace_sidebar
if (!defined('ABSPATH')) {
exit;
}
// Exit if accessed directly
/**
* The Right Split Sidebar.
*
* @package WordPress
* @subpackage Weaver II
* @since Weaver II 1.0
*/
?>
<div id="sidebar_wrap_right" class="split equal_height">
<?php
weaverii_trace_sidebar(__FILE__);
weaverii_inject_area('presidebar_right');
weaverii_show_primary_sidebar();
// show default primary widget area
// Upper/Right -----------------------
if (!weaverii_is_checked_page_opt('hide_sidebar_right') && !weaverii_replace_right()) {
// The Upper/right Widget Area
if (is_active_sidebar('right-widget-area')) {
?>
<div id="sidebar_right" class="widget-area" role="complementary">
<?php
dynamic_sidebar('right-widget-area');
?>
</div><!-- sidebar_right .widget-area -->
<?php
}
示例5: previous_comments_link
previous_comments_link(__('← Older Comments', 'weaver-ii'));
?>
</div>
<div class="nav-next"><?php
next_comments_link(__('Newer Comments →', 'weaver-ii'));
?>
</div>
</nav>
<?php
}
// check for comment navigation
?>
<?php
/* If there are no comments and comments are closed, let's leave a little note, shall we?
* But we don't want the note on pages or post types that do not support comments.
*/
} elseif (!comments_open() && !is_page() && post_type_supports(get_post_type(), 'comments')) {
?>
<p class="nocomments"><?php
echo __('Comments are closed.', 'weaver-ii');
?>
</p>
<?php
}
comment_form();
?>
</div><!-- #comments -->
<?php
weaverii_inject_area('postcomments');
示例6: do_shortcode
?>
><?php
echo do_shortcode($extra);
?>
</div>
<?php
}
?>
</div>
<?php
if (weaverii_getopt('wii_top_menu_before_header') && !weaverii_getopt('wii_top_menu_before_wrapper')) {
do_action('weaver_nav', 'top');
}
weaverii_mobile_toggle('header');
// display toggle button
weaverii_inject_area('header');
// inject header HTML
if (!weaverii_getopt('_wii_hdr_widg_afterimg')) {
get_sidebar('header');
}
weaveriip_header_insert();
// add W-II Pro injection
/* The Dynamic Headers shows headers on a per page basis - will also optionally add site link */
if (function_exists('show_media_header')) {
show_media_header();
}
// Plugin support: **Dynamic Headers**
/* ======== HEADER IMAGE ======== */
global $weaverii_header;
if (!(weaverii_is_checked_page_opt('ttw-hide-header-image') && !is_search()) && !(weaverii_getopt_checked('wii_normal_hide_header_image') && !weaverii_use_mobile('mobile')) && !(weaverii_getopt_checked('wii_mobile_hide_header_image') && weaverii_use_mobile('mobile')) || weaverii_getopt_checked('wii_ipad_show_header_image') && weaverii_use_mobile('tablet')) {
if (!weaverii_getopt_checked('wii_hide_header_image') && !(weaverii_getopt('wii_hide_header_image_front') && is_front_page())) {
示例7: weaverii_get_header
}
// Exit if accessed directly
/**
* The template for displaying Search Results pages.
*
* @package WordPress
* @subpackage Weaver II
* @since Weaver II 1.0
*
* changed 1.0.25 - paged navi doesn't work right on multipage search result, so skip infobar and force prev/next
*/
weaverii_get_header('search', true);
if (weaverii_getopt('wii_infobar_location') == 'top') {
get_template_part('infobar');
}
weaverii_inject_area('premain');
echo "\t<div id=\"main\">\n";
weaverii_trace_template(__FILE__);
weaverii_get_sidebar_left('search');
?>
<div id="container_wrap"<?php
weaverii_get_page_class('search', 'container-search');
?>
>
<?php
if (weaverii_getopt('wii_infobar_location') == 'content') {
get_template_part('infobar');
}
?>
<section id="container">
<?php
示例8: weaverii_mobile_toggle
}
weaverii_mobile_toggle('footer');
// display toggle button
?>
</div><!-- #site-ig-wrap -->
<div class="weaver-clear"></div>
</div>
</footer><!-- #colophon -->
<?php
}
// end if !hide_footer
if (!weaverii_getopt_checked('wii_footer_last')) {
// normally, #colophon inside #page
echo "</div><!-- #wrapper -->\n";
}
weaverii_inject_area('postfooter');
// and this is the end options insertion
echo "<a href=\"#page-top\" id=\"page-bottom\">↑</a>\n";
if (!weaverii_getopt_checked('_wii_no_final_div')) {
if (weaverii_getopt_checked('wii_hide_final')) {
echo '<div id="weaver-final" class="weaver-final-normal wvr-hide-bang">';
} else {
echo '<div id="weaver-final" class="weaver-final-normal">';
}
}
wp_footer();
weaverii_masonry('invoke-code');
if (!weaverii_getopt_checked('_wii_no_final_div')) {
echo '</div> <!-- #weaver-final -->' . "\n";
}
if (weaverii_dev_mode() && weaverii_getopt_checked('_weaverii_diag_timer')) {