コード例 #1
0
ファイル: sidebar-header.php プロジェクト: TwoBeers/shiword
<!-- here should be the Header widget area -->
<?php 
/* The Header widget area is triggered if any of the areas have widgets. */
if (!is_active_sidebar('header-widget-area')) {
    return;
}
?>

<?php 
shiword_hook_sidebars_before('header');
?>

<div id="header-widget-area">

	<?php 
shiword_hook_sidebar_top('header');
?>

	<div><?php 
dynamic_sidebar('header-widget-area');
?>
</div>

	<div class="fixfloat"> </div> 

	<?php 
shiword_hook_sidebar_bottom('header');
?>

</div>
コード例 #2
0
ファイル: sidebar-error404.php プロジェクト: TwoBeers/shiword
 * sidebar-error404.php
 *
 * Template part file that contains the error404 widget area
 *
 * @package Shiword
 * @since 4.00
 */
?>

<?php 
shiword_hook_sidebars_before('error404');
?>

<div id="error404-widget-area">

	<?php 
shiword_hook_sidebar_top('error404');
?>

	<?php 
dynamic_sidebar('error404-widgets-area');
?>

	<?php 
shiword_hook_sidebar_bottom('error404');
?>

</div>

<?php 
shiword_hook_sidebars_after('error404');
コード例 #3
0
ファイル: sidebar-footer.php プロジェクト: TwoBeers/shiword
<!-- here should be the Footer widget area -->
<?php 
/* The footer widget area is triggered if any of the areas have widgets. */
if (!is_active_sidebar('first-footer-widget-area') && !is_active_sidebar('second-footer-widget-area') && !is_active_sidebar('third-footer-widget-area') && !is_active_sidebar('fourth-footer-widget-area')) {
    return;
}
?>

<?php 
shiword_hook_sidebars_before('footer');
?>

<div id="footer-widget-area">

	<?php 
shiword_hook_sidebar_top('footer');
?>

	<div id="first_fwa" class="widget-area">
			<?php 
if (is_active_sidebar('first-footer-widget-area')) {
    dynamic_sidebar('first-footer-widget-area');
}
?>
	</div><!-- #first .widget-area -->

	<div id="second_fwa" class="widget-area">
			<?php 
if (is_active_sidebar('second-footer-widget-area')) {
    dynamic_sidebar('second-footer-widget-area');
}
コード例 #4
0
ファイル: sidebar-single.php プロジェクト: TwoBeers/shiword
<!-- here should be the Single widget area -->
<?php 
/* The Single widget area is triggered if any of the areas have widgets. */
if (!is_active_sidebar('single-widget-area')) {
    return;
}
?>

<?php 
shiword_hook_sidebars_before('single');
?>

<div id="single-widget-area">

	<?php 
shiword_hook_sidebar_top('single');
?>

	<div><?php 
dynamic_sidebar('single-widget-area');
?>
</div>

	<div class="fixfloat"> </div> 

	<?php 
shiword_hook_sidebar_bottom('single');
?>

</div>
コード例 #5
0
ファイル: sidebar-primary.php プロジェクト: TwoBeers/shiword
 *
 * @package Shiword
 * @since 4.00
 */
?>

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

<!-- begin primary sidebar -->

<div id="sidebardx">

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

	<div id="sidebarbody">
		<?php 
if (!dynamic_sidebar('primary-widget-area')) {
    ?>

			<div id="sw-search">
				<?php 
    get_search_form();
    ?>
			</div>

			<div id="w_meta" class="widget">
				<div class="w_title"><?php