当前位置: 首页>>代码示例>>PHP>>正文


PHP woo_sidebar函数代码示例

本文整理汇总了PHP中woo_sidebar函数的典型用法代码示例。如果您正苦于以下问题:PHP woo_sidebar函数的具体用法?PHP woo_sidebar怎么用?PHP woo_sidebar使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了woo_sidebar函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: while

		<?php 
    $i = 0;
    while ($i < $total) {
        $i++;
        ?>
			<?php 
        if (woo_active_sidebar('footer-' . $i)) {
            ?>

		<div class="block footer-widget-<?php 
            echo $i;
            ?>
">
        	<?php 
            woo_sidebar('footer-' . $i);
            ?>
		</div>

	        <?php 
        }
        ?>
		<?php 
    }
    // End WHILE Loop
    ?>

	</section><!-- /#footer-widgets  -->
<?php 
}
// End IF Statement
开发者ID:brian3t,项目名称:orchidmate,代码行数:30,代码来源:footer.php

示例2: woo_sidebar

<div id="sidebar" class="fr">

	<?php 
if (woo_active_sidebar('primary')) {
    ?>

		<?php 
    woo_sidebar('primary');
    ?>
		           

	<?php 
}
?>
	
</div><!-- /#sidebar -->
开发者ID:niko-lgdcom,项目名称:archives,代码行数:16,代码来源:sidebar.php

示例3: array

 * Alternate Sidebar Template
 *
 * If a `secondary` widget area is active and has widgets,
 * and the selected layout has a third column, display the sidebar.
 *
 * @package WooFramework
 * @subpackage Template
 */
global $woo_options;
$selected_layout = 'one-col';
$layouts = array('three-col-left', 'three-col-middle', 'three-col-right');
if (is_array($woo_options) && array_key_exists('woo_layout', $woo_options)) {
    $selected_layout = $woo_options['woo_layout'];
}
if (in_array($selected_layout, $layouts)) {
    if (woo_active_sidebar('secondary')) {
        woo_sidebar_before();
        ?>
<aside id="sidebar-alt">
	<?php 
        woo_sidebar_inside_before();
        woo_sidebar('secondary');
        woo_sidebar_inside_after();
        ?>
</aside><!-- /#sidebar-alt -->
<?php 
        woo_sidebar_after();
    }
    // End IF Statement
}
// End IF Statement
开发者ID:klgrimley,项目名称:mzf,代码行数:31,代码来源:sidebar-alt.php

示例4: woo_sidebar

<div id="sidebar" class="col-right">

    <div class="primary">
		<?php 
woo_sidebar('sidebar');
?>
		           
	</div>        
	
</div><!-- /#sidebar -->
开发者ID:aozora,项目名称:arashi,代码行数:10,代码来源:sidebar.php

示例5: woo_sidebar

	<div id="footer-widgets" class="col-full">
		<div class="block">
        	<?php 
    woo_sidebar('footer-1');
    ?>
    
		</div>
		<div class="block">
        	<?php 
    woo_sidebar('footer-2');
    ?>
    
		</div>
		<div class="block">
        	<?php 
    woo_sidebar('footer-3');
    ?>
    
		</div>
		<div class="fix"></div>
	</div><!-- /#footer-widgets  -->
    <?php 
}
?>
</div><!-- /#container -->   
	<div id="footer" class="col-full">
		<div id="copyright" class="col-left">
		<?php 
