Created
April 13, 2017 04:07
-
-
Save anonymous/00affa905bba07f543f562d0a92cce0d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function education_hub_site_branding() { | |
?> | |
<div class="site-branding"> | |
<?php education_hub_the_custom_logo(); ?> | |
<?php $show_title = education_hub_get_option( 'show_title' ); ?> | |
<?php $show_tagline = education_hub_get_option( 'show_tagline' ); ?> | |
<div id="site-identity"> | |
<?php if ( is_front_page() || is_home() ) : ?> | |
<h1 <?php if ( true != $show_title ) { echo "style='display:none'"; } ?> class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1> | |
<?php else : ?> | |
<p <?php if ( true != $show_title ) { echo "style='display:none'"; } ?> class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></p> | |
<?php endif; ?> | |
<?php if ( true === $show_tagline ) : ?> | |
<p class="site-description"><?php bloginfo( 'description' ); ?></p> | |
<?php endif ?> | |
</div><!-- #site-identity --> | |
<?php //endif; ?> | |
</div><!-- .site-branding --> | |
<?php $show_search_form = education_hub_get_option( 'show_search_form' ); ?> | |
<?php if ( true === $show_search_form ) : ?> | |
<div class="search-section"> | |
<?php get_search_form(); ?> | |
</div> | |
<?php endif ?> | |
<?php | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment