esc_html__("Button", 'taskereasy'), "base" => "taskereasy_button", 'icon' => get_template_directory_uri() . '/assets/images/favicon-icon/shortcode-icon.png', "class" => "", "description" => esc_html__("Add taskereasy button", 'taskereasy'), "category" => esc_html__('Taskereasy Shortcodes', 'taskereasy'), "params" => array( array( "type" => "vc_link", "heading" => esc_html__("URL", 'taskereasy'), "param_name" => "btn_link", "value" => '' ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Button Style', 'taskereasy' ), 'param_name' => 'btn_style', 'value' => array('Style 1' => 'style1', 'Style 2' => 'style2') ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Button Alignment', 'taskereasy' ), 'param_name' => 'btn_align', 'value' => array('Left' => 'text-left', 'Center' => 'text-center', 'Right' => 'text-right') ), array( 'type' => 'css_editor', 'heading' => esc_html__( 'CSS', 'taskereasy' ), 'param_name' => 'custom_design', 'group' => esc_html__( 'Design options', 'taskereasy' ), ) ) )); add_shortcode( 'taskereasy_button', function($atts, $content = null) { extract(shortcode_atts(array( 'btn_link' => '', 'btn_style' => 'style1', 'btn_align' => 'text-left', 'custom_design' => '', ), $atts)); $custom_design = vc_shortcode_custom_css_class( $custom_design, ' ' ); $btnlink = vc_build_link( $btn_link ); $btn_link = !empty($btnlink['url']) ? $btnlink['url'] : '#'; $btn_title = $btnlink['title']; $btn_target = !empty($btnlink['target']) ? $btnlink['target'] : '_self'; $output = ''; $output .='
'; return $output; });