.items_to_show.vc_shortcode-param { background: #E6E6E6; padding-bottom: 10px; } .items_to_show.ult_margin_bottom{ margin-bottom: 15px; } .items_to_show.ult_margin_top{ margin-top: 15px; } '; } function ultimate_front_scripts() { Ultimate_VC_Addons::ultimate_register_script( 'ult-slick', 'slick', false, array( 'jquery' ), ULTIMATE_VERSION, false ); Ultimate_VC_Addons::ultimate_register_script( 'ult-slick-custom', 'slick-custom', false, array( 'jquery', 'ult-slick' ), ULTIMATE_VERSION, false ); Ultimate_VC_Addons::ultimate_register_style( 'ult-slick', 'slick' ); Ultimate_VC_Addons::ultimate_register_style( 'ult-icons', UAVC_URL.'assets/css/icons.css', true ); } function ultimate_admin_scripts( $hook ) { if ( $hook == "post.php" || $hook == "post-new.php" ) { wp_enqueue_style( "ult-icons", UAVC_URL.'assets/css/icons.css' ); } } function init_carousel_addon() { if ( function_exists( "vc_map" ) ) { vc_map( array( "name" => __( "Advanced Carousel", "ultimate_vc" ), "base" => "ultimate_carousel", "icon" => "ultimate_carousel", "class" => "ultimate_carousel", "as_parent" => array( 'except' => 'ultimate_carousel' ), "content_element" => true, "controls" => "full", "show_settings_on_create" => true, "category" => "Ultimate VC Addons", "description" => __( "Carousel anything.", "ultimate_vc" ), "params" => array( array( "type" => "dropdown", "class" => "", "heading" => __( "Slider Type", "ultimate_vc" ), "param_name" => "slider_type", "value" => array( "Horizontal" => "horizontal", "Vertical" => "vertical", "Horizontal Full Width" => "full_width" ), //"description" => __("","smile"), "group" => "General", ), array( "type" => "dropdown", "class" => "", "heading" => __( "Slides to Scroll", "ultimate_vc" ), "param_name" => "slide_to_scroll", "value" => array( "All visible" => "all", "One at a Time" => "single" ), //"description" => __("","smile"), "group" => "General", ), array( "type" => "text", "param_name" => "title_text_typography", "heading" => "
" . __( "Items to Show -", "ultimate_vc" ) . "
", "value" => "", "edit_field_class" => "vc_col-sm-12 items_to_show ult_margin_top", "group" => "General" ), array( "type" => "number", "class" => "", "edit_field_class" => "vc_col-sm-4 items_to_show ult_margin_bottom", "heading" => __( "On Desktop", "ultimate_vc" ), "param_name" => "slides_on_desk", "value" => "5", "min" => "1", "max" => "25", "step" => "1", //"description" => __("","smile"), "group" => "General", ), array( "type" => "number", "class" => "", "edit_field_class" => "vc_col-sm-4 items_to_show ult_margin_bottom", "heading" => __( "On Tabs", "ultimate_vc" ), "param_name" => "slides_on_tabs", "value" => "3", "min" => "1", "max" => "25", "step" => "1", //"description" => __("","smile"), "group" => "General", ), array( "type" => "number", "class" => "", "edit_field_class" => "vc_col-sm-4 items_to_show ult_margin_bottom", "heading" => __( "On Mobile", "ultimate_vc" ), "param_name" => "slides_on_mob", "value" => "2", "min" => "1", "max" => "25", "step" => "1", //"description" => __("","smile"), "group" => "General", ), array( "type" => "ult_switch", "class" => "", "heading" => __( "Infinite loop", "ultimate_vc" ), "param_name" => "infinite_loop", // "admin_label" => true, "value" => "on", "options" => array( "on" => array( "label" => __( "Restart the slider automatically as it passes the last slide.", "ultimate_vc" ), "on" => "Yes", "off" => "No", ), ), //"description" => __("", "smile"), "dependency" => "", "default_set" => true, "group" => "General", ), array( "type" => "number", "class" => "", "heading" => __( "Transition speed", "ultimate_vc" ), "param_name" => "speed", "value" => "300", "min" => "100", "max" => "10000", "step" => "100", "suffix" => "ms", "description" => __( "Speed at which next slide comes.", "ultimate_vc" ), "group" => "General", ), array( "type" => "ult_switch", "class" => "", "heading" => __( "Autoplay Slides", "ultimate_vc" ), "param_name" => "autoplay", // "admin_label" => true, "value" => "on", "options" => array( "on" => array( "label" => __( "Enable Autoplay", "ultimate_vc" ), "on" => "Yes", "off" => "No", ), ), //"description" => __("", "smile"), "dependency" => "", "default_set" => true, "group" => "General", ), array( "type" => "number", "class" => "", "heading" => __( "Autoplay Speed", "ultimate_vc" ), "param_name" => "autoplay_speed", "value" => "5000", "min" => "100", "max" => "10000", "step" => "10", "suffix" => "ms", //"description" => __("","smile"), "dependency" => Array( "element" => "autoplay", "value" => array( "on" ) ), "group" => "General", ), array( "type" => "textfield", "class" => "", "heading" => __( "Extra Class", "ultimate_vc" ), "param_name" => "el_class", "value" => "", //"description" => __("","smile"), "group" => "General", ), array( "type" => "ult_switch", "class" => "", "heading" => __( "Navigation Arrows", "ultimate_vc" ), "param_name" => "arrows", // "admin_label" => true, "value" => "show", "options" => array( "show" => array( "label" => __( "Display next / previous navigation arrows", "ultimate_vc" ), "on" => "Yes", "off" => "No", ), ), //"description" => __("", "smile"), "dependency" => "", "default_set" => true, "group" => "Navigation", ), array( "type" => "dropdown", "class" => "", "heading" => __( "Arrow Style", "ultimate_vc" ), "param_name" => "arrow_style", "value" => array( "Default" => "default", "Circle Background" => "circle-bg", "Square Background" => "square-bg", "Circle Border" => "circle-border", "Square Border" => "square-border", ), //"description" => __("","smile"), "dependency" => Array( "element" => "arrows", "value" => array( "show" ) ), "group" => "Navigation", ), array( "type" => "colorpicker", "class" => "", "heading" => __( "Background Color", "ultimate_vc" ), "param_name" => "arrow_bg_color", "value" => "", //"description" => __("","smile"), "dependency" => Array( "element" => "arrow_style", "value" => array( "circle-bg", "square-bg" ) ), "group" => "Navigation", ), array( "type" => "colorpicker", "class" => "", "heading" => __( "Border Color", "ultimate_vc" ), "param_name" => "arrow_border_color", "value" => "", //"description" => __("","smile"), "dependency" => Array( "element" => "arrow_style", "value" => array( "circle-border", "square-border" ) ), "group" => "Navigation", ), array( "type" => "number", "class" => "", "heading" => __( "Border Size", "ultimate_vc" ), "param_name" => "border_size", "value" => "2", "min" => "1", "max" => "100", "step" => "1", "suffix" => "px", //"description" => __("","smile"), "dependency" => Array( "element" => "arrow_style", "value" => array( "circle-border", "square-border" ) ), "group" => "Navigation", ), array( "type" => "colorpicker", "class" => "", "heading" => __( "Arrow Color", "ultimate_vc" ), "param_name" => "arrow_color", "value" => "#333333", //"description" => __("","smile"), "dependency" => Array( "element" => "arrows", "value" => array( "show" ) ), "group" => "Navigation", ), array( "type" => "number", "class" => "", "heading" => __( "Arrow Size", "ultimate_vc" ), "param_name" => "arrow_size", "value" => "24", "min" => "10", "max" => "75", "step" => "1", "suffix" => "px", //"description" => __("","smile"), "dependency" => Array( "element" => "arrows", "value" => array( "show" ) ), "group" => "Navigation", ), array( "type" => "ultimate_navigation", "class" => "", "heading" => __( "Select icon for 'Next Arrow'", "ultimate_vc" ), "param_name" => "next_icon", "value" => "ultsl-arrow-right4", //"description" => __("","smile"), "dependency" => Array( "element" => "arrows", "value" => array( "show" ) ), "group" => "Navigation", ), array( "type" => "ultimate_navigation", "class" => "", "heading" => __( "Select icon for 'Previous Arrow'", "ultimate_vc" ), "param_name" => "prev_icon", "value" => "ultsl-arrow-left4", //"description" => __("","smile"), "dependency" => Array( "element" => "arrows", "value" => array( "show" ) ), "group" => "Navigation", ), array( "type" => "ult_switch", "class" => "", "heading" => __( "Dots Navigation", "ultimate_vc" ), "param_name" => "dots", // "admin_label" => true, "value" => "show", "options" => array( "show" => array( "label" => __( "Display dot navigation", "ultimate_vc" ), "on" => "Yes", "off" => "No", ), ), //"description" => __("", "smile"), "dependency" => "", "default_set" => true, "group" => "Navigation", ), array( "type" => "colorpicker", "class" => "", "heading" => __( "Color of dots", "ultimate_vc" ), "param_name" => "dots_color", "value" => "#333333", //"description" => __("","smile"), "dependency" => Array( "element" => "dots", "value" => array( "show" ) ), "group" => "Navigation", ), array( "type" => "ultimate_navigation", "class" => "", "heading" => __( "Select icon for 'Navigation Dots'", "ultimate_vc" ), "param_name" => "dots_icon", "value" => "ultsl-record", //"description" => __("","smile"), "dependency" => Array( "element" => "dots", "value" => array( "show" ) ), "group" => "Navigation", ), array( "type" => "dropdown", "class" => "", "heading" => __( "Item Animation", "ultimate_vc" ), "param_name" => "item_animation", "value" => array( __( "No Animation", "ultimate_vc" ) => "", __( "Swing", "ultimate_vc" ) => "swing", __( "Pulse", "ultimate_vc" ) => "pulse", __( "Fade In", "ultimate_vc" ) => "fadeIn", __( "Fade In Up", "ultimate_vc" ) => "fadeInUp", __( "Fade In Down", "ultimate_vc" ) => "fadeInDown", __( "Fade In Left", "ultimate_vc" ) => "fadeInLeft", __( "Fade In Right", "ultimate_vc" ) => "fadeInRight", __( "Fade In Up Long", "ultimate_vc" ) => "fadeInUpBig", __( "Fade In Down Long", "ultimate_vc" ) => "fadeInDownBig", __( "Fade In Left Long", "ultimate_vc" ) => "fadeInLeftBig", __( "Fade In Right Long", "ultimate_vc" ) => "fadeInRightBig", __( "Slide In Down", "ultimate_vc" ) => "slideInDown", __( "Slide In Left", "ultimate_vc" ) => "slideInLeft", __( "Slide In Left", "ultimate_vc" ) => "slideInLeft", __( "Bounce In", "ultimate_vc" ) => "bounceIn", __( "Bounce In Up", "ultimate_vc" ) => "bounceInUp", __( "Bounce In Down", "ultimate_vc" ) => "bounceInDown", __( "Bounce In Left", "ultimate_vc" ) => "bounceInLeft", __( "Bounce In Right", "ultimate_vc" ) => "bounceInRight", __( "Rotate In", "ultimate_vc" ) => "rotateIn", __( "Light Speed In", "ultimate_vc" ) => "lightSpeedIn", __( "Roll In", "ultimate_vc" ) => "rollIn", ), //"description" => __("", "smile"), "group" => "Animation", ), array( "type" => "ult_switch", "class" => "", "heading" => __( "Draggable Effect", "ultimate_vc" ), "param_name" => "draggable", "value" => "on", "options" => array( "on" => array( "label" => __( "Allow slides to be draggable", "ultimate_vc" ), "on" => "Yes", "off" => "No", ), ), "dependency" => "", "default_set" => true, "group" => "Advanced", ), array( "type" => "ult_switch", "class" => "", "heading" => __( "Touch Move", "ultimate_vc" ), "param_name" => "touch_move", // "admin_label" => true, "value" => "on", "options" => array( "on" => array( "label" => __( "Enable slide moving with touch", "ultimate_vc" ), "on" => "Yes", "off" => "No", ), ), //"description" => __("", "smile"), "dependency" => Array( "element" => "draggable", "value" => array( "on" ) ), "default_set" => true, "group" => "Advanced", ), array( "type" => "ult_switch", "class" => "", "heading" => __( "RTL Mode", "ultimate_vc" ), "param_name" => "rtl", // "admin_label" => true, "value" => "", "options" => array( "on" => array( "label" => __( "Turn on RTL mode", "ultimate_vc" ), "on" => "Yes", "off" => "No", ), ), //"description" => __("", "smile"), "dependency" => "", "group" => "Advanced", ), array( "type" => "ult_switch", "class" => "", "heading" => __( "Adaptive Height", "ultimate_vc" ), "param_name" => "adaptive_height", // "admin_label" => true, "value" => "", "options" => array( "on" => array( "label" => __( "Turn on Adaptive Height", "ultimate_vc" ), "on" => "Yes", "off" => "No", ), ), //"description" => __("", "smile"), "dependency" => "", "group" => "Advanced", ), array( "type" => "ult_switch", "class" => "", "heading" => __( "Pause on hover", "ultimate_vc" ), "param_name" => "pauseohover", // "admin_label" => true, "value" => "on", "options" => array( "on" => array( "label" => __( "Pause the slider on hover", "ultimate_vc" ), "on" => "Yes", "off" => "No", ), ), "dependency" => Array("element" => "autoplay", "value" => "on" ), "group" => "Advanced", ), array( "type" => "ult_switch", "class" => "", "heading" => __( "Center mode", "ultimate_vc" ), "param_name" => "centermode", // "admin_label" => true, "value" => "off", "options" => array( "on" => array( "label" => __( "Enable center mode of the carousel", "ultimate_vc" ), "on" => "Yes", "off" => "No", ), ), "description" => __("Enables centered view with partial prev/next slides.