"; } } add_action('wp_head', 'accesspress_mag_header_scripts'); /*---------------------------------------------------------------------------------------------------------------------------------------*/ /** * Enqueue custom admin panel JS */ function accesspress_mag_admin_scripts(){ wp_enqueue_script('accesspress-mag-custom-admin', get_template_directory_uri(). '/inc/option-framework/js/custom-admin.js', array( 'jquery')); } add_action('admin_enqueue_scripts','accesspress_mag_admin_scripts'); /** * Enqueue admin css */ function accesspress_mag_admin_css(){ wp_enqueue_style('accesspress-mag-admin', get_template_directory_uri(). '/inc/option-framework/css/accesspress-mag-admin.css'); } add_action('admin_head','accesspress_mag_admin_css'); /*---------------------------------------------------------------------------------------------------------------------------------------*/ /** * News ticker section in the header */ if ( ! function_exists( 'accesspress_mag_ticker' ) ) : function accesspress_mag_ticker() { $get_featured_posts = new WP_Query( array( 'posts_per_page' => 5, 'post_type' => 'post', 'ignore_sticky_posts' => true ) ); ?>
'post', 'post_status' => 'publish', 'posts_per_page' => $posts_perpage_value, 'order' => 'DESC', 'meta_query' => array( array( 'key' => '_thumbnail_id', 'compare' => '!=', 'value' => null ) ) ); if( ( $slider_posts_option == 'cat' ) && ( !empty( $slider_category ) ) ){ $slider_args['category_name'] = $slider_category; } //echo ''; // print_r($slider_args); // echo ''; $slider_query = new WP_Query( $slider_args ); $slide_counter = 0; if( $slider_query->have_posts() ) { echo '
'. $excerpt_content .'
'; } endif; /*---------------------------------------------------------------------------------------------------------------------------------------*/ /** * * BreadCrumb Settings */ if( ! function_exists( 'accesspress_mag_breadcrumbs' ) ): function accesspress_mag_breadcrumbs() { global $post; $trans_here = of_get_option( 'trans_you_are_here' ); if( empty( $trans_here ) ){ $trans_here = __( 'You are here', 'accesspress-mag' ); } $trans_home = of_get_option( 'trans_home' ); if( empty( $trans_home ) ){ $trans_home = __( 'Home', 'accesspress-mag' ); } $trans_search = of_get_option( '' ); //if( empty() ) $showOnHome = 0; // 1 - show breadcrumbs on the homepage, 0 - don't show $delimiter = ' > '; // delimiter between crumbs $home = $trans_home; // text for the 'Home' link $showHomeLink = of_get_option( 'show_home_link_breadcrumbs' ); $showCurrent = of_get_option( 'show_article_breadcrumbs' ); // 1 - show current post/page title in breadcrumbs, 0 - don't show $before = ''; // tag before the current crumb $after = ''; // tag after the current crumb $homeLink = home_url(); if (is_home() || is_front_page()) { if ($showOnHome == 1) echo ''; } else { if($showHomeLink == 1){ echo '