"Advanced Testimonial Slider", "category" => 'Advanced Elements', "description" => "What's client says in styles", "base" => "awavc_testimonial_Slider", "class" => "", "icon" => "testi_slider_icon", "params" => array( array( "type" => "dropdown", "class" => "", "heading" => __("Testimonial Slider Style:", "awavcl"), "param_name" => "testi_sldr_style", "value" => array( __("style 1","awavcl") => 'testi_style_1', __("style 2","awavcl") => 'testi_style_2', __("style 3","awavcl") => 'testi_style_3', __("style 4","awavcl") => 'testi_style_4', __("style 5","awavcl") => 'testi_style_5', __("style 6","awavcl") => 'testi_style_6', ), "admin_label" => true, ), array( "type" => "dropdown", "class" => "", "heading" => __("Column", "awavcl"), "param_name" => "column_num", "value" => array( __("1 Column","awavcl") => '1', __("2 Columns","awavcl") => '2', __("3 Columns","awavcl") => '3', __("4 Columns","awavcl") => '4', __("5 Columns","awavcl") => '5', __("6 Columns","awavcl") => '6', ), "dependency" => array( 'element' => "testi_box_style", 'value' => array('testi_style_5','testi_style_4','testi_style_3') ), ), array( 'type' => 'param_group', 'heading' => __( 'Testimonial Slider Content', 'awavcl' ), 'param_name' => 'slider_data', 'params' => array( array( "type" => "attach_image", "heading" => __("Author Image", "awavcl"), "param_name" => "image", "value" => "", "description" => __("Choose your image icon::60*60", "awavcl"), ), array( "type" => "textfield", "heading" => __("Title", 'awavcl'), "param_name" => "title", "description" => __("", 'awavcl'), "value" => __("Title", 'awavcl'), ), array( "type" => "textfield", "heading" => __("Company Name", 'awavcl'), "param_name" => "company", "description" => __("", 'awavcl'), "value" => __("Company", 'awavcl'), "dependency" => array( 'element' => "testi_box_style", 'value' => array('testi_style_4') ), ), array( "type" => "textarea", "heading" => __("Comment", 'awavcl'), "param_name" => "desc", "description" => __("", 'awavcl'), "value" => __("There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable.", 'awavcl'), ), array( "type" => "textarea", "heading" => __("Position", 'awavcl'), "param_name" => "position", "description" => __("", 'awavcl'), "value" => __("Position", 'awavcl'), ), array( "type" => "dropdown", "class" => "", "heading" => __("Rating Stared", "awavcl"), "param_name" => "rating_star", "value" => array( __("0 Star","awavcl") => '', __("1 Star","awavcl") => 'adts_testimonial__rating--1', __("2 Star","awavcl") => 'adts_testimonial__rating--2', __("3 Star","awavcl") => 'adts_testimonial__rating--3', __("4 Star","awavcl") => 'adts_testimonial__rating--4', __("5 Star","awavcl") => 'adts_testimonial__rating--5', ), ), array( "type" => "textfield", "heading" => __("Facebook URL", 'awavcl'), "param_name" => "sc_url_1", "description" => __("", 'awavcl'), "value" => __("", 'awavcl'), ), array( "type" => "textfield", "heading" => __("Twitter URL", 'awavcl'), "param_name" => "sc_url_2", "description" => __("", 'awavcl'), "value" => __("", 'awavcl'), ), array( "type" => "textfield", "heading" => __("Google Plus URL", 'awavcl'), "param_name" => "sc_url_3", "description" => __("", 'awavcl'), "value" => __("", 'awavcl'), ), array( "type" => "textfield", "heading" => __("Linked In URL", 'awavcl'), "param_name" => "sc_url_4", "description" => __("", 'awavcl'), "value" => __("", 'awavcl'), ), array( "type" => "textfield", "heading" => __("Instagram In URL", 'awavcl'), "param_name" => "sc_url_5", "description" => __("", 'awavcl'), "value" => __("", 'awavcl'), ), ), ), array( 'type' => 'prime_slider', 'heading' => __( 'Title Font Size', 'awavcl' ), 'param_name' => 'title_size', "value" => 20, "min" => 5, "max" => 100, "step" => 1, "unit" => "px", "description" => __("Choose Title Font Size as Pixel.", "awavcl"), "group" => __("Settings", 'awavcl'), ), array( "type" => "dropdown", "class" => "", "heading" => __("Title Font style", "awavcl"), "param_name" => "title_style", "value" => array( __("Normal","awavcl") => "", __("Italic","awavcl") => "italic", ), "group" => __("Settings", 'awavcl'), ), array( 'type' => 'prime_slider', 'heading' => __( 'Description Font Size', 'awavcl' ), 'param_name' => 'desc_size', "value" => 14, "min" => 5, "max" => 100, "step" => 1, "unit" => "px", "description" => __("Choose Description Font Size as Pixel.", "awavcl"), "group" => __("Settings", 'awavcl'), ), array( "type" => "dropdown", "class" => "", "heading" => __("Description Font style", "awavcl"), "param_name" => "desc_style", "value" => array( __("Normal","awavcl") => "", __("Italic","awavcl") => "italic", ), "group" => __("Settings", 'awavcl'), ), array( 'type' => 'prime_slider', 'heading' => __( 'Position Font Size', 'awavcl' ), 'param_name' => 'position_size', "value" => 14, "min" => 5, "max" => 100, "step" => 1, "unit" => "px", "description" => __("Choose Description Font Size as Pixel.", "awavcl"), "group" => __("Settings", 'awavcl'), ), array( "type" => "dropdown", "class" => "", "heading" => __("Position Font Style", "awavcl"), "param_name" => "position_style", "value" => array( __("Normal","awavcl") => "", __("Italic","awavcl") => "italic", ), "group" => __("Settings", 'awavcl'), ), array( "type" => "colorpicker", "heading" => __("Background Color", 'awavcl'), "param_name" => "bg_color", "value" => "", "group" => __("Colors", 'awavcl'), "dependency" => array( 'element' => "testi_sldr_style", 'value' => array('testi_style_2','testi_style_3','testi_style_4') ), ), array( "type" => "colorpicker", "heading" => __("Border Color", 'awavcl'), "param_name" => "bg_color1", "value" => "", "group" => __("Colors", 'awavcl'), ), array( "type" => "colorpicker", "heading" => __("Folded Part Color", 'awavcl'), "param_name" => "bg_color2", "value" => "", "Description" => __("Colsest to border color will look good", 'awavcl'), "group" => __("Colors", 'awavcl'), "dependency" => array( 'element' => "testi_sldr_style", 'value' => array('testi_style_2','testi_style_3','testi_style_4') ), ), array( "type" => "colorpicker", "heading" => __("Title Color", 'awavcl'), "param_name" => "ttl_color", "value" => "", "group" => __("Colors", 'awavcl'), ), array( "type" => "colorpicker", "heading" => __("Comment Color", 'awavcl'), "param_name" => "descrip_color", "value" => "", "group" => __("Colors", 'awavcl'), ), array( "type" => "colorpicker", "heading" => __("Position Color", 'awavcl'), "param_name" => "pos_color", "value" => "", "group" => __("Colors", 'awavcl'), ), array( "type" => "colorpicker", "heading" => __("Qoute Color", 'awavcl'), "param_name" => "qot_clr", "value" => "", "group" => __("Colors", 'awavcl'), ), array( "type" => "colorpicker", "heading" => __("Rating Color", 'awavcl'), "param_name" => "rating_color", "value" => "", "group" => __("Colors", 'awavcl'), ), array( "type" => "colorpicker", "heading" => __("Icon Background", 'awavcl'), "param_name" => "icon_bg", "value" => "", "group" => __("Colors", 'awavcl'), "dependency" => array( 'element' => "testi_box_style", 'value' => array('testi_style_5','testi_style_4','testi_style_3','testi_style_2') ), ), array( "type" => "colorpicker", "heading" => __("Nav Color", 'awavcl'), "param_name" => "nav_bg", "value" => "", "group" => __("Colors", 'awavcl'), "dependency" => array( 'element' => "testi_box_style", 'value' => array('testi_style_5','testi_style_4','testi_style_3','testi_style_2') ), ), array( "type" => "textfield", "heading" => esc_attr__("Extra class name", 'awavcl'), "param_name" => "el_class", "description" => esc_attr__("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", 'awavcl'), ), ) )); function awavc_testimonial_slider_shortcode($atts, $content = null) { extract(shortcode_atts(array( //'show_btnnnn' => 'Yes', 'testi_sldr_style' => 'testi_style_1', 'slider_data' => '', 'title_size' => '', 'title_style' => '', 'desc_size' => '', 'desc_style' => '', 'el_class' =>'', 'position_size' =>'', 'position_style' =>'', 'bg_color' =>'', 'bg_color1' =>'', 'bg_color2' =>'', 'bg_color_hvr' =>'', 'ttl_color' =>'', 'descrip_color' =>'', 'pos_color' =>'', 'services_lists' =>'', 'rating_color' =>'', 'brdr_color' =>'', 'column_num' =>'', 'qot_clr' =>'', 'icon_bg' =>'', 'nav_bg' =>'', 'customer_link' =>'', ), $atts)); wp_register_style( 'awavcl.xowl.carousel', plugins_url( '/css/owl.carousel.css', __FILE__) ); wp_enqueue_style( 'awavcl.xowl.carousel' ); wp_register_style( 'awavcl.oxwl.transitions', plugins_url( '/css/owl.transitions.css', __FILE__) ); wp_enqueue_style( 'awavcl.oxwl.transitions' ); wp_register_style( 'awavcl.oxwl.theme', plugins_url( '/css/owl.theme.css', __FILE__) ); wp_enqueue_style( 'awavcl.oxwl.theme' ); wp_register_style( 'awavcl.sxtylets', plugins_url( '/css/style.css', __FILE__) ); wp_enqueue_style( 'awavcl.sxtylets' ); wp_register_script('adv.owl.xcarousel.min', plugins_url('/js/owl.carousel.min.js', __FILE__), array('jquery')); wp_enqueue_script('adv.owl.xcarousel.min'); wp_register_script('adv-main.xjs', plugins_url('/js/main.js', __FILE__), array('jquery')); wp_enqueue_script('adv-main.xjs'); //$image_url = wp_get_attachment_url( $image, 'full' ); //$image = aq_resize( $image_url, 296, 289, false ); //resize & crop the image //var_dump($image); $html = ''; $social_html = ''; $customer_link = vc_build_link( $customer_link); $slider_contents = vc_param_group_parse_atts($slider_data); if($testi_sldr_style == 'testi_style_1') { $add_class = (rand(99,9999)); $html .= '
'.$desc.'
'.$desc.'