__("Advanced Button", "awavcl"), "category" => 'Advanced Elements', "description" => "Animated Buttons", "base" => "awavc_button", "class" => "", "icon" => "awavc-btn-icon", "params" => array( array( "type" => "dropdown", "class" => "", "heading" => __("Button Styles", "awavcl"), "param_name" => "btns_design", "admin_label" => true, "value" => array( __("style 1","awavcl") => '!!!', __("style 2","awavcl") => 'awavc-button-radius', __("style 3","awavcl") => 'primary-bg cvc', __("style 4","awavcl") => 'primary-bg awavc-button-radius', __("style 5","awavcl") => 'awavc-button-border awavc-button-radius', __("style 6","awavcl") => 'awavc-border-right', __("style 7","awavcl") => 'awavc-button-border', __("style 8","awavcl") => 'awavc-border-left', __("style 9","awavcl") => 'awavc-button-shade', __("style 10","awavcl") => 'border-line', ), ), array( "type" => "vc_link", "heading" => __("Button Text and Link", 'awavcl'), "param_name" => "btn_links", "description" => __("", 'awavcl'), "value" => __("Title", 'awavcl'), ), array( "type" => "iconpicker", "heading" => __("Font Icon", "awavcl"), "param_name" => "font_icon", "value" => "fa fa-handshake-o", ), array( "type" => "dropdown", "class" => "", "heading" => __("Button Size", "awavcl"), "param_name" => "btns_size", "value" => array( __("Extra Small","awavcl") => 'awavc-button-1x', __("Small","awavcl") => 'awavc-button-2x', __("Medium","awavcl") => 'awavc-button-3x', __("Large","awavcl") => 'awavc-button-4x', __("Huge","awavcl") => 'awavc-button-5x', ), ), array( 'type' => '', 'heading' => __( 'Button Text Size', 'awavcl' ), 'param_name' => 'btn_tx_size', "value" => 14, "min" => 5, "max" => 99, "step" => 1, "unit" => "px", "description" => __("", "awavcl"), "group" => __("", 'awavcl'), ), array( "type" => "colorpicker", "heading" => __("Button Background", 'awavcl'), "param_name" => "bg_color", "value" => "", "group" => __("Colors", 'awavcl'), ), array( "type" => "colorpicker", "heading" => __("Button Text Color", 'awavcl'), "param_name" => "tx_color", "value" => "", "group" => __("Colors", 'awavcl'), ), array( "type" => "colorpicker", "heading" => __("Button Background on Hover", 'awavcl'), "param_name" => "bg_color_hvr", "value" => "", "group" => __("Colors", 'awavcl'), ), array( "type" => "colorpicker", "heading" => __("Button text on Hover", 'awavcl'), "param_name" => "tx_color_hvr", "value" => "", "group" => __("Colors", '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_button_shortcode($atts, $content = null) { extract(shortcode_atts(array( //'show_btnnnn' => 'Yes', 'btns_design' => '', 'btn_links' => 'Learn More', 'btns_size' => 'awavc-button-3x', 'font_icon' => '', 'btn_tx_size' => '', 'bg_color' => '', 'tx_color' => '', 'bg_color_hvr' => '', 'tx_color_hvr' => '', 'el_class' => '', ), $atts)); wp_register_style( 'awavcl.style-btn', plugins_url( '/css/style-btn.css', __FILE__) ); wp_enqueue_style( 'awavcl.style-btn' ); $btn_link = vc_build_link( $btn_links); $btn_url = $btn_link['url']; $btn_target = $btn_link['target']; $btn_title = $btn_link['title']; $arrow =' '; $add_class = (rand(99,9999)); $html = ' '; $html .= '
'; return $html; } add_shortcode("awavc_button", "awavc_button_shortcode");