本文整理汇总了PHP中load_sidebar函数的典型用法代码示例。如果您正苦于以下问题:PHP load_sidebar函数的具体用法?PHP load_sidebar怎么用?PHP load_sidebar使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了load_sidebar函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: load_sidebar
</div><!-- content -->
<?php
}
?>
<?php
}
?>
<!-- end single.php -->
<?php
if (the_template() != "page-sidebar-no-sidebar") {
?>
<div class="sidebar equal_height">
<div id="sidebar-body">
<?php
load_sidebar('1', 'sidebar-1');
?>
</div>
</div>
<div class="clear"></div>
<?php
}
?>
</div>
<?php
get_footer();
示例2: the_adminbar
}
?>
<?php
the_adminbar();
?>
</div><!-- content -->
<?php
if (the_template() != "page-sidebar-no-sidebar") {
?>
<div class="sidebar equal_height">
<div id="sidebar-body">
<?php
load_sidebar("1", 'sidebar-1');
?>
</div>
</div>
<?php
}
?>
<div class="clear"></div>
</div>
<?php
get_footer();
?>
<?php
示例3: get_option
<div class="error404-right">
<p><?php
echo get_option($shortname . "_error404_content");
?>
</p>
<?php
if (get_option($shortname . "_error404_search") == "on") {
get_search_form();
}
?>
</div>
</div>
<?php
if (the_template() != "page-sidebar-no-sidebar") {
?>
<div class="sidebar equal_height">
<div id="sidebar-body">
<?php
load_sidebar(load_option("error404_sidebar1"), 'sidebar-1');
?>
</div>
</div>
<div class="clear"></div>
</div>
<?php
}
get_footer();
示例4: the_content
">
<div id="content" class="equal_height">
<?php
the_content();
?>
<?php
wp_link_pages(array('before' => '<nav class="page-pagination">', 'after' => '</nav>', 'pagelink' => '<span>%</span>', 'nextpagelink' => 'Next page', 'previouspagelink' => 'Previous page'));
?>
<?php
the_adminbar();
?>
</div>
<?php
if (the_template() != "page-sidebar-no-sidebar") {
?>
<div class="sidebar equal_height">
<div id="sidebar-body">
<?php
load_sidebar('1', 'sidebar-2');
?>
</div>
</div>
<div class="clear"></div>
<?php
}
?>
</div>
<?php
}
}
get_footer();
示例5: custom_pagination
</div><!-- portfolio-itemlist-col1 -->
<div class="clear"></div>
</div><!-- group-->
<div class="pagination">
<?php
custom_pagination();
?>
</div>
<?php
wp_reset_query();
?>
<?php
echo the_adminbar();
?>
</div>
<?php
if ($page_type_class != "page-sidebar-no-sidebar") {
?>
<div class="sidebar equal_height">
<div id="sidebar-body">
<?php
load_sidebar(load_option("portfolio_tax_sidebar1"), 'sidebar-1');
?>
</div>
</div>
<div class="clear"></div>
</div>
<?php
}
get_footer();