'; echo '
'; } endif; if ( ! function_exists( 'sophia_after_dark_site_branding' ) ) : /** * function to display site branding */ function sophia_after_dark_site_branding() { ?>

'; echo '
'; } endif; if ( ! function_exists( 'sophia_after_dark_header_main_menu' ) ) : /** * function to display primary menu */ function sophia_after_dark_header_main_menu() { $sophia_after_dark_menu_toggle_text = apply_filters( 'sophia_after_dark_menu_toggle_text', __( 'Menu', 'sophia-after-dark' ) ); ?>
'; } endif; if ( ! function_exists( 'sophia_after_dark_menu_social_icons' ) ) : /** * function to display social icons at menu section */ function sophia_after_dark_menu_social_icons() { $sophia_after_dark_enable_header_social_icons = get_theme_mod( 'sophia_after_dark_enable_header_social_icons', false ); if ( false === $sophia_after_dark_enable_header_social_icons ) { return; } $sophia_after_dark_menu_social_icons_label = apply_filters( 'sophia_after_dark_menu_social_icons_label', __( 'Follow Us: ', 'sophia-after-dark' ) ); ?>
'; } endif; if ( ! function_exists( 'sophia_after_dark_menu_wrapper_end' ) ) : /** * function to end menu wrapper */ function sophia_after_dark_menu_wrapper_end() { echo '
'; echo '
'; } endif; if ( ! function_exists( 'sophia_after_dark_main_header_end' ) ) : /** * function to end header section */ function sophia_after_dark_main_header_end() { echo ''; echo ''; } endif; /** * manage functions at sophia_after_dark_main_header hook */ add_action( 'sophia_after_dark_main_header', 'sophia_after_dark_main_header_start', 5 ); add_action( 'sophia_after_dark_main_header', 'sophia_after_dark_site_branding', 10 ); add_action( 'sophia_after_dark_main_header', 'sophia_after_dark_menu_wrapper_start', 15 ); add_action( 'sophia_after_dark_main_header', 'sophia_after_dark_header_main_menu', 20 ); add_action( 'sophia_after_dark_main_header', 'sophia_after_dark_menu_icon_wrapper_start', 25 ); add_action( 'sophia_after_dark_main_header', 'sophia_after_dark_menu_social_icons', 30 ); add_action( 'sophia_after_dark_main_header', 'sophia_after_dark_menu_search_icon', 35 ); add_action( 'sophia_after_dark_main_header', 'sophia_after_dark_menu_icon_wrapper_end', 40 ); add_action( 'sophia_after_dark_main_header', 'sophia_after_dark_menu_wrapper_end', 45 ); add_action( 'sophia_after_dark_main_header', 'sophia_after_dark_main_header_end', 50 ); /*----------------------------------------------------------------------------------------------------------------------------------*/ if ( ! function_exists( 'sophia_after_dark_header_categories_lists_content' ) ) : /** * function to display categories lists */ function sophia_after_dark_header_categories_lists_content() { $get_categories = get_categories( array( 'orderby' => 'name', 'order' => 'ASC' ) ); ?>

'. esc_html( $sophia_after_dark_scroll_top_text ) .''; } endif; /*----------------------------------------------------------------------------------------------------------------------------------*/ if ( ! function_exists( 'sophia_after_dark_innerpage_header_start' ) ) : /** * function to manage starting div of section */ function sophia_after_dark_innerpage_header_start() { $inner_header_attribute = ''; $inner_header_attribute = apply_filters( 'sophia_after_dark_inner_header_style_attribute', $inner_header_attribute ); if ( !empty( $inner_header_attribute ) ) { $header_class = 'has-bg-img'; } else { $header_class = 'no-bg-img'; } ?>
>
', '' ); } elseif ( is_archive() ) { the_archive_title( '

', '

' ); the_archive_description( '
', '
' ); } elseif ( is_search() ) { ?>

' . get_search_query() . '' ); ?>

'. esc_html( 'Error 404', 'sophia-after-dark' ) .''; } elseif ( is_home() ) { $page_for_posts_id = get_option( 'page_for_posts' ); $page_title = get_the_title( $page_for_posts_id ); ?>

esc_attr( $slider_cat_slug ), 'meta_key' => '_thumbnail_id', 'posts_per_page' => absint( $slide_post_count ) ); $slider_post_query = new WP_Query( $slider_args ); if ( $slider_post_query->have_posts() ) : while ( $slider_post_query-> have_posts() ) : $slider_post_query -> the_post(); $post_id = get_the_ID(); $image_url = get_the_post_thumbnail_url( $post_id, 'large' ); if ( ! empty( $image_url ) ) { $slider_style = 'style="background:url('. esc_url( $image_url ) .') no-repeat scroll center center; background-size:cover"'; } else { $slider_style = ''; } ?>
>
'; if ( ! empty( $sophia_after_dark_top_featured_posts_title ) ) { echo '
'.esc_html( $sophia_after_dark_top_featured_posts_title ).'
'; } $sophia_after_dark_top_featured_post_order = get_theme_mod( 'sophia_after_dark_top_featured_post_order', 'default' ); $featured_posts_per_page = apply_filters( 'sophia_after_dark_featured_post_count', 5 ); $top_featured_post_args = array( 'post_type' => 'post', 'posts_per_page' => absint( $featured_posts_per_page ), ); if ( 'random' == $sophia_after_dark_top_featured_post_order ) { $top_featured_post_args['orderby'] = 'rand'; } $top_featured_post_query = new WP_Query( $top_featured_post_args ); if ( $top_featured_post_query -> have_posts() ) : echo '
'; $featured_post_count = 1; while ( $top_featured_post_query -> have_posts() ) : $top_featured_post_query -> the_post(); ?>
', '' ); ?>
'; endif; echo '
'; } ?>
'; } endif; if ( ! function_exists( 'sophia_after_dark_footer_sidebar' ) ) : /** * function to display footer widget area */ function sophia_after_dark_footer_sidebar() { $sophia_after_dark_footer_widget_option = get_theme_mod( 'sophia_after_dark_enable_footer_widget_area', true ); if ( true === $sophia_after_dark_footer_widget_option ) { get_sidebar( 'footer' ); } } endif; if ( ! function_exists( 'sophia_after_dark_bottom_footer' ) ) : /** * function to display bottom footer section */ function sophia_after_dark_bottom_footer() { ?> '; } endif; /** * manage the function at sophia_after_dark_footer hook */ add_action( 'sophia_after_dark_footer', 'sophia_after_dark_footer_start', 5 ); add_action( 'sophia_after_dark_footer', 'sophia_after_dark_footer_sidebar', 10 ); add_action( 'sophia_after_dark_footer', 'sophia_after_dark_bottom_footer', 15 ); add_action( 'sophia_after_dark_footer', 'sophia_after_dark_footer_end', 20 );