"Advanced Tabs", "category" => 'Advanced Elements', "description" => "Animated Tabs", "base" => "awavc_tabs_style", "class" => "", "icon" => "advc_tab_ico", "params" => array( array( "type" => "dropdown", "class" => "", "heading" => __("Tab Box", "awavcl"), "param_name" => "tab_box", "description" => __("Ps: In a page you can use one tab section...We are on fixing this bug ASAP . then you will use more then one tsb box", "awavcl"), "value" => array( __("Tab 1","awavcl") => 'tab_box_1', ), "admin_label" => true, ), array( "type" => "dropdown", "class" => "", "heading" => __("Tab Box Layout", "awavcl"), "param_name" => "tabs_lay", "value" => array( __("Layout 1","awavcl") => 'awavc-tabs-pos-left', __("Layout 2","awavcl") => 'awavc-tabs-pos-right', __("Layout 3","awavcl") => 'awavc-tabs-pos-top-center', __("Layout 4","awavcl") => 'awavc-tabs-pos-top-left', __("Layout 5","awavcl") => 'awavc-tabs-pos-top-right', ), "admin_label" => true, ), array( "type" => "dropdown", "class" => "", "heading" => __("Tab Animation", "awavcl"), "param_name" => "tab_style", "value" => array( __("Animation Fade","awavcl") => '', __("Animation Flip","awavcl") => 'awavc-tabs-anim-flip', __("Animation Rotate","awavcl") => 'awavc-tabs-anim-rotate', __("Animation Scale","awavcl") => 'awavc-tabs-anim-scale', __("Animation Slide Down","awavcl") => 'awavc-tabs-anim-slide-down', __("Animation Slide Down Left","awavcl") => 'awavc-tabs-anim-slide-down-left', __("Animation Slide Down Right","awavcl") => 'awavc-tabs-anim-slide-down-right', __("Animation Slide Left","awavcl") => 'awavc-tabs-tabs-anim-slide-left', __("Animation Slide Up","awavcl") => 'awavc-tabs-anim-slide-up', __("Animation Slide Up Left","awavcl") => 'awavc-tabs-anim-slide-up-left', __("Animation Slide Up Right","awavcl") => 'awavc-tabs-anim-slide-up-right', ), ), array( 'type' => 'param_group', 'heading' => __( 'Tab Contents', 'awavcl' ), 'param_name' => 'tab_contents', 'params' => array( array( "type" => "textfield", "heading" => __("Tab Lable", "awavcl"), "param_name" => "tab_lbl", "value" => "Lable", "description" => __("Title", "awavcl"), ), array( "type" => "iconpicker", "heading" => __("Tab Header Icon", "awavcl"), "param_name" => "icon", "value" => "fa fa-bus", "description" => __("", "awavcl"), ), array( "type" => "textfield", "heading" => __("Tab Content Title", "awavcl"), "param_name" => "title", "value" => "Title", "description" => __("Title", "awavcl"), ), array( "type" => "textarea", "heading" => __("Content", "awavcl"), "param_name" => "content", "value" => __( "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.", "awavcl" ), ), ), ), array( 'type' => 'prime_slider', 'heading' => __( 'Lable Font Size', 'awavcl' ), 'param_name' => 'lable_size', "value" => 20, "min" => 5, "max" => 100, "step" => 1, "unit" => "px", "description" => __("Choose Title Font Size as Pixel. Default is 26px", "awavcl"), "group" => __("Settings", 'awavcl'), ), array( 'type' => 'prime_slider', 'heading' => __( 'Title Font Size', 'awavcl' ), 'param_name' => 'ttl_size', "value" => 32, "min" => 5, "max" => 100, "step" => 1, "unit" => "px", "description" => __("Choose Title Font Size as Pixel. Default is 26px", "awavcl"), "group" => __("Settings", 'awavcl'), ), array( 'type' => 'prime_slider', 'heading' => __( 'Content Font Size', 'awavcl' ), 'param_name' => 'content_size', "value" => 14, "min" => 5, "max" => 100, "step" => 1, "unit" => "px", "description" => __("Choose Title Font Size as Pixel. Default is 26px", "awavcl"), "group" => __("Settings", 'awavcl'), ), array( "type" => "dropdown", "class" => "", "heading" => __("Content Font style", "awavcl"), "param_name" => "content_style", "value" => array( __("Normal","awavcl") => "", __("Italic","awavcl") => "italic", ), "group" => __("Settings", 'awavcl'), ), array( 'type' => 'prime_slider', 'heading' => __( 'Tab Lable Padding: Top+Bottom', 'awavcl' ), 'param_name' => 'pad_tb', "value" => 20, "min" => 0, "max" => 100, "step" => 1, "unit" => "px", "description" => __("Choose Title Font Size as Pixel. Default is 26px", "awavcl"), "group" => __("Settings", 'awavcl'), ), array( 'type' => 'prime_slider', 'heading' => __( 'Tab Lable Padding: Left+Right', 'awavcl' ), 'param_name' => 'pad_lr', "value" => 10, "min" => 0, "max" => 100, "step" => 1, "unit" => "px", "description" => __("Choose Title Font Size as Pixel. Default is 26px", "awavcl"), "group" => __("Settings", 'awavcl'), ), array( "type" => "colorpicker", "heading" => __("Background Color", 'awavcl'), "param_name" => "bg_clr", "value" => "", "group" => __("Colors", 'awavcl'), ), array( "type" => "colorpicker", "heading" => __("Lable Back on Hover/Focus", 'awavcl'), "param_name" => "lable_bg", "value" => "", "group" => __("Colors", 'awavcl'), ), array( "type" => "colorpicker", "heading" => __("Lable Color", 'awavcl'), "param_name" => "lable_clr", "value" => "", "group" => __("Colors", 'awavcl'), ), array( "type" => "colorpicker", "heading" => __("Icon Color", 'awavcl'), "param_name" => "icon_clr", "value" => "", "group" => __("Colors", 'awavcl'), ), array( "type" => "colorpicker", "heading" => __("Lable Text And Icon Color on Hover/Focus", 'awavcl'), "param_name" => "clr_hvr", "value" => "", "group" => __("Colors", 'awavcl'), ), array( "type" => "colorpicker", "heading" => __("Title Color", 'awavcl'), "param_name" => "ttl_clr", "value" => "", "group" => __("Colors", 'awavcl'), ), array( "type" => "colorpicker", "heading" => __("Content Color", 'awavcl'), "param_name" => "content_clr", "value" => "", "group" => __("Colors", 'awavcl'), ), array( "type" => "colorpicker", "heading" => __("Border Color", 'awavcl'), "param_name" => "brdr_clr", "value" => "", "group" => __("Colors", 'awavcl'), "desc" => __("", 'awavcl'), ), 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_tabs_style_shortcode($atts, $content = null) { extract(shortcode_atts(array( //'show_btnnnn' => 'Yes', 'tab_box' => 'tab_box_1', 'tabs_lay' => 'awavc-tabs-pos-left', 'tab_style' => '', 'tab_contents' => '', 'lable_size' => '', 'ttl_size' => '', 'content_size' => '', 'content_style' => '', 'pad_tb' => '', 'pad_lr' => '', 'bg_clr' => '', 'lable_bg' => '', 'lable_clr' => '', 'ttl_clr' => '', 'icon_clr' => '', 'content_clr' => '', 'content_clr' => '', 'clr_hvr' => '', 'brdr_clr' => '', 'el_class' => '', ), $atts)); wp_register_style( 'awavcl.style-tab', plugins_url( '/css/awavcl.style-tab.css', __FILE__) ); wp_enqueue_style( 'awavcl.style-tab' ); $tab_contents = vc_param_group_parse_atts($tab_contents); $html = ''; if($tab_box == 'tab_box_1') { $add_class = rand(99,9999); $q = rand(99,99999); $html .= '
'; } return $html; } add_shortcode("awavc_tabs_style", "awavc_tabs_style_shortcode");