if ($woo_options['woo_footer_left'] == 'true') {
    echo stripslashes($woo_options['woo_footer_left_text']);
} else {
开发者ID:marcus7777,项目名称:eh-theme,代码行数:31,代码来源:footer.php

示例6: woo_footer_sidebars

    function woo_footer_sidebars()
    {
        $settings = woo_get_dynamic_values(array('biz_disable_footer_widgets' => '', 'footer_sidebars' => '4'));
        $footer_sidebar_total = 4;
        $has_footer_sidebars = false;
        // Check if we have footer sidebars to display.
        for ($i = 1; $i <= $footer_sidebar_total; $i++) {
            if (woo_active_sidebar('footer-' . $i) && $has_footer_sidebars == false) {
                $has_footer_sidebars = true;
            }
        }
        // If footer sidebars are available, we're on the "Business" page template and we want to disable them, do so.
        if ($has_footer_sidebars && is_page_template('template-biz.php') && 'true' == $settings['biz_disable_footer_widgets']) {
            $has_footer_sidebars = false;
        }
        $total = $settings['footer_sidebars'];
        if ('0' == $settings['footer_sidebars']) {
            $total = 0;
        }
        // Make sure the footer widgets don't display if the "none" option is set under "Theme Options".
        // Lastly, we display the sidebars.
        if ($has_footer_sidebars && $total > 0) {
            ?>
<section id="footer-widgets" class="col-full col-<?php 
            echo esc_attr(intval($total));
            ?>
">
	<?php 
            $i = 0;
            while ($i < intval($total)) {
                $i++;
                ?>
		<?php 
                if (woo_active_sidebar('footer-' . $i)) {
                    ?>
	<div class="block footer-widget-<?php 
                    echo $i;
                    ?>
">
    	<?php 
                    woo_sidebar('footer-' . $i);
                    ?>
	</div>
        <?php 
                }
                ?>
	<?php 
            }
            // End WHILE Loop
            ?>
	<div class="fix"></div>
</section><!--/#footer-widgets-->
<?php 
        }
        // End IF Statement
    }
开发者ID:jospintedjou,项目名称:wordpress,代码行数:56,代码来源:theme-actions.php

示例7: bloginfo

		
	<!-- Widgetized Sidebar -->
	<div class="sidebar-logo">
		<img src="<?php 
bloginfo('template_directory');
?>
/images/text-vertical-white.svg" />
	</div>

	<div class="sidebar-donate">
		<div class="diggit">
			<img src="<?php 
bloginfo('template_directory');
?>
/images/diggit.svg" />
		</div>
		<p>Help us inspire and empower youth to experience food in new ways through gardening, cooking, and eating together.</p>
		<a class="sidebar-button" href="https://co.clickandpledge.com/?wid=75220">Donate!</a   >
	</div>

	<div class="sidebar-donate">
		<p>Sign up for our mailing list to receive updates about programs, events, and volunteer opportunities.</p>
		<a class="sidebar-button" href="http://visitor.r20.constantcontact.com/d.jsp?llr=ljhiirnab&p=oi&m=1114049355051&sit=bh94t95hb&f=87f050a3-1bfb-4914-a10d-176a231b0267">subscribe!</a   >
	</div>

	<?php 
woo_sidebar(1);
?>
		           
	
</div><!-- /#sidebar -->
开发者ID:redskyburning,项目名称:greenplate,代码行数:30,代码来源:sidebar.php

示例8: woo_footer_sidebars

    function woo_footer_sidebars()
    {
        global $woo_options;
        $footer_sidebar_total = 4;
        $has_footer_sidebars = false;
        // Check if we have footer sidebars to display.
        for ($i = 1; $i <= $footer_sidebar_total; $i++) {
            if (woo_active_sidebar('footer-' . $i) && $has_footer_sidebars == false) {
                $has_footer_sidebars = true;
            }
        }
        // If footer sidebars are available, we're on the "Business" page template and we want to disable them, do so.
        if ($has_footer_sidebars && is_page_template('template-biz.php') && @$woo_options['woo_biz_disable_footer_widgets'] == 'true') {
            $has_footer_sidebars = false;
        }
        $total = $woo_options['woo_footer_sidebars'];
        if (isset($woo_options['woo_footer_sidebars']) && $woo_options['woo_footer_sidebars'] == '0') {
            $total = 0;
        }
        // Make sure the footer widgets don't display if the "none" option is set under "Theme Options".
        // Lastly, we display the sidebars.
        if ($has_footer_sidebars && $total > 0) {
            ?>
	<div id="footer-widgets" class="col-full col-<?php 
            echo esc_attr($total);
            ?>
">
		<?php 
            $i = 0;
            while ($i < $total) {
                $i++;
                ?>
			<?php 
                if (woo_active_sidebar('footer-' . $i)) {
                    ?>
		<div class="block footer-widget-<?php 
                    echo $i;
                    ?>
">
	    	<?php 
                    woo_sidebar('footer-' . $i);
                    ?>
		</div>
	        <?php 
                }
                ?>
		<?php 
            }
            // End WHILE Loop
            ?>
		<div class="fix"></div>
	</div><!--/#footer-widgets-->
<?php 
        }
        // End IF Statement
    }
开发者ID:stevehanlon,项目名称:WooThemes-Canvas-Foundation-Zombie,代码行数:56,代码来源:theme-actions.php

示例9: woo_sidebar

	<?php 
if (woo_active_sidebar('footer-left') || woo_active_sidebar('footer-right')) {
    ?>
	<div id="footer-widgets">
    	<div class="col-full">

            <div class="left block">
                <?php 
    woo_sidebar('footer-left');
    ?>
    
            </div>
            <div class="right block">
                <?php 
    woo_sidebar('footer-right');
    ?>
    
            </div>
            <div class="fix"></div>

		</div><!-- /.col-full  -->
	</div><!-- /#footer-widgets  -->
    <?php 
}
?>
    
	<div id="footer">
    	<div class="col-full">
	
            <div id="copyright" class="col-left">
            <?php 
开发者ID:aozora,项目名称:arashi,代码行数:31,代码来源:footer.php

示例10: woo_header_widgetized

    function woo_header_widgetized()
    {
        if (woo_active_sidebar('header')) {
            ?>
	    <div class="header-widget">
	        <?php 
            woo_sidebar('header');
            ?>
	    </div>
	<?php 
        }
    }
开发者ID:kawaisin,项目名称:boylan-child,代码行数:12,代码来源:theme-actions.php

示例11: die

// File Security Check
if (!empty($_SERVER['SCRIPT_FILENAME']) && basename(__FILE__) == basename($_SERVER['SCRIPT_FILENAME'])) {
    die('You do not have sufficient permissions to access this page!');
}
/**
 * Sidebar Template
 *
 * If a `primary` widget area is active and has widgets, display the sidebar.
 *
 * @package WooFramework
 * @subpackage Template
 */
global $woo_options;
if (isset($woo_options['woo_layout']) && $woo_options['woo_layout'] != 'layout-full') {
    ?>
	
	<?php 
    if (woo_active_sidebar('categories')) {
        ?>
	<?php 
        woo_sidebar('categories');
        ?>
	<?php 
    }
    // End IF Statement
    ?>
  
<?php 
}
// End IF Statement
开发者ID:jonpalma,项目名称:bcc,代码行数:30,代码来源:sidebar-categories.php

示例12:

<div class="grid_4 omega">
    <div id="sidebar">
        
        <div id="largewidget" class="widgetlist alpha grid_4">
        
            <?php 
if (function_exists('woo_sidebar') && woo_sidebar(1)) {
} else {
    ?>
		
            
            <?php 
}
?>
        
        
        </div>
        
    </div><!-- /sidebar -->
</div><!-- /grid 6 -->
开发者ID:macosxvn,项目名称:techheroes,代码行数:20,代码来源:sidebar.php

示例13: wp_tag_cloud

			</ul>
	      </div>
			<div id="tagcloud">
			    <?php 
    wp_tag_cloud('smallest=12&largest=20');
    ?>
			</div>
		
	</div><!-- INSIDE END -->
	
	</div><!-- TABS END -->
	
	<div class="fix" style="height:25px !important;"></div>
	
	<?php 
}
?>
  
	<!-- TABS END -->    
    
	<!-- Widgetized Sidebar -->	
	<?php 
