= 2 || $page >= 2 ) { $filtered_title .= ' | ' . sprintf( __( 'Page %s', 'cleanretina' ), max( $paged, $page ) ); } // Return the modified title return $filtered_title; } /****************************************************************************************/ add_action( 'cleanretina_links', 'cleanretina_add_links', 10 ); /** * Adding link to stylesheet file * * @uses get_stylesheet_uri() */ function cleanretina_add_links() { ?> '; } } set_transient( 'cleanretina_favicon', $cleanretina_favicon, 86940 ); } echo $cleanretina_favicon ; } /****************************************************************************************/ // Load webpageicon in Header Section add_action( 'cleanretina_links', 'cleanretina_webpageicon', 20 ); /** * Get the webpageicon Image from theme options * display webpageicon * * @uses set_transient and delete_transient */ function cleanretina_webpageicon() { $cleanretina_webpageicon = ''; if( ( !$cleanretina_webpageicon = get_transient( 'cleanretina_webpageicon' ) ) ) { global $cleanretina_theme_options_settings; $options = $cleanretina_theme_options_settings; if ( "0" == $options[ 'disable_webpageicon' ] ) { if ( !empty( $options[ 'webpageicon' ] ) ) { $cleanretina_webpageicon .= ''; } } set_transient( 'cleanretina_webpageicon', $cleanretina_webpageicon, 86940 ); } echo $cleanretina_webpageicon ; } /****************************************************************************************/ add_action( 'cleanretina_header', 'cleanretina_headerdetails', 10 ); /** * Shows Header Part Content * * Shows the site logo, title, description, searchbar, social icons etc. */ function cleanretina_headerdetails() { ?>
<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>
'primary', 'container' => '', 'items_wrap' => '' ); echo ''; } else { echo ''; } ?>
'; set_transient( 'cleanretina_socialnetworks', $cleanretina_socialnetworks, 86940 ); } echo $cleanretina_socialnetworks; } /****************************************************************************************/ /** * Display Home Slogan. * * Function that enable/disable the home slogan1 and home slogan2. */ function cleanretina_home_slogan() { global $cleanretina_theme_options_settings; $options = $cleanretina_theme_options_settings; $cleanretina_home_slogan = ''; if( ( !$cleanretina_home_slogan = get_transient( 'cleanretina_home_slogan' ) ) && ( !empty( $options[ 'home_slogan1' ] ) || !empty( $options[ 'home_slogan2' ] ) ) ) { if ( "0" == $options[ 'disable_slogan' ] ) { $cleanretina_home_slogan .= '
'; if ( !empty( $options[ 'home_slogan1' ] ) ) { $cleanretina_home_slogan .= $options[ 'home_slogan1' ]; } if ( !empty( $options[ 'home_slogan2' ] ) ) { $cleanretina_home_slogan .= ''.$options[ 'home_slogan2' ].''; } $cleanretina_home_slogan .= '
'; } set_transient( 'cleanretina_home_slogan', $cleanretina_home_slogan, 86940 ); } echo $cleanretina_home_slogan; } /****************************************************************************************/ /** * display featured post slider * * @uses set_transient and delete_transient */ function cleanretina_featured_post_slider() { global $post; global $cleanretina_theme_options_settings; $options = $cleanretina_theme_options_settings; $cleanretina_featured_post_slider = ''; if( ( !$cleanretina_featured_post_slider = get_transient( 'cleanretina_featured_post_slider' ) ) && !empty( $options[ 'featured_post_slider' ] ) ) { $cleanretina_featured_post_slider .= ' '; set_transient( 'cleanretina_featured_post_slider', $cleanretina_featured_post_slider, 86940 ); } echo $cleanretina_featured_post_slider; } /****************************************************************************************/ /** * Display breadcrumb on header. * * If the page is home or front page, slider is displayed. * In other pages, breadcrumb will display if breadcrumb NavXT plugin exists. */ function cleanretina_breadcrumb() { if( function_exists( 'bcn_display_list' ) ) { echo ' '; } } ?>