Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function its_branding() {
- echo '<div class="' . omega_apply_atomic( 'title_area_class', 'title-area') .'">';
- /* Get the site title. If it's not empty, wrap it with the appropriate HTML. */
- if ( $title = get_bloginfo( 'name' ) ) {
- if ( $logo = get_theme_mod( 'custom_logo' ) )
- $title = sprintf( '<h1 class="site-title"><a href="%1$s" title="%2$s" rel="home" alt="%3$s")><span><img src="%4$s"/></span></a></h1>', home_url(), esc_attr( $title ), get_bloginfo( 'description' ), $logo );
- else
- $title = sprintf( '<h1 class="site-title"><a href="%1$s" title="%2$s" rel="home" alt="%3$s"><span>%4$s</span></a></h1>', home_url(), esc_attr( $title ), get_bloginfo( 'description' ), $title );
- }
- /* Display the site title and apply filters for developers to overwrite. */
- echo omega_apply_atomic( 'site_title', $title );
- /* Get the site description. If it's not empty, wrap it with the appropriate HTML. */
- if ( $desc = get_bloginfo( 'description' ) )
- $desc = sprintf( '<h2 class="site-description"><span>%1$s</span></h2>', $desc );
- /* Display the site description and apply filters for developers to overwrite. */
- echo omega_apply_atomic( 'site_description', $desc );
- echo '</div>';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement