' . $logo . '' : ''; } elseif ( function_exists( 'jetpack_has_site_logo' ) && jetpack_has_site_logo() ) { // Copied from jetpack_the_site_logo() function. $logo = site_logo()->logo; $logo_id = get_theme_mod( 'custom_logo' ); // Check for WP 4.5 Site Logo $logo_id = $logo_id ? $logo_id : $logo['id']; // Use WP Core logo if present, otherwise use Jetpack's. $size = site_logo()->theme_size(); $html = sprintf( '', esc_url( home_url( '/' ) ), wp_get_attachment_image( $logo_id, $size, false, array( 'class' => 'site-logo attachment-' . $size, 'data-size' => $size, 'itemprop' => 'logo' ) ) ); $html = apply_filters( 'jetpack_the_site_logo', $html, $logo, $size ); } else { $tag = is_front_page() ? 'h1' : 'h2'; $html = '<' . esc_attr( $tag ) . ' class="site-title">' . esc_html( get_bloginfo( 'name' ) ) . ''; if ( '' !== get_bloginfo( 'description' ) ) { $html .= '

' . esc_html( get_bloginfo( 'description', 'display' ) ) . '

'; } } if ( ! $echo ) { return $html; } echo $html; } } if ( ! function_exists( 'azauthority_toggle_search_icon' ) ) { /** * Search icon * * @since 1.0.0 * @return void */ function azauthority_toggle_search_icon() { ?>
'; } } if ( ! function_exists( 'azauthority_footer_widgets' ) ) { /** * Display the footer widget regions. * * @since 1.0.0 * @return void */ function azauthority_footer_widgets() { $rows = intval( apply_filters( 'azauthority_footer_widget_rows', 1 ) ); $regions = intval( apply_filters( 'azauthority_footer_widget_columns', 4 ) ); for ( $row = 1; $row <= $rows; $row++ ) : // Defines the number of active columns in this footer row. for ( $region = $regions; 0 < $region; $region-- ) { if ( is_active_sidebar( 'footer-' . strval( $region + $regions * ( $row - 1 ) ) ) ) { $columns = $region; break; } } if ( isset( $columns ) ) : ?>
>
'footer', 'menu_id' => '', 'menu_class' => '', 'container' => 'div', 'container_class' => 'menu-footer' ) ); endif; ?>
', '' ); ?>
'; $time_string = ''; if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) { $time_string = ''; } $categories_list = get_the_category_list( esc_html__( ', ', 'azauthority' ) ); $tags_list = get_the_tag_list( '', esc_html__( ', ', 'azauthority' ) ); $time_string = sprintf( $time_string, esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date() ), esc_attr( get_the_modified_date( 'c' ) ), esc_html( get_the_modified_date() ) ); $posted_on = '' . $time_string . ''; $byline = '' . esc_html( get_the_author() ) . ''; if ( isset ( $meta_options['author'] ) ) { /* translators: %1$s: Author Link */ printf( ' ' . esc_html__( ' %1$s ', 'azauthority' ) . ' ', $byline ); } if ( isset ( $meta_options['date'] ) ) { /* translators: %1$s: Archive date link */ printf( ' ' . esc_html__( ' %1$s ', 'azauthority' ) . ' ', $posted_on ); } if ( isset ( $meta_options['category'] ) && $categories_list ) { /* translators: %1$s: Category links*/ printf( '' . esc_html__( ' %1$s ', 'azauthority' ) . ' ', $categories_list ); // WPCS: XSS OK. } if ( isset ($meta_options['tag'] ) && $tags_list ) { /* translators: %1$s: Tag links*/ printf( '' . esc_html__( ' %1$s ', 'azauthority' ) . ' ', $tags_list ); // WPCS: XSS OK. } echo ''; } endif; if ( ! function_exists( 'azauthority_date_posted_on' ) ) { function azauthority_date_posted_on() { $time_string = ''; if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) { $time_string = ''; } $time_string = sprintf( $time_string, esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date() ), esc_attr( get_the_modified_date( 'c' ) ), esc_html( get_the_modified_date() ) ); /* translators: %1$s: Date link*/ printf( '
' . esc_html__( ' %1$s ', 'azauthority' ) . '
', $time_string ); // WPCS: XSS OK. } } if ( ! function_exists( 'azauthority_post_content' ) ) { /** * Display the post content with a link to the single post * * @since 1.0.0 */ function azauthority_post_content() { $excerpt = apply_filters( 'azauthority_post_content_excerpt', true ); ?>
' . get_the_title() . '' ) ); } do_action( 'azauthority_post_content_after' ); wp_link_pages( array( 'before' => '', ) ); ?>
%2$s

