Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function parallax_frame_site_branding() {
- $options = parallax_frame_get_theme_options();
- $site_logo = '';
- //Checking Logo
- if ( has_custom_logo() ) {
- $site_logo = '<div id="site-logo">'. get_custom_logo() . '</div><!-- #site-logo -->';
- }
- $tagline_class = '';
- $hide_tagline = $options['hide_tagline'];
- if ( $hide_tagline ) {
- $tagline_class = ' screen-reader-text';
- }
- $header_text = '<div id="site-header">';
- //Set screen-reader-text class if site-header is disabled
- if ( !display_header_text() ) {
- $header_text = '<div id="site-header" class="screen-reader-text">';
- }
- //Add Site Title
- $header_text .= '<h1 class="site-title"><a href="' . esc_url( home_url( '/' ) ) . '">' . get_bloginfo( 'name' ) . '</a></h1>';
- //Add Tagline
- $header_text .= '<h2 class="site-description' . $tagline_class . '"> <a href="' . esc_url( 'https://wordpress.org' ) . '">' . get_bloginfo( 'description' ) . '</h2>';
- //End Site Header
- $header_text .= '</div><!-- #site-header -->';
- $site_branding = '<div id="site-branding">' . $header_text;
- if ( has_custom_logo() ) {
- $move_title_tagline = $options['move_title_tagline'];
- if ( $move_title_tagline ) {
- $site_branding = '<div id="site-branding" class="logo-right">' . $header_text . $site_logo;
- }
- else {
- $site_branding = '<div id="site-branding" class="logo-left">' . $site_logo . $header_text;
- }
- }
- $site_branding .= '</div><!-- #site-branding-->';
- echo $site_branding;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement