esc_html__("Reviews carousel", "keydesign"), "description" => esc_html__("List all your client reviews in a carousel.", "keydesign"), "base" => "tek_reviewcarousel", "class" => "", "show_settings_on_create" => true, "content_element" => true, "as_parent" => array('only' => 'tek_reviewcarousel_single'), "icon" => plugins_url('assets/element_icons/review-carousel.png', dirname(__FILE__)), "category" => esc_html__("KeyDesign Elements", "keydesign"), "js_view" => 'VcColumnView', "params" => array( array( "type" => "dropdown", "class" => "", "heading" => esc_html__("Navigation style","keydesign"), "param_name" => "rwp_nav_style", "value" => array( "Arrows" => "nav-arrows", "Dots" => "nav-dots", "Arrows and dots" => "nav-arrows-dots", ), "save_always" => true, "description" => esc_html__("Select navigation style.", "keydesign") ), array( "type" => "dropdown", "class" => "", "heading" => esc_html__("Navigation color", "keydesign"), "param_name" => "rwp_navigation_color", "value" => array( "Black" => "black-navigation", "White" => "white-navigation", ), "save_always" => true, "description" => esc_html__("Select the navigation color.", "keydesign"), ), array( "type" => "dropdown", "class" => "", "heading" => esc_html__("Enable autoplay","keydesign"), "param_name" => "rwp_autoplay", "value" => array( "Off" => "auto_off", "On" => "auto_on" ), "save_always" => true, "description" => esc_html__("Carousel autoplay settings.", "keydesign") ), array( "type" => "dropdown", "class" => "", "heading" => esc_html__("Autoplay speed","keydesign"), "param_name" => "rwp_autoplay_speed", "value" => array( "10s" => "10000", "9s" => "9000", "8s" => "8000", "7s" => "7000", "6s" => "6000", "5s" => "5000", "4s" => "4000", "3s" => "3000", ), "save_always" => true, "dependency" => array( "element" => "rwp_autoplay", "value" => array("auto_on") ), "description" => esc_html__("Carousel autoplay speed.", "keydesign") ), array( "type" => "dropdown", "class" => "", "heading" => esc_html__("Stop on hover","keydesign"), "param_name" => "rwp_stoponhover", "value" => array( "Off" => "hover_off", "On" => "hover_on" ), "save_always" => true, "dependency" => array( "element" => "rwp_autoplay", "value" => array("auto_on") ), "description" => esc_html__("Stop sliding carousel on mouse over.", "keydesign") ), array( "type" => "textfield", "class" => "", "heading" => esc_html__("Extra class name", "keydesign"), "param_name" => "rwp_extra_class", "value" => "", "description" => esc_html__("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.", "keydesign") ), ) )); // Shortcode configuration vc_map(array( "name" => esc_html__("Review item", "keydesign"), "base" => "tek_reviewcarousel_single", "content_element" => true, "as_child" => array('only' => 'tek_reviewcarousel'), "icon" => plugins_url('assets/element_icons/reviews.png', dirname(__FILE__)), "params" => array( array( "type" => "textfield", "class" => "kd-back-desc", "heading" => esc_html__("Author name", "keydesign"), "param_name" => "rw_author_name", "holder" => "div", "value" => "", "description" => esc_html__("Write the review author name.", "keydesign"), ), array( "type" => "colorpicker", "class" => "", "heading" => esc_html__("Author name text color", "keydesign"), "param_name" => "rw_author_name_color", "value" => "", "description" => esc_html__("Choose author name text color. If none selected, the default theme color will be used.", "keydesign"), ), array( "type" => "textfield", "class" => "", "heading" => esc_html__("Author description", "keydesign"), "param_name" => "rw_author_desc", "value" => "", "description" => esc_html__("Write the review author description.", "keydesign"), ), array( "type" => "colorpicker", "class" => "", "heading" => esc_html__("Author description text color", "keydesign"), "param_name" => "rw_author_desc_color", "value" => "", "description" => esc_html__("Choose author description text color. If none selected, the default theme color will be used.", "keydesign"), ), array( "type" => "dropdown", "class" => "", "heading" => esc_html__("Author image source", "keydesign"), "param_name" => "image_source", "value" => array( "Media library" => "media_library", "External link" => "external_link", ), "description" => esc_html__("Select image source.", "keydesign"), "save_always" => true, ), array( "type" => "attach_image", "class" => "", "heading" => esc_html__("Author profile image", "keydesign"), "param_name" => "rw_author_image", "value" => "", "description" => esc_html__("Upload author profile image.", "keydesign"), "dependency" => array( "element" => "image_source", "value" => array("media_library") ), ), array( "type" => "textfield", "class" => "", "heading" => esc_html__("Author image external source", "keydesign"), "param_name" => "ext_image", "value" => "", "description" => esc_html__("Enter image external link.", "keydesign"), "dependency" => array( "element" => "image_source", "value" => array("external_link") ), ), array( "type" => "textfield", "class" => "", "heading" => esc_html__("Author image size", "keydesign"), "param_name" => "ext_image_size", "value" => "", "description" => esc_html__("Enter image size in pixels. Example: 230x400 (Width x Height).", "keydesign"), "dependency" => array( "element" => "image_source", "value" => array("external_link") ), ), array( "type" => "textarea", "class" => "", "heading" => esc_html__("Review message", "keydesign"), "param_name" => "rw_review_message", "value" => "", "description" => esc_html__("Write the review message.", "keydesign") ), array( "type" => "colorpicker", "class" => "", "heading" => esc_html__("Review message text color", "keydesign"), "param_name" => "rw_review_message_color", "value" => "", "description" => esc_html__("Choose review message text color. If none selected, the default theme color will be used.", "keydesign"), ), array( "type" => "dropdown", "class" => "", "heading" => esc_html__("Show star rating","keydesign"), "param_name" => "rw_show_review_rating", "value" => array( "Show star rating" => "show_stars", "Hide star rating" => "hide_stars" ), "save_always" => true, "description" => esc_html__("Display stars rating.", "keydesign") ), array( "type" => "dropdown", "class" => "", "heading" => esc_html__("Review rating","keydesign"), "param_name" => "rw_review_rating", "value" => array( "1 star" => "one_star", "2 stars" => "two_stars", "3 stars" => "three_stars", "4 stars" => "four_stars", "5 stars" => "five_stars", ), "save_always" => true, "dependency" => array( "element" => "rw_show_review_rating", "value" => array("show_stars") ), "description" => esc_html__("Select review rating.", "keydesign") ), array( "type" => "colorpicker", "class" => "", "heading" => esc_html__("Star color", "keydesign"), "param_name" => "rw_star_color", "value" => "", "dependency" => array( "element" => "rw_show_review_rating", "value" => array("show_stars") ), "description" => esc_html__("Choose star color.", "keydesign") ), array( "type" => "colorpicker", "class" => "", "heading" => esc_html__("Box background color", "keydesign"), "param_name" => "rw_box_background", "value" => "", "description" => esc_html__("Choose review box background color. If none selected, the default theme color will be used.", "keydesign") ), array( "type" => "dropdown", "class" => "", "heading" => esc_html__("CSS Animation", "keydesign"), "param_name" => "css_animation", "value" => array( "No" => "", "Fade In" => "kd-animated fadeIn", "Fade In Down" => "kd-animated fadeInDown", "Fade In Left" => "kd-animated fadeInLeft", "Fade In Right" => "kd-animated fadeInRight", "Fade In Up" => "kd-animated fadeInUp", "Zoom In" => "kd-animated zoomIn", ), "save_always" => true, "admin_label" => true, "description" => esc_html__("Select type of animation for element to be animated when it enters the browsers viewport (Note: works only in modern browsers).", "keydesign"), "group" => esc_html__( "Extras", "keydesign" ), ), array( "type" => "dropdown", "class" => "", "heading" => esc_html__("Animation delay", "keydesign"), "param_name" => "elem_animation_delay", "value" => array( "0 ms" => "", "200 ms" => "200", "400 ms" => "400", "600 ms" => "600", "800 ms" => "800", "1 s" => "1000", ), "dependency" => array( "element" => "css_animation", "value" => array("kd-animated fadeIn", "kd-animated fadeInDown", "kd-animated fadeInLeft", "kd-animated fadeInRight", "kd-animated fadeInUp", "kd-animated zoomIn") ), "save_always" => true, "admin_label" => true, "description" => esc_html__("Enter animation delay in ms", "keydesign"), "group" => esc_html__( "Extras", "keydesign" ), ), array( "type" => "textfield", "class" => "", "heading" => esc_html__("Extra class name", "keydesign"), "param_name" => "rw_extra_class", "value" => "", "description" => esc_html__("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.", "keydesign"), "group" => esc_html__( "Extras", "keydesign" ), ), ) )); } } public function kd_reviewcarousel_container($atts, $content = null) { extract(shortcode_atts(array( 'rwp_nav_style' => '', 'rwp_navigation_color' => '', 'rwp_autoplay' => '', 'rwp_autoplay_speed' => '', 'rwp_stoponhover' => '', 'rwp_extra_class' => '', ), $atts)); $output = $wrapper_class = ''; $kd_rwpunique_id = "kd-rwc-".uniqid(); $wrapper_class = implode(' ', array('review-carousel', 'rc-parent', $kd_rwpunique_id, $rwp_navigation_color, $rwp_nav_style, $rwp_extra_class)); $output .= '