', esc_url( get_permalink( get_the_ID() ) ), /* translators: %s: Name of current post */ sprintf( __( 'Continue reading "%s"', 'azauthority' ), get_the_title( get_the_ID() ) ) ); $button = print_r( $link ); return ' … ' . $button; } endif; if ( ! function_exists( 'azauthority_single_post_header' ) ) { function azauthority_single_post_header() { $layout = azauthority_get_theme_option( 'azauthority_sidebar_layout', 'none' ); if ( 'none' === $layout ) : ?>
', '' ); ?>
'; } } if ( ! function_exists( 'azauthority_inner_wrapper_close' ) ) { /** * The inner wrapper */ function azauthority_inner_wrapper_close() { echo ''; } } if ( ! function_exists( 'azauthority_post_single_content' ) ) { /** * Display the post content with a link to the single post * * @since 1.0.0 */ function azauthority_post_single_content() { ?>
' . get_the_title() . '' ) ); do_action( 'azauthority_post_single_content_after' ); wp_link_pages( array( 'before' => '', ) ); ?>
'%title', 'prev_text' => '%title', ); $enable_postnav = apply_filters('azauthority_enable_postnav', true); if ( $enable_postnav ) { the_post_navigation( $args ); } } } if ( ! function_exists( 'azauthority_inner_wrapper_close' ) ) { /** * The inner wrapper */ function azauthority_inner_wrapper_close() { echo ''; } } if ( ! function_exists( 'azauthority_paging_nav' ) ) : /** * Display navigation to next/previous set of posts when applicable. */ function azauthority_paging_nav() { the_posts_pagination( array( 'prev_text' => __( '', 'azauthority' ), 'next_text' => __( '', 'azauthority' ), 'before_page_number' => '' . __( 'Page', 'azauthority' ) . ' ', ) ); } endif; if ( ! function_exists( 'azauthority_homepage_style' ) ) : /** * Display Homepage Style. * * @since 1.0.1 */ function azauthority_homepage_style() { $homepage_style = azauthority_get_theme_option( 'custom_homepage_control', array() ); if ( ! empty( $homepage_style ) && is_array( $homepage_style ) ) : foreach ( $homepage_style as $homepage_style_id => $homepage_style_label ) : $posts_per_page = 3; $cat_id = intval( $homepage_style_label['category_post'] ); $title_section = $homepage_style_label['link_text']; if ( $homepage_style_label['box_post'] == 'five_box' ) { $posts_per_page = 5; } // Get latest posts from database $query_arguments = array( 'posts_per_page' => $posts_per_page, 'ignore_sticky_posts' => true, ); if ( $cat_id > 0 ) { $query_arguments['cat'] = $cat_id; } $posts_query = new WP_Query( $query_arguments ); ?>
have_posts() ) : // Display Posts while( $posts_query->have_posts() ) : $posts_query->the_post(); if( isset($i) and $i <= 1 ) : ?> '; } ?>
>
have_posts() ) : // Display Posts while( $posts_query->have_posts() ) : $posts_query->the_post(); if( isset($i) and $i <= 2 ) : ?> '; } ?>
>
'; } endif; $i++; endwhile; endif; endif; ?>

3, 'ignore_sticky_posts' => true ); if ( $featured_cat > 0 ) { $args['cat'] = $featured_cat; } $posts_query = new WP_Query( $args ); // Check if there are posts if( $posts_query->have_posts() ) : ?>
have_posts() ) : $posts_query->the_post(); ?>
', '' ); ?>
'', ) ); ?>
', '' ); ?>