-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathsidebar-info.php
45 lines (43 loc) · 1.31 KB
/
sidebar-info.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?php if ( is_active_sidebar( 'common-side-top-widget-area' ) ) dynamic_sidebar( 'common-side-top-widget-area' ); ?>
<?php
if ( is_active_sidebar( 'info-widget-area' ) ) :
dynamic_sidebar( 'info-widget-area' );
else :
$args = array(
'show_option_none' => '',
'title_li' => '',
'taxonomy' => 'info-cat',
'orderby' => 'order',
'echo' => 0 /* 直接出力させない為 */
);
$catlist = wp_list_categories( $args );
if ( !empty($catlist) ) { ?>
<div class="localSection sideWidget">
<div class="localNaviBox">
<h3 class="localHead"><?php _e('Category', 'biz-vektor'); ?></h3>
<ul class="localNavi">
<?php echo $catlist; ?>
</ul>
</div>
</div>
<?php } ?>
<div class="localSection sideWidget">
<div class="localNaviBox">
<h3 class="localHead"><?php _e('Yearly archives', 'biz-vektor'); ?></h3>
<ul class="localNavi">
<?php
$args = array(
'type' => 'yearly',
'post_type' => 'info',
'after' => _x(' ', 'After year','biz-vektor')
);
wp_get_archives($args); ?>
</ul>
</div>
</div>
<?php
if (function_exists('biz_vektor_contactBtn')) biz_vektor_contactBtn();
if (function_exists('biz_vektor_snsBnrs')) biz_vektor_snsBnrs();
?>
<?php endif; ?>
<?php if ( is_active_sidebar( 'common-side-bottom-widget-area' ) ) dynamic_sidebar( 'common-side-bottom-widget-area' ); ?>