Skip to content

Instantly share code, notes, and snippets.

Created April 13, 2017 04:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/00affa905bba07f543f562d0a92cce0d to your computer and use it in GitHub Desktop.
Save anonymous/00affa905bba07f543f562d0a92cce0d to your computer and use it in GitHub Desktop.
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