-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsidebar-mobile.php
More file actions
48 lines (39 loc) · 1.17 KB
/
Copy pathsidebar-mobile.php
File metadata and controls
48 lines (39 loc) · 1.17 KB
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
46
47
48
<?php
/**
* The sidebar containing the main widget area
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package cw2019
*/
if ( ! is_active_sidebar( 'sidebar-1' ) ) {
return;
}
?>
<aside id="secondary-mobile-sidebar" class="widget-area col col-md-3 d-block d-sm-none">
<?php if(!is_home()){?>
<div class="aside-site-desc">
<a href="<?php bloginfo('url');?>">
<img class="site-logo" src="<?php bloginfo('template_url');?>/img/cw_logo_black_small.png" alt="<?php bloginfo('name');?>">
</a>
<h1 class="site-title"><?php bloginfo('name');?></h1>
<p class="site-description"><?php
$cw_description = get_bloginfo( 'description', 'display' );
echo $cw_description; /* WPCS: xss ok. */ ?></p>
</div>
<?php }?>
<?php if(is_singular('post')){?>
<div class="aside-single-info tax-info">
<?php cw_entry_footer();?>
</div>
<div class="aside-single-info author-info">
<?php echo get_the_author_meta( 'display_name', $post->post_author );?>
</div>
<div class="aside-single-info date-info">
<?php cw_posted_on();?>
</div>
<?php
}
?>
<?php dynamic_sidebar( 'sidebar-1' ); ?>
</aside><!-- #secondary -->