本文整理汇总了PHP中responsive_widgets_before函数的典型用法代码示例。如果您正苦于以下问题:PHP responsive_widgets_before函数的具体用法?PHP responsive_widgets_before怎么用?PHP responsive_widgets_before使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了responsive_widgets_before函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: responsive_widgets_before
}
/**
* Support Template
*
*
* @file sidebar-support.php
* @package Responsive
* @author Emil Uzelac
* @copyright 2003 - 2013 ThemeID
* @license license.txt
* @version Release: 1.0
* @filesource wp-content/themes/responsive/sidebar-support.php
* @link http://codex.wordpress.org/Theme_Development#Widgets_.28sidebar.php.29
* @since available since Release 1.0
*/
responsive_widgets_before();
// above widgets container hook
?>
<div id="widgets">
<div class="support-menu">
<?php
responsive_widgets();
// above widgets hook
?>
<?php
if (!dynamic_sidebar('support')) {
?>
<div class="widget-wrapper">
</div><!-- end of .widget-wrapper -->
<?php
示例2: reset
if (!empty($terms)){
$slug = reset($terms)->slug;
}
}
if($slug == 'pbn'){
$permalink = (string) get_permalink($post->ID);
if($wp_query->query['pbn_separate'] == 1)
$slug = 'pbn1';
elseif($wp_query->query['pbn_separate'] == 2)
$slug = 'pbn';
}
$items = wp_get_nav_menu_items( 'pbl', array() );
responsive_widgets_before(); // above widgets container hook ?>
<div id="widgets" class="grid col-300 rtl-fit">
<?php responsive_widgets(); // above widgets hook ?>
<?php if( !dynamic_sidebar( '' ) ) { ?>
<div class="widget-wrapper">
<ul>
<?php
if(!empty($items))
foreach($items as $item)
{
if($item->type == 'taxonomy') {
$slugTerm = explode('/', $item->url);
$slugTerm = array_filter($slugTerm);