woo_sidebar('sidebar');
?>
		
    <?php 
woo_sidebar('sidebar-bottom');
?>
         
	
</div><!-- /#sidebar -->
开发者ID:juslee,项目名称:e27,代码行数:31,代码来源:sidebar.php

示例14: woo_sidebar_before

}
// Cater for custom portfolio gallery layout option.
if (is_tax('portfolio-gallery') || is_post_type_archive('portfolio')) {
    if ('' != $settings['portfolio_layout']) {
        $layout = $settings['portfolio_layout'];
    }
}
if (woo_active_sidebar($sidebar)) {
    woo_sidebar_before();
    echo $extra;
    ?>
<aside id="sidebar" class="<?php 
    echo esc_attr($sidebar . ' ' . $sidebar);
    ?>
-sidebar <?php 
    echo $sidebar == 'person-sidebar' ? 'not-mobile' : '';
    ?>
"><div class="inner">
<?php 
    woo_sidebar_inside_before();
    woo_sidebar($sidebar);
    woo_sidebar_inside_after();
    ?>
</div></aside><!-- /#sidebar -->
<?php 
    woo_sidebar_after();
}
// cant believe i still have to do this
$GLOBALS['wp_query'] = $DLS_IMPORTANT['q'];
$GLOBALS['post'] = $DLS_IMPORTANT['p'];
setup_postdata($GLOBALS['post']);
开发者ID:Studio28,项目名称:wptest,代码行数:31,代码来源:sidebar+copy.php

示例15: woo_sidebar

    <div class="primary">
		<?php 
    woo_sidebar('primary');
    ?>
		           
	</div>        
	<?php 
}
?>

	<?php 
if (woo_active_sidebar('secondary-1') || woo_active_sidebar('secondary-2')) {
    ?>
    <div class="secondary">
		<?php 
    woo_sidebar('secondary-1');
    ?>
		           
	</div>        
    <div class="secondary last">
		<?php 
    woo_sidebar('secondary-2');
    ?>
		           
	</div>        
	<?php 
}
?>
    
	
</div><!-- /#sidebar -->
开发者ID:marcus7777,项目名称:eh-theme,代码行数:31,代码来源:sidebar.php


注:本文中的woo_sidebar函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。