esc_html__( 'Display main slider section.', 'acommerce' ), ) // Args ); } /** * Widget Form Section */ public function form( $instance ) { $acommerce_defaults = array( 'acommerce_product_title' => true, 'acommerce_product_desc' => true, 'acommerce_product_price' => true, 'acommerce_background_disable' => true, 'acommerce_woo_category' => esc_html__( 'all', 'acommerce' ), 'acommerce_number_posts' => 3, 'acommerce_sldier_btn' => 'detail-link', 'acommerce_product_order' => esc_html__( 'DESC', 'acommerce' ), 'acommerce_slider_style' => 'details-thumb' ); $instance = wp_parse_args( (array) $instance, $acommerce_defaults ); //producte category get $acommerce_taxonomy = 'product_cat'; $acommerce_empty = 1; $acommerce_emptyorderby = 'name'; $acommerce_show_count = 0; // 1 for yes, 0 for no $acommerce_pad_counts = 0; // 1 for yes, 0 for no $acommerce_hierarchical = 1; // 1 for yes, 0 for no $acommerce_title = ''; $acommerce_args = array( 'taxonomy' => $acommerce_taxonomy, 'orderby' => $acommerce_emptyorderby, 'show_count' => $acommerce_show_count, 'pad_counts' => $acommerce_pad_counts, 'hierarchical' => $acommerce_hierarchical, 'title_li' => $acommerce_title, 'hide_empty' => $acommerce_empty ); $acommerce_all_categorys = get_categories( $acommerce_args ); ?>

" name="get_field_name("acommerce_product_title") ); ?>" type="checkbox" value="1" />

" name="get_field_name("acommerce_product_desc") ); ?>" type="checkbox" value="1" />

" name="get_field_name("acommerce_product_price") ); ?>" type="checkbox" value="1" />

" name="get_field_name("acommerce_background_disable") ); ?>" type="checkbox" value="1" />

'product', 'tax_query' => array( array( 'taxonomy' => 'product_cat', 'field' => 'term_id', 'order' => $acommerce_product_order, 'terms' => $acommerce_woo_category )), 'posts_per_page' => $acommerce_number_posts ); }else{ $acommerce_paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $acommerce_acommerce_product_args = array( 'post_type' => 'product', 'paged' => $acommerce_paged, ); } $acommerce_query = new WP_Query( $acommerce_acommerce_product_args ); //print_r($acommerce_query);exit('new'); // Main Slider Section echo wp_kses_post($before_widget); ?>
style="background:url() " >
  • 'home-page-slider')); ?>
    'slider-img')); ?>