array( 'name' => __( 'EM Image Slider', 'cyber' ), 'title' => 'Image Slider', 'icon' => 'fa-photo', 'category' => 'cyber', 'nested' => true, 'accept_child' => 'em_image_slide', 'wrapper_class' => 'clearfix', 'description' => __( 'Display Slick Slider.', 'cyber' ), 'params' => array( array( 'type' => 'text', 'label' => __( 'Custom class', 'cyber' ), 'name' => 'custom_class', 'description' => __( 'Enter extra custom class', 'cyber' ) ) ) ), )// first array ); // End add map endif; } endif; /** * ======================================================= * Register Shortcode banner_slider section * ======================================================= */ // [em_image_slider title="" desc="" custom_css_class=""] if(!function_exists('em_image_slider_function')){ function em_image_slider_function($atts,$content){ ob_start(); $em_image_slider = shortcode_atts(array( 'layout' => 1, 'title1' => '', 'highl' => '', 'title2' => '', 'subtitle' => '', 'desc' => '', 'show_button' => '', 'button_text' => '', 'button_link' => '', 'custom_css' => '', 'custom_class' => '', ),$atts); extract( $em_image_slider ); //custom class $wrap_class = apply_filters( 'kc-el-class', $atts ); if( !empty( $custom_class ) ): $wrap_class[] = $custom_class; endif; $extra_class = implode( ' ', $wrap_class ); ?>