本文整理汇总了PHP中responsive_widgets函数的典型用法代码示例。如果您正苦于以下问题:PHP responsive_widgets函数的具体用法?PHP responsive_widgets怎么用?PHP responsive_widgets使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了responsive_widgets函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: responsive_widgets
*
*
* @file sidebar.php
* @package Responsive
* @author Emil Uzelac
* @copyright 2003 - 2012 ThemeID
* @license license.txt
* @version Release: 1.0
* @filesource wp-content/themes/responsive/sidebar.php
* @link http://codex.wordpress.org/Theme_Development#Widgets_.28sidebar.php.29
* @since available since Release 1.0
*/
?>
<div id="widgets" class="grid col-300 fit">
<?php
responsive_widgets();
// above widgets hook
?>
<?php
if (!dynamic_sidebar('right-sidebar')) {
?>
<div class="widget-wrapper">
<div class="widget-title"><?php
_e('In Archive', 'responsive');
?>
</div>
<ul>
<?php
wp_get_archives(array('type' => 'monthly'));
示例2: get_permalink
}
}
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);
//if($slugTerm == 'pbn')
?>