'; $footer_end=''; } echo wp_kses($footer_start,'anews_allowed_html'); if ( is_active_sidebar( 'footer-1' ) || is_active_sidebar( 'footer-2' ) || is_active_sidebar( 'footer-3' ) || is_active_sidebar( 'footer-4' ) ) { ?>
0 ){ $i = 1; foreach($footer_col as $col){ // ROW width class $row_class = 'col-xs-12 col-sm-12 col-md-6 col-lg-6 col-xl-'.$col; if ( is_active_sidebar( 'footer-'.$i.'' ) ) : ?>
'ids') ); //query arguments $args = array( 'post_type' => 'post', 'post_status' => 'publish', 'posts_per_page' => 3, 'orderby' => 'rand', 'tax_query' => array( array( 'taxonomy' => 'category', 'field' => 'id', 'terms' => $anews_related_texonomy ) ), 'post__not_in' => array (get_the_ID()), ); //the query $anews_PrelatedPosts = new WP_Query( $args ); if($anews_PrelatedPosts->have_posts()) : while($anews_PrelatedPosts->have_posts()) : $anews_PrelatedPosts->the_post(); ?>
<?php esc_attr_e('anews Banner','anews') ?>
<?php esc_attr_e('anews Banner','anews') ?>
<?php esc_attr_e('anews Banner','anews') ?>
5, 'post_type' => 'post', )); ?>
esc_html__('Demo page','anews' ), 'import_file_url' => $url . 'demo.xml', 'import_widget_file_url' => $url . 'widgets.wie', 'import_customizer_file_url' => $url . 'customizer.dat', 'preview_url' => $demo, ), ); } add_filter( 'ocdi/import_files', 'anews_ocdi_import_files' ); function ocdi_after_import_setup() { // Assign menus to their locations. $main_menu = get_term_by( 'name', 'Main Menu', 'nav_menu' ); $top_menu = get_term_by( 'name', 'Header Top', 'nav_menu' ); set_theme_mod( 'nav_menu_locations', array( 'primary_menu' => $main_menu->term_id, // replace 'main-menu' here with the menu location identifier from register_nav_menu() function 'header_top_menu' => $top_menu->term_id, // replace 'main-menu' here with the menu location identifier from register_nav_menu() function ) ); // Assign front page and posts page (blog page). $front_page_id = get_page_by_title( 'Home' ); $blog_page_id = get_page_by_title( 'Blog' ); update_option( 'show_on_front', 'page' ); update_option( 'page_on_front', $front_page_id->ID ); update_option( 'page_for_posts', $blog_page_id->ID ); } add_action( 'ocdi/after_import', 'ocdi_after_import_setup' );