-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsidebar.php
27 lines (25 loc) · 840 Bytes
/
sidebar.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
<section id="sidebar">
<!-- Intro -->
<section id="intro">
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" class="logo">
<?php
$getLogo = get_theme_mod( 'custom_logo');
if ( function_exists( 'the_custom_logo' ) && !empty( $getLogo ) ) {
$logoURL = wp_get_attachment_image_src( $getLogo, 'full' );
echo '<img src="'. esc_url( $logoURL[0] ).'" alt="'. get_bloginfo('name') .'" />';
} else {
echo '<img src="'. esc_url( get_theme_file_uri() ).'/assets/images/logo.jpg" alt="'. get_bloginfo('name') .'" />';
}
?>
</a>
<header>
<h2><?php bloginfo( 'name' ); ?></h2>
<p><?php bloginfo( 'description' ); ?></p>
</header>
</section>
<?php
if ( is_active_sidebar( 'imperfect_left_sidebar_widgets' ) ) {
dynamic_sidebar( 'imperfect_left_sidebar_widgets' );
}
?>
</section>