コード例 #1
9
 function gazeta_map_gmap()
 {
     $args = array('name' => __('Contact', 'gazeta'), 'base' => 'gazeta_gmap', 'category' => __('Gazeta', 'gazeta'), 'class' => 'gazeta', 'icon' => 'gazeta', 'description' => __('Display the Contact form/Google Map.', 'gazeta'), 'params' => array(array('type' => 'textfield', 'heading' => __('Heading', 'gazeta'), 'param_name' => 'heading', 'value' => __('Get in touch with us', 'gazeta')), array('type' => 'textarea_html', 'heading' => __('Content', 'gazeta'), 'param_name' => 'content'), array('type' => 'textfield', 'heading' => __('E-mail address', 'gazeta'), 'param_name' => 'email'), array('type' => 'textfield', 'heading' => __('Phone', 'gazeta'), 'param_name' => 'phone'), array('type' => 'textfield', 'heading' => __('Address', 'gazeta'), 'param_name' => 'address'), array('type' => 'textfield', 'heading' => __('Latitude', 'gazeta'), 'param_name' => 'latitude'), array('type' => 'textfield', 'heading' => __('Longitude', 'gazeta'), 'param_name' => 'longitude'), array('type' => 'textfield', 'heading' => __('Zoom', 'gazeta'), 'param_name' => 'zoom', 'value' => 13), array('type' => 'attach_image', 'heading' => __('Marker', 'gazeta'), 'param_name' => 'marker'), array('type' => 'colorpicker', 'heading' => __('Color', 'gazeta'), 'param_name' => 'color', 'value' => 'ffff00'), array('type' => 'textfield', 'heading' => __('Saturation', 'gazeta'), 'param_name' => 'saturation', 'value' => 20), array('type' => 'textfield', 'heading' => __('Extra class name', 'gazeta'), 'param_name' => 'el_class', 'description' => __('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.', 'gazeta'), 'value' => 'gmap-' . rand(1000, 9999)), array('type' => 'textfield', 'heading' => __('Contact Form 7 ID', 'gazeta'), 'param_name' => 'contactform_id')));
     if (function_exists('vc_map')) {
         vc_map($args);
     }
 }
コード例 #2
2
 protected static function _init_shortcodes()
 {
     if (function_exists('vc_map')) {
         asort(self::$_shortcodes);
         foreach (self::$_shortcodes as $shortcodes) {
             require_once AT_DIR . '/libraries/js_composer/' . $shortcodes . '.php';
             $class = 'AT_' . ucfirst(preg_replace('/[0-9-_]/', '', $shortcodes)) . '_VC_ShortCode';
             $class_methods = get_class_methods($class);
             if (isset($class_methods)) {
                 foreach ($class_methods as $shortcode) {
                     if ($shortcode[0] != '_') {
                         add_shortcode($shortcode, array($class, $shortcode));
                         if (is_admin()) {
                             if (function_exists('vc_map')) {
                                 vc_map(call_user_func(array($class, '_options'), $shortcode));
                                 //static method
                                 //$class = new $class;
                                 //vc_map( $class::_options( $shortcode ) );
                             }
                         }
                     }
                 }
             }
         }
         AT_Shortcode_params::init();
     }
 }
コード例 #3
1
function wps_to_vc_wps_mediabox_shortcode()
{
    // Add custom parameters
    $attributes = array(array('type' => 'textfield', 'heading' => 'Title', 'param_name' => 'title', 'admin_label' => true, 'value' => '', 'group' => esc_html__('Title', 'wps-prime'), 'description' => __('Add mediabox title.', 'wps-prime')), array('type' => 'textfield', 'heading' => 'Type Extra Class', 'param_name' => 'title_class', 'admin_label' => true, 'value' => '', 'group' => esc_html__('Title', 'wps-prime'), 'description' => __('Add custom CSS class.', 'wps-prime')), array('type' => 'textfield', 'heading' => 'Mediabox Class', 'param_name' => 'class', 'admin_label' => true, 'value' => '', 'group' => esc_html__('Classes', 'wps-prime'), 'description' => __('Add custom CSS class.', 'wps-prime')), array('type' => 'attach_image', 'heading' => 'Attach Image', 'admin_label' => true, 'param_name' => 'image_id', 'value' => '', 'group' => esc_html__('Image/Icon', 'wps-prime'), 'description' => __('Set an image', 'wps-prime')), array('type' => 'textfield', 'heading' => 'Icon Class', 'admin_label' => true, 'param_name' => 'ico_class', 'value' => '', 'group' => esc_html__('Image/Icon', 'wps-prime'), 'description' => __('Set an icon class', 'wps-prime')), array('type' => 'textfield', 'heading' => 'Image Class', 'admin_label' => true, 'param_name' => 'image_class', 'value' => '', 'group' => esc_html__('Image/Icon', 'wps-prime'), 'description' => __('Add custom class', 'wps-prime')), array('type' => 'textfield', 'heading' => 'Image link', 'admin_label' => true, 'param_name' => 'image_link', 'value' => '', 'group' => esc_html__('Image/Icon', 'wps-prime'), 'description' => __('Add custom link', 'wps-prime')), array('type' => 'dropdown', 'heading' => 'Image size', 'param_name' => 'image_size', 'value' => wps_image_sizes(), 'std' => 'full', 'group' => esc_html__('Image/Icon', 'wps-prime'), 'description' => __('Set custom image size ( Default: ‘full’)', 'wps-prime')), array('type' => 'checkbox', 'heading' => 'Divider', 'param_name' => 'divider', 'admin_label' => true, 'value' => '', 'group' => esc_html__('Divider', 'wps-prime'), 'description' => __('Use Divider.', 'wps-prime')), array('type' => 'textfield', 'heading' => 'Divider Extra Class', 'param_name' => 'divider_class', 'admin_label' => true, 'value' => '', 'group' => esc_html__('Divider', 'wps-prime'), 'description' => __('Add custom CSS class.', 'wps-prime')), array('type' => 'dropdown', 'heading' => 'Media Type', 'admin_label' => true, 'param_name' => 'type', 'value' => array('Default' => false, 'Flag' => 'flag', 'Media' => 'media'), 'group' => esc_html__('Media settings', 'wps-prime'), 'description' => __('Set media type', 'wps-prime')), array('type' => 'textfield', 'heading' => 'Type Extra Class', 'param_name' => 'type_class', 'admin_label' => true, 'value' => '', 'group' => esc_html__('Media settings', 'wps-prime'), 'description' => __('Add custom CSS class.', 'wps-prime')), array('type' => 'textfield', 'heading' => 'Type Body Class', 'param_name' => 'type_body_class', 'admin_label' => true, 'value' => '', 'group' => esc_html__('Media settings', 'wps-prime'), 'description' => __('Add custom CSS class.', 'wps-prime')), array('type' => 'textfield', 'heading' => 'Type Image Class', 'param_name' => 'type_img_class', 'admin_label' => true, 'value' => '', 'group' => esc_html__('Media settings', 'wps-prime'), 'description' => __('Add custom CSS class.', 'wps-prime')), array('type' => 'textarea_html', 'heading' => __('Content', 'wps-prime'), 'holder' => 'div', 'group' => esc_html__('Content', 'wps-prime'), 'param_name' => 'content'));
    // Title
    vc_map(array('name' => __('Mediabox'), 'base' => 'wps_mediabox', 'description' => 'Holds an image an text combination, you can add title and divider.', 'category' => __('Content'), 'icon' => 'icon-wpb-toggle-small-expand', 'params' => $attributes));
}
コード例 #4
1
 function banner_init()
 {
     if (function_exists('vc_map')) {
         $json = ultimate_get_banner2_json();
         vc_map(array("name" => __("Interactive Banner 2", "ultimate_vc"), "base" => "interactive_banner_2", "class" => "vc_interactive_icon", "icon" => "vc_icon_interactive", "category" => "Ultimate VC Addons", "description" => __("Displays the banner image with Information", "ultimate_vc"), "params" => array(array("type" => "textfield", "class" => "", "heading" => __("Title ", "ultimate_vc"), "param_name" => "banner_title", "admin_label" => true, "value" => "", "description" => __("Give a title to this banner", "ultimate_vc")), array("type" => "textarea", "class" => "", "heading" => __("Description", "ultimate_vc"), "param_name" => "banner_desc", "value" => "", "description" => __("Text that comes on mouse hover.", "ultimate_vc")), array("type" => "attach_image", "class" => "", "heading" => __("Banner Image", "ultimate_vc"), "param_name" => "banner_image", "value" => "", "description" => __("Upload the image for this banner", "ultimate_vc")), array("type" => "vc_link", "class" => "", "heading" => __("Link ", "ultimate_vc"), "param_name" => "banner_link", "value" => "", "description" => __("Add link / select existing page to link to this banner", "ultimate_vc")), array("type" => "ult_select2", "class" => "", "heading" => __("Styles ", "ultimate_vc"), "param_name" => "banner_style", "value" => "", "json" => $json, "description" => ""), array("type" => "colorpicker", "class" => "", "heading" => __("Title Background Color", "ultimate_vc"), "param_name" => "banner_title_bg", "value" => "", "description" => "", "dependency" => array("element" => "banner_style", "value" => array('style5'))), array("type" => "textfield", "class" => "", "heading" => __("Extra Class", "ultimate_vc"), "param_name" => "el_class", "value" => "", "description" => __("Add extra class name that will be applied to the icon process, and you can use this class for your customizations.", "ultimate_vc")), array("type" => "ult_param_heading", "heading" => __("Title Settings", "ultimate_vc"), "param_name" => "banner_title_typograpy", "dependency" => array("element" => "banner_title", "not_empty" => true), "group" => "Typography", "class" => "ult-param-heading", 'edit_field_class' => 'ult-param-heading-wrapper no-top-margin vc_column vc_col-sm-12'), array("type" => "ultimate_google_fonts", "heading" => __("Font Family", "smile"), "param_name" => "banner_title_font_family", "description" => __("Select the font of your choice.", "ultimate_vc") . " " . __("You can", "ultimate_vc") . " <a target='_blank' href='" . admin_url('admin.php?page=ultimate-font-manager') . "'>" . __("add new in the collection here", "ultimate_vc") . "</a>.", "dependency" => array("element" => "banner_title", "not_empty" => true), "group" => "Typography"), array("type" => "ultimate_google_fonts_style", "heading" => __("Font Style", "ultimate_vc"), "param_name" => "banner_title_style", "dependency" => array("element" => "banner_title", "not_empty" => true), "group" => "Typography"), array("type" => "number", "class" => "", "heading" => __("Font Size", "ultimate_vc"), "param_name" => "banner_title_font_size", "min" => 12, "suffix" => "px", "dependency" => array("element" => "banner_title", "not_empty" => true), "group" => "Typography"), array("type" => "ult_param_heading", "heading" => __("Description Settings", "ultimate_vc"), "param_name" => "banner_desc_typograpy", "group" => "Typography", "class" => "ult-param-heading", 'edit_field_class' => 'ult-param-heading-wrapper vc_column vc_col-sm-12'), array("type" => "ultimate_google_fonts", "heading" => __("Font Family", "smile"), "param_name" => "banner_desc_font_family", "description" => __("Select the font of your choice.", "ultimate_vc") . " " . __("You can", "ultimate_vc") . " <a target='_blank' href='" . admin_url('admin.php?page=ultimate-font-manager') . "'>" . __("add new in the collection here", "ultimate_vc") . "</a>.", "dependency" => array("element" => "banner_desc", "not_empty" => true), "group" => "Typography"), array("type" => "ultimate_google_fonts_style", "heading" => __("Font Style", "ultimate_vc"), "param_name" => "banner_desc_style", "dependency" => array("element" => "banner_desc", "not_empty" => true), "group" => "Typography"), array("type" => "number", "class" => "", "heading" => __("Font Size", "ultimate_vc"), "param_name" => "banner_desc_font_size", "min" => 12, "suffix" => "px", "dependency" => array("element" => "banner_desc", "not_empty" => true), "group" => "Typography"), array("type" => "colorpicker", "class" => "", "heading" => __("Title Color", "ultimate_vc"), "param_name" => "banner_color_title", "value" => "", "description" => "", "group" => "Color Settings"), array("type" => "colorpicker", "class" => "", "heading" => __("Description Color", "ultimate_vc"), "param_name" => "banner_color_desc", "value" => "", "description" => "", "group" => "Color Settings"), array("type" => "colorpicker", "class" => "", "heading" => __("Background Color", "ultimate_vc"), "param_name" => "banner_color_bg", "value" => "", "description" => "", "group" => "Color Settings"), array("type" => "number", "class" => "", "heading" => __("Image Opacity", "ultimate_vc"), "param_name" => "image_opacity", "value" => 1, "min" => 0.0, "max" => 1.0, "step" => 0.1, "suffix" => "", "description" => __("Enter value between 0.0 to 1 (0 is maximum transparency, while 1 is lowest)", "ultimate_vc"), "group" => "Color Settings"), array("type" => "number", "class" => "", "heading" => __("Image Opacity on Hover", "ultimate_vc"), "param_name" => "image_opacity_on_hover", "value" => 1, "min" => 0.0, "max" => 1.0, "step" => 0.1, "suffix" => "", "description" => __("Enter value between 0.0 to 1 (0 is maximum transparency, while 1 is lowest)", "ultimate_vc"), "group" => "Color Settings"), array("type" => "checkbox", "class" => "", "heading" => __("Responsive Nature", "ultimate_vc"), "param_name" => "enable_responsive", "value" => array("Enable Responsive Behaviour" => "yes"), "description" => __("If the description text is not suiting well on specific screen sizes, you may enable this option - which will hide the description text.", "ultimate_vc"), "group" => "Responsive"), array("type" => "number", "class" => "", "heading" => __("Minimum Screen Size", "ultimate_vc"), "param_name" => "responsive_min", "value" => 768, "min" => 100, "max" => 1000, "suffix" => "px", "dependency" => array("element" => "enable_responsive", "value" => "yes"), "description" => __("Provide the range of screen size where you would like to hide the description text.", "ultimate_vc"), "group" => "Responsive"), array("type" => "number", "class" => "", "heading" => __("Maximum Screen Size", "ultimate_vc"), "param_name" => "responsive_max", "value" => 900, "min" => 100, "max" => 1000, "suffix" => "px", "dependency" => array("element" => "enable_responsive", "value" => "yes"), "description" => __("Provide the range of screen size where you would like to hide the description text.", "ultimate_vc"), "group" => "Responsive"), array("type" => "heading", "sub_heading" => "<span style='display: block;'><a href='http://bsf.io/n8o33' target='_blank'>" . __("Watch Video Tutorial", "ultimate_vc") . " &nbsp; <span class='dashicons dashicons-video-alt3' style='font-size:30px;vertical-align: middle;color: #e52d27;'></span></a></span>", "param_name" => "notification", 'edit_field_class' => 'ult-param-important-wrapper ult-dashicon ult-align-right ult-bold-font ult-blue-font vc_column vc_col-sm-12'))));
     }
 }
コード例 #5
0
 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"), "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"), "group" => "General"), array("type" => "text", "param_name" => "title_text_typography", "heading" => "<p>" . __("Items to Show‏ -", "ultimate_vc") . "</p>", "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", "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", "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", "group" => "General"), array("type" => "ult_switch", "class" => "", "heading" => __("Infinite loop", "ultimate_vc"), "param_name" => "infinite_loop", "value" => "on", "options" => array("on" => array("label" => __("Restart the slider automatically as it passes the last slide.", "ultimate_vc"), "on" => "Yes", "off" => "No")), "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", "value" => "on", "options" => array("on" => array("label" => __("Enable Autoplay", "ultimate_vc"), "on" => "Yes", "off" => "No")), "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", "dependency" => array("element" => "autoplay", "value" => array("on")), "group" => "General"), array("type" => "textfield", "class" => "", "heading" => __("Extra Class", "ultimate_vc"), "param_name" => "el_class", "value" => "", "group" => "General"), array("type" => "ult_switch", "class" => "", "heading" => __("Navigation Arrows", "ultimate_vc"), "param_name" => "arrows", "value" => "show", "options" => array("show" => array("label" => __("Display next / previous navigation arrows", "ultimate_vc"), "on" => "Yes", "off" => "No")), "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"), "dependency" => array("element" => "arrows", "value" => array("show")), "group" => "Navigation"), array("type" => "colorpicker", "class" => "", "heading" => __("Background Color", "ultimate_vc"), "param_name" => "arrow_bg_color", "value" => "", "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" => "", "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", "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", "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", "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", "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", "dependency" => array("element" => "arrows", "value" => array("show")), "group" => "Navigation"), array("type" => "ult_switch", "class" => "", "heading" => __("Dots Navigation", "ultimate_vc"), "param_name" => "dots", "value" => "show", "options" => array("show" => array("label" => __("Display dot navigation", "ultimate_vc"), "on" => "Yes", "off" => "No")), "dependency" => "", "default_set" => true, "group" => "Navigation"), array("type" => "colorpicker", "class" => "", "heading" => __("Color of dots", "ultimate_vc"), "param_name" => "dots_color", "value" => "#333333", "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", "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"), "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", "value" => "on", "options" => array("on" => array("label" => __("Enable slide moving with touch", "ultimate_vc"), "on" => "Yes", "off" => "No")), "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", "value" => "", "options" => array("on" => array("label" => __("Turn on RTL mode", "ultimate_vc"), "on" => "Yes", "off" => "No")), "dependency" => "", "group" => "Advanced"), array("type" => "ult_switch", "class" => "", "heading" => __("Adaptive Height", "ultimate_vc"), "param_name" => "adaptive_height", "value" => "", "options" => array("on" => array("label" => __("Turn on Adaptive Height", "ultimate_vc"), "on" => "Yes", "off" => "No")), "dependency" => "", "group" => "Advanced"), array("type" => "number", "class" => "", "heading" => __("Space between two items", "ultimate_vc"), "param_name" => "item_space", "value" => "15", "min" => "0", "max" => "1000", "step" => "1", "suffix" => "px", "group" => "Advanced"), array("type" => "ult_param_heading", "text" => "<span style='display: block;'><a href='http://bsf.io/bzyci' target='_blank'>" . __("Watch Video Tutorial", "ultimate_vc") . " &nbsp; <span class='dashicons dashicons-video-alt3' style='font-size:30px;vertical-align: middle;color: #e52d27;'></span></a></span>", "param_name" => "notification", 'edit_field_class' => 'ult-param-important-wrapper ult-dashicon ult-align-right ult-bold-font ult-blue-font vc_column vc_col-sm-12', "group" => "General")), "js_view" => 'VcColumnView'));
         // vc_map
     }
 }
コード例 #6
0
function porto_load_products_shortcode()
{
    $animation_type = porto_vc_animation_type();
    $animation_duration = porto_vc_animation_duration();
    $animation_delay = porto_vc_animation_delay();
    $custom_class = porto_vc_custom_class();
    $order_by_values = porto_vc_woo_order_by();
    $order_way_values = porto_vc_woo_order_way();
    // woocommerce products
    vc_map(array('name' => "Porto " . __('Products', 'js_composer'), 'base' => 'porto_products', 'icon' => 'porto_vc_woocommerce', 'category' => __('WooCommerce', 'js_composer'), 'description' => __('Show multiple products by ID or SKU.', 'js_composer'), 'params' => array(array('type' => 'textfield', 'heading' => __('Title', 'woocommerce'), 'param_name' => 'title', 'admin_label' => true), array('type' => 'dropdown', 'heading' => __('View mode', 'porto'), 'param_name' => 'view', 'value' => porto_vc_commons('products_view_mode'), 'admin_label' => true), array('type' => 'dropdown', 'heading' => __('Columns', 'porto'), 'param_name' => 'columns', 'dependency' => array('element' => 'view', 'value' => array('products-slider', 'grid')), 'std' => '4', 'value' => porto_vc_commons('products_columns')), array('type' => 'dropdown', 'heading' => __('Column Width', 'porto'), 'param_name' => 'column_width', 'dependency' => array('element' => 'view', 'value' => array('products-slider', 'grid')), 'value' => porto_vc_commons('products_column_width')), array('type' => 'dropdown', 'heading' => __('Order by', 'js_composer'), 'param_name' => 'orderby', 'value' => $order_by_values, 'description' => sprintf(__('Select how to sort retrieved products. More at %s.', 'js_composer'), '<a href="http://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters" target="_blank">WordPress codex page</a>')), array('type' => 'dropdown', 'heading' => __('Order way', 'js_composer'), 'param_name' => 'order', 'value' => $order_way_values, 'description' => sprintf(__('Designates the ascending or descending order. More at %s.', 'js_composer'), '<a href="http://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters" target="_blank">WordPress codex page</a>')), array('type' => 'autocomplete', 'heading' => __('Products', 'js_composer'), 'param_name' => 'ids', 'settings' => array('multiple' => true, 'sortable' => true, 'unique_values' => true), 'description' => __('Enter List of Products', 'js_composer')), array('type' => 'hidden', 'param_name' => 'skus'), array('type' => 'dropdown', 'heading' => __('Add Links Position', 'porto'), 'desc' => 'Select position of add to cart, add to wishlist, quickview.', 'param_name' => 'addlinks_pos', 'value' => porto_vc_commons('products_addlinks_pos')), array('type' => 'checkbox', 'heading' => __('Show Navigation', 'porto'), 'param_name' => 'navigation', 'std' => 'yes', 'dependency' => array('element' => 'view', 'value' => array('products-slider')), 'value' => array(__('Yes', 'js_composer') => 'yes')), array('type' => 'checkbox', 'heading' => __('Show Pagination', 'porto'), 'param_name' => 'pagination', 'std' => 'no', 'dependency' => array('element' => 'view', 'value' => array('products-slider')), 'value' => array(__('Yes', 'js_composer') => 'yes')), $animation_type, $animation_duration, $animation_delay, $custom_class)));
    //Filters For autocomplete param:
    //For suggestion: vc_autocomplete_[shortcode_name]_[param_name]_callback
    add_filter('vc_autocomplete_porto_products_ids_callback', 'porto_shortcode_products_ids_callback', 10, 1);
    // Get suggestion(find). Must return an array
    add_filter('vc_autocomplete_porto_products_ids_render', 'porto_shortcode_products_ids_render', 10, 1);
    // Render exact product. Must return an array (label,value)
    //For param: ID default value filter
    add_filter('vc_form_fields_render_field_porto_products_ids_param_value', 'porto_shortcode_products_ids_param_value', 10, 4);
    // Defines default value for param if not provided. Takes from other param value.
    if (!class_exists('WPBakeryShortCode_Porto_Products')) {
        class WPBakeryShortCode_Porto_Products extends WPBakeryShortCode
        {
        }
    }
}
コード例 #7
0
ファイル: wc_search.php プロジェクト: Artgorae/wp-artgorae
function tpvc_product_search_vcmap()
{
    if (!class_exists('woocommerce')) {
        return;
    }
    vc_map(array('name' => __('WooCommerce - Search Products', 'tokopress'), 'base' => 'tokopress_product_search', 'class' => '', 'icon' => 'woocommerce_icon', 'category' => 'Tokopress - Marketica', 'params' => array(array('type' => 'textfield', 'heading' => __('Search Text', 'tokopress'), 'param_name' => 'tpvc_wc_search_title', 'value' => __('Find your product now, type here and hit enter', 'tokopress')), array('type' => 'colorpicker', 'heading' => __('Background Color', 'tokopress'), 'param_name' => 'tpvc_wc_search_bg'), array('type' => 'colorpicker', 'heading' => __('Text Color', 'tokopress'), 'param_name' => 'tpvc_wc_search_color'), array('type' => 'colorpicker', 'heading' => __('Icon Color', 'tokopress'), 'param_name' => 'tpvc_wc_search_icon_color'))));
}
コード例 #8
0
 function ultimate_it_init()
 {
     if (function_exists("vc_map")) {
         vc_map(array("name" => __("Info Tables"), "base" => "ultimate_info_table", "class" => "vc_ultimate_info_table", "icon" => "vc_ultimate_info_table", "category" => __("Ultimate VC Addons", 'smile'), "description" => __("Create nice looking info tables.", "smile"), "params" => array(array("type" => "dropdown", "class" => "", "heading" => __("Select Design Style", "smile"), "param_name" => "design_style", "value" => array("Design 01" => "design01", "Design 02" => "design02", "Design 03" => "design03", "Design 04" => "design04", "Design 05" => "design05", "Design 06" => "design06"), "description" => __("Select Info table design you would like to use", "smile")), array("type" => "dropdown", "class" => "", "heading" => __("Select Color Scheme", "smile"), "param_name" => "color_scheme", "value" => array("Black" => "black", "Red" => "red", "Blue" => "blue", "Yellow" => "yellow", "Green" => "green", "Gray" => "gray", "Design Your Own" => "custom"), "description" => __("Which color scheme would like to use?", "smile")), array("type" => "colorpicker", "class" => "", "heading" => __("Main background Color", "smile"), "param_name" => "color_bg_main", "value" => "", "description" => __("Select normal background color.", "smile"), "dependency" => array("element" => "color_scheme", "value" => array("custom"))), array("type" => "colorpicker", "class" => "", "heading" => __("Main text Color", "smile"), "param_name" => "color_txt_main", "value" => "", "description" => __("Select normal background color.", "smile"), "dependency" => array("element" => "color_scheme", "value" => array("custom"))), array("type" => "colorpicker", "class" => "", "heading" => __("Highlight background Color", "smile"), "param_name" => "color_bg_highlight", "value" => "", "description" => __("Select highlight background color.", "smile"), "dependency" => array("element" => "color_scheme", "value" => array("custom"))), array("type" => "colorpicker", "class" => "", "heading" => __("Highlight text Color", "smile"), "param_name" => "color_txt_highlight", "value" => "", "description" => __("Select highlight background color.", "smile"), "dependency" => array("element" => "color_scheme", "value" => array("custom"))), array("type" => "textfield", "class" => "", "heading" => __("Heading", "smile"), "param_name" => "package_heading", "admin_label" => true, "value" => "", "description" => __("The title of Info Table", "smile")), array("type" => "textfield", "class" => "", "heading" => __("Sub Heading", "smile"), "param_name" => "package_sub_heading", "value" => "", "description" => __(" Describe the info table in one line", "smile")), array("type" => "dropdown", "class" => "", "heading" => __("Icon to display:", "smile"), "param_name" => "icon_type", "value" => array("No Icon" => "none", "Font Icon Manager" => "selector", "Custom Image Icon" => "custom"), "description" => __("Use an existing font icon</a> or upload a custom image.", "smile")), array("type" => "icon_manager", "class" => "", "heading" => __("Select Icon ", "smile"), "param_name" => "icon", "value" => "", "description" => __("Click and select icon of your choice. If you can't find the one that suits for your purpose, you can <a href='admin.php?page=font-icon-Manager' target='_blank'>add new here</a>.", "smile"), "dependency" => array("element" => "icon_type", "value" => array("selector"))), array("type" => "attach_image", "class" => "", "heading" => __("Upload Image Icon:", "smile"), "param_name" => "icon_img", "value" => "", "description" => __("Upload the custom image icon.", "smile"), "dependency" => array("element" => "icon_type", "value" => array("custom"))), array("type" => "number", "class" => "", "heading" => __("Image Width", "smile"), "param_name" => "img_width", "value" => 48, "min" => 16, "max" => 512, "suffix" => "px", "description" => __("Provide image width", "smile"), "dependency" => array("element" => "icon_type", "value" => array("custom"))), array("type" => "number", "class" => "", "heading" => __("Size of Icon", "smile"), "param_name" => "icon_size", "value" => 32, "min" => 12, "max" => 72, "suffix" => "px", "description" => __("How big would you like it?", "smile"), "dependency" => array("element" => "icon_type", "value" => array("selector"))), array("type" => "colorpicker", "class" => "", "heading" => __("Color", "smile"), "param_name" => "icon_color", "value" => "#333333", "description" => __("Give it a nice paint!", "smile"), "dependency" => array("element" => "icon_type", "value" => array("selector"))), array("type" => "dropdown", "class" => "", "heading" => __("Icon Style", "smile"), "param_name" => "icon_style", "value" => array("Simple" => "none", "Circle Background" => "circle", "Square Background" => "square", "Design your own" => "advanced"), "description" => __("We have given three quick preset if you are in a hurry. Otherwise, create your own with various options.", "smile")), array("type" => "colorpicker", "class" => "", "heading" => __("Background Color", "smile"), "param_name" => "icon_color_bg", "value" => "#ffffff", "description" => __("Select background color for icon.", "smile"), "dependency" => array("element" => "icon_style", "value" => array("circle", "square", "advanced"))), array("type" => "dropdown", "class" => "", "heading" => __("Icon Border Style", "smile"), "param_name" => "icon_border_style", "value" => array("None" => "", "Solid" => "solid", "Dashed" => "dashed", "Dotted" => "dotted", "Double" => "double", "Inset" => "inset", "Outset" => "outset"), "description" => __("Select the border style for icon.", "smile"), "dependency" => array("element" => "icon_style", "value" => array("advanced"))), array("type" => "colorpicker", "class" => "", "heading" => __("Border Color", "smile"), "param_name" => "icon_color_border", "value" => "#333333", "description" => __("Select border color for icon.", "smile"), "dependency" => array("element" => "icon_border_style", "not_empty" => true)), array("type" => "number", "class" => "", "heading" => __("Border Width", "smile"), "param_name" => "icon_border_size", "value" => 1, "min" => 1, "max" => 10, "suffix" => "px", "description" => __("Thickness of the border.", "smile"), "dependency" => array("element" => "icon_border_style", "not_empty" => true)), array("type" => "number", "class" => "", "heading" => __("Border Radius", "smile"), "param_name" => "icon_border_radius", "value" => 500, "min" => 1, "max" => 500, "suffix" => "px", "description" => __("0 pixel value will create a square border. As you increase the value, the shape convert in circle slowly. (e.g 500 pixels).", "smile"), "dependency" => array("element" => "icon_border_style", "not_empty" => true)), array("type" => "number", "class" => "", "heading" => __("Background Size", "smile"), "param_name" => "icon_border_spacing", "value" => 50, "min" => 30, "max" => 500, "suffix" => "px", "description" => __("Spacing from center of the icon till the boundary of border / background", "smile"), "dependency" => array("element" => "icon_style", "value" => array("advanced"))), array("type" => "textarea_html", "class" => "", "heading" => __("Features", "smile"), "param_name" => "content", "value" => "", "description" => __("Describe the Info Table in brief.", "smile")), array("type" => "dropdown", "class" => "", "heading" => __("Add link", "smile"), "param_name" => "use_cta_btn", "value" => array("No Link" => "", "Call to Action Button" => "true", "Link to Complete Box" => "box"), "description" => __("Do you want to display call to action button?", "smile")), array("type" => "textfield", "class" => "", "heading" => __("Call to action button text", "smile"), "param_name" => "package_btn_text", "value" => "", "description" => __("Enter call to action button text", "smile"), "dependency" => array("element" => "use_cta_btn", "value" => array("true"))), array("type" => "vc_link", "class" => "", "heading" => __("Call to action link", "smile"), "param_name" => "package_link", "value" => "", "description" => __("Select / enter the link for call to action button", "smile"), "dependency" => array("element" => "use_cta_btn", "value" => array("true", "box"))), array("type" => "textfield", "class" => "", "heading" => __("Extra Class", "smile"), "param_name" => "el_class", "value" => "", "description" => __("Add extra class name that will be applied to the icon box, and you can use this class for your customizations.", "smile")))));
         // vc_map
     }
 }
 function banner_init()
 {
     if (function_exists('vc_map')) {
         $json = ultimate_get_banner2_json();
         vc_map(array("name" => __("Interactive Banner 2", "smile"), "base" => "interactive_banner_2", "class" => "vc_interactive_icon", "icon" => "vc_icon_interactive", "category" => __("Ultimate VC Addons", "smile"), "description" => __("Displays the banner image with Information", "smile"), "params" => array(array("type" => "textfield", "class" => "", "heading" => __("Title ", "smile"), "param_name" => "banner_title", "admin_label" => true, "value" => "", "description" => __("Give a title to this banner", "smile")), array("type" => "textarea", "class" => "", "heading" => __("Description", "smile"), "param_name" => "banner_desc", "value" => "", "description" => __("Text that comes on mouse hover.", "smile")), array("type" => "attach_image", "class" => "", "heading" => __("Banner Image", "smile"), "param_name" => "banner_image", "value" => "", "description" => __("Upload the image for this banner", "smile")), array("type" => "vc_link", "class" => "", "heading" => __("Link ", "smile"), "param_name" => "banner_link", "value" => "", "description" => __("Add link / select existing page to link to this banner", "smile")), array("type" => "ult_select2", "class" => "", "heading" => __("Styles ", "smile"), "param_name" => "banner_style", "value" => "", "json" => $json, "description" => ""), array("type" => "colorpicker", "class" => "", "heading" => __("Title Background Color", "smile"), "param_name" => "banner_title_bg", "value" => "", "description" => "", "dependency" => array("element" => "banner_style", "value" => array('style5'))), array("type" => "textfield", "class" => "", "heading" => __("Extra Class", "smile"), "param_name" => "el_class", "value" => "", "description" => __("Add extra class name that will be applied to the icon process, and you can use this class for your customizations.", "smile")), array("type" => "text", "heading" => __("<h2>Title Settings</h2>"), "param_name" => "banner_title_typograpy", "dependency" => array("element" => "banner_title", "not_empty" => true), "group" => "Typography"), array("type" => "ultimate_google_fonts", "heading" => __("Font Family", "smile"), "param_name" => "banner_title_font_family", "description" => __("Select the font of your choice. You can <a target='_blank' href='" . admin_url('admin.php?page=ultimate-font-manager') . "'>add new in the collection here</a>.", "smile"), "dependency" => array("element" => "banner_title", "not_empty" => true), "group" => "Typography"), array("type" => "ultimate_google_fonts_style", "heading" => __("Font Style", "smile"), "param_name" => "banner_title_style", "dependency" => array("element" => "banner_title", "not_empty" => true), "group" => "Typography"), array("type" => "number", "class" => "", "heading" => __("Font Size", "smile"), "param_name" => "banner_title_font_size", "min" => 12, "suffix" => "px", "dependency" => array("element" => "banner_title", "not_empty" => true), "group" => "Typography"), array("type" => "text", "heading" => __("<h2>Description Settings</h2>"), "param_name" => "banner_desc_typograpy", "group" => "Typography"), array("type" => "ultimate_google_fonts", "heading" => __("Font Family", "smile"), "param_name" => "banner_desc_font_family", "description" => __("Select the font of your choice. You can <a target='_blank' href='" . admin_url('admin.php?page=ultimate-font-manager') . "'>add new in the collection here</a>.", "smile"), "dependency" => array("element" => "banner_desc", "not_empty" => true), "group" => "Typography"), array("type" => "ultimate_google_fonts_style", "heading" => __("Font Style", "smile"), "param_name" => "banner_desc_style", "dependency" => array("element" => "banner_desc", "not_empty" => true), "group" => "Typography"), array("type" => "number", "class" => "", "heading" => __("Font Size", "smile"), "param_name" => "banner_desc_font_size", "min" => 12, "suffix" => "px", "dependency" => array("element" => "banner_desc", "not_empty" => true), "group" => "Typography"), array("type" => "colorpicker", "class" => "", "heading" => __("Title Color", "smile"), "param_name" => "banner_color_title", "value" => "", "description" => "", "group" => "Color Settings"), array("type" => "colorpicker", "class" => "", "heading" => __("Description Color", "smile"), "param_name" => "banner_color_desc", "value" => "", "description" => "", "group" => "Color Settings"), array("type" => "colorpicker", "class" => "", "heading" => __("Background Color", "smile"), "param_name" => "banner_color_bg", "value" => "", "description" => "", "group" => "Color Settings"), array("type" => "number", "class" => "", "heading" => __("Image Opacity", "smile"), "param_name" => "image_opacity", "value" => 1, "min" => 0.0, "max" => 1.0, "step" => 0.1, "suffix" => "", "description" => __("Enter value between 0.0 to 1 (0 is maximum transparency, while 1 is lowest)", "smile"), "group" => "Color Settings"), array("type" => "number", "class" => "", "heading" => __("Image Opacity on Hover", "smile"), "param_name" => "image_opacity_on_hover", "value" => 1, "min" => 0.0, "max" => 1.0, "step" => 0.1, "suffix" => "", "description" => __("Enter value between 0.0 to 1 (0 is maximum transparency, while 1 is lowest)", "smile"), "group" => "Color Settings"), array("type" => "checkbox", "class" => "", "heading" => __("Responsive Nature", "smile"), "param_name" => "enable_responsive", "value" => array("Enable Responsive Behaviour" => "yes"), "description" => __("If the description text is not suiting well on specific screen sizes, you may enable this option - which will hide the description text.", "smile"), "group" => "Responsive"), array("type" => "number", "class" => "", "heading" => __("Minimum Screen Size", "smile"), "param_name" => "responsive_min", "value" => 768, "min" => 100, "max" => 1000, "suffix" => "px", "dependency" => array("element" => "enable_responsive", "value" => "yes"), "description" => __("Provide the range of screen size where you would like to hide the description text.", "smile"), "group" => "Responsive"), array("type" => "number", "class" => "", "heading" => __("Maximum Screen Size", "smile"), "param_name" => "responsive_max", "value" => 900, "min" => 100, "max" => 1000, "suffix" => "px", "dependency" => array("element" => "enable_responsive", "value" => "yes"), "description" => __("Provide the range of screen size where you would like to hide the description text.", "smile"), "group" => "Responsive"))));
     }
 }
コード例 #10
0
 public function integrateWithVC()
 {
     global $upme_roles;
     parent::integrateWithVC();
     $users_ids = array(__('Display Profile Based on URL', 'upme') => '');
     $active_users = $upme_roles->get_active_users();
     foreach ($active_users as $k => $user) {
         $name = trim(get_user_meta($user->ID, 'first_name', true) . ' ' . get_user_meta($user->ID, 'last_name', true));
         $name = $name == '' ? $user->data->user_login : $name;
         $users_ids[$name] = $user->ID;
     }
     $exclude_fields = array('user_pass', 'user_pass_confirm');
     $profile_fields = get_option('upme_profile_fields');
     $display_fields = array();
     foreach ($profile_fields as $field) {
         if (isset($field['type']) && $field['type'] == 'usermeta' && isset($field['field']) && !in_array($field['meta'], $exclude_fields)) {
             $display_fields[$field['name']] = $field['meta'];
         }
     }
     /*
     Add your Visual Composer logic here.
     Lets call vc_map function to "register" our custom shortcode within Visual Composer interface.
     
     More info: http://kb.wpbakery.com/index.php?title=Vc_map
     */
     vc_map(array("name" => __("UPME Profile", 'upme'), "description" => __("User Profile for UPME", 'upme'), "base" => "upme_profile_vc", "class" => "", "controls" => "full", "icon" => plugins_url('assets/upme-vc.png', __FILE__), "category" => __('UPME', 'upme'), "params" => array(array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Name for the Profile", 'upme'), "param_name" => "name", "value" => '', "description" => __("Add specific name to profile to load different filters on different profile shortcodes. If not specified, this will add a dynamic random string as the name.", 'upme')), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("User", 'upme'), "param_name" => "id", "value" => $users_ids, "std" => '', "description" => __("This is used to select user(s) to be displayed or display the profile based on current URL. This is optional.", 'upme')), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Profile View Type", 'upme'), "param_name" => "view", "value" => array(__('Display Full Profile', 'upme') => 'default', __('Display Compact Profile', 'upme') => 'compact', __('Display Selected Fields on Profile', 'upme') => 'fields'), "std" => 'default', "description" => __("Select the type of view profile. Full profile displays all fields. Compact profile only displays the profile header. Selected fields allows you to select the filds to be displayed in profile..", 'upme')), array("type" => "upme_multiple_select", "holder" => "div", "class" => "", "heading" => __("Profile Fields", 'upme'), "param_name" => "profile_fields", "value" => $display_fields, "std" => '', "description" => __("You can use this option to include fields to be shown in the profile.This is optional and only used when you have the selected fields option for the Profile View Type.", 'upme')), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Display User ID", 'upme'), "param_name" => "show_id", "value" => array(__("No", 'upme') => 'no', __("Yes", 'upme') => 'yes'), "std" => 'no', "description" => __("This is used to display/hide user ID on profile.", 'upme')), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Display Profile Status", 'upme'), "param_name" => "show_profile_status", "value" => array(__("No", 'upme') => 'no', __("Yes", 'upme') => 'yes'), "std" => 'no', "description" => __("This is used to display/hide user profile status on profile.", 'upme')), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Display Profile Stats", 'upme'), "param_name" => "show_stats", "value" => array(__("Yes", 'upme') => 'yes', __("No", 'upme') => 'no'), "std" => 'yes', "description" => __("This is used to display/hide posts and comments counts on profile.", 'upme')), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Display Social Bar", 'upme'), "param_name" => "show_social_bar", "value" => array(__("Yes", 'upme') => 'yes', __("No", 'upme') => 'no'), "std" => 'yes', "description" => __("This is used to display/hide social icons on profile.", 'upme')), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Display User Role", 'upme'), "param_name" => "show_role", "value" => array(__("No", 'upme') => 'no', __("Yes", 'upme') => 'yes'), "std" => 'no', "description" => __("This is used to display/hide user role on profile.", 'upme')), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Use In Sidebar", 'upme'), "param_name" => "use_in_sidebar", "value" => array(__("No", 'upme') => 'no', __("Yes", 'upme') => 'yes'), "std" => 'no', "description" => __("This is entirely optional. You can decide to show the search inside a page\n    or in the sidebar.", 'upme')), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Logout Redirect", 'upme'), "param_name" => "logout_redirect", "value" => '', "description" => __("Users will be redirected to this URL after logged out from profile.", 'upme')))));
 }
コード例 #11
0
 /**
  * Allow to declare the widget as a visual composer widget which allow to select it inside visual composer
  * You can edit the parameters by editing the attributes of your class
  */
 public static function declareAsVisualComposerWidget()
 {
     $params = [];
     $params = apply_filters('set_params_widget_vc_' . static::$base, $params);
     add_shortcode(static::$base, [__CLASS__, 'content']);
     vc_map(['base' => static::$base, 'name' => static::$widgetName, 'class' => static::$class, 'icon' => static::$icon, 'params' => $params, 'description' => static::$description, 'category' => static::$category, 'show_settings_on_create' => static::$displaySettings]);
 }
コード例 #12
0
 function VC_Extensions_PageTransition()
 {
     vc_map(array("name" => __("Page Transition", 'vc_pagetransition_cq'), "base" => "cq_vc_pagetransition", "class" => "wpb_cq_vc_extension_pagetransition", "icon" => "cq_allinone_pagetransition", "category" => __('Sike Extensions', 'js_composer'), 'description' => __('Loading page with animation', 'js_composer'), "params" => array(array("type" => "dropdown", "holder" => "", "class" => "vc_pagetransition_cq", "heading" => __("Display the animation in:", "vc_pagetransition_cq"), "param_name" => "animationmode", "value" => array(__("normal mode (animate the page only)", "vc_pagetransition_cq") => "normal", __("overlay mode (animate a solid background overlay of the page)", "vc_pagetransition_cq") => "overlay"), "description" => __("", "vc_pagetransition_cq")), array("type" => "colorpicker", "holder" => "div", "class" => "", "heading" => __("Overlay color", 'vc_pagetransition_cq'), "param_name" => "overlaycolor", "value" => '', "dependency" => array('element' => "animationmode", 'value' => array('overlay')), "description" => __("", 'vc_pagetransition_cq')), array("type" => "dropdown", "holder" => "", "class" => "vc_pagetransition_cq", "heading" => __("Page in animation:", "vc_pagetransition_cq"), "param_name" => "pagein", "value" => array("fade-in", "fade-in-up-sm", "fade-in-up", "fade-in-up-lg", "fade-in-down-sm", "fade-in-down", "fade-in-down-lg", "fade-in-left-sm", "fade-in-left", "fade-in-left-lg", "fade-in-right-sm", "fade-in-right", "fade-in-right-lg", "rotate-in-sm", "rotate-in", "rotate-in-lg", "flip-in-x-fr", "flip-in-x", "flip-in-x-nr", "flip-in-y-fr", "flip-in-y", "flip-in-y-nr", "zoom-in-sm", "zoom-in", "zoom-in-lg"), "dependency" => array('element' => "animationmode", 'value' => array('normal')), "description" => __("", "vc_pagetransition_cq")), array("type" => "dropdown", "holder" => "", "class" => "vc_pagetransition_cq", "heading" => __("Page out animation:", "vc_pagetransition_cq"), "param_name" => "pageout", "value" => array("fade-out", "fade-out-up-sm", "fade-out-up", "fade-out-up-lg", "fade-out-down-sm", "fade-out-down", "fade-out-down-lg", "fade-out-left-sm", "fade-out-left", "fade-out-left-lg", "fade-out-right-sm", "fade-out-right", "fade-out-right-lg", "rotate-out-sm", "rotate-out", "rotate-out-lg", "flip-out-x-fr", "flip-out-x", "flip-out-x-nr", "flip-out-y-fr", "flip-out-y", "flip-out-y-nr", "zoom-out-sm", "zoom-out", "zoom-out-lg"), "dependency" => array('element' => "animationmode", 'value' => array('normal')), "description" => __("", "vc_pagetransition_cq")), array("type" => "dropdown", "holder" => "", "class" => "vc_pagetransition_cq", "heading" => __("Page in animation:", "vc_pagetransition_cq"), "param_name" => "overlayin", "value" => array("overlay-slide-in-top", "overlay-slide-in-bottom", "overlay-slide-in-left", "overlay-slide-in-right"), "dependency" => array('element' => "animationmode", 'value' => array('overlay')), "description" => __("", "vc_pagetransition_cq")), array("type" => "dropdown", "holder" => "", "class" => "vc_pagetransition_cq", "heading" => __("Page out animation:", "vc_pagetransition_cq"), "param_name" => "overlayout", "value" => array("overlay-slide-out-top", "overlay-slide-out-bottom", "overlay-slide-out-left", "overlay-slide-out-right"), "dependency" => array('element' => "animationmode", 'value' => array('overlay')), "description" => __("", "vc_pagetransition_cq")), array("type" => "textfield", "heading" => __("Page in speed:", "vc_pagetransition_cq"), "param_name" => "pageinspeed", "value" => "1500", "description" => __("", "vc_pagetransition_cq")), array("type" => "textfield", "heading" => __("Page out speed:", "vc_pagetransition_cq"), "param_name" => "pageoutspeed", "value" => "800", "description" => __("", "vc_pagetransition_cq")), array("type" => "textfield", "heading" => __("Specify the div class of the site wrapper:", "vc_pagetransition_cq"), "param_name" => "sitewrapper", "value" => "", "description" => __("Defautl we will consider first div of the page as site wrapper and hide it. But you can specify it here too.", "vc_pagetransition_cq")), array("type" => "textarea", "heading" => __("Apply page out animation to these links:", "vc_pagetransition_cq"), "param_name" => "linkelement", "value" => "", "description" => __("The jQuery selector of the links, you can use tool like <a href='http://getfirebug.com/html' target='_blank'>FireBug</a> to inspect the element. Default is all links except the new window link and anchor link in current page. For example, <strong>li.menu-item > a</strong> will enable the page out animation only with the link in menu-item, <strong>a:not(.fluidbox):not(.lightbox-link)</strong> will will disable the page out animation in the lightbox image link.", "vc_pagetransition_cq")), array("type" => "checkbox", "holder" => "", "class" => "vc_pagetransition_cq", "heading" => __("Do not display the page transition temporarily?", 'vc_pagetransition_cq'), "param_name" => "isdisplay", "value" => array(__("Yes, hide the transition", "vc_pagetransition_cq") => 'no'), "description" => __("The page transition is available by default, you can check this to disable it temporarily.", 'vc_pagetransition_cq')))));
     function cq_vc_pagetransition_func($atts, $content = null, $tag)
     {
         if (version_compare(WPB_VC_VERSION, "4.6") >= 0) {
             $atts = vc_map_get_attributes($tag, $atts);
             extract($atts);
         } else {
             extract(shortcode_atts(array('animationmode' => 'normal', 'pagein' => 'fade-in', 'pageout' => 'fade-out', 'overlayin' => 'overlay-slide-in-top', 'overlayout' => 'overlay-slide-out-top', 'pageinspeed' => '1500', 'pageoutspeed' => '800', 'linkelement' => '', 'isdisplay' => 'yes', 'sitewrapper' => '', 'overlaycolor' => ''), $atts));
         }
         $i = -1;
         $content = wpb_js_remove_wpautop($content);
         // fix unclosed/unwanted paragraph tags in $content
         // if($animationmode=="normal"&&$pagein!="zoom-in"){
         //   $pagein_arr = Array("fade-in", "fade-in-up-sm", "fade-in-up", "fade-in-up-lg", "fade-in-down-sm", "fade-in-down", "fade-in-down-lg", "fade-in-left-sm", "fade-in-left", "fade-in-left-lg", "fade-in-right-sm", "fade-in-right", "fade-in-right-lg", "rotate-in-sm", "rotate-in", "rotate-in-lg", "flip-in-x-fr", "flip-in-x", "flip-in-x-nr", "flip-in-y-fr", "flip-in-y", "flip-in-y-nr", "zoom-in-sm", "zoom-in", "zoom-in-lg");
         //   $pagein = $pagein_arr[array_rand($pagein_arr)];
         // }
         $output = '';
         if ($isdisplay != "no") {
             // wp_register_style('vc-extensions-pagetransition-style', plugins_url('css/style.css', __FILE__));
             // wp_enqueue_style('vc-extensions-pagetransition-style');
             wp_register_style('animsition', plugins_url('css/animsition.min.css', __FILE__));
             wp_enqueue_style('animsition');
             wp_register_script('animsition', plugins_url('js/jquery.animsition.min.js', __FILE__), array("jquery"));
             wp_enqueue_script('animsition');
             wp_register_script('vc-extensions-pagetransition-script', plugins_url('js/init.min.js', __FILE__), array("jquery"));
             wp_enqueue_script('vc-extensions-pagetransition-script');
             $output .= '<div class="cq-animsition" data-animationmode="' . $animationmode . '" data-pagein="' . $pagein . '" data-pageout="' . $pageout . '" data-overlayin="' . $overlayin . '" data-overlayout="' . $overlayout . '" data-pageinspeed="' . $pageinspeed . '" data-pageoutspeed="' . $pageoutspeed . '" data-linkelement="' . $linkelement . '" data-overlaycolor="' . $overlaycolor . '" data-sitewrapper="' . $sitewrapper . '">';
             $output .= '</div>';
         }
         return $output;
     }
     add_shortcode('cq_vc_pagetransition', 'cq_vc_pagetransition_func');
 }
コード例 #13
0
ファイル: plugins.php プロジェクト: democracy-os-fr/hello
/**
 * Visual Composer init
 */
function hello_vcSetAsTheme()
{
    // Force Visual Composer to initialize as 'built into the theme'.
    // This will hide certain tabs under the Settings->Visual Composer page
    vc_set_as_theme();
    vc_map(array('name' => __('breadcrumb bar', 'hello'), 'base' => 'breadcrumb', 'class' => '', 'category' => __('Theme', 'hello'), 'show_settings_on_create' => false, 'params' => array()));
}
コード例 #14
0
 public function integrateWithVC()
 {
     // Check if Visual Composer is installed
     if (!defined('WPB_VC_VERSION')) {
         // Display notice that Visual Compser is required
         add_action('admin_notices', array($this, 'showVcVersionNotice'));
         return;
     }
     global $_wp_additional_image_sizes;
     $thumbs_dimensions_array = array('thumbnail');
     if ($_wp_additional_image_sizes) {
         foreach ($_wp_additional_image_sizes as $imageSizeName => $image_size) {
             $thumbs_dimensions_array[$imageSizeName . ' | ' . $image_size['width'] . 'px, ' . $image_size['height'] . 'px'] = $imageSizeName;
         }
     }
     $thumbs_dimensions_array[] = 'full-width';
     $users = get_users(array('role' => 'teacher'));
     $users_array = array();
     foreach ($users as $user) {
         $users_array[$user->user_nicename] = $user->ID;
     }
     /*
     Add your Visual Composer logic here.
     Lets call vc_map function to "register" our custom shortcode within Visual Composer interface.
     
     More info: http://kb.wpbakery.com/index.php?title=Vc_map
     */
     vc_map(array('name' => __('Teacher', $this->textdomain), 'description' => __('', $this->textdomain), 'base' => $this->namespace, 'class' => '', 'controls' => 'full', 'icon' => plugins_url('assets/aislin-vc-icon.png', __FILE__), 'category' => __('Sensei', $this->textdomain), 'params' => array(array('type' => 'dropdown', 'holder' => '', 'class' => '', 'heading' => __('Teachers', $this->textdomain), 'param_name' => 'user_id', 'value' => $users_array), array('type' => 'dropdown', 'holder' => '', 'class' => '', 'heading' => __('Image Size', $this->textdomain), 'param_name' => 'image_size', 'value' => $thumbs_dimensions_array), array('type' => 'textfield', 'heading' => __('Extra class name', $this->textdomain), 'param_name' => 'el_class', 'description' => __('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.', $this->textdomain)))));
 }
コード例 #15
0
ファイル: post-grid.php プロジェクト: bunnywong/freshlinker
 function svc_post_layout_init()
 {
     if (function_exists('vc_map')) {
         $animations = array('None' => '', 'bounce' => 'bounce', 'flash' => 'flash', 'pulse' => 'pulse', 'rubberBand' => 'rubberBand', 'shake' => 'shake', 'swing' => 'swing', 'tada' => 'tada', 'bounce' => 'bounce', 'wobble' => 'wobble', 'bounceIn' => 'bounceIn', 'bounceInDown' => 'bounceInDown', 'bounceInLeft' => 'bounceInLeft', 'bounceInRight' => 'bounceInRight', 'bounceInUp' => 'bounceInUp', 'fadeIn' => 'fadeIn', 'fadeInDown' => 'fadeInDown', 'fadeInDownBig' => 'fadeInDownBig', 'fadeInLeft' => 'fadeInLeft', 'fadeInLeftBig' => 'fadeInLeftBig', 'fadeInRight' => 'fadeInRight', 'fadeInRightBig' => 'fadeInRightBig', 'fadeInUp' => 'fadeInUp', 'fadeInUpBig' => 'fadeInUpBig', 'flip' => 'flip', 'flipInX' => 'flipInX', 'flipInY' => 'flipInY', 'lightSpeedIn' => 'lightSpeedIn', 'rotateIn' => 'rotateIn', 'rotateInDownLeft' => 'rotateInDownLeft', 'rotateInDownRight' => 'rotateInDownRight', 'rotateInUpLeft' => 'rotateInUpLeft', 'rotateInUpRight' => 'rotateInUpRight', 'slideInUp' => 'slideInUp', 'slideInDown' => 'slideInDown', 'slideInLeft' => 'slideInLeft', 'slideInRight' => 'slideInRight', 'zoomIn' => 'zoomIn', 'zoomInDown' => 'zoomInDown', 'zoomInLeft' => 'zoomInLeft', 'zoomInRight' => 'zoomInRight', 'zoomInUp' => 'zoomInUp', 'rollIn' => 'rollIn', 'twisterInDown' => 'twisterInDown', 'twisterInUp' => 'twisterInUp', 'swap' => 'swap', 'puffIn' => 'puffIn', 'vanishIn' => 'vanishIn', 'openDownLeftRetourn' => 'openDownLeftRetourn', 'openDownRightRetourn' => 'openDownRightRetourn', 'openUpLeftRetourn' => 'openUpLeftRetourn', 'openUpRightRetourn' => 'openUpRightRetourn', 'perspectiveDownRetourn' => 'perspectiveDownRetourn', 'perspectiveUpRetourn' => 'perspectiveUpRetourn', 'perspectiveLeftRetourn' => 'perspectiveLeftRetourn', 'perspectiveRightRetourn' => 'perspectiveRightRetourn', 'slideDownRetourn' => 'slideDownRetourn', 'slideUpRetourn' => 'slideUpRetourn', 'slideLeftRetourn' => 'slideLeftRetourn', 'slideRightRetourn' => 'slideRightRetourn', 'swashIn' => 'swashIn', 'foolishIn' => 'foolishIn', 'tinRightIn' => 'tinRightIn', 'tinLeftIn' => 'tinLeftIn', 'tinUpIn' => 'tinUpIn', 'tinDownIn' => 'tinDownIn', 'boingInUp' => 'boingInUp', 'spaceInUp' => 'spaceInUp', 'spaceInRight' => 'spaceInRight', 'spaceInDown' => 'spaceInDown', 'spaceInLeft' => 'spaceInLeft');
         vc_map(array("name" => __('Post Layout with Carousel', 'js_composer'), "base" => 'svc_post_layout', "icon" => 'vc-animate-icon', "category" => __('Post Layout with Carousel', 'js_composer'), 'description' => __('Set Post Layout with Carousel', 'js_composer'), "params" => array(array('type' => 'textfield', 'heading' => __('Title', 'js_composer'), 'param_name' => 'title', 'holder' => 'div', 'description' => __('Enter Post grid title', 'js_composer')), array("type" => "dropdown", "heading" => __("Skin type", 'js_composer'), "param_name" => "svc_type", "value" => array(__("Post Layout", 'js_composer') => "post_layout", __("Carousel", 'js_composer') => "carousel"), "description" => __("Choose svc type.", 'js_composer')), array('type' => 'loop', 'heading' => __('Build Post Query', 'js_composer'), 'param_name' => 'query_loop', 'settings' => array('post_type' => array('value' => 'post'), 'size' => array('hidden' => false, 'value' => 10), 'order_by' => array('value' => 'date'), 'order' => array('value' => 'DESC')), 'description' => __('Create WordPress loop, to populate content from your site.', 'js_composer')), array("type" => "dropdown", "heading" => __("Skin type", 'js_composer'), "param_name" => "skin_type", "value" => array(__("Style1", 'js_composer') => "s1", __("Style2", 'js_composer') => "s2", __("Style3", 'js_composer') => "s3", __("Style4", 'js_composer') => "s4", __("Style5", 'js_composer') => "s5", __("Style6 for List View", 'js_composer') => "s6", __("Timeline", 'js_composer') => "s7", __("Style8", 'js_composer') => "s8"), "description" => __("Choose skin type for grid layout.", 'js_composer')), array('type' => 'num', 'heading' => __('Items Display', 'js_composer'), 'param_name' => 'car_display_item', 'value' => '4', 'min' => 1, 'max' => 100, 'suffix' => '', 'step' => 1, 'dependency' => array('element' => 'svc_type', 'value' => 'carousel'), 'description' => __('This variable allows you to set the maximum amount of items displayed at a time with the widest browser width', 'js_composer')), array('type' => 'checkbox', 'heading' => __('Show pagination', 'js_composer'), 'param_name' => 'car_pagination', 'value' => array(__('Yes', 'js_composer') => 'yes'), 'dependency' => array('element' => 'svc_type', 'value' => 'carousel'), 'description' => __('Show pagination', 'js_composer')), array('type' => 'checkbox', 'heading' => __('Show pagination Numbers', 'js_composer'), 'param_name' => 'car_pagination_num', 'value' => array(__('Yes', 'js_composer') => 'yes'), 'dependency' => array('element' => 'car_pagination', 'value' => 'yes'), 'description' => __('Show numbers inside pagination buttons.', 'js_composer')), array('type' => 'checkbox', 'heading' => __('Hide navigation', 'js_composer'), 'param_name' => 'car_navigation', 'value' => array(__('Yes', 'js_composer') => 'yes'), 'dependency' => array('element' => 'svc_type', 'value' => 'carousel'), 'description' => __('Display "next" and "prev" buttons.', 'js_composer')), array('type' => 'checkbox', 'heading' => __('AutoPlay', 'js_composer'), 'param_name' => 'car_autoplay', 'value' => array(__('Yes', 'js_composer') => 'yes'), 'dependency' => array('element' => 'svc_type', 'value' => 'carousel'), 'description' => __('Set Slider Autoplay.', 'js_composer')), array('type' => 'num', 'heading' => __('autoPlay Time', 'js_composer'), 'param_name' => 'car_autoplay_time', 'value' => '5', 'min' => 1, 'max' => 100, 'suffix' => 'seconds', 'step' => 1, 'dependency' => array('element' => 'car_autoplay', 'value' => 'yes'), 'description' => __('Set Autoplay slider speed.', 'js_composer')), array('type' => 'checkbox', 'heading' => __('Show more', 'js_composer'), 'param_name' => 'car_loadmore', 'value' => array(__('Yes', 'js_composer') => 'yes'), 'dependency' => array('element' => 'svc_type', 'value' => 'carousel'), 'description' => __('add Show more Post last element of Carousel.', 'js_composer')), array('type' => 'checkbox', 'heading' => __('Synced Slider', 'js_composer'), 'param_name' => 'synced', 'value' => array(__('Yes', 'js_composer') => 'yes'), 'dependency' => array('element' => 'car_display_item', 'value' => '1'), 'description' => __('Set Synced Slider.see Example <a href="http://owlgraphic.com/owlcarousel/demos/sync.html" target="_black">here</a>', 'js_composer')), array('type' => 'num', 'heading' => __('Synced Display', 'js_composer'), 'param_name' => 'synced_display', 'value' => '10', 'min' => 1, 'max' => 1000, 'suffix' => '', 'step' => 1, 'dependency' => array('element' => 'synced', 'value' => 'yes'), 'description' => __('Set Synces Slider Display elements.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Transition effect', 'js_composer'), 'param_name' => 'car_transition', 'value' => array(__('None', 'js_composer') => '', __('fade', 'js_composer') => 'fade', __('backSlide', 'js_composer') => 'backSlide', __('goDown', 'js_composer') => 'goDown', __('scaleUp', 'js_composer') => 'scaleUp'), 'dependency' => array('element' => 'car_display_item', 'value' => '1'), 'description' => __('Add CSS3 transition style. Works only with one item on screen.', 'js_composer')), array("type" => "dropdown", "heading" => __("Desktop Columns Count", 'js_composer'), "param_name" => "grid_columns_count_for_desktop", "value" => array(__("1 Column", 'js_composer') => "svc-col-md-12", __("2 Columns", 'js_composer') => "svc-col-md-6", __("3 Columns", 'js_composer') => "svc-col-md-4", __("4 Columns", 'js_composer') => "svc-col-md-3"), 'std' => 'svc-col-md-4', 'dependency' => array('element' => 'svc_type', 'value' => 'post_layout'), "description" => __("Choose Desktop(PC Mode) Columns Count", 'js_composer')), array("type" => "dropdown", "class" => "", "heading" => __("Tablet Columns Count", 'js_composer'), "param_name" => "grid_columns_count_for_tablet", "value" => array(__("1 Column", 'js_composer') => "svc-col-sm-12", __("2 Columns", 'js_composer') => "svc-col-sm-6", __("3 Columns", 'js_composer') => "svc-col-sm-4", __("4 Columns", 'js_composer') => "svc-col-sm-3"), 'std' => 'svc-col-sm-6', 'dependency' => array('element' => 'svc_type', 'value' => 'post_layout'), "description" => __("Choose Tablet Columns Count", 'js_composer')), array("type" => "dropdown", "class" => "", "heading" => __("Mobile Columns Count", 'js_composer'), "param_name" => "grid_columns_count_for_mobile", "value" => array(__("1 Column", 'js_composer') => "svc-col-xs-12", __("2 Columns", 'js_composer') => "svc-col-xs-6", __("3 Columns", 'js_composer') => "svc-col-xs-4", __("4 Columns", 'js_composer') => "svc-col-xs-3"), 'std' => 'svc-col-xs-12', 'dependency' => array('element' => 'svc_type', 'value' => 'post_layout'), "description" => __("Choose Mobile Columns Count", 'js_composer')), array('type' => 'dropdown', 'heading' => __('Link target', 'js_composer'), 'param_name' => 'grid_link_target', 'value' => array('Same Window' => 'sw', 'New Window' => 'nw')), array('type' => 'checkbox', 'heading' => __('Show filter', 'js_composer'), 'param_name' => 'filter', 'value' => array(__('Yes, please', 'js_composer') => 'yes'), 'dependency' => array('element' => 'svc_type', 'value' => 'post_layout'), 'description' => __('Select to add animated category filter to your posts grid.', 'js_composer')), array('type' => 'checkbox', 'heading' => __('Show Sorting Filter', 'js_composer'), 'param_name' => 'sort_filter', 'value' => array(__('Yes', 'js_composer') => 'yes'), 'dependency' => array('element' => 'filter', 'value' => 'yes'), 'description' => __('Display Sorting Filter.', 'js_composer')), array('type' => 'checkbox', 'heading' => __('Show Grid/List View Type Filter', 'js_composer'), 'param_name' => 'grid_list_filter', 'value' => array(__('Yes', 'js_composer') => 'yes'), 'dependency' => array('element' => 'filter', 'value' => 'yes'), 'description' => __('Display Grid/List View Filter.', 'js_composer')), array('type' => 'textfield', 'heading' => __('Exclude taxonomies', 'js_composer'), 'param_name' => 'exclude_texo', 'dependency' => array('element' => 'filter', 'value' => 'yes'), 'description' => __('Enter Exclude taxonomies slug, Divide each with comm separate.get texonomy slug <a href="http://plugin.saragna.com/vc-addon/wp-content/uploads/2015/04/slug.png" target="_blank">click here</a>', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Filter mode', 'js_composer'), 'param_name' => 'filter_type', 'value' => array(__('Dropdown', 'js_composer') => 'dropdown', __('Linear', 'js_composer') => 'linear'), 'dependency' => array('element' => 'filter', 'value' => 'yes'), 'description' => __('Filter Layout Option.', 'js_composer')), array('type' => 'checkbox', 'heading' => __('Show Filter value counter', 'js_composer'), 'param_name' => 'count_display', 'value' => array(__('Yes', 'js_composer') => 'yes'), 'dependency' => array('element' => 'filter', 'value' => 'yes'), 'description' => __('Filter category Count display.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Layout mode', 'js_composer'), 'param_name' => 'grid_layout_mode', 'value' => array(__('Fit rows', 'js_composer') => 'fitRows', __('Masonry', 'js_composer') => 'masonry'), 'std' => 'fitRows', 'dependency' => array('element' => 'svc_type', 'value' => 'post_layout'), 'description' => __('Select layout template.', 'js_composer')), array('type' => 'textfield', 'heading' => __('Thumbnail size', 'js_composer'), 'param_name' => 'grid_thumb_size', 'description' => __('Enter thumbnail size. Example: thumbnail, medium, large, full or other sizes defined by current theme. Alternatively enter image size in pixels: 200x100 (Width x Height).', 'js_composer')), array('type' => 'num', 'heading' => __('Minimum Height', 'js_composer'), 'param_name' => 's5_min_height', 'value' => '150', 'min' => 50, 'max' => 1000, 'suffix' => 'px', 'step' => 1, 'dependency' => array('element' => 'skin_type', 'value' => array('s5', 's8')), 'description' => __('if you not set fetured image so set Minimum Height for artical.default:170px', 'js_composer')), array('type' => 'num', 'heading' => __('Excerpt Length', 'js_composer'), 'param_name' => 'svc_excerpt_length', 'value' => '20', 'min' => 10, 'max' => 900, 'suffix' => '', 'step' => 1, 'description' => __('set excerpt length.default:20', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Pagination Style', 'js_composer'), 'param_name' => 'load_more', 'value' => array(__('Show More', 'js_composer') => 'loadmore', __('Infinite Scroll', 'js_composer') => 'infinite', __('Number Pagination', 'js_composer') => 'pagination'), 'std' => 'loadmore', 'dependency' => array('element' => 'svc_type', 'value' => 'post_layout'), 'description' => __('Select Pagination Style.', 'js_composer')), array('type' => 'checkbox', 'heading' => __('Hide Show more Button', 'js_composer'), 'param_name' => 'hide_showmore', 'value' => array(__('Yes', 'js_composer') => 'yes'), 'dependency' => array('element' => 'load_more', 'value' => 'loadmore'), 'description' => __('hide Show more button.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Post load Effect', 'js_composer'), 'param_name' => 'effect', 'value' => $animations, 'dependency' => array('element' => 'svc_type', 'value' => 'post_layout'), 'description' => __('Select post load effect.', 'js_composer')), array('type' => 'textfield', 'heading' => __('Read More translate', 'js_composer'), 'param_name' => 'read_more', 'description' => __('Enter Post Read more text.Default : Read more.', 'js_composer')), array('type' => 'textfield', 'heading' => __('Show more text', 'js_composer'), 'param_name' => 'loadmore_text', 'dependency' => array('element' => 'svc_type', 'value' => 'post_layout'), 'description' => __('add Show more button text.Default:Show More', 'js_composer')), array('type' => 'textfield', 'heading' => __('Show more text', 'js_composer'), 'param_name' => 'car_loadmore_text', 'dependency' => array('element' => 'car_loadmore', 'value' => 'yes'), 'description' => __('add Show more button text.Default:Show More', 'js_composer')), array('type' => 'textfield', 'heading' => __('Extra class name', 'js_composer'), 'param_name' => 'svc_class', 'holder' => 'div', 'description' => __('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.', 'js_composer')), array('type' => 'checkbox', 'heading' => __('Hide Excerpt', 'js_composer'), 'param_name' => 'dexcerpt', 'value' => array(__('Yes', 'js_composer') => 'yes'), 'description' => __('hide Excerpt content.', 'js_composer'), 'group' => __('Display Setting', 'js_composer')), array('type' => 'checkbox', 'heading' => __('Hide Category', 'js_composer'), 'param_name' => 'dcategory', 'value' => array(__('Yes', 'js_composer') => 'yes'), 'description' => __('hide category content.', 'js_composer'), 'group' => __('Display Setting', 'js_composer')), array('type' => 'checkbox', 'heading' => __('Hide meta data', 'js_composer'), 'param_name' => 'dmeta_data', 'value' => array(__('Yes', 'js_composer') => 'yes'), 'description' => __('hide meta content.like date,author,comment counter', 'js_composer'), 'group' => __('Display Setting', 'js_composer')), array('type' => 'checkbox', 'heading' => __('Hide Social icon', 'js_composer'), 'param_name' => 'dsocial', 'value' => array(__('Yes', 'js_composer') => 'yes'), 'description' => __('hide social icon.', 'js_composer'), 'group' => __('Display Setting', 'js_composer')), array('type' => 'checkbox', 'heading' => __('Hide inline post Read popup icon', 'js_composer'), 'param_name' => 'dpost_popup', 'value' => array(__('Yes', 'js_composer') => 'yes'), 'description' => __('hide inline post read popup icon.', 'js_composer'), 'group' => __('Display Setting', 'js_composer')), array('type' => 'checkbox', 'heading' => __('Hide featured image poupu icon', 'js_composer'), 'param_name' => 'dimg_popup', 'value' => array(__('Yes', 'js_composer') => 'yes'), 'description' => __('Hide featured image poupu icon.', 'js_composer'), 'group' => __('Display Setting', 'js_composer')), array('type' => 'colorpicker', 'heading' => __('Post Background Color', 'js_composer'), 'param_name' => 'pbgcolor', 'description' => __('set post background color.', 'js_composer'), 'dependency' => array('element' => 'skin_type', 'value' => array('s1', 's2', 's3', 's4', 's5', 's6', 's7')), 'group' => __('Color Setting', 'js_composer')), array('type' => 'colorpicker', 'heading' => __('Post hover Background Color', 'js_composer'), 'param_name' => 'pbghcolor', 'description' => __('set post hover background color.', 'js_composer'), 'dependency' => array('element' => 'skin_type', 'value' => array('s1', 's2', 's3', 's4', 's5', 's6', 's7')), 'group' => __('Color Setting', 'js_composer')), array('type' => 'colorpicker', 'heading' => __('Post without image Background Color', 'js_composer'), 'param_name' => 'ps8o_bgcolor', 'description' => __('set post without image background color.', 'js_composer'), 'dependency' => array('element' => 'skin_type', 'value' => array('s8')), 'group' => __('Color Setting', 'js_composer')), array('type' => 'colorpicker', 'heading' => __('Post with image Background Color', 'js_composer'), 'param_name' => 'ps8_bgcolor', 'description' => __('set post with image background color.', 'js_composer'), 'dependency' => array('element' => 'skin_type', 'value' => array('s8')), 'group' => __('Color Setting', 'js_composer')), array('type' => 'colorpicker', 'heading' => __('Image below / top line color', 'js_composer'), 'param_name' => 'line_color', 'description' => __('set Image below / top color.', 'js_composer'), 'dependency' => array('element' => 'skin_type', 'value' => array('s1', 's2', 's4')), 'group' => __('Color Setting', 'js_composer')), array('type' => 'colorpicker', 'heading' => __('Title Color', 'js_composer'), 'param_name' => 'tcolor', 'description' => __('set Title color.', 'js_composer'), 'group' => __('Color Setting', 'js_composer')), array('type' => 'colorpicker', 'heading' => __('Title Hover Color', 'js_composer'), 'param_name' => 'thcolor', 'description' => __('set Title hover color.', 'js_composer'), 'group' => __('Color Setting', 'js_composer')), array('type' => 'colorpicker', 'heading' => __('Show More Color', 'js_composer'), 'param_name' => 'load_more_color', 'description' => __('set show more color.', 'js_composer'), 'dependency' => array('element' => 'load_more', 'value' => array('loadmore', 'infinite')), 'group' => __('Color Setting', 'js_composer')), array('type' => 'colorpicker', 'heading' => __('Filter text and border color', 'js_composer'), 'param_name' => 'filter_text_color', 'dependency' => array('element' => 'filter', 'value' => 'yes'), 'description' => __('set Filter text and border color.', 'js_composer'), 'group' => __('Color Setting', 'js_composer')), array('type' => 'colorpicker', 'heading' => __('Active Filter text color', 'js_composer'), 'param_name' => 'filter_text_active_color', 'dependency' => array('element' => 'filter', 'value' => 'yes'), 'description' => __('set Active Filter text color.', 'js_composer'), 'group' => __('Color Setting', 'js_composer')), array('type' => 'colorpicker', 'heading' => __('Active Filter text background color', 'js_composer'), 'param_name' => 'filter_text_active_bgcolor', 'dependency' => array('element' => 'filter', 'value' => 'yes'), 'description' => __('set Active Filter text background color.', 'js_composer'), 'group' => __('Color Setting', 'js_composer')), array('type' => 'colorpicker', 'heading' => __('Pagination background color', 'js_composer'), 'param_name' => 'pagination_bgcolor', 'dependency' => array('element' => 'load_more', 'value' => 'pagination'), 'description' => __('set Pagination background color.', 'js_composer'), 'group' => __('Color Setting', 'js_composer')), array('type' => 'colorpicker', 'heading' => __('Pagination active background color', 'js_composer'), 'param_name' => 'pagination_active_bgcolor', 'dependency' => array('element' => 'load_more', 'value' => 'pagination'), 'description' => __('set Pagination active background color.', 'js_composer'), 'group' => __('Color Setting', 'js_composer')), array('type' => 'colorpicker', 'heading' => __('Pagination Number color', 'js_composer'), 'param_name' => 'pagination_number_color', 'dependency' => array('element' => 'load_more', 'value' => 'pagination'), 'description' => __('set Pagination Number color.', 'js_composer'), 'group' => __('Color Setting', 'js_composer')), array('type' => 'colorpicker', 'heading' => __('Navigation and Pagination color', 'js_composer'), 'param_name' => 'car_navigation_color', 'dependency' => array('element' => 'svc_type', 'value' => 'carousel'), 'description' => __('Set Navigation and pagination color.', 'js_composer'), 'group' => __('Color Setting', 'js_composer')), array('type' => 'checkbox', 'heading' => __('Hide featured Image in popup', 'js_composer'), 'param_name' => 'dfeatured', 'value' => array(__('Yes', 'js_composer') => 'yes'), 'description' => __('hide featured Image in popup.', 'js_composer'), 'group' => __('Popup Setting', 'js_composer')), array('type' => 'colorpicker', 'heading' => __('Popup background color', 'js_composer'), 'param_name' => 'popup_bgcolor', 'description' => __('set popup background color.', 'js_composer'), 'group' => __('Popup Setting', 'js_composer')), array('type' => 'colorpicker', 'heading' => __('Popup bottom line color', 'js_composer'), 'param_name' => 'popup_line_color', 'description' => __('set popup bottom line color.', 'js_composer'), 'group' => __('Popup Setting', 'js_composer')), array('type' => 'num', 'heading' => __('Max Width For popup', 'js_composer'), 'param_name' => 'popup_max_width', 'value' => '600', 'min' => 10, 'max' => 5000, 'suffix' => 'px', 'step' => 1, 'description' => __('set popup max width.default:600px', 'js_composer'), 'group' => __('Popup Setting', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Popup Effect', 'js_composer'), 'param_name' => 'popup_effect', 'value' => array(__('None', 'js_composer') => '', __('flip-h-3d', 'js_composer') => 'flip-h-3d', __('rotate-carouse-left', 'js_composer') => 'rotate-carouse-left', __('slide-in-top', 'js_composer') => 'slide-in-top', __('fade-in-scale', 'js_composer') => 'fade-in-scale', __('mfp-newspaper', 'js_composer') => 'mfp-newspaper', __('mfp-zoom-in', 'js_composer') => 'mfp-zoom-in', __('mfp-move-horizontal', 'js_composer') => 'mfp-move-horizontal', __('mfp-3d-unfold', 'js_composer') => 'mfp-3d-unfold', __('mfp-zoom-out', 'js_composer') => 'mfp-zoom-out'), 'description' => __('set Inline Post Popup effect.', 'js_composer'), 'group' => __('Popup Setting', 'js_composer')))));
     }
 }
コード例 #16
0
ファイル: countdown.php プロジェクト: roosalles/mm-components
/**
 * Visual Composer add-on.
 *
 * @since  1.0.0
 */
function mm_vc_countdown()
{
    // Add a custom param for selecting the date.
    vc_add_shortcode_param('date', 'mm_vc_date_param');
    $timezones = mm_get_timezones_for_vc('mm-countdown');
    vc_map(array('name' => __('Countdown', 'mm-components'), 'base' => 'mm_countdown', 'icon' => MM_COMPONENTS_ASSETS_URL . 'component-icon.png', 'category' => __('Content', 'mm-components'), 'params' => array(array('type' => 'date', 'heading' => __('Date', 'mm-components'), 'param_name' => 'date', 'admin_label' => true, 'value' => '', 'description' => __('Must be in the format MM/DD/YYYY. Example: 12/25/2015 would be Christmas of 2015.', 'mm-components')), array('type' => 'textfield', 'heading' => __('Time', 'mm-components'), 'param_name' => 'time', 'value' => '', 'description' => __('Must be in the format HH:MM:SS. Example: 18:30:00 would be 6:30 PM.', 'mm-components')), array('type' => 'dropdown', 'heading' => __('Time Zone', 'mm-components'), 'param_name' => 'timezone', 'value' => $timezones))));
}
コード例 #17
0
        function TS_VCSC_RowCenter_Frame_Elements()
        {
            global $VISUAL_COMPOSER_EXTENSIONS;
            if (function_exists('vc_map')) {
                vc_map(array("name" => __("TS Row Center Frame", "ts_visual_composer_extend"), "base" => "TS_VCSC_RowCenter_Frame", "icon" => "icon-wpb-ts_vcsc_rowcenter_container", "class" => "", "as_parent" => array('except' => '
																TS_VCSC_RowCenter_Frame,
																TS_VCSC_Anything_Slider,
																TS_VCSC_Fancy_Tabs_Container,
																TS_VCSC_Fancy_Tabs_Single,
																TS_VCSC_Figure_Navigation_Container,
																TS_VCSC_Figure_Navigation_Item,
																TS_VCSC_Horizontal_Steps_Container,
																TS_VCSC_Horizontal_Steps_Item,
																TS_VCSC_iPresenter_Container,
																TS_VCSC_iPresenter_Item,
																TS_VCSC_Image_Hotspot_Container,
																TS_VCSC_Image_Hotspot_Single,
																TS_VCSC_Image_Hotspot_Label,
																TS_VCSC_Timeline_CSS_Container,
																TS_VCSC_Timeline_CSS_Section,
																TS_VCSC_Timeline_Container,
																TS_VCSC_Timeline_Single,
																TS_VCSC_Timeline_Break,																
																TS_VCSC_Animation_Frame,
																TS_VCSC_SinglePage_Container,
																TS_VCSC_SinglePage_Item,
																TS_VCSC_SinglePage_ToTop
															'), "category" => "VC Extensions", "description" => "Vertically center elements in a full width row.", "controls" => "full", "content_element" => true, "is_container" => true, "container_not_allowed" => true, "show_settings_on_create" => false, "admin_enqueue_js" => "", "admin_enqueue_css" => "", "params" => array(array("type" => "messenger", "heading" => __("", "ts_visual_composer_extend"), "param_name" => "messenger", "color" => "#FF0000", "weight" => "bold", "size" => "14", "value" => "", "message" => __("Aside from this container element and the elements you place inside of it, there can NOT be any other elements added to this row and you can use this container only once per row.", "ts_visual_composer_extend"), "description" => __("", "ts_visual_composer_extend")), array("type" => "switch_button", "heading" => __("Row Center Active", "ts_visual_composer_extend"), "param_name" => "enable", "value" => "true", "on" => __('Yes', "ts_visual_composer_extend"), "off" => __('No', "ts_visual_composer_extend"), "style" => "select", "design" => "toggle-light", "admin_label" => true, "description" => __("Switch the toggle if you want to center all elements inside this container inside the row. You MUST set the row to full browser width (breakouts) in order to actually center the content!", "ts_visual_composer_extend"), "dependency" => ""), array("type" => "load_file", "heading" => __("", "ts_visual_composer_extend"), "value" => "Animation Files", "param_name" => "el_file1", "file_type" => "js", "file_path" => "js/ts-visual-composer-extend-element.min.js", "description" => __("", "ts_visual_composer_extend"))), "js_view" => 'VcColumnView'));
            }
        }
コード例 #18
0
 /**
  * Add new params or add new shortcode to VC
  *
  * @since 1.0
  *
  * @return void
  */
 function map_shortcodes()
 {
     // Add attribues to vc_row
     vc_remove_param('vc_row', 'video_bg');
     vc_remove_param('vc_row', 'video_bg_url');
     $attributes = array(array('type' => 'textfield', 'heading' => 'ID', 'param_name' => 'css_id', 'value' => '', 'description' => __('Set CSS id for this row', 'onehost')), array('type' => 'checkbox', 'heading' => __('Full width content', ''), 'param_name' => 'full_content', 'value' => array(__('Enable', 'onehost') => 'yes'), 'description' => __('Select it if you want your content to be displayed in full width of page', 'onehost')), array('type' => 'checkbox', 'heading' => __('Enable Parallax effect', 'onehost'), 'param_name' => 'parallax', 'group' => __('Design Options', 'onehost'), 'value' => array(__('Enable', 'onehost') => 'yes'), 'description' => __('Enable this option if you want to have parallax effect on this row. When you enable this option, please set background repeat option as "Theme defaults" to make it works.', 'onehost')), array('type' => 'colorpicker', 'heading' => __('Overlay', 'onehost'), 'param_name' => 'overlay', 'group' => __('Design Options', 'onehost'), 'value' => '', 'description' => __('Select an overlay color for this row', 'onehost')), array('type' => 'checkbox', 'heading' => __('Particleground animated', 'onehost'), 'param_name' => 'particleground_bg', 'group' => __('Design Options', 'onehost'), 'value' => array(__('Show', 'onehost') => 'true'), 'description' => __('Show particleground animated', 'onehost')), array('type' => 'colorpicker', 'heading' => __('Dot Color', 'onehost'), 'param_name' => 'dot_color', 'group' => __('Design Options', 'onehost'), 'value' => '', 'description' => __('Select an dot color for particleground', 'onehost'), 'dependency' => array('element' => 'particleground_bg', 'value' => 'true')), array('type' => 'colorpicker', 'heading' => __('Line Color', 'onehost'), 'param_name' => 'line_color', 'group' => __('Design Options', 'onehost'), 'value' => '', 'description' => __('Select an line color for particleground', 'onehost'), 'dependency' => array('element' => 'particleground_bg', 'value' => 'true')), array('type' => 'checkbox', 'heading' => __('Youtube Video Background', 'onehost'), 'param_name' => 'yt_video_bg', 'group' => __('Design Options', 'onehost'), 'value' => array(__('Show', 'onehost') => 'true'), 'description' => __('Show Youtube Video Background', 'onehost')), array('type' => 'textfield', 'heading' => __('Youtube URL', 'onehost'), 'param_name' => 'video_bg', 'group' => __('Design Options', 'onehost'), 'value' => '', 'description' => __('Enter an valid Youtube URL for video background. For better performance, this option does not work on mobile.', 'onehost'), 'dependency' => array('element' => 'yt_video_bg', 'value' => 'true')), array('type' => 'checkbox', 'heading' => __('Mute Youtube Video', 'onehost'), 'param_name' => 'mute_video', 'group' => __('Design Options', 'onehost'), 'value' => array(__('Mute', 'onehost') => 'yes'), 'dependency' => array('element' => 'yt_video_bg', 'value' => 'true'), 'description' => __('Enable this option if you want to mute video by default.', 'onehost')), array('type' => 'checkbox', 'heading' => __('Show Sound Toggle Icon', 'onehost'), 'param_name' => 'show_sound_toggle', 'group' => __('Design Options', 'onehost'), 'value' => array(__('Show', 'onehost') => 'yes'), 'dependency' => array('element' => 'yt_video_bg', 'value' => 'true'), 'description' => __('Enable this option if you want to show a sound toggle icon at the bottom of this row.', 'onehost')));
     vc_add_params('vc_row', $attributes);
     vc_remove_param('vc_row', 'full_width');
     vc_remove_param('vc_row', 'parallax_image');
     vc_remove_param('vc_row', 'video_bg_parallax');
     vc_remove_param('vc_row', 'full_height');
     vc_remove_param('vc_row', 'content_placement');
     vc_remove_param('vc_row', 'el_id');
     // Add section title shortcode
     vc_map(array('name' => __('Section Title', 'onehost'), 'base' => 'section_title', 'class' => '', 'category' => __('Content', 'onehost'), 'admin_enqueue_css' => THEME_URL . '/css/vc/icon-field.css', 'params' => array(array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Title', 'onehost'), 'param_name' => 'content', 'value' => '', 'description' => __('Enter the title content', 'onehost')), array('type' => 'colorpicker', 'holder' => 'div', 'heading' => __('Text Color', 'onehost'), 'param_name' => 'color', 'value' => '', 'description' => __('Set text color for this section title. Leave empty to use the default color of theme.', 'onehost')), array('type' => 'dropdown', 'holder' => 'div', 'heading' => __('Text Alignment', 'onehost'), 'param_name' => 'text_align', 'value' => array(__('Align Center', 'onehost') => 'align-center', __('Align Left', 'onehost') => 'align-left', __('Align Right', 'onehost') => 'align-right'), 'description' => __('Select text alignment for this section title.', 'onehost')), array('type' => 'dropdown', 'holder' => 'div', 'heading' => __('Style', 'onehost'), 'param_name' => 'style', 'value' => array(__('Default', 'onehost') => '', __('Border', 'onehost') => 's-border'), 'description' => __('Select style for this section title.', 'onehost')), array('type' => 'textarea', 'holder' => 'div', 'heading' => __('Description', 'onehost'), 'param_name' => 'desc', 'value' => '', 'description' => __('Enter a short description for section', 'onehost')), array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Extra class name', 'onehost'), 'param_name' => 'class_name', 'value' => '', 'description' => __('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.', 'onehost')))));
     // Add section title shortcode
     vc_map(array('name' => __('Section Title 2', 'onehost'), 'base' => 'section_title_2', 'class' => '', 'category' => __('Content', 'onehost'), 'admin_enqueue_css' => THEME_URL . '/css/vc/icon-field.css', 'params' => array(array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Title', 'onehost'), 'param_name' => 'title', 'value' => '', 'description' => __('Enter the title content', 'onehost')), array('type' => 'colorpicker', 'holder' => 'div', 'heading' => __('Text Color', 'onehost'), 'param_name' => 'color', 'value' => '', 'description' => __('Set text color for this section title. Leave empty to use the default color of theme.', 'onehost')), array('type' => 'dropdown', 'holder' => 'div', 'heading' => __('Text Alignment', 'onehost'), 'param_name' => 'text_align', 'value' => array(__('Align Center', 'onehost') => 'align-center', __('Align Left', 'onehost') => 'align-left', __('Align Right', 'onehost') => 'align-right'), 'description' => __('Select text alignment for this section title.', 'onehost')), array('type' => 'dropdown', 'holder' => 'div', 'heading' => __('Style', 'onehost'), 'param_name' => 'style', 'value' => array(__('Default', 'onehost') => '', __('Border', 'onehost') => 's-border'), 'description' => __('Select style for this section title.', 'onehost')), array('type' => 'textarea_html', 'holder' => 'div', 'heading' => __('Description', 'onehost'), 'param_name' => 'content', 'value' => '', 'description' => __('Enter a short description for section', 'onehost')), array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Extra class name', 'onehost'), 'param_name' => 'class_name', 'value' => '', 'description' => __('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.', 'onehost')))));
     // Add Icon Box shortcode
     vc_map(array('name' => __('Icon Box', 'onehost'), 'base' => 'icon_box', 'class' => '', 'category' => __('Content', 'onehost'), 'params' => array(array('type' => 'icon', 'holder' => 'div', 'heading' => __('Icon', 'onehost'), 'param_name' => 'icon', 'value' => ''), array('type' => 'dropdown', 'holder' => 'div', 'heading' => __('Icon Position', 'onehost'), 'param_name' => 'icon_position', 'value' => array(__('Top', 'onehost') => 'top', __('Left', 'onehost') => 'left', __('Right', 'onehost') => 'right')), array('type' => 'checkbox', 'holder' => 'div', 'heading' => __('Border Circle Icon', 'onehost'), 'param_name' => 'border_circle', 'value' => array(__('Yes', 'onehost') => 'true')), array('type' => 'colorpicker', 'holder' => 'div', 'heading' => __('Background Color', 'onehost'), 'param_name' => 'bg_color', 'value' => '', 'description' => __('Set background color for this icon box.', 'onehost')), array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Title', 'onehost'), 'param_name' => 'title', 'value' => ''), array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Link', 'onehost'), 'param_name' => 'link', 'value' => '', 'description' => __('Enter URL if you want this title to have a link.', 'onehost')), array('type' => 'textarea_html', 'holder' => 'div', 'heading' => __('Content', 'onehost'), 'param_name' => 'content', 'value' => '', 'description' => __('Enter the content of this box', 'onehost')), array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Extra class name', 'onehost'), 'param_name' => 'icon_class', 'value' => '', 'description' => __('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.', 'onehost')))));
     // Add Image Box shortcode
     vc_map(array('name' => __('Image Box', 'onehost'), 'base' => 'image_box', 'class' => '', 'category' => __('Content', 'onehost'), 'params' => array(array('type' => 'attach_image', 'holder' => 'div', 'heading' => __('Image', 'onehost'), 'param_name' => 'image', 'value' => '', 'description' => __('Select images from media library', 'onehost')), array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Image size', 'onehost'), 'param_name' => 'image_size', 'description' => __('Enter image size. Example: tiny, thumbnail, medium, large, full. Leave empty to use "thumbnail" size.', 'onehost')), array('type' => 'dropdown', 'holder' => 'div', 'heading' => __('Image Style', 'onehost'), 'param_name' => 'image_style', 'value' => array(__('Default', 'onehost') => '', __('Rounded', 'onehost') => 'rounded', __('Circle', 'onehost') => 'circle')), array('type' => 'dropdown', 'holder' => 'div', 'heading' => __('Image Position', 'onehost'), 'param_name' => 'image_position', 'value' => array(__('Top', 'onehost') => 'top', __('Left', 'onehost') => 'left', __('Right', 'onehost') => 'right')), array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Title', 'onehost'), 'param_name' => 'title', 'value' => ''), array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Link', 'onehost'), 'param_name' => 'link', 'value' => '', 'description' => __('Enter URL if you want this title to have a link.', 'onehost')), array('type' => 'textarea_html', 'holder' => 'div', 'heading' => __('Content', 'onehost'), 'param_name' => 'content', 'value' => '', 'description' => __('Enter the content of this box', 'onehost')), array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Extra class name', 'onehost'), 'param_name' => 'icon_class', 'value' => '', 'description' => __('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.', 'onehost')))));
     // Add testimonial shortcode
     vc_map(array('name' => __('Testimonials', 'onehost'), 'base' => 'testimonial', 'class' => '', 'category' => __('Content', 'onehost'), 'params' => array(array('type' => 'dropdown', 'holder' => 'div', 'heading' => __('Style', 'onehost'), 'param_name' => 'style', 'value' => array(__('Short Info', 'onehost') => 'short', __('Medium Info', 'onehost') => 'medium', __('Full Info', 'onehost') => 'full')), array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Number Of Testimonials', 'onehost'), 'param_name' => 'number', 'value' => 'All', 'description' => __('How many testimonials to show? Enter number or word "All".', 'onehost')), array('type' => 'checkbox', 'holder' => 'div', 'heading' => __('Enable Slider', 'onehost'), 'param_name' => 'slider', 'value' => array(__('Yes', 'onehost') => 'true')), array('type' => 'checkbox', 'holder' => 'div', 'heading' => __('Single Item', 'onehost'), 'param_name' => 'single', 'value' => array(__('Yes', 'onehost') => 'true'), 'dependency' => array('element' => 'slider', 'value' => 'true'), 'description' => __('Display only one item.', 'onehost')), array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Slide Show Speed', 'onehost'), 'param_name' => 'speed', 'value' => '700', 'dependency' => array('element' => 'slider', 'value' => 'true'), 'description' => __('Set the speed of the slideshow cycling(in ms).', 'onehost')), array('type' => 'checkbox', 'holder' => 'div', 'heading' => __('Auto Play', 'onehost'), 'param_name' => 'autoplay', 'dependency' => array('element' => 'slider', 'value' => 'true'), 'value' => array(__('Yes', 'onehost') => 'true')), array('type' => 'checkbox', 'holder' => 'div', 'heading' => __('Show navigation control', 'onehost'), 'param_name' => 'navigation', 'dependency' => array('element' => 'slider', 'value' => 'true'), 'value' => array(__('Yes', 'onehost') => 'true')), array('type' => 'checkbox', 'holder' => 'div', 'heading' => __('Show pagination control', 'onehost'), 'param_name' => 'pagination', 'dependency' => array('element' => 'slider', 'value' => 'true'), 'value' => array(__('Yes', 'onehost') => 'true')), array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Extra class name', 'onehost'), 'param_name' => 'class_name', 'description' => __('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.', 'onehost')))));
     // Add images carousel shortcode
     vc_map(array('name' => __('OneHost Images Carousel', 'onehost'), 'base' => 'images_carousel', 'class' => '', 'category' => __('Content', 'onehost'), 'params' => array(array('type' => 'attach_images', 'holder' => 'div', 'heading' => __('Images', 'onehost'), 'param_name' => 'images', 'value' => '', 'description' => __('Select images from media library', 'onehost')), array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Image size', 'onehost'), 'param_name' => 'image_size', 'description' => __('Enter image size. Example: thumbnail, medium, large, full. Leave empty to use "thumbnail" size.', 'onehost')), array('type' => 'textarea', 'holder' => 'div', 'heading' => __('Custom links', 'onehost'), 'param_name' => 'custom_links', 'description' => __('Enter links for each slide here. Divide links with linebreaks (Enter).', 'onehost')), array('type' => 'dropdown', 'holder' => 'div', 'heading' => __('Custom link target', 'onehost'), 'param_name' => 'custom_links_target', 'value' => array(__('Same window', 'onehost') => '_self', __('New window', 'onehost') => '_blank'), 'description' => __('Select where to open custom links.', 'onehost')), array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Slides per view', 'onehost'), 'param_name' => 'number', 'value' => 4, 'description' => __('Set numbers of slides you want to display at the same time on slider\'s container for carousel mode.', 'onehost')), array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Slider speed', 'onehost'), 'param_name' => 'speed', 'description' => __('Duration of animation between slides (in ms).', 'onehost')), array('type' => 'checkbox', 'holder' => 'div', 'heading' => __('Slider autoplay', 'onehost'), 'param_name' => 'autoplay', 'value' => array(__('Yes', 'onehost') => 'true')), array('type' => 'checkbox', 'holder' => 'div', 'heading' => __('Show navigation control', 'onehost'), 'param_name' => 'navigation', 'value' => array(__('Yes', 'onehost') => 'true')), array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Extra class name', 'onehost'), 'param_name' => 'class_name', 'description' => __('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.', 'onehost')))));
     // Add pricing shortcode
     vc_map(array('name' => __('Pricing Table', 'onehost'), 'base' => 'pricing', 'class' => '', 'category' => __('Content', 'onehost'), 'params' => array(array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Title', 'onehost'), 'param_name' => 'title', 'value' => ''), array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Price', 'onehost'), 'param_name' => 'price', 'value' => ''), array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Time Duration', 'onehost'), 'param_name' => 'time_duration', 'value' => ''), array('type' => 'checkbox', 'holder' => 'div', 'heading' => __('Featured', 'onehost'), 'param_name' => 'featured', 'value' => array(__('Yes', 'onehost') => 'true')), array('type' => 'textarea_html', 'holder' => 'div', 'heading' => __('Description', 'onehost'), 'param_name' => 'content', 'value' => '', 'description' => __('Enter a short description', 'onehost')), array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Button text', 'onehost'), 'param_name' => 'btext', 'value' => __('Buy Now', 'onehost')), array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Button URL', 'onehost'), 'param_name' => 'burl', 'value' => ''))));
     // Add Animation
     $attributes = array(array('type' => 'dropdown', 'holder' => 'div', 'heading' => __('Animation', 'onehost'), 'param_name' => 'animation', 'group' => __('Animation', 'onehost'), 'description' => __('Select an animation for this column. You can see more about animation <a href="http://daneden.github.io/animate.css" target="_blank">here</a>', 'onehost'), 'value' => onehost_list_animation()), array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Duration', 'onehost'), 'param_name' => 'duration', 'group' => __('Animation', 'onehost'), 'value' => '1000', 'description' => __('Duration of animation (in ms).', 'onehost')), array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Delay', 'onehost'), 'group' => __('Animation', 'onehost'), 'param_name' => 'delay', 'value' => '200', 'description' => __('Delay of animation (in ms).', 'onehost')));
     $elements = array('vc_column', 'vc_column_inner', 'vc_custom_heading', 'vc_button2', 'vc_button', 'vc_progress_bar', 'vc_gallery', 'vc_single_image', 'vc_column_text', 'section_title', 'section_title_2', 'icon_box', 'image_box', 'testimonial', 'images_carousel');
     foreach ($elements as $element) {
         vc_add_params($element, $attributes);
     }
 }
コード例 #19
0
 function counter_init()
 {
     if (function_exists('vc_map')) {
         // map with visual
         vc_map(array("name" => __("Counter"), "base" => "stat_counter", "class" => "vc_stats_counter", "icon" => "vc_icon_stats", "category" => __("Ultimate VC Addons", 'smile'), "description" => __("Your milestones, achievements, etc.", "smile"), "params" => array(array("type" => "dropdown", "class" => "", "heading" => __("Icon to display:", "smile"), "param_name" => "icon_type", "value" => array("Font Icon Manager" => "selector", "Custom Image Icon" => "custom"), "description" => __("Use an existing font icon</a> or upload a custom image.", "smile")), array("type" => "icon_manager", "class" => "", "heading" => __("Select Icon ", "smile"), "param_name" => "icon", "value" => "", "description" => __("Click and select icon of your choice. If you can't find the one that suits for your purpose, you can <a href='admin.php' target='_blank'>add new here</a>.", "flip-box"), "dependency" => array("element" => "icon_type", "value" => array("selector"))), array("type" => "attach_image", "class" => "", "heading" => __("Upload Image Icon:", "smile"), "param_name" => "icon_img", "value" => "", "description" => __("Upload the custom image icon.", "smile"), "dependency" => array("element" => "icon_type", "value" => array("custom"))), array("type" => "number", "class" => "", "heading" => __("Image Width", "smile"), "param_name" => "img_width", "value" => 48, "min" => 16, "max" => 512, "suffix" => "px", "description" => __("Provide image width", "smile"), "dependency" => array("element" => "icon_type", "value" => array("custom"))), array("type" => "number", "class" => "", "heading" => __("Size of Icon", "smile"), "param_name" => "icon_size", "value" => 32, "min" => 12, "max" => 72, "suffix" => "px", "description" => __("How big would you like it?", "smile"), "dependency" => array("element" => "icon_type", "value" => array("selector"))), array("type" => "colorpicker", "class" => "", "heading" => __("Color", "smile"), "param_name" => "icon_color", "value" => "#333333", "description" => __("Give it a nice paint!", "smile"), "dependency" => array("element" => "icon_type", "value" => array("selector"))), array("type" => "dropdown", "class" => "", "heading" => __("Icon Style", "smile"), "param_name" => "icon_style", "value" => array("Simple" => "none", "Circle Background" => "circle", "Square Background" => "square", "Design your own" => "advanced"), "description" => __("We have given three quick preset if you are in a hurry. Otherwise, create your own with various options.", "smile")), array("type" => "colorpicker", "class" => "", "heading" => __("Background Color", "smile"), "param_name" => "icon_color_bg", "value" => "#ffffff", "description" => __("Select background color for icon.", "smile"), "dependency" => array("element" => "icon_style", "value" => array("circle", "square", "advanced"))), array("type" => "dropdown", "class" => "", "heading" => __("Icon Border Style", "smile"), "param_name" => "icon_border_style", "value" => array("None" => "", "Solid" => "solid", "Dashed" => "dashed", "Dotted" => "dotted", "Double" => "double", "Inset" => "inset", "Outset" => "outset"), "description" => __("Select the border style for icon.", "smile"), "dependency" => array("element" => "icon_style", "value" => array("advanced"))), array("type" => "colorpicker", "class" => "", "heading" => __("Border Color", "smile"), "param_name" => "icon_color_border", "value" => "#333333", "description" => __("Select border color for icon.", "smile"), "dependency" => array("element" => "icon_border_style", "not_empty" => true)), array("type" => "number", "class" => "", "heading" => __("Border Width", "smile"), "param_name" => "icon_border_size", "value" => 1, "min" => 1, "max" => 10, "suffix" => "px", "description" => __("Thickness of the border.", "smile"), "dependency" => array("element" => "icon_border_style", "not_empty" => true)), array("type" => "number", "class" => "", "heading" => __("Border Radius", "smile"), "param_name" => "icon_border_radius", "value" => 500, "min" => 1, "max" => 500, "suffix" => "px", "description" => __("0 pixel value will create a square border. As you increase the value, the shape convert in circle slowly. (e.g 500 pixels).", "smile"), "dependency" => array("element" => "icon_border_style", "not_empty" => true)), array("type" => "number", "class" => "", "heading" => __("Background Size", "smile"), "param_name" => "icon_border_spacing", "value" => 50, "min" => 0, "max" => 500, "suffix" => "px", "description" => __("Spacing from center of the icon till the boundary of border / background", "smile"), "dependency" => array("element" => "icon_style", "value" => array("advanced"))), array("type" => "dropdown", "class" => "", "heading" => __("Animation", "smile"), "param_name" => "icon_animation", "value" => array(__("No Animation", "smile") => "", __("Swing", "smile") => "swing", __("Pulse", "smile") => "pulse", __("Fade In", "smile") => "fadeIn", __("Fade In Up", "smile") => "fadeInUp", __("Fade In Down", "smile") => "fadeInDown", __("Fade In Left", "smile") => "fadeInLeft", __("Fade In Right", "smile") => "fadeInRight", __("Fade In Up Long", "smile") => "fadeInUpBig", __("Fade In Down Long", "smile") => "fadeInDownBig", __("Fade In Left Long", "smile") => "fadeInLeftBig", __("Fade In Right Long", "smile") => "fadeInRightBig", __("Slide In Down", "smile") => "slideInDown", __("Slide In Left", "smile") => "slideInLeft", __("Slide In Left", "smile") => "slideInLeft", __("Bounce In", "smile") => "bounceIn", __("Bounce In Up", "smile") => "bounceInUp", __("Bounce In Down", "smile") => "bounceInDown", __("Bounce In Left", "smile") => "bounceInLeft", __("Bounce In Right", "smile") => "bounceInRight", __("Rotate In", "smile") => "rotateIn", __("Light Speed In", "smile") => "lightSpeedIn", __("Roll In", "smile") => "rollIn"), "description" => __("Like CSS3 Animations? We have several options for you!", "smile")), array("type" => "dropdown", "class" => "", "heading" => __("Icon Position", "icon-box"), "param_name" => "icon_position", "value" => array('Top' => 'top', 'Right' => 'right', 'Left' => 'left'), "description" => __("Enter Position of Icon", "icon-box")), array("type" => "textfield", "class" => "", "heading" => __("Counter Title ", "smile"), "param_name" => "counter_title", "admin_label" => true, "value" => "", "description" => __("Enter title for stats counter block", "smile")), array("type" => "textfield", "class" => "", "heading" => __("Counter Value", "smile"), "param_name" => "counter_value", "value" => "1250", "description" => __("Enter number for counter without any special character. You may enter a decimal number. Eg 12.76", "smile")), array("type" => "textfield", "class" => "", "heading" => __("Thousands Separator", "smile"), "param_name" => "counter_sep", "value" => ",", "description" => __("Enter character for thousanda separator. e.g. ',' will separate 125000 into 125,000", "smile")), array("type" => "textfield", "class" => "", "heading" => __("Replace Decimal Point With", "smile"), "param_name" => "counter_decimal", "value" => ".", "description" => __("Did you enter a decimal number (Eg - 12.76) The decimal point '.' will be replaced with value that you will enter above.", "smile")), array("type" => "textfield", "class" => "", "heading" => __("Counter Value Prefix", "smile"), "param_name" => "counter_prefix", "value" => "", "description" => __("Enter prefix for counter value", "smile")), array("type" => "textfield", "class" => "", "heading" => __("Counter Value Suffix", "smile"), "param_name" => "counter_suffix", "value" => "", "description" => __("Enter suffix for counter value", "smile")), array("type" => "number", "class" => "", "heading" => __("Counter rolling time", "smile"), "param_name" => "speed", "value" => 3, "min" => 1, "max" => 10, "suffix" => "seconds", "description" => __("How many seconds the counter should roll?", "smile")), array("type" => "number", "class" => "", "heading" => __("Title Font Size", "smile"), "param_name" => "font_size_title", "value" => 18, "min" => 10, "max" => 72, "suffix" => "px", "description" => __("Enter value in pixels.", "smile")), array("type" => "number", "class" => "", "heading" => __("Counter Font Size", "smile"), "param_name" => "font_size_counter", "value" => 28, "min" => 12, "max" => 72, "suffix" => "px", "description" => __("Enter value in pixels.", "smile")), array("type" => "colorpicker", "class" => "", "heading" => __("Counter Text Color", "smile"), "param_name" => "counter_color_txt", "value" => "", "description" => __("Select text color for counter title and digits.", "smile")), array("type" => "textfield", "class" => "", "heading" => __("Extra Class", "smile"), "param_name" => "el_class", "value" => "", "description" => __("Add extra class name that will be applied to the icon process, and you can use this class for your customizations.", "smile")))));
     }
 }
コード例 #20
0
 function ultimate_it_init()
 {
     if (function_exists("vc_map")) {
         vc_map(array("name" => __("Info Tables", "ultimate_vc"), "base" => "ultimate_info_table", "class" => "vc_ultimate_info_table", "icon" => "vc_ultimate_info_table", "category" => "Ultimate VC Addons", "description" => __("Create nice looking info tables.", "ultimate_vc"), "params" => array(array("type" => "dropdown", "class" => "", "heading" => __("Select Design Style", "ultimate_vc"), "param_name" => "design_style", "value" => array(__("Design 01", "ultimate_vc") => "design01", __("Design 02", "ultimate_vc") => "design02", __("Design 03", "ultimate_vc") => "design03", __("Design 04", "ultimate_vc") => "design04", __("Design 05", "ultimate_vc") => "design05", __("Design 06", "ultimate_vc") => "design06"), "description" => __("Select Info table design you would like to use", "ultimate_vc")), array("type" => "dropdown", "class" => "", "heading" => __("Select Color Scheme", "ultimate_vc"), "param_name" => "color_scheme", "value" => array(__("Black", "ultimate_vc") => "black", __("Red", "ultimate_vc") => "red", __("Blue", "ultimate_vc") => "blue", __("Yellow", "ultimate_vc") => "yellow", __("Green", "ultimate_vc") => "green", __("Gray", "ultimate_vc") => "gray", __("Design Your Own", "ultimate_vc") => "custom"), "description" => __("Which color scheme would like to use?", "ultimate_vc")), array("type" => "colorpicker", "class" => "", "heading" => __("Main background Color", "ultimate_vc"), "param_name" => "color_bg_main", "value" => "", "description" => __("Select normal background color.", "ultimate_vc"), "dependency" => array("element" => "color_scheme", "value" => array("custom"))), array("type" => "colorpicker", "class" => "", "heading" => __("Main text Color", "ultimate_vc"), "param_name" => "color_txt_main", "value" => "", "description" => __("Select normal background color.", "ultimate_vc"), "dependency" => array("element" => "color_scheme", "value" => array("custom"))), array("type" => "colorpicker", "class" => "", "heading" => __("Highlight background Color", "ultimate_vc"), "param_name" => "color_bg_highlight", "value" => "", "description" => __("Select highlight background color.", "ultimate_vc"), "dependency" => array("element" => "color_scheme", "value" => array("custom"))), array("type" => "colorpicker", "class" => "", "heading" => __("Highlight text Color", "ultimate_vc"), "param_name" => "color_txt_highlight", "value" => "", "description" => __("Select highlight background color.", "ultimate_vc"), "dependency" => array("element" => "color_scheme", "value" => array("custom"))), array("type" => "textfield", "class" => "", "heading" => __("Heading", "ultimate_vc"), "param_name" => "package_heading", "admin_label" => true, "value" => "", "description" => __("The title of Info Table", "ultimate_vc")), array("type" => "textfield", "class" => "", "heading" => __("Sub Heading", "ultimate_vc"), "param_name" => "package_sub_heading", "value" => "", "description" => __(" Describe the info table in one line", "ultimate_vc")), array("type" => "dropdown", "class" => "", "heading" => __("Icon to display:", "ultimate_vc"), "param_name" => "icon_type", "value" => array(__("No Icon", "ultimate_vc") => "none", __("Font Icon Manager", "ultimate_vc") => "selector", __("Custom Image Icon", "ultimate_vc") => "custom"), "description" => __("Use an existing font icon or upload a custom image.", "ultimate_vc")), array("type" => "icon_manager", "class" => "", "heading" => __("Select Icon ", "ultimate_vc"), "param_name" => "icon", "value" => "", "description" => __("Click and select icon of your choice. If you can't find the one that suits for your purpose", "ultimate_vc") . ", " . __("you can", "ultimate_vc") . " <a href='admin.php?page=bsf-font-icon-manager' target='_blank'>" . __("add new here", "ultimate_vc") . "</a>.", "dependency" => array("element" => "icon_type", "value" => array("selector"))), array("type" => "attach_image", "class" => "", "heading" => __("Upload Image Icon:", "ultimate_vc"), "param_name" => "icon_img", "value" => "", "description" => __("Upload the custom image icon.", "ultimate_vc"), "dependency" => array("element" => "icon_type", "value" => array("custom"))), array("type" => "number", "class" => "", "heading" => __("Image Width", "ultimate_vc"), "param_name" => "img_width", "value" => "", "min" => 16, "max" => 512, "suffix" => "px", "description" => __("Provide image width", "ultimate_vc"), "dependency" => array("element" => "icon_type", "value" => array("custom"))), array("type" => "number", "class" => "", "heading" => __("Size of Icon", "ultimate_vc"), "param_name" => "icon_size", "value" => "", "min" => 12, "max" => 72, "suffix" => "px", "description" => __("How big would you like it?", "ultimate_vc"), "dependency" => array("element" => "icon_type", "value" => array("selector"))), array("type" => "colorpicker", "class" => "", "heading" => __("Color", "ultimate_vc"), "param_name" => "icon_color", "value" => "", "description" => __("Give it a nice paint!", "ultimate_vc"), "dependency" => array("element" => "icon_type", "value" => array("selector"))), array("type" => "dropdown", "class" => "", "heading" => __("Icon Style", "ultimate_vc"), "param_name" => "icon_style", "value" => array(__("Simple", "ultimate_vc") => "none", __("Circle Background", "ultimate_vc") => "circle", __("Square Background", "ultimate_vc") => "square", __("Design your own", "ultimate_vc") => "advanced"), "dependency" => array("element" => "icon_type", "value" => array("selector")), "description" => __("We have given three quick preset if you are in a hurry. Otherwise, create your own with various options.", "ultimate_vc")), array("type" => "colorpicker", "class" => "", "heading" => __("Background Color", "ultimate_vc"), "param_name" => "icon_color_bg", "value" => "", "description" => __("Select background color for icon.", "ultimate_vc"), "dependency" => array("element" => "icon_style", "value" => array("circle", "square", "advanced"))), array("type" => "dropdown", "class" => "", "heading" => __("Icon Border Style", "ultimate_vc"), "param_name" => "icon_border_style", "value" => array(__("None", "ultimate_vc") => "", __("Solid", "ultimate_vc") => "solid", __("Dashed", "ultimate_vc") => "dashed", __("Dotted", "ultimate_vc") => "dotted", __("Double", "ultimate_vc") => "double", __("Inset", "ultimate_vc") => "inset", __("Outset", "ultimate_vc") => "outset"), "description" => __("Select the border style for icon.", "ultimate_vc"), "dependency" => array("element" => "icon_style", "value" => array("advanced"))), array("type" => "colorpicker", "class" => "", "heading" => __("Border Color", "ultimate_vc"), "param_name" => "icon_color_border", "value" => "", "description" => __("Select border color for icon.", "ultimate_vc"), "dependency" => array("element" => "icon_border_style", "not_empty" => true)), array("type" => "number", "class" => "", "heading" => __("Border Width", "ultimate_vc"), "param_name" => "icon_border_size", "value" => "", "min" => 1, "max" => 10, "suffix" => "px", "description" => __("Thickness of the border.", "ultimate_vc"), "dependency" => array("element" => "icon_border_style", "not_empty" => true)), array("type" => "number", "class" => "", "heading" => __("Border Radius", "ultimate_vc"), "param_name" => "icon_border_radius", "value" => "", "min" => 1, "max" => 500, "suffix" => "px", "description" => __("0 pixel value will create a square border. As you increase the value, the shape convert in circle slowly. (e.g 500 pixels).", "ultimate_vc"), "dependency" => array("element" => "icon_border_style", "not_empty" => true)), array("type" => "number", "class" => "", "heading" => __("Background Size", "ultimate_vc"), "param_name" => "icon_border_spacing", "value" => "", "min" => 30, "max" => 500, "suffix" => "px", "description" => __("Spacing from center of the icon till the boundary of border / background", "ultimate_vc"), "dependency" => array("element" => "icon_style", "value" => array("advanced"))), array("type" => "textarea_html", "class" => "", "heading" => __("Features", "ultimate_vc"), "param_name" => "content", "value" => "", "description" => __("Describe the Info Table in brief.", "ultimate_vc"), "edit_field_class" => "ult_hide_editor_fullscreen vc_col-xs-12 vc_column wpb_el_type_textarea_html vc_wrapper-param-type-textarea_html vc_shortcode-param"), array("type" => "dropdown", "class" => "", "heading" => __("Add link", "ultimate_vc"), "param_name" => "use_cta_btn", "value" => array(__("No Link", "ultimate_vc") => "", __("Call to Action Button", "ultimate_vc") => "true", __("Link to Complete Box", "ultimate_vc") => "box"), "description" => __("Do you want to display call to action button?", "ultimate_vc")), array("type" => "textfield", "class" => "", "heading" => __("Call to action button text", "ultimate_vc"), "param_name" => "package_btn_text", "value" => "", "description" => __("Enter call to action button text", "ultimate_vc"), "dependency" => array("element" => "use_cta_btn", "value" => array("true"))), array("type" => "vc_link", "class" => "", "heading" => __("Call to action link", "ultimate_vc"), "param_name" => "package_link", "value" => "", "description" => __("Select / enter the link for call to action button", "ultimate_vc"), "dependency" => array("element" => "use_cta_btn", "value" => array("true", "box"))), array("type" => "ult_param_heading", "text" => __("Heading Settings", "ultimate_vc"), "param_name" => "heading_typograpy", "group" => "Typography", "class" => "ult-param-heading", 'edit_field_class' => 'ult-param-heading-wrapper no-top-margin vc_column vc_col-sm-12'), array("type" => "ultimate_google_fonts", "heading" => __("Font Family", "ultimate_vc"), "param_name" => "heading_font_family", "description" => __("Select the font of your choice.", "ultimate_vc") . " " . __("You can", "ultimate_vc") . " <a target='_blank' href='" . admin_url('admin.php?page=bsf-google-font-manager') . "'>" . __("add new in the collection here", "ultimate_vc") . "</a>.", "group" => "Typography"), array("type" => "ultimate_google_fonts_style", "heading" => __("Font Style", "ultimate_vc"), "param_name" => "heading_font_style", "group" => "Typography"), array("type" => "ultimate_responsive", "class" => "font-size", "heading" => __("Font size", 'ultimate_vc'), "param_name" => "heading_font_size", "unit" => "px", "media" => array("Desktop" => '', "Tablet" => '', "Tablet Portrait" => '', "Mobile Landscape" => '', "Mobile" => ''), "group" => "Typography"), array("type" => "ultimate_responsive", "class" => "", "heading" => __("Line Height", 'ultimate_vc'), "param_name" => "heading_line_height", "unit" => "px", "media" => array("Desktop" => '', "Tablet" => '', "Tablet Portrait" => '', "Mobile Landscape" => '', "Mobile" => ''), "group" => "Typography"), array("type" => "colorpicker", "class" => "", "heading" => __("Font Color", "ultimate_vc"), "param_name" => "heading_font_color", "value" => "", "group" => "Typography"), array("type" => "ult_param_heading", "text" => __("Sub-Heading Settings", "ultimate_vc"), "param_name" => "subheading_typograpy", "group" => "Typography", "class" => "ult-param-heading", 'edit_field_class' => 'ult-param-heading-wrapper vc_column vc_col-sm-12'), array("type" => "ultimate_google_fonts", "heading" => __("Font Family", "ultimate_vc"), "param_name" => "subheading_font_family", "description" => __("Select the font of your choice.", "ultimate_vc") . " " . __("You can", "ultimate_vc") . " <a target='_blank' href='" . admin_url('admin.php?page=bsf-google-font-manager') . "'>" . __("add new in the collection here", "ultimate_vc") . "</a>.", "group" => "Typography"), array("type" => "ultimate_google_fonts_style", "heading" => __("Font Style", "ultimate_vc"), "param_name" => "subheading_font_style", "group" => "Typography"), array("type" => "ultimate_responsive", "class" => "font-size", "heading" => __("Font size", 'ultimate_vc'), "param_name" => "subheading_font_size", "unit" => "px", "media" => array("Desktop" => '', "Tablet" => '', "Tablet Portrait" => '', "Mobile Landscape" => '', "Mobile" => ''), "group" => "Typography"), array("type" => "ultimate_responsive", "class" => "", "heading" => __("Line Height", 'ultimate_vc'), "param_name" => "subheading_line_height", "unit" => "px", "media" => array("Desktop" => '', "Tablet" => '', "Tablet Portrait" => '', "Mobile Landscape" => '', "Mobile" => ''), "group" => "Typography"), array("type" => "colorpicker", "class" => "", "heading" => __("Font Color", "ultimate_vc"), "param_name" => "subheading_font_color", "value" => "", "group" => "Typography"), array("type" => "ult_param_heading", "text" => __("Features Settings", "ultimate_vc"), "param_name" => "features_typograpy", "group" => "Typography", "class" => "ult-param-heading", 'edit_field_class' => 'ult-param-heading-wrapper vc_column vc_col-sm-12'), array("type" => "ultimate_google_fonts", "heading" => __("Font Family", "ultimate_vc"), "param_name" => "features_font_family", "description" => __("Select the font of your choice.", "ultimate_vc") . " " . __("You can", "ultimate_vc") . " <a target='_blank' href='" . admin_url('admin.php?page=bsf-google-font-manager') . "'>" . __("add new in the collection here", "ultimate_vc") . "</a>.", "group" => "Typography"), array("type" => "ultimate_google_fonts_style", "heading" => __("Font Style", "ultimate_vc"), "param_name" => "features_font_style", "group" => "Typography"), array("type" => "ultimate_responsive", "class" => "font-size", "heading" => __("Font size", 'ultimate_vc'), "param_name" => "features_font_size", "unit" => "px", "media" => array("Desktop" => '', "Tablet" => '', "Tablet Portrait" => '', "Mobile Landscape" => '', "Mobile" => ''), "group" => "Typography"), array("type" => "ultimate_responsive", "class" => "", "heading" => __("Line Height", 'ultimate_vc'), "param_name" => "features_line_height", "unit" => "px", "media" => array("Desktop" => '', "Tablet" => '', "Tablet Portrait" => '', "Mobile Landscape" => '', "Mobile" => ''), "group" => "Typography"), array("type" => "colorpicker", "class" => "", "heading" => __("Font Color", "ultimate_vc"), "param_name" => "features_font_color", "value" => "", "group" => "Typography"), array("type" => "ult_param_heading", "text" => __("Button Settings", "ultimate_vc"), "param_name" => "button_typograpy", "group" => "Typography", "class" => "ult-param-heading", 'edit_field_class' => 'ult-param-heading-wrapper vc_column vc_col-sm-12'), array("type" => "ultimate_google_fonts", "heading" => __("Font Family", "ultimate_vc"), "param_name" => "button_font_family", "description" => __("Select the font of your choice.", "ultimate_vc") . " " . __("You can", "ultimate_vc") . " <a target='_blank' href='" . admin_url('admin.php?page=bsf-google-font-manager') . "'>" . __("add new in the collection here", "ultimate_vc") . "</a>.", "group" => "Typography"), array("type" => "ultimate_google_fonts_style", "heading" => __("Font Style", "ultimate_vc"), "param_name" => "button_font_style", "group" => "Typography"), array("type" => "ultimate_responsive", "class" => "font-size", "heading" => __("Font size", 'ultimate_vc'), "param_name" => "button_font_size", "unit" => "px", "media" => array("Desktop" => '', "Tablet" => '', "Tablet Portrait" => '', "Mobile Landscape" => '', "Mobile" => ''), "group" => "Typography"), array("type" => "ultimate_responsive", "class" => "", "heading" => __("Line Height", 'ultimate_vc'), "param_name" => "button_line_height", "unit" => "px", "media" => array("Desktop" => '', "Tablet" => '', "Tablet Portrait" => '', "Mobile Landscape" => '', "Mobile" => ''), "group" => "Typography"), array("type" => "colorpicker", "class" => "", "heading" => __("Font Color", "ultimate_vc"), "param_name" => "button_font_color", "value" => "", "group" => "Typography"), array("type" => "number", "class" => "font-size", "heading" => __("Minimum Height For Info Table", "ultimate_vc"), "param_name" => "features_min_ht", "min" => 10, "suffix" => "px", "description" => __("Adjust height of your price Info Table.", "ultimate_vc")), array("type" => "textfield", "class" => "", "heading" => __("Extra Class", "ultimate_vc"), "param_name" => "el_class", "value" => "", "description" => __("Add extra class name that will be applied to the icon box, and you can use this class for your customizations.", "ultimate_vc")), array("type" => "ult_param_heading", "text" => "<span style='display: block;'><a href='http://bsf.io/t9vlh' target='_blank'>" . __("Watch Video Tutorial", "ultimate_vc") . " &nbsp; <span class='dashicons dashicons-video-alt3' style='font-size:30px;vertical-align: middle;color: #e52d27;'></span></a></span>", "param_name" => "notification", 'edit_field_class' => 'ult-param-important-wrapper ult-dashicon ult-align-right ult-bold-font ult-blue-font vc_column vc_col-sm-12'))));
         // vc_map
     }
 }
コード例 #21
0
ファイル: Ultimate_Icons.php プロジェクト: ksingh812/epb
 function ultimate_icon_init()
 {
     if (function_exists('vc_map')) {
         vc_map(array("name" => __("Icons", "ultimate_vc"), "base" => "ultimate_icons", "class" => "ultimate_icons", "icon" => "ultimate_icons", "category" => "Ultimate VC Addons", "description" => __("Add a set of multiple icons and give some custom style.", "ultimate_vc"), "as_parent" => array('only' => 'single_icon'), "content_element" => true, "show_settings_on_create" => true, "is_container" => false, "js_view" => 'VcColumnView', "params" => array(array("type" => "dropdown", "class" => "", "heading" => __("Alignment", "ultimate_vc"), "param_name" => "align", "value" => array(__("Left Align", "ultimate_vc") => "uavc-icons-left", __("Right Align", "ultimate_vc") => "uavc-icons-right", __("Center Align", "ultimate_vc") => "uavc-icons-center")), array("type" => "textfield", "class" => "", "heading" => __("Extra Class", "ultimate_vc"), "param_name" => "el_class", "value" => "", "description" => __("Write your own CSS and mention the class name here.", "ultimate_vc")))));
         vc_map(array("name" => __("Icon Item"), "base" => "single_icon", "class" => "vc_simple_icon", "icon" => "vc_just_icon", "category" => __("Ultimate VC Addons", "ultimate_vc"), "description" => __("Add a set of multiple icons and give some custom style.", "ultimate_vc"), "as_child" => array('only' => 'ultimate_icons'), "show_settings_on_create" => true, "params" => array(array("type" => "icon_manager", "class" => "", "heading" => __("Select Icon ", "ultimate_vc"), "param_name" => "icon", "value" => "", "admin_label" => true, "description" => __("Click and select icon of your choice. If you can't find the one that suits for your purpose", "ultimate_vc") . ", " . __("you can", "ultimate_vc") . " <a href='admin.php?page=font-icon-Manager' target='_blank'>" . __("add new here", "ultimate_vc") . "</a>.", "group" => "Select Icon"), array("type" => "number", "class" => "", "heading" => __("Size of Icon", "ultimate_vc"), "param_name" => "icon_size", "value" => 32, "min" => 12, "max" => 72, "suffix" => "px", "description" => __("How big would you like it?", "ultimate_vc"), "group" => "Select Icon"), array("type" => "number", "class" => "", "heading" => __("Space after Icon", "ultimate_vc"), "param_name" => "icon_margin", "value" => 5, "min" => 0, "max" => 100, "suffix" => "px", "description" => __("How much distance would you like in two icons?", "ultimate_vc"), "group" => "Other Settings"), array("type" => "colorpicker", "class" => "", "heading" => __("Color", "ultimate_vc"), "param_name" => "icon_color", "value" => "#333333", "description" => __("Give it a nice paint!", "ultimate_vc"), "group" => "Select Icon"), array("type" => "dropdown", "class" => "", "heading" => __("Icon Style", "ultimate_vc"), "param_name" => "icon_style", "value" => array(__("Simple", "ultimate_vc") => "none", __("Circle Background", "ultimate_vc") => "circle", __("Square Background", "ultimate_vc") => "square", __("Design your own", "ultimate_vc") => "advanced"), "description" => __("We have given three quick preset if you are in a hurry. Otherwise, create your own with various options.", "ultimate_vc"), "group" => "Select Icon"), array("type" => "colorpicker", "class" => "", "heading" => __("Background Color", "ultimate_vc"), "param_name" => "icon_color_bg", "value" => "#ffffff", "description" => __("Select background color for icon.", "ultimate_vc"), "dependency" => array("element" => "icon_style", "value" => array("circle", "square", "advanced")), "group" => "Select Icon"), array("type" => "dropdown", "class" => "", "heading" => __("Icon Border Style", "ultimate_vc"), "param_name" => "icon_border_style", "value" => array(__("None", "ultimate_vc") => "", __("Solid", "ultimate_vc") => "solid", __("Dashed", "ultimate_vc") => "dashed", __("Dotted", "ultimate_vc") => "dotted", __("Double", "ultimate_vc") => "double", __("Inset", "ultimate_vc") => "inset", __("Outset", "ultimate_vc") => "outset"), "description" => __("Select the border style for icon.", "ultimate_vc"), "dependency" => array("element" => "icon_style", "value" => array("advanced")), "group" => "Select Icon"), array("type" => "colorpicker", "class" => "", "heading" => __("Border Color", "ultimate_vc"), "param_name" => "icon_color_border", "value" => "#333333", "description" => __("Select border color for icon.", "ultimate_vc"), "dependency" => array("element" => "icon_border_style", "not_empty" => true), "group" => "Select Icon"), array("type" => "number", "class" => "", "heading" => __("Border Width", "ultimate_vc"), "param_name" => "icon_border_size", "value" => 1, "min" => 1, "max" => 10, "suffix" => "px", "description" => __("Thickness of the border.", "ultimate_vc"), "dependency" => array("element" => "icon_border_style", "not_empty" => true), "group" => "Select Icon"), array("type" => "number", "class" => "", "heading" => __("Border Radius", "ultimate_vc"), "param_name" => "icon_border_radius", "value" => 500, "min" => 1, "max" => 500, "suffix" => "px", "description" => __("0 pixel value will create a square border. As you increase the value, the shape convert in circle slowly. (e.g 500 pixels).", "ultimate_vc"), "dependency" => array("element" => "icon_border_style", "not_empty" => true), "group" => "Select Icon"), array("type" => "number", "class" => "", "heading" => __("Background Size", "ultimate_vc"), "param_name" => "icon_border_spacing", "value" => 50, "min" => 30, "max" => 500, "suffix" => "px", "description" => __("Spacing from center of the icon till the boundary of border / background", "ultimate_vc"), "dependency" => array("element" => "icon_border_style", "not_empty" => true), "group" => "Select Icon"), array("type" => "vc_link", "class" => "", "heading" => __("Link ", "ultimate_vc"), "param_name" => "icon_link", "value" => "", "description" => __("Add a custom link or select existing page. You can remove existing link as well.", "ultimate_vc"), "group" => "Other Settings"), array("type" => "dropdown", "class" => "", "heading" => __("Animation", "ultimate_vc"), "param_name" => "icon_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" => __("Like CSS3 Animations? We have several options for you!", "ultimate_vc"), "group" => "Other Settings"), array("type" => "dropdown", "class" => "", "heading" => __("Tooltip", "ultimate_vc"), "param_name" => "tooltip_disp", "value" => array(__("None", "ultimate_vc") => "", __("Tooltip from Left", "ultimate_vc") => "left", __("Tooltip from Right", "ultimate_vc") => "right", __("Tooltip from Top", "ultimate_vc") => "top", __("Tooltip from Bottom", "ultimate_vc") => "bottom"), "description" => __("Select the tooltip position", "ultimate_vc"), "group" => "Other Settings"), array("type" => "textfield", "class" => "", "heading" => __("Tooltip Text", "ultimate_vc"), "param_name" => "tooltip_text", "value" => "", "description" => __("Enter your tooltip text here.", "ultimate_vc"), "dependency" => array("element" => "tooltip_disp", "not_empty" => true), "group" => "Other Settings"), array("type" => "textfield", "class" => "", "heading" => __("Custom CSS Class", "ultimate_vc"), "param_name" => "el_class", "value" => "", "description" => __("Ran out of options? Need more styles? Write your own CSS and mention the class name here.", "ultimate_vc"), "group" => "Select Icon"))));
     }
 }
コード例 #22
0
 function VC_Extensions_CQButton()
 {
     vc_map(array("name" => __("Animate Button 01", 'vc_cqbutton_cq'), "base" => "cq_vc_cqbutton", "class" => "wpb_cq_vc_extension_button01", "controls" => "full", "icon" => "cq_allinone_button01", "category" => __('Sike Extensions', 'js_composer'), 'description' => __('Eye catching button', 'js_composer'), "params" => array(array('type' => 'vc_link', 'heading' => __('URL (Link)', 'vc_cqbutton_cq'), 'param_name' => 'link', 'description' => __('Button link.', 'vc_cqbutton_cq')), array("type" => "textfield", "heading" => __("Text on the button:", "vc_cqbutton_cq"), "param_name" => "buttonlabel", "value" => "Button Text", "description" => __("Leave it to be blank if you want to use the original image.", "vc_cqbutton_cq")), array("type" => "dropdown", "heading" => __("Icon", "vc_cqbutton_cq"), "param_name" => "icon", "description" => __('Select the icon', 'vc_cqbutton_cq'), "value" => array(__("angellist", "vc_animationfw_cq") => "angellist", __("area-chart", "vc_animationfw_cq") => "area-chart", __("at", "vc_animationfw_cq") => "at", __("bell-slash", "vc_animationfw_cq") => "bell-slash", __("bell-slash-o", "vc_animationfw_cq") => "bell-slash-o", __("bicycle", "vc_animationfw_cq") => "bicycle", __("binoculars", "vc_animationfw_cq") => "binoculars", __("birthday-cake", "vc_animationfw_cq") => "birthday-cake", __("bus", "vc_animationfw_cq") => "bus", __("calculator", "vc_animationfw_cq") => "calculator", __("cc", "vc_animationfw_cq") => "cc", __("cc-amex", "vc_animationfw_cq") => "cc-amex", __("cc-discover", "vc_animationfw_cq") => "cc-discover", __("cc-mastercard", "vc_animationfw_cq") => "cc-mastercard", __("cc-paypal", "vc_animationfw_cq") => "cc-paypal", __("cc-stripe", "vc_animationfw_cq") => "cc-stripe", __("cc-visa", "vc_animationfw_cq") => "cc-visa", __("copyright", "vc_animationfw_cq") => "copyright", __("eyedropper", "vc_animationfw_cq") => "eyedropper", __("futbol-o", "vc_animationfw_cq") => "futbol-o", __("google-wallet", "vc_animationfw_cq") => "google-wallet", __("ils", "vc_animationfw_cq") => "ils", __("ioxhost", "vc_animationfw_cq") => "ioxhost", __("lastfm", "vc_animationfw_cq") => "lastfm", __("lastfm-square", "vc_animationfw_cq") => "lastfm-square", __("line-chart", "vc_animationfw_cq") => "line-chart", __("meanpath", "vc_animationfw_cq") => "meanpath", __("newspaper-o", "vc_animationfw_cq") => "newspaper-o", __("paint-brush", "vc_animationfw_cq") => "paint-brush", __("paypal", "vc_animationfw_cq") => "paypal", __("pie-chart", "vc_animationfw_cq") => "pie-chart", __("plug", "vc_animationfw_cq") => "plug", __("shekel", "vc_animationfw_cq") => "shekel", __("sheqel", "vc_animationfw_cq") => "sheqel", __("slideshare", "vc_animationfw_cq") => "slideshare", __("soccer-ball-o", "vc_animationfw_cq") => "soccer-ball-o", __("toggle-off", "vc_animationfw_cq") => "toggle-off", __("toggle-on", "vc_animationfw_cq") => "toggle-on", __("trash", "vc_animationfw_cq") => "trash", __("tty", "vc_animationfw_cq") => "tty", __("twitch", "vc_animationfw_cq") => "twitch", __("wifi", "vc_animationfw_cq") => "wifi", __("yelp", "vc_animationfw_cq") => "yelp", __("automobile", "vc_cqbutton_cq") => "automobile", __("bank", "vc_cqbutton_cq") => "bank", __("behance", "vc_cqbutton_cq") => "behance", __("behance-square", "vc_cqbutton_cq") => "behance-square", __("bomb", "vc_cqbutton_cq") => "bomb", __("building", "vc_cqbutton_cq") => "building", __("cab", "vc_cqbutton_cq") => "cab", __("car", "vc_cqbutton_cq") => "car", __("child", "vc_cqbutton_cq") => "child", __("circle-o-notch", "vc_cqbutton_cq") => "circle-o-notch", __("circle-thin", "vc_cqbutton_cq") => "circle-thin", __("codepen", "vc_cqbutton_cq") => "codepen", __("cube", "vc_cqbutton_cq") => "cube", __("cubes", "vc_cqbutton_cq") => "cubes", __("database", "vc_cqbutton_cq") => "database", __("delicious", "vc_cqbutton_cq") => "delicious", __("deviantart", "vc_cqbutton_cq") => "deviantart", __("digg", "vc_cqbutton_cq") => "digg", __("drupal", "vc_cqbutton_cq") => "drupal", __("empire", "vc_cqbutton_cq") => "empire", __("envelope-square", "vc_cqbutton_cq") => "envelope-square", __("fax", "vc_cqbutton_cq") => "fax", __("file-archive-o", "vc_cqbutton_cq") => "file-archive-o", __("file-audio-o", "vc_cqbutton_cq") => "file-audio-o", __("file-code-o", "vc_cqbutton_cq") => "file-code-o", __("file-excel-o", "vc_cqbutton_cq") => "file-excel-o", __("file-image-o", "vc_cqbutton_cq") => "file-image-o", __("file-movie-o", "vc_cqbutton_cq") => "file-movie-o", __("file-pdf-o", "vc_cqbutton_cq") => "file-pdf-o", __("file-photo-o", "vc_cqbutton_cq") => "file-photo-o", __("file-picture-o", "vc_cqbutton_cq") => "file-picture-o", __("file-powerpoint-o", "vc_cqbutton_cq") => "file-powerpoint-o", __("file-sound-o", "vc_cqbutton_cq") => "file-sound-o", __("file-video-o", "vc_cqbutton_cq") => "file-video-o", __("file-word-o", "vc_cqbutton_cq") => "file-word-o", __("file-zip-o", "vc_cqbutton_cq") => "file-zip-o", __("ge", "vc_cqbutton_cq") => "ge", __("git", "vc_cqbutton_cq") => "git", __("git-square", "vc_cqbutton_cq") => "git-square", __("google", "vc_cqbutton_cq") => "google", __("graduation-cap", "vc_cqbutton_cq") => "graduation-cap", __("hacker-news", "vc_cqbutton_cq") => "hacker-news", __("header", "vc_cqbutton_cq") => "header", __("history", "vc_cqbutton_cq") => "history", __("institution", "vc_cqbutton_cq") => "institution", __("joomla", "vc_cqbutton_cq") => "joomla", __("jsfiddle", "vc_cqbutton_cq") => "jsfiddle", __("language", "vc_cqbutton_cq") => "language", __("life-bouy", "vc_cqbutton_cq") => "life-bouy", __("life-ring", "vc_cqbutton_cq") => "life-ring", __("life-saver", "vc_cqbutton_cq") => "life-saver", __("mortar-board", "vc_cqbutton_cq") => "mortar-board", __("openid", "vc_cqbutton_cq") => "openid", __("paper-plane", "vc_cqbutton_cq") => "paper-plane", __("paper-plane-o", "vc_cqbutton_cq") => "paper-plane-o", __("paragraph", "vc_cqbutton_cq") => "paragraph", __("paw", "vc_cqbutton_cq") => "paw", __("pied-piper", "vc_cqbutton_cq") => "pied-piper", __("pied-piper-alt", "vc_cqbutton_cq") => "pied-piper-alt", __("pied-piper-square", "vc_cqbutton_cq") => "pied-piper-square", __("qq", "vc_cqbutton_cq") => "qq", __("ra", "vc_cqbutton_cq") => "ra", __("rebel", "vc_cqbutton_cq") => "rebel", __("recycle", "vc_cqbutton_cq") => "recycle", __("reddit", "vc_cqbutton_cq") => "reddit", __("reddit-square", "vc_cqbutton_cq") => "reddit-square", __("send", "vc_cqbutton_cq") => "send", __("send-o", "vc_cqbutton_cq") => "send-o", __("share-alt", "vc_cqbutton_cq") => "share-alt", __("share-alt-square", "vc_cqbutton_cq") => "share-alt-square", __("slack", "vc_cqbutton_cq") => "slack", __("sliders", "vc_cqbutton_cq") => "sliders", __("soundcloud", "vc_cqbutton_cq") => "soundcloud", __("space-shuttle", "vc_cqbutton_cq") => "space-shuttle", __("spoon", "vc_cqbutton_cq") => "spoon", __("spotify", "vc_cqbutton_cq") => "spotify", __("steam", "vc_cqbutton_cq") => "steam", __("steam-square", "vc_cqbutton_cq") => "steam-square", __("stumbleupon", "vc_cqbutton_cq") => "stumbleupon", __("stumbleupon-circle", "vc_cqbutton_cq") => "stumbleupon-circle", __("support", "vc_cqbutton_cq") => "support", __("taxi", "vc_cqbutton_cq") => "taxi", __("tencent-weibo", "vc_cqbutton_cq") => "tencent-weibo", __("tree", "vc_cqbutton_cq") => "tree", __("university", "vc_cqbutton_cq") => "university", __("vine", "vc_cqbutton_cq") => "vine", __("wechat", "vc_cqbutton_cq") => "wechat", __("weixin", "vc_cqbutton_cq") => "weixin", __("wordpress", "vc_cqbutton_cq") => "wordpress", __("yahoo", "vc_cqbutton_cq") => "yahoo", __("rub", "vc_cqbutton_cq") => 'rub', __("ruble", "vc_cqbutton_cq") => 'ruble', __("rouble", "vc_cqbutton_cq") => 'rouble', __("pagelines", "vc_cqbutton_cq") => 'pagelines', __("stack-exchange", "vc_cqbutton_cq") => 'stack-exchange', __("arrow-circle-o-right", "vc_cqbutton_cq") => 'arrow-circle-o-right', __("arrow-circle-o-left", "vc_cqbutton_cq") => 'arrow-circle-o-left', __("caret-square-o-left", "vc_cqbutton_cq") => 'caret-square-o-left', __("toggle-left", "vc_cqbutton_cq") => 'toggle-left', __("dot-circle-o", "vc_cqbutton_cq") => 'dot-circle-o', __("wheelchair", "vc_cqbutton_cq") => 'wheelchair', __("vimeo-square", "vc_cqbutton_cq") => 'vimeo-square', __("try", "vc_cqbutton_cq") => 'try', __("turkish-lira", "vc_cqbutton_cq") => 'turkish-lira', __("plus-square-o", "vc_cqbutton_cq") => 'plus-square-o', __("adjust", "vc_cqbutton_cq") => 'adjust', __("anchor", "vc_cqbutton_cq") => 'anchor', __("archive", "vc_cqbutton_cq") => 'archive', __("arrows", "vc_cqbutton_cq") => 'arrows', __("arrows-h", "vc_cqbutton_cq") => 'arrows-h', __("arrows-v", "vc_cqbutton_cq") => 'arrows-v', __("asterisk", "vc_cqbutton_cq") => 'asterisk', __("ban", "vc_cqbutton_cq") => 'ban', __("bar-chart-o", "vc_cqbutton_cq") => 'bar-chart-o', __("barcode", "vc_cqbutton_cq") => 'barcode', __("bars", "vc_cqbutton_cq") => 'bars', __("beer", "vc_cqbutton_cq") => 'beer', __("bell", "vc_cqbutton_cq") => 'bell', __("bell-o", "vc_cqbutton_cq") => 'bell-o', __("bolt", "vc_cqbutton_cq") => 'bolt', __("book", "vc_cqbutton_cq") => 'book', __("bookmark", "vc_cqbutton_cq") => 'bookmark', __("bookmark-o", "vc_cqbutton_cq") => 'bookmark-o', __("briefcase", "vc_cqbutton_cq") => 'briefcase', __("bug", "vc_cqbutton_cq") => 'bug', __("building-o", "vc_cqbutton_cq") => 'building-o', __("bullhorn", "vc_cqbutton_cq") => 'bullhorn', __("bullseye", "vc_cqbutton_cq") => 'bullseye', __("calendar", "vc_cqbutton_cq") => 'calendar', __("calendar-o", "vc_cqbutton_cq") => 'calendar-o', __("camera", "vc_cqbutton_cq") => 'camera', __("camera-retro", "vc_cqbutton_cq") => 'camera-retro', __("caret-square-o-down", "vc_cqbutton_cq") => 'caret-square-o-down', __("caret-square-o-left", "vc_cqbutton_cq") => 'caret-square-o-left', __("caret-square-o-right", "vc_cqbutton_cq") => 'caret-square-o-right', __("caret-square-o-up", "vc_cqbutton_cq") => 'caret-square-o-up', __("certificate", "vc_cqbutton_cq") => 'certificate', __("check", "vc_cqbutton_cq") => 'check', __("check-circle", "vc_cqbutton_cq") => 'check-circle', __("check-circle-o", "vc_cqbutton_cq") => 'check-circle-o', __("check-square", "vc_cqbutton_cq") => 'check-square', __("check-square-o", "vc_cqbutton_cq") => 'check-square-o', __("circle", "vc_cqbutton_cq") => 'circle', __("circle-o", "vc_cqbutton_cq") => 'circle-o', __("clock-o", "vc_cqbutton_cq") => 'clock-o', __("cloud", "vc_cqbutton_cq") => 'cloud', __("cloud-download", "vc_cqbutton_cq") => 'cloud-download', __("cloud-upload", "vc_cqbutton_cq") => 'cloud-upload', __("code", "vc_cqbutton_cq") => 'code', __("code-fork", "vc_cqbutton_cq") => 'code-fork', __("coffee", "vc_cqbutton_cq") => 'coffee', __("cog", "vc_cqbutton_cq") => 'cog', __("cogs", "vc_cqbutton_cq") => 'cogs', __("comment", "vc_cqbutton_cq") => 'comment', __("comment-o", "vc_cqbutton_cq") => 'comment-o', __("comments", "vc_cqbutton_cq") => 'comments', __("comments-o", "vc_cqbutton_cq") => 'comments-o', __("compass", "vc_cqbutton_cq") => 'compass', __("credit-card", "vc_cqbutton_cq") => 'credit-card', __("crop", "vc_cqbutton_cq") => 'crop', __("crosshairs", "vc_cqbutton_cq") => 'crosshairs', __("cutlery", "vc_cqbutton_cq") => 'cutlery', __("dashboard", "vc_cqbutton_cq") => 'dashboard', __("desktop", "vc_cqbutton_cq") => 'desktop', __("dot-circle-o", "vc_cqbutton_cq") => 'dot-circle-o', __("download", "vc_cqbutton_cq") => 'download', __("edit", "vc_cqbutton_cq") => 'edit', __("ellipsis-h", "vc_cqbutton_cq") => 'ellipsis-h', __("ellipsis-v", "vc_cqbutton_cq") => 'ellipsis-v', __("envelope", "vc_cqbutton_cq") => 'envelope', __("envelope-o", "vc_cqbutton_cq") => 'envelope-o', __("eraser", "vc_cqbutton_cq") => 'eraser', __("exchange", "vc_cqbutton_cq") => 'exchange', __("exclamation", "vc_cqbutton_cq") => 'exclamation', __("exclamation-circle", "vc_cqbutton_cq") => 'exclamation-circle', __("exclamation-triangle", "vc_cqbutton_cq") => 'exclamation-triangle', __("external-link", "vc_cqbutton_cq") => 'external-link', __("external-link-square", "vc_cqbutton_cq") => 'external-link-square', __("eye", "vc_cqbutton_cq") => 'eye', __("eye-slash", "vc_cqbutton_cq") => 'eye-slash', __("female", "vc_cqbutton_cq") => 'female', __("fighter-jet", "vc_cqbutton_cq") => 'fighter-jet', __("film", "vc_cqbutton_cq") => 'film', __("filter", "vc_cqbutton_cq") => 'filter', __("fire", "vc_cqbutton_cq") => 'fire', __("fire-extinguisher", "vc_cqbutton_cq") => 'fire-extinguisher', __("flag", "vc_cqbutton_cq") => 'flag', __("flag-checkered", "vc_cqbutton_cq") => 'flag-checkered', __("flag-o", "vc_cqbutton_cq") => 'flag-o', __("flash", "vc_cqbutton_cq") => 'flash', __("flask", "vc_cqbutton_cq") => 'flask', __("folder", "vc_cqbutton_cq") => 'folder', __("folder-o", "vc_cqbutton_cq") => 'folder-o', __("folder-open", "vc_cqbutton_cq") => 'folder-open', __("folder-open-o", "vc_cqbutton_cq") => 'folder-open-o', __("frown-o", "vc_cqbutton_cq") => 'frown-o', __("gamepad", "vc_cqbutton_cq") => 'gamepad', __("gavel", "vc_cqbutton_cq") => 'gavel', __("gear", "vc_cqbutton_cq") => 'gear', __("gears", "vc_cqbutton_cq") => 'gears', __("gift", "vc_cqbutton_cq") => 'gift', __("glass", "vc_cqbutton_cq") => 'glass', __("globe", "vc_cqbutton_cq") => 'globe', __("group", "vc_cqbutton_cq") => 'group', __("hdd-o", "vc_cqbutton_cq") => 'hdd-o', __("headphones", "vc_cqbutton_cq") => 'headphones', __("heart", "vc_cqbutton_cq") => 'heart', __("heart-o", "vc_cqbutton_cq") => 'heart-o', __("home", "vc_cqbutton_cq") => 'home', __("inbox", "vc_cqbutton_cq") => 'inbox', __("info", "vc_cqbutton_cq") => 'info', __("info-circle", "vc_cqbutton_cq") => 'info-circle', __("key", "vc_cqbutton_cq") => 'key', __("keyboard-o", "vc_cqbutton_cq") => 'keyboard-o', __("laptop", "vc_cqbutton_cq") => 'laptop', __("leaf", "vc_cqbutton_cq") => 'leaf', __("legal", "vc_cqbutton_cq") => 'legal', __("lemon-o", "vc_cqbutton_cq") => 'lemon-o', __("level-down", "vc_cqbutton_cq") => 'level-down', __("level-up", "vc_cqbutton_cq") => 'level-up', __("lightbulb-o", "vc_cqbutton_cq") => 'lightbulb-o', __("location-arrow", "vc_cqbutton_cq") => 'location-arrow', __("lock", "vc_cqbutton_cq") => 'lock', __("magic", "vc_cqbutton_cq") => 'magic', __("magnet", "vc_cqbutton_cq") => 'magnet', __("mail-forward", "vc_cqbutton_cq") => 'mail-forward', __("mail-reply", "vc_cqbutton_cq") => 'mail-reply', __("mail-reply-all", "vc_cqbutton_cq") => 'mail-reply-all', __("male", "vc_cqbutton_cq") => 'male', __("map-marker", "vc_cqbutton_cq") => 'map-marker', __("meh-o", "vc_cqbutton_cq") => 'meh-o', __("microphone", "vc_cqbutton_cq") => 'microphone', __("microphone-slash", "vc_cqbutton_cq") => 'microphone-slash', __("minus", "vc_cqbutton_cq") => 'minus', __("minus-circle", "vc_cqbutton_cq") => 'minus-circle', __("minus-square", "vc_cqbutton_cq") => 'minus-square', __("minus-square-o", "vc_cqbutton_cq") => 'minus-square-o', __("mobile", "vc_cqbutton_cq") => 'mobile', __("mobile-phone", "vc_cqbutton_cq") => 'mobile-phone', __("money", "vc_cqbutton_cq") => 'money', __("moon-o", "vc_cqbutton_cq") => 'moon-o', __("music", "vc_cqbutton_cq") => 'music', __("pencil", "vc_cqbutton_cq") => 'pencil', __("pencil-square", "vc_cqbutton_cq") => 'pencil-square', __("pencil-square-o", "vc_cqbutton_cq") => 'pencil-square-o', __("phone", "vc_cqbutton_cq") => 'phone', __("phone-square", "vc_cqbutton_cq") => 'phone-square', __("picture-o", "vc_cqbutton_cq") => 'picture-o', __("plane", "vc_cqbutton_cq") => 'plane', __("plus", "vc_cqbutton_cq") => 'plus', __("plus-circle", "vc_cqbutton_cq") => 'plus-circle', __("plus-square", "vc_cqbutton_cq") => 'plus-square', __("plus-square-o", "vc_cqbutton_cq") => 'plus-square-o', __("power-off", "vc_cqbutton_cq") => 'power-off', __("print", "vc_cqbutton_cq") => 'print', __("puzzle-piece", "vc_cqbutton_cq") => 'puzzle-piece', __("qrcode", "vc_cqbutton_cq") => 'qrcode', __("question", "vc_cqbutton_cq") => 'question', __("question-circle", "vc_cqbutton_cq") => 'question-circle', __("quote-left", "vc_cqbutton_cq") => 'quote-left', __("quote-right", "vc_cqbutton_cq") => 'quote-right', __("random", "vc_cqbutton_cq") => 'random', __("refresh", "vc_cqbutton_cq") => 'refresh', __("reply", "vc_cqbutton_cq") => 'reply', __("reply-all", "vc_cqbutton_cq") => 'reply-all', __("retweet", "vc_cqbutton_cq") => 'retweet', __("road", "vc_cqbutton_cq") => 'road', __("rocket", "vc_cqbutton_cq") => 'rocket', __("rss", "vc_cqbutton_cq") => 'rss', __("rss-square", "vc_cqbutton_cq") => 'rss-square', __("search", "vc_cqbutton_cq") => 'search', __("search-minus", "vc_cqbutton_cq") => 'search-minus', __("search-plus", "vc_cqbutton_cq") => 'search-plus', __("share", "vc_cqbutton_cq") => 'share', __("share-square", "vc_cqbutton_cq") => 'share-square', __("share-square-o", "vc_cqbutton_cq") => 'share-square-o', __("shield", "vc_cqbutton_cq") => 'shield', __("shopping-cart", "vc_cqbutton_cq") => 'shopping-cart', __("sign-in", "vc_cqbutton_cq") => 'sign-in', __("sign-out", "vc_cqbutton_cq") => 'sign-out', __("signal", "vc_cqbutton_cq") => 'signal', __("sitemap", "vc_cqbutton_cq") => 'sitemap', __("smile-o", "vc_cqbutton_cq") => 'smile-o', __("sort", "vc_cqbutton_cq") => 'sort', __("sort-alpha-asc", "vc_cqbutton_cq") => 'sort-alpha-asc', __("sort-alpha-desc", "vc_cqbutton_cq") => 'sort-alpha-desc', __("sort-amount-asc", "vc_cqbutton_cq") => 'sort-amount-asc', __("sort-amount-desc", "vc_cqbutton_cq") => 'sort-amount-desc', __("sort-asc", "vc_cqbutton_cq") => 'sort-asc', __("sort-desc", "vc_cqbutton_cq") => 'sort-desc', __("sort-down", "vc_cqbutton_cq") => 'sort-down', __("sort-numeric-asc", "vc_cqbutton_cq") => 'sort-numeric-asc', __("sort-numeric-desc", "vc_cqbutton_cq") => 'sort-numeric-desc', __("sort-up", "vc_cqbutton_cq") => 'sort-up', __("spinner", "vc_cqbutton_cq") => 'spinner', __("square", "vc_cqbutton_cq") => 'square', __("square-o", "vc_cqbutton_cq") => 'square-o', __("star", "vc_cqbutton_cq") => 'star', __("star-half", "vc_cqbutton_cq") => 'star-half', __("star-half-empty", "vc_cqbutton_cq") => 'star-half-empty', __("star-half-full", "vc_cqbutton_cq") => 'star-half-full', __("star-half-o", "vc_cqbutton_cq") => 'star-half-o', __("star-o", "vc_cqbutton_cq") => 'star-o', __("subscript", "vc_cqbutton_cq") => 'subscript', __("suitcase", "vc_cqbutton_cq") => 'suitcase', __("sun-o", "vc_cqbutton_cq") => 'sun-o', __("superscript", "vc_cqbutton_cq") => 'superscript', __("tablet", "vc_cqbutton_cq") => 'tablet', __("tachometer", "vc_cqbutton_cq") => 'tachometer', __("tag", "vc_cqbutton_cq") => 'tag', __("tags", "vc_cqbutton_cq") => 'tags', __("tasks", "vc_cqbutton_cq") => 'tasks', __("terminal", "vc_cqbutton_cq") => 'terminal', __("thumb-tack", "vc_cqbutton_cq") => 'thumb-tack', __("thumbs-down", "vc_cqbutton_cq") => 'thumbs-down', __("thumbs-o-down", "vc_cqbutton_cq") => 'thumbs-o-down', __("thumbs-o-up", "vc_cqbutton_cq") => 'thumbs-o-up', __("thumbs-up", "vc_cqbutton_cq") => 'thumbs-up', __("ticket", "vc_cqbutton_cq") => 'ticket', __("times", "vc_cqbutton_cq") => 'times', __("times-circle", "vc_cqbutton_cq") => 'times-circle', __("times-circle-o", "vc_cqbutton_cq") => 'times-circle-o', __("tint", "vc_cqbutton_cq") => 'tint', __("toggle-down", "vc_cqbutton_cq") => 'toggle-down', __("toggle-left", "vc_cqbutton_cq") => 'toggle-left', __("toggle-right", "vc_cqbutton_cq") => 'toggle-right', __("toggle-up", "vc_cqbutton_cq") => 'toggle-up', __("trash-o", "vc_cqbutton_cq") => 'trash-o', __("trophy", "vc_cqbutton_cq") => 'trophy', __("truck", "vc_cqbutton_cq") => 'truck', __("umbrella", "vc_cqbutton_cq") => 'umbrella', __("unlock", "vc_cqbutton_cq") => 'unlock', __("unlock-alt", "vc_cqbutton_cq") => 'unlock-alt', __("unsorted", "vc_cqbutton_cq") => 'unsorted', __("upload", "vc_cqbutton_cq") => 'upload', __("user", "vc_cqbutton_cq") => 'user', __("users", "vc_cqbutton_cq") => 'users', __("video-camera", "vc_cqbutton_cq") => 'video-camera', __("volume-down", "vc_cqbutton_cq") => 'volume-down', __("volume-off", "vc_cqbutton_cq") => 'volume-off', __("volume-up", "vc_cqbutton_cq") => 'volume-up', __("warning", "vc_cqbutton_cq") => 'warning', __("wheelchair", "vc_cqbutton_cq") => 'wheelchair', __("wrench", "vc_cqbutton_cq") => 'wrench', __("check-square", "vc_cqbutton_cq") => 'check-square', __("check-square-o", "vc_cqbutton_cq") => 'check-square-o', __("circle", "vc_cqbutton_cq") => 'circle', __("circle-o", "vc_cqbutton_cq") => 'circle-o', __("dot-circle-o", "vc_cqbutton_cq") => 'dot-circle-o', __("minus-square", "vc_cqbutton_cq") => 'minus-square', __("minus-square-o", "vc_cqbutton_cq") => 'minus-square-o', __("plus-square", "vc_cqbutton_cq") => 'plus-square', __("plus-square-o", "vc_cqbutton_cq") => 'plus-square-o', __("square", "vc_cqbutton_cq") => 'square', __("square-o", "vc_cqbutton_cq") => 'square-o', __("bitcoin", "vc_cqbutton_cq") => 'bitcoin', __("btc", "vc_cqbutton_cq") => 'btc', __("cny", "vc_cqbutton_cq") => 'cny', __("dollar", "vc_cqbutton_cq") => 'dollar', __("eur", "vc_cqbutton_cq") => 'eur', __("euro", "vc_cqbutton_cq") => 'euro', __("gbp", "vc_cqbutton_cq") => 'gbp', __("inr", "vc_cqbutton_cq") => 'inr', __("jpy", "vc_cqbutton_cq") => 'jpy', __("krw", "vc_cqbutton_cq") => 'krw', __("money", "vc_cqbutton_cq") => 'money', __("rmb", "vc_cqbutton_cq") => 'rmb', __("rouble", "vc_cqbutton_cq") => 'rouble', __("rub", "vc_cqbutton_cq") => 'rub', __("ruble", "vc_cqbutton_cq") => 'ruble', __("rupee", "vc_cqbutton_cq") => 'rupee', __("try", "vc_cqbutton_cq") => 'try', __("turkish-lira", "vc_cqbutton_cq") => 'turkish-lira', __("usd", "vc_cqbutton_cq") => 'usd', __("won", "vc_cqbutton_cq") => 'won', __("yen", "vc_cqbutton_cq") => 'yen', __("align-center", "vc_cqbutton_cq") => 'align-center', __("align-justify", "vc_cqbutton_cq") => 'align-justify', __("align-left", "vc_cqbutton_cq") => 'align-left', __("align-right", "vc_cqbutton_cq") => 'align-right', __("bold", "vc_cqbutton_cq") => 'bold', __("chain", "vc_cqbutton_cq") => 'chain', __("chain-broken", "vc_cqbutton_cq") => 'chain-broken', __("clipboard", "vc_cqbutton_cq") => 'clipboard', __("columns", "vc_cqbutton_cq") => 'columns', __("copy", "vc_cqbutton_cq") => 'copy', __("cut", "vc_cqbutton_cq") => 'cut', __("dedent", "vc_cqbutton_cq") => 'dedent', __("eraser", "vc_cqbutton_cq") => 'eraser', __("file", "vc_cqbutton_cq") => 'file', __("file-o", "vc_cqbutton_cq") => 'file-o', __("file-text", "vc_cqbutton_cq") => 'file-text', __("file-text-o", "vc_cqbutton_cq") => 'file-text-o', __("files-o", "vc_cqbutton_cq") => 'files-o', __("floppy-o", "vc_cqbutton_cq") => 'floppy-o', __("font", "vc_cqbutton_cq") => 'font', __("indent", "vc_cqbutton_cq") => 'indent', __("italic", "vc_cqbutton_cq") => 'italic', __("link", "vc_cqbutton_cq") => 'link', __("list", "vc_cqbutton_cq") => 'list', __("list-alt", "vc_cqbutton_cq") => 'list-alt', __("list-ol", "vc_cqbutton_cq") => 'list-ol', __("list-ul", "vc_cqbutton_cq") => 'list-ul', __("outdent", "vc_cqbutton_cq") => 'outdent', __("paperclip", "vc_cqbutton_cq") => 'paperclip', __("paste", "vc_cqbutton_cq") => 'paste', __("repeat", "vc_cqbutton_cq") => 'repeat', __("rotate-left", "vc_cqbutton_cq") => 'rotate-left', __("rotate-right", "vc_cqbutton_cq") => 'rotate-right', __("save", "vc_cqbutton_cq") => 'save', __("scissors", "vc_cqbutton_cq") => 'scissors', __("strikethrough", "vc_cqbutton_cq") => 'strikethrough', __("table", "vc_cqbutton_cq") => 'table', __("text-height", "vc_cqbutton_cq") => 'text-height', __("text-width", "vc_cqbutton_cq") => 'text-width', __("th", "vc_cqbutton_cq") => 'th', __("th-large", "vc_cqbutton_cq") => 'th-large', __("th-list", "vc_cqbutton_cq") => 'th-list', __("underline", "vc_cqbutton_cq") => 'underline', __("undo", "vc_cqbutton_cq") => 'undo', __("unlink", "vc_cqbutton_cq") => 'unlink', __("angle-double-down", "vc_cqbutton_cq") => 'angle-double-down', __("angle-double-left", "vc_cqbutton_cq") => 'angle-double-left', __("angle-double-right", "vc_cqbutton_cq") => 'angle-double-right', __("angle-double-up", "vc_cqbutton_cq") => 'angle-double-up', __("angle-down", "vc_cqbutton_cq") => 'angle-down', __("angle-left", "vc_cqbutton_cq") => 'angle-left', __("angle-right", "vc_cqbutton_cq") => 'angle-right', __("angle-up", "vc_cqbutton_cq") => 'angle-up', __("arrow-circle-down", "vc_cqbutton_cq") => 'arrow-circle-down', __("arrow-circle-left", "vc_cqbutton_cq") => 'arrow-circle-left', __("arrow-circle-o-down", "vc_cqbutton_cq") => 'arrow-circle-o-down', __("arrow-circle-o-left", "vc_cqbutton_cq") => 'arrow-circle-o-left', __("arrow-circle-o-right", "vc_cqbutton_cq") => 'arrow-circle-o-right', __("arrow-circle-o-up", "vc_cqbutton_cq") => 'arrow-circle-o-up', __("arrow-circle-right", "vc_cqbutton_cq") => 'arrow-circle-right', __("arrow-circle-up", "vc_cqbutton_cq") => 'arrow-circle-up', __("arrow-down", "vc_cqbutton_cq") => 'arrow-down', __("arrow-left", "vc_cqbutton_cq") => 'arrow-left', __("arrow-right", "vc_cqbutton_cq") => 'arrow-right', __("arrow-up", "vc_cqbutton_cq") => 'arrow-up', __("arrows", "vc_cqbutton_cq") => 'arrows', __("arrows-alt", "vc_cqbutton_cq") => 'arrows-alt', __("arrows-h", "vc_cqbutton_cq") => 'arrows-h', __("arrows-v", "vc_cqbutton_cq") => 'arrows-v', __("caret-down", "vc_cqbutton_cq") => 'caret-down', __("caret-left", "vc_cqbutton_cq") => 'caret-left', __("caret-right", "vc_cqbutton_cq") => 'caret-right', __("caret-square-o-down", "vc_cqbutton_cq") => 'caret-square-o-down', __("caret-square-o-left", "vc_cqbutton_cq") => 'caret-square-o-left', __("caret-square-o-right", "vc_cqbutton_cq") => 'caret-square-o-right', __("caret-square-o-up", "vc_cqbutton_cq") => 'caret-square-o-up', __("caret-up", "vc_cqbutton_cq") => 'caret-up', __("chevron-circle-down", "vc_cqbutton_cq") => 'chevron-circle-down', __("chevron-circle-left", "vc_cqbutton_cq") => 'chevron-circle-left', __("chevron-circle-right", "vc_cqbutton_cq") => 'chevron-circle-right', __("chevron-circle-up", "vc_cqbutton_cq") => 'chevron-circle-up', __("chevron-down", "vc_cqbutton_cq") => 'chevron-down', __("chevron-left", "vc_cqbutton_cq") => 'chevron-left', __("chevron-right", "vc_cqbutton_cq") => 'chevron-right', __("chevron-up", "vc_cqbutton_cq") => 'chevron-up', __("hand-o-down", "vc_cqbutton_cq") => 'hand-o-down', __("hand-o-left", "vc_cqbutton_cq") => 'hand-o-left', __("hand-o-right", "vc_cqbutton_cq") => 'hand-o-right', __("hand-o-up", "vc_cqbutton_cq") => 'hand-o-up', __("long-arrow-down", "vc_cqbutton_cq") => 'long-arrow-down', __("long-arrow-left", "vc_cqbutton_cq") => 'long-arrow-left', __("long-arrow-right", "vc_cqbutton_cq") => 'long-arrow-right', __("long-arrow-up", "vc_cqbutton_cq") => 'long-arrow-up', __("toggle-down", "vc_cqbutton_cq") => 'toggle-down', __("toggle-left", "vc_cqbutton_cq") => 'toggle-left', __("toggle-right", "vc_cqbutton_cq") => 'toggle-right', __("toggle-up", "vc_cqbutton_cq") => 'toggle-up', __("arrows-alt", "vc_cqbutton_cq") => 'arrows-alt', __("backward", "vc_cqbutton_cq") => 'backward', __("compress", "vc_cqbutton_cq") => 'compress', __("eject", "vc_cqbutton_cq") => 'eject', __("expand", "vc_cqbutton_cq") => 'expand', __("fast-backward", "vc_cqbutton_cq") => 'fast-backward', __("fast-forward", "vc_cqbutton_cq") => 'fast-forward', __("forward", "vc_cqbutton_cq") => 'forward', __("pause", "vc_cqbutton_cq") => 'pause', __("play", "vc_cqbutton_cq") => 'play', __("play-circle", "vc_cqbutton_cq") => 'play-circle', __("play-circle-o", "vc_cqbutton_cq") => 'play-circle-o', __("step-backward", "vc_cqbutton_cq") => 'step-backward', __("step-forward", "vc_cqbutton_cq") => 'step-forward', __("stop", "vc_cqbutton_cq") => 'stop', __("youtube-play", "vc_cqbutton_cq") => 'youtube-play', __("adn", "vc_cqbutton_cq") => 'adn', __("android", "vc_cqbutton_cq") => 'android', __("apple", "vc_cqbutton_cq") => 'apple', __("bitbucket", "vc_cqbutton_cq") => 'bitbucket', __("bitbucket-square", "vc_cqbutton_cq") => 'bitbucket-square', __("bitcoin", "vc_cqbutton_cq") => 'bitcoin', __("btc", "vc_cqbutton_cq") => 'btc', __("css3", "vc_cqbutton_cq") => 'css3', __("dribbble", "vc_cqbutton_cq") => 'dribbble', __("dropbox", "vc_cqbutton_cq") => 'dropbox', __("facebook", "vc_cqbutton_cq") => 'facebook', __("facebook-square", "vc_cqbutton_cq") => 'facebook-square', __("flickr", "vc_cqbutton_cq") => 'flickr', __("foursquare", "vc_cqbutton_cq") => 'foursquare', __("github", "vc_cqbutton_cq") => 'github', __("github-alt", "vc_cqbutton_cq") => 'github-alt', __("github-square", "vc_cqbutton_cq") => 'github-square', __("gittip", "vc_cqbutton_cq") => 'gittip', __("google-plus", "vc_cqbutton_cq") => 'google-plus', __("google-plus-square", "vc_cqbutton_cq") => 'google-plus-square', __("html5", "vc_cqbutton_cq") => 'html5', __("instagram", "vc_cqbutton_cq") => 'instagram', __("linkedin", "vc_cqbutton_cq") => 'linkedin', __("linkedin-square", "vc_cqbutton_cq") => 'linkedin-square', __("linux", "vc_cqbutton_cq") => 'linux', __("maxcdn", "vc_cqbutton_cq") => 'maxcdn', __("pagelines", "vc_cqbutton_cq") => 'pagelines', __("pinterest", "vc_cqbutton_cq") => 'pinterest', __("pinterest-square", "vc_cqbutton_cq") => 'pinterest-square', __("renren", "vc_cqbutton_cq") => 'renren', __("skype", "vc_cqbutton_cq") => 'skype', __("stack-exchange", "vc_cqbutton_cq") => 'stack-exchange', __("stack-overflow", "vc_cqbutton_cq") => 'stack-overflow', __("trello", "vc_cqbutton_cq") => 'trello', __("tumblr", "vc_cqbutton_cq") => 'tumblr', __("tumblr-square", "vc_cqbutton_cq") => 'tumblr-square', __("twitter", "vc_cqbutton_cq") => 'twitter', __("twitter-square", "vc_cqbutton_cq") => 'twitter-square', __("vimeo-square", "vc_cqbutton_cq") => 'vimeo-square', __("vk", "vc_cqbutton_cq") => 'vk', __("weibo", "vc_cqbutton_cq") => 'weibo', __("windows", "vc_cqbutton_cq") => 'windows', __("xing", "vc_cqbutton_cq") => 'xing', __("xing-square", "vc_cqbutton_cq") => 'xing-square', __("youtube", "vc_cqbutton_cq") => 'youtube', __("youtube-play", "vc_cqbutton_cq") => 'youtube-play', __("youtube-square", "vc_cqbutton_cq") => 'youtube-square', __("ambulance", "vc_cqbutton_cq") => 'ambulance', __("h-square", "vc_cqbutton_cq") => 'h-square', __("hospital-o", "vc_cqbutton_cq") => 'hospital-o', __("medkit", "vc_cqbutton_cq") => 'medkit', __("plus-square", "vc_cqbutton_cq") => 'plus-square', __("stethoscope", "vc_cqbutton_cq") => 'stethoscope', __("user-md", "vc_cqbutton_cq") => 'user-md', __("wheelchair", "vc_cqbutton_cq") => 'wheelchair')), array("type" => "checkbox", "holder" => "", "class" => "vc_cqbutton_cq", "heading" => __("Put the icon on the left?", 'vc_cqbutton_cq'), "param_name" => "iconposition", "value" => array(__("Yes", "vc_cqbutton_cq") => 'left'), "description" => __("You can check this if you want to display icon on the left, it is on the right by default.", 'vc_cqbutton_cq')), array("type" => "dropdown", "holder" => "", "class" => "vc_cqbutton_cq", "heading" => __("Transition style of the icon button", "vc_cqbutton_cq"), "param_name" => "animationstyle", "value" => array(__("animation 1", "vc_cqbutton_cq") => "animatetype-1", __("animation 2", "vc_cqbutton_cq") => "animatetype-2", __("animation 3", "vc_cqbutton_cq") => "animatetype-3", __("animation 4 (pulse)", "vc_cqbutton_cq") => "animatetype-4"), "description" => __("", "vc_cqbutton_cq")), array("type" => "textfield", "heading" => __("margin-top of the icon", "vc_cqbutton_cq"), "param_name" => "icontop", "value" => "-9px", "description" => __("Sometimes you have to change the margin-top offset of the icon, default is -9px.", "vc_cqbutton_cq")), array("type" => "textfield", "heading" => __("margin-left of the icon", "vc_cqbutton_cq"), "param_name" => "iconleft", "value" => "-9px", "description" => __("Sometimes you have to change the margin-left offset of the icon, default is -9px.", "vc_cqbutton_cq")), array("type" => "colorpicker", "holder" => "div", "class" => "", "heading" => __("Button text color", 'vc_cqbutton_cq'), "param_name" => "buttoncolor", "value" => '', "description" => __("Default is white, choose other color as you like.", 'vc_cqbutton_cq')), array("type" => "dropdown", "holder" => "", "class" => "vc_cqbutton_cq", "heading" => __("Color of the icon button", "vc_cqbutton_cq"), "param_name" => "iconbuttoncolor", "value" => array(__("orange", "vc_cqbutton_cq") => "cqbtn-1", __("blue", "vc_cqbutton_cq") => "cqbtn-2", __("gray", "vc_cqbutton_cq") => "cqbtn-3", __("purple", "vc_cqbutton_cq") => "cqbtn-4"), "description" => __("Select the background color for the button, or you can use the color picker below to choose one.", "vc_cqbutton_cq")), array("type" => "colorpicker", "holder" => "div", "class" => "", "heading" => __("Button background color", 'vc_cqbutton_cq'), "param_name" => "buttonbackground", "value" => '', "description" => __("Choose the background color for the button.", 'vc_cqbutton_cq')), array("type" => "textfield", "heading" => __("Extra class name for the container", "vc_cqbutton_cq"), "param_name" => "extra_class", "description" => __("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.", "vc_cqbutton_cq")))));
     function cq_vc_cqbutton_func($atts, $content = null, $tag)
     {
         if (version_compare(WPB_VC_VERSION, "4.6") >= 0) {
             $atts = vc_map_get_attributes($tag, $atts);
             extract($atts);
         } else {
             extract(shortcode_atts(array('buttonlabel' => '', 'link' => '', 'buttoncolor' => '', 'buttonbackground' => '', 'containerwidth' => '', 'animationstyle' => 'animatetype-1', 'iconbuttoncolor' => 'cqbtn-1', 'iconposition' => '', 'icon' => '', 'icontop' => '', 'iconleft' => '', 'mobilewidth' => '', 'onclick' => '', 'extra_class' => ''), $atts));
         }
         wp_register_style('vc_cqbutton_cq_style', plugins_url('css/style.min.css', __FILE__));
         wp_enqueue_style('vc_cqbutton_cq_style');
         wp_register_style('font-awesome', plugins_url('../faanimation/css/font-awesome.min.css', __FILE__));
         wp_enqueue_style('font-awesome');
         $content = wpb_js_remove_wpautop($content);
         // fix unclosed/unwanted paragraph tags in $content
         $output = '';
         $link = vc_build_link($link);
         $output .= '<div class="cq-buttoncontainer ' . $iconposition . ' ' . $extra_class . '">';
         $output .= '<div class="' . $animationstyle . '">';
         $output .= '<div>';
         $output .= '<a href="' . $link['url'] . '" title="' . $link['title'] . '" target="' . $link['target'] . '" style="color:' . $buttoncolor . ';background-color:' . $buttonbackground . ';" class="btn ' . $iconbuttoncolor . '">';
         $output .= '<span class="txt">' . $buttonlabel . '</span>';
         $output .= '<span class="round"><i style="margin-top:' . $icontop . ';margin-left:' . $iconleft . ';" class="fa fa-' . $icon . '"></i></span>';
         $output .= '</a>';
         $output .= '</div>';
         $output .= '</div>';
         $output .= '</div>';
         return $output;
     }
     add_shortcode('cq_vc_cqbutton', 'cq_vc_cqbutton_func');
 }
コード例 #23
-1
ファイル: shortcodes.php プロジェクト: vanbungkring/24custom
function greek_vc_shortcodes()
{
    //Brand logos
    vc_map(array("name" => esc_html__("Brand Logos", "greek"), "base" => "ourbrands", "class" => "", "category" => esc_html__("greek", "greek"), "params" => array(array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => esc_html__("Number of rows", "greek"), "param_name" => "rowsnumber", "value" => array('one' => 'one', 'two' => 'two', 'four' => 'four')))));
    //Icons
    vc_map(array("name" => esc_html__("FontAwesome Icon", "greek"), "base" => "vinageckoicon", "class" => "", "category" => esc_html__("greek", "greek"), "params" => array(array("type" => "textfield", "holder" => "", "class" => "", "heading" => esc_html__("FontAwesome Icon", "greek"), "description" => wp_kses(__("<a href=\"http://fortawesome.github.io/Font-Awesome/cheatsheet/\" target=\"_blank\">Go here</a> to get icon class. Example: fa-search", "greek"), array('a' => array('href' => array(), 'title' => array(), 'target' => array()))), "param_name" => "icon", "value" => esc_html__("fa-search", "greek")))));
}
コード例 #24
-1
 function list_icon_init()
 {
     if (function_exists('vc_map')) {
         vc_map(array("name" => __("List Icon", "ultimate_vc"), "base" => "ultimate_icon_list", "class" => "ultimate_icon_list", "icon" => "ultimate_icon_list", "category" => "Ultimate VC Addons", "description" => __("Add a set of multiple icons and give some custom style.", "ultimate_vc"), "as_parent" => array('only' => 'ultimate_icon_list_item'), "content_element" => true, "show_settings_on_create" => true, "js_view" => 'VcColumnView', "params" => array(array("type" => "number", "class" => "", "heading" => __("Size of Icon", "ultimate_vc"), "param_name" => "icon_size", "value" => '', "min" => 0, "max" => 200, "suffix" => "px", "description" => __("How big would you like it?", "ultimate_vc")), array("type" => "number", "class" => "", "heading" => __("Space after Icon", "ultimate_vc"), "param_name" => "icon_margin", "value" => '', "min" => 0, "max" => 100, "suffix" => "px", "description" => __("How much distance would you like in two icons?", "ultimate_vc")), array("type" => "textfield", "class" => "", "heading" => __("Extra Class", "ultimate_vc"), "param_name" => "el_class", "value" => "", "description" => __("Write your own CSS and mention the class name here.", "ultimate_vc")))));
         vc_map(array("name" => __("List Icon Item", "ultimate_vc"), "base" => "ultimate_icon_list_item", "class" => "icon_list_item", "icon" => "icon_list_item", "category" => "Ultimate VC Addons", "description" => __("Add a list of icons with some content and give some custom style.", "ultimate_vc"), "as_child" => array('only' => 'ultimate_icon_list'), "show_settings_on_create" => true, "is_container" => false, "params" => array(array("type" => "dropdown", "class" => "", "heading" => __("Icon to display:", "ultimate_vc"), "param_name" => "icon_type", "value" => array(__("Font Icon Manager", "ultimate_vc") => "selector", __("Custom Image Icon", "ultimate_vc") => "custom"), "description" => __("Use an existing font icon or upload a custom image.", "ultimate_vc")), array("type" => "icon_manager", "class" => "", "heading" => __("Select Icon ", "ultimate_vc"), "param_name" => "icon", "value" => "", "description" => __("Click and select icon of your choice. If you can't find the one that suits for your purpose", "ultimate_vc") . ", " . __("you can", "ultimate_vc") . " <a href='admin.php?page=font-icon-Manager' target='_blank'>" . __("add new here", "ultimate_vc") . "</a>.", "dependency" => array("element" => "icon_type", "value" => array("selector"))), array("type" => "ult_img_single", "class" => "", "heading" => __("Upload Image Icon:", "ultimate_vc"), "param_name" => "icon_img", "value" => "", "description" => __("Upload the custom image icon.", "ultimate_vc"), "dependency" => array("element" => "icon_type", "value" => array("custom"))), array("type" => "colorpicker", "class" => "", "heading" => __("Color", "ultimate_vc"), "param_name" => "icon_color", "value" => "#333333", "description" => __("Give it a nice paint!", "ultimate_vc"), "dependency" => array("element" => "icon_type", "value" => array("selector"))), array("type" => "dropdown", "class" => "", "heading" => __("Icon Style", "ultimate_vc"), "param_name" => "icon_style", "value" => array(__("Simple", "ultimate_vc") => "none", __("Circle Background", "ultimate_vc") => "circle", __("Square Background", "ultimate_vc") => "square", __("Design your own", "ultimate_vc") => "advanced"), "description" => __("We have given three quick preset if you are in a hurry. Otherwise, create your own with various options.", "ultimate_vc"), "dependency" => array("element" => "icon_type", "value" => array("selector"))), array("type" => "colorpicker", "class" => "", "heading" => __("Background Color", "ultimate_vc"), "param_name" => "icon_color_bg", "value" => "#ffffff", "description" => __("Select background color for icon.", "ultimate_vc"), "dependency" => array("element" => "icon_style", "value" => array("circle", "square", "advanced"))), array("type" => "dropdown", "class" => "", "heading" => __("Icon Border Style", "ultimate_vc"), "param_name" => "icon_border_style", "value" => array(__("None", "ultimate_vc") => "", __("Solid", "ultimate_vc") => "solid", __("Dashed", "ultimate_vc") => "dashed", __("Dotted", "ultimate_vc") => "dotted", __("Double", "ultimate_vc") => "double", __("Inset", "ultimate_vc") => "inset", __("Outset", "ultimate_vc") => "outset"), "description" => __("Select the border style for icon.", "ultimate_vc"), "dependency" => array("element" => "icon_style", "value" => array("advanced"))), array("type" => "colorpicker", "class" => "", "heading" => __("Border Color", "ultimate_vc"), "param_name" => "icon_color_border", "value" => "#333333", "description" => __("Select border color for icon.", "ultimate_vc"), "dependency" => array("element" => "icon_border_style", "not_empty" => true)), array("type" => "number", "class" => "", "heading" => __("Border Width", "ultimate_vc"), "param_name" => "icon_border_size", "value" => 1, "min" => 1, "max" => 10, "suffix" => "px", "description" => __("Thickness of the border.", "ultimate_vc"), "dependency" => array("element" => "icon_border_style", "not_empty" => true)), array("type" => "number", "class" => "", "heading" => __("Border Radius", "ultimate_vc"), "param_name" => "icon_border_radius", "value" => 500, "min" => 1, "max" => 500, "suffix" => "px", "description" => __("0 pixel value will create a square border. As you increase the value, the shape convert in circle slowly. (e.g 500 pixels).", "ultimate_vc"), "dependency" => array("element" => "icon_border_style", "not_empty" => true)), array("type" => "number", "class" => "", "heading" => __("Background Size", "ultimate_vc"), "param_name" => "icon_border_spacing", "value" => 50, "min" => 30, "max" => 500, "suffix" => "px", "description" => __("Spacing from center of the icon till the boundary of border / background", "ultimate_vc"), "dependency" => array("element" => "icon_style", "value" => array("advanced"))), array("type" => "textarea_html", "class" => "", "heading" => __("List content", "ultimate_vc"), "param_name" => "content", "value" => "", "description" => __("Enter the list content here.", "ultimate_vc"), "edit_field_class" => "ult_hide_editor_fullscreen vc_col-xs-12 vc_column wpb_el_type_textarea_html vc_wrapper-param-type-textarea_html vc_shortcode-param", "group" => "List Content"), array("type" => "textfield", "class" => "", "heading" => __("Custom CSS Class", "smile"), "param_name" => "el_class", "value" => "", "description" => __("Ran out of options? Need more styles? Write your own CSS and mention the class name here.", "ultimate_vc")))));
     }
 }
コード例 #25
-1
 function counter_init()
 {
     if (function_exists('vc_map')) {
         // map with visual
         vc_map(array("name" => __("Counter", "ultimate_vc"), "base" => "stat_counter", "class" => "vc_stats_counter", "icon" => "vc_icon_stats", "category" => "Ultimate VC Addons", "description" => __("Your milestones, achievements, etc.", "ultimate_vc"), "params" => array(array("type" => "dropdown", "class" => "", "heading" => __("Icon to display:", "ultimate_vc"), "param_name" => "icon_type", "value" => array(__("Font Icon Manager", "ultimate_vc") => "selector", __("Custom Image Icon", "ultimate_vc") => "custom"), "description" => __("Use an existing font icon or upload a custom image.", "ultimate_vc")), array("type" => "icon_manager", "class" => "", "heading" => __("Select Icon ", "ultimate_vc"), "param_name" => "icon", "value" => "", "description" => __("Click and select icon of your choice. If you can't find the one that suits for your purpose", "ultimate_vc") . ", " . __("you can", "ultimate_vc") . " <a href='admin.php?page=font-icon-Manager' target='_blank'>" . __("add new here", "ultimate_vc") . "</a>.", "dependency" => array("element" => "icon_type", "value" => array("selector"))), array("type" => "attach_image", "class" => "", "heading" => __("Upload Image Icon:", "ultimate_vc"), "param_name" => "icon_img", "value" => "", "description" => __("Upload the custom image icon.", "ultimate_vc"), "dependency" => array("element" => "icon_type", "value" => array("custom"))), array("type" => "number", "class" => "", "heading" => __("Image Width", "ultimate_vc"), "param_name" => "img_width", "value" => 48, "min" => 16, "max" => 512, "suffix" => "px", "description" => __("Provide image width", "ultimate_vc"), "dependency" => array("element" => "icon_type", "value" => array("custom"))), array("type" => "number", "class" => "", "heading" => __("Size of Icon", "ultimate_vc"), "param_name" => "icon_size", "value" => 32, "min" => 12, "max" => 72, "suffix" => "px", "description" => __("How big would you like it?", "ultimate_vc"), "dependency" => array("element" => "icon_type", "value" => array("selector"))), array("type" => "colorpicker", "class" => "", "heading" => __("Color", "ultimate_vc"), "param_name" => "icon_color", "value" => "#333333", "description" => __("Give it a nice paint!", "ultimate_vc"), "dependency" => array("element" => "icon_type", "value" => array("selector"))), array("type" => "dropdown", "class" => "", "heading" => __("Icon Style", "ultimate_vc"), "param_name" => "icon_style", "value" => array(__("Simple", "ultimate_vc") => "none", __("Circle Background", "ultimate_vc") => "circle", __("Square Background", "ultimate_vc") => "square", __("Design your own", "ultimate_vc") => "advanced"), "description" => __("We have given three quick preset if you are in a hurry. Otherwise, create your own with various options.", "ultimate_vc")), array("type" => "colorpicker", "class" => "", "heading" => __("Background Color", "ultimate_vc"), "param_name" => "icon_color_bg", "value" => "#ffffff", "description" => __("Select background color for icon.", "ultimate_vc"), "dependency" => array("element" => "icon_style", "value" => array("circle", "square", "advanced"))), array("type" => "dropdown", "class" => "", "heading" => __("Icon Border Style", "ultimate_vc"), "param_name" => "icon_border_style", "value" => array(__("None", "ultimate_vc") => "", __("Solid", "ultimate_vc") => "solid", __("Dashed", "ultimate_vc") => "dashed", __("Dotted", "ultimate_vc") => "dotted", __("Double", "ultimate_vc") => "double", __("Inset", "ultimate_vc") => "inset", __("Outset", "ultimate_vc") => "outset"), "description" => __("Select the border style for icon.", "ultimate_vc"), "dependency" => array("element" => "icon_style", "value" => array("advanced"))), array("type" => "colorpicker", "class" => "", "heading" => __("Border Color", "ultimate_vc"), "param_name" => "icon_color_border", "value" => "#333333", "description" => __("Select border color for icon.", "ultimate_vc"), "dependency" => array("element" => "icon_border_style", "not_empty" => true)), array("type" => "number", "class" => "", "heading" => __("Border Width", "ultimate_vc"), "param_name" => "icon_border_size", "value" => 1, "min" => 1, "max" => 10, "suffix" => "px", "description" => __("Thickness of the border.", "ultimate_vc"), "dependency" => array("element" => "icon_border_style", "not_empty" => true)), array("type" => "number", "class" => "", "heading" => __("Border Radius", "ultimate_vc"), "param_name" => "icon_border_radius", "value" => 500, "min" => 1, "max" => 500, "suffix" => "px", "description" => __("0 pixel value will create a square border. As you increase the value, the shape convert in circle slowly. (e.g 500 pixels).", "ultimate_vc"), "dependency" => array("element" => "icon_border_style", "not_empty" => true)), array("type" => "number", "class" => "", "heading" => __("Background Size", "ultimate_vc"), "param_name" => "icon_border_spacing", "value" => 50, "min" => 0, "max" => 500, "suffix" => "px", "description" => __("Spacing from center of the icon till the boundary of border / background", "ultimate_vc"), "dependency" => array("element" => "icon_style", "value" => array("advanced"))), array("type" => "dropdown", "class" => "", "heading" => __("Animation", "ultimate_vc"), "param_name" => "icon_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" => __("Like CSS3 Animations? We have several options for you!", "ultimate_vc")), array("type" => "dropdown", "class" => "", "heading" => __("Icon Position", "ultimate_vc"), "param_name" => "icon_position", "value" => array(__('Top', 'ultimate_vc') => 'top', __('Right', 'ultimate_vc') => 'right', __('Left', 'ultimate_vc') => 'left'), "description" => __("Enter Position of Icon", "ultimate_vc")), array("type" => "textfield", "class" => "", "heading" => __("Counter Title ", "ultimate_vc"), "param_name" => "counter_title", "admin_label" => true, "value" => "", "description" => __("Enter title for stats counter block", "ultimate_vc")), array("type" => "textfield", "class" => "", "heading" => __("Counter Value", "ultimate_vc"), "param_name" => "counter_value", "value" => "1250", "description" => __("Enter number for counter without any special character. You may enter a decimal number. Eg 12.76", "ultimate_vc")), array("type" => "textfield", "class" => "", "heading" => __("Thousands Separator", "ultimate_vc"), "param_name" => "counter_sep", "value" => ",", "description" => __("Enter character for thousanda separator. e.g. ',' will separate 125000 into 125,000", "ultimate_vc")), array("type" => "textfield", "class" => "", "heading" => __("Replace Decimal Point With", "ultimate_vc"), "param_name" => "counter_decimal", "value" => ".", "description" => __("Did you enter a decimal number (Eg - 12.76) The decimal point '.' will be replaced with value that you will enter above.", "ultimate_vc")), array("type" => "textfield", "class" => "", "heading" => __("Counter Value Prefix", "ultimate_vc"), "param_name" => "counter_prefix", "value" => "", "description" => __("Enter prefix for counter value", "ultimate_vc")), array("type" => "textfield", "class" => "", "heading" => __("Counter Value Suffix", "ultimate_vc"), "param_name" => "counter_suffix", "value" => "", "description" => __("Enter suffix for counter value", "ultimate_vc")), array("type" => "number", "class" => "", "heading" => __("Counter rolling time", "ultimate_vc"), "param_name" => "speed", "value" => 3, "min" => 1, "max" => 10, "suffix" => "seconds", "description" => __("How many seconds the counter should roll?", "ultimate_vc")), array("type" => "number", "class" => "", "heading" => __("Title Font Size", "ultimate_vc"), "param_name" => "font_size_title", "value" => 18, "min" => 10, "max" => 72, "suffix" => "px", "description" => __("Enter value in pixels.", "ultimate_vc")), array("type" => "number", "class" => "", "heading" => __("Counter Font Size", "ultimate_vc"), "param_name" => "font_size_counter", "value" => 28, "min" => 12, "max" => 72, "suffix" => "px", "description" => __("Enter value in pixels.", "ultimate_vc")), array("type" => "colorpicker", "class" => "", "heading" => __("Counter Text Color", "ultimate_vc"), "param_name" => "counter_color_txt", "value" => "", "description" => __("Select text color for counter title and digits.", "ultimate_vc")), array("type" => "textfield", "class" => "", "heading" => __("Extra Class", "ultimate_vc"), "param_name" => "el_class", "value" => "", "description" => __("Add extra class name that will be applied to the icon process, and you can use this class for your customizations.", "ultimate_vc")), array("type" => "ult_param_heading", "param_name" => "title_text_typography", "heading" => __("Counter Title settings", "ultimate_vc"), "value" => "", "group" => "Typography", "class" => "ult-param-heading", 'edit_field_class' => 'ult-param-heading-wrapper no-top-margin vc_column vc_col-sm-12'), array("type" => "ultimate_google_fonts", "heading" => __("Font Family", "ultimate_vc"), "param_name" => "title_font", "value" => "", "group" => "Typography"), array("type" => "ultimate_google_fonts_style", "heading" => __("Font Style", "ultimate_vc"), "param_name" => "title_font_style", "value" => "", "group" => "Typography"), array("type" => "number", "param_name" => "title_font_size", "heading" => __("Font size", "ultimate_vc"), "value" => "", "suffix" => "px", "min" => 10, "group" => "Typography"), array("type" => "number", "param_name" => "title_font_line_height", "heading" => __("Font Line Height", "ultimate_vc"), "value" => "", "suffix" => "px", "min" => 10, "group" => "Typography"), array("type" => "ult_param_heading", "param_name" => "desc_text_typography", "heading" => __("Counter Value settings", "ultimate_vc"), "value" => "", "group" => "Typography", "class" => "ult-param-heading", 'edit_field_class' => 'ult-param-heading-wrapper vc_column vc_col-sm-12'), array("type" => "ultimate_google_fonts", "heading" => __("Font Family", "ultimate_vc"), "param_name" => "desc_font", "value" => "", "group" => "Typography"), array("type" => "ultimate_google_fonts_style", "heading" => __("Font Style", "ultimate_vc"), "param_name" => "desc_font_style", "value" => "", "group" => "Typography"), array("type" => "number", "param_name" => "desc_font_size", "heading" => __("Font size", "ultimate_vc"), "value" => "", "suffix" => "px", "min" => 10, "group" => "Typography"), array("type" => "number", "param_name" => "desc_font_line_height", "heading" => __("Font Line Height", "ultimate_vc"), "value" => "", "suffix" => "px", "min" => 10, "group" => "Typography"), array("type" => "colorpicker", "param_name" => "desc_font_color", "heading" => __("Color", "ultimate_vc"), "group" => "Typography"), array("type" => "heading", "sub_heading" => "<span style='display: block;'><a href='http://bsf.io/t23kn' target='_blank'>" . __("Watch Video Tutorial", "ultimate_vc") . " &nbsp; <span class='dashicons dashicons-video-alt3' style='font-size:30px;vertical-align: middle;color: #e52d27;'></span></a></span>", "param_name" => "notification", 'edit_field_class' => 'ult-param-important-wrapper ult-dashicon ult-align-right ult-bold-font ult-blue-font vc_column vc_col-sm-12'))));
     }
 }
コード例 #26
-1
ファイル: shortcode_product.php プロジェクト: ksingh812/epb
 function WooComposer_Init_Product()
 {
     if (function_exists('vc_map')) {
         $params = array("name" => __("Single Product [Beta]", "ultimate_vc"), "base" => "woocomposer_product", "icon" => "woo_product", "class" => "woo_product", "category" => __("WooComposer [ Beta ]", "ultimate_vc"), "description" => __("Display single product from list", "ultimate_vc"), "controls" => "full", "show_settings_on_create" => true, "params" => array(array("type" => "product_search", "class" => "", "heading" => __("Select Product", "ultimate_vc"), "param_name" => "product_id", "admin_label" => true, "value" => "", "group" => "Initial Settings"), array("type" => "dropdown", "class" => "", "heading" => __("Select Product Style", "ultimate_vc"), "param_name" => "product_style", "admin_label" => true, "value" => array(__("Style 01", "ultimate_vc") => "style01", __("Style 02", "ultimate_vc") => "style02", __("Style 03", "ultimate_vc") => "style03"), "group" => "Initial Settings"), array("type" => "ult_switch", "class" => "", "heading" => __("Select Options to Display", "ultimate_vc"), "param_name" => "options", "admin_label" => true, "value" => "", "options" => array("category" => array("label" => __("Category", "ultimate_vc"), "on" => __("Yes", "ultimate_vc"), "off" => __("No", "ultimate_vc")), "reviews" => array("label" => __("Reviews", "ultimate_vc"), "on" => __("Yes", "ultimate_vc"), "off" => __("No", "ultimate_vc")), "quick" => array("label" => __("Quick View", "ultimate_vc"), "on" => __("Yes", "ultimate_vc"), "off" => __("No", "ultimate_vc")), "description" => array("label" => __("Description", "ultimate_vc"), "on" => __("Yes", "ultimate_vc"), "off" => __("No", "ultimate_vc"))), "group" => "Initial Settings"), array("type" => "dropdown", "class" => "", "heading" => __("Product Text Alignment", "ultimate_vc"), "param_name" => "text_align", "value" => array(__("Left", "ultimate_vc") => "left", __("Center", "ultimate_vc") => "center", __("Right", "ultimate_vc") => "right"), "group" => "Initial Settings"), array("type" => "textfield", "class" => "", "heading" => __("Sale Notification Label", "ultimate_vc"), "param_name" => "label_on_sale", "value" => "", "description" => __("Enter custom text for Product On Sale label. Default is - Sale!.", "ultimate_vc"), "group" => "Initial Settings"), array("type" => "dropdown", "class" => "", "heading" => __("Sale Notification Style", "ultimate_vc"), "param_name" => "on_sale_style", "admin_label" => true, "value" => array(__("Circle", "ultimate_vc") => "wcmp-sale-circle", __("Rectangle", "ultimate_vc") => "wcmp-sale-rectangle"), "group" => "Initial Settings"), array("type" => "dropdown", "class" => "", "heading" => __("Sale Notification Alignment", "ultimate_vc"), "param_name" => "on_sale_alignment", "admin_label" => true, "value" => array(__("Right", "ultimate_vc") => "wcmp-sale-right", __("Left", "ultimate_vc") => "wcmp-sale-left"), "group" => "Initial Settings"), array("type" => "dropdown", "class" => "", "heading" => __("Product Image Setting", "ultimate_vc"), "param_name" => "product_img_disp", "value" => array(__("Display product featured image", "ultimate_vc") => "single", __("Display product gallery in carousel slider", "ultimate_vc") => "carousel"), "group" => "Initial Settings"), array("type" => "dropdown", "class" => "", "heading" => __("Image Hover Animation", "ultimate_vc"), "param_name" => "img_animate", "value" => array(__("Rotate Clock", "ultimate_vc") => "rotate-clock", __("Rotate Anti-clock", "ultimate_vc") => "rotate-anticlock", __("Zoom-In", "ultimate_vc") => "zoomin", __("Zoom-Out", "ultimate_vc") => "zoomout", __("Fade", "ultimate_vc") => "fade", __("Gray Scale", "ultimate_vc") => "grayscale", __("Shadow", "ultimate_vc") => "imgshadow", __("Blur", "ultimate_vc") => "blur", __("Anti Grayscale", "ultimate_vc") => "antigrayscale"), "group" => "Initial Settings"), array("type" => "dropdown", "class" => "", "heading" => __("Product Border Style", "ultimate_vc"), "param_name" => "border_style", "value" => array(__("None", "ultimate_vc") => "", __("Solid", "ultimate_vc") => "solid", __("Dashed", "ultimate_vc") => "dashed", __("Dotted", "ultimate_vc") => "dotted", __("Double", "ultimate_vc") => "double", __("Inset", "ultimate_vc") => "inset", __("Outset", "ultimate_vc") => "outset"), "group" => "Initial Settings"), array("type" => "colorpicker", "class" => "", "heading" => __("Border Color", "ultimate_vc"), "param_name" => "border_color", "value" => "#333333", "dependency" => array("element" => "border_style", "not_empty" => true), "group" => "Initial Settings"), array("type" => "number", "class" => "", "heading" => __("Border Width", "ultimate_vc"), "param_name" => "border_size", "value" => 1, "min" => 1, "max" => 10, "suffix" => "px", "dependency" => array("element" => "border_style", "not_empty" => true), "group" => "Initial Settings"), array("type" => "number", "class" => "", "heading" => __("Border Radius", "ultimate_vc"), "param_name" => "border_radius", "value" => 5, "min" => 1, "max" => 500, "suffix" => "px", "dependency" => array("element" => "border_style", "not_empty" => true), "group" => "Initial Settings"), array("type" => "colorpicker", "class" => "", "heading" => __("Product Title Color", "ultimate_vc"), "param_name" => "color_heading", "value" => "", "group" => "Style Settings"), array("type" => "colorpicker", "class" => "", "heading" => __("Categories Color", "ultimate_vc"), "param_name" => "color_categories", "value" => "", "group" => "Style Settings"), array("type" => "colorpicker", "class" => "", "heading" => __("Price Color", "ultimate_vc"), "param_name" => "color_price", "value" => "", "group" => "Style Settings"), array("type" => "colorpicker", "class" => "", "heading" => __("Star Ratings Color", "ultimate_vc"), "param_name" => "color_rating", "value" => "", "group" => "Style Settings"), array("type" => "colorpicker", "class" => "", "heading" => __("Star Rating Background Color", "ultimate_vc"), "param_name" => "color_rating_bg", "value" => "", "group" => "Style Settings"), array("type" => "colorpicker", "class" => "", "heading" => __("Quick View Icon Color", "ultimate_vc"), "param_name" => "color_quick", "value" => "", "group" => "Style Settings"), array("type" => "colorpicker", "class" => "", "heading" => __("Quick View Background Color", "ultimate_vc"), "param_name" => "color_quick_bg", "value" => "", "group" => "Style Settings"), array("type" => "colorpicker", "class" => "", "heading" => __("Cart Icon Color", "ultimate_vc"), "param_name" => "color_cart", "value" => "", "group" => "Style Settings"), array("type" => "colorpicker", "class" => "", "heading" => __("Cart Button Background Color", "ultimate_vc"), "param_name" => "color_cart_bg", "value" => "", "group" => "Style Settings"), array("type" => "colorpicker", "class" => "", "heading" => __("Sale Notification Text Color", "ultimate_vc"), "param_name" => "color_on_sale", "value" => "", "group" => "Style Settings"), array("type" => "colorpicker", "class" => "", "heading" => __("Sale Notification Background Color", "ultimate_vc"), "param_name" => "color_on_sale_bg", "value" => "", "group" => "Style Settings"), array("type" => "colorpicker", "class" => "", "heading" => __("Product Description Text Color", "ultimate_vc"), "param_name" => "color_product_desc", "value" => "", "group" => "Style Settings"), array("type" => "colorpicker", "class" => "", "heading" => __("Product Description Background Color", "ultimate_vc"), "param_name" => "color_product_desc_bg", "value" => "", "group" => "Style Settings"), array("type" => "number", "class" => "", "heading" => __("Product Title", "ultimate_vc"), "param_name" => "size_title", "value" => "", "min" => 10, "max" => 72, "suffix" => "px", "group" => "Font Sizes"), array("type" => "number", "class" => "", "heading" => __("Categories", "ultimate_vc"), "param_name" => "size_cat", "value" => "", "min" => 10, "max" => 72, "suffix" => "px", "group" => "Font Sizes"), array("type" => "number", "class" => "", "heading" => __("Price", "ultimate_vc"), "param_name" => "size_price", "value" => "", "min" => 10, "max" => 72, "suffix" => "px", "group" => "Font Sizes"), array("type" => "number", "class" => "", "heading" => __("Sale Notification", "ultimate_vc"), "param_name" => "sale_price", "value" => "", "min" => 10, "max" => 72, "suffix" => "px", "group" => "Font Sizes")));
         vc_map($params);
     }
 }
コード例 #27
-1
function porto_load_product_attribute_shortcode()
{
    $animation_type = porto_vc_animation_type();
    $animation_duration = porto_vc_animation_duration();
    $animation_delay = porto_vc_animation_delay();
    $custom_class = porto_vc_custom_class();
    $order_by_values = porto_vc_woo_order_by();
    $order_way_values = porto_vc_woo_order_way();
    $attributes_tax = wc_get_attribute_taxonomies();
    $attributes = array();
    foreach ($attributes_tax as $attribute) {
        $attributes[$attribute->attribute_label] = $attribute->attribute_name;
    }
    // woocommerce product attribute
    vc_map(array('name' => "Porto " . __('Product Attribute', 'js_composer'), 'base' => 'porto_product_attribute', 'icon' => 'porto_vc_woocommerce', 'category' => __('WooCommerce', 'js_composer'), 'description' => __('Show products with an attribute shortcode', 'porto-shortcodes'), 'params' => array(array('type' => 'textfield', 'heading' => __('Title', 'woocommerce'), 'param_name' => 'title', 'admin_label' => true), array('type' => 'dropdown', 'heading' => __('View mode', 'porto-shortcodes'), 'param_name' => 'view', 'value' => porto_vc_commons('products_view_mode'), 'admin_label' => true), array('type' => 'textfield', 'heading' => __('Per page', 'js_composer'), 'value' => 12, 'param_name' => 'per_page', 'description' => __('The "per_page" shortcode determines how many products to show on the page', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Columns', 'porto-shortcodes'), 'param_name' => 'columns', 'dependency' => array('element' => 'view', 'value' => array('products-slider', 'grid')), 'std' => '4', 'value' => porto_vc_commons('products_columns')), array('type' => 'dropdown', 'heading' => __('Column Width', 'porto-shortcodes'), 'param_name' => 'column_width', 'dependency' => array('element' => 'view', 'value' => array('products-slider', 'grid')), 'value' => porto_vc_commons('products_column_width')), array('type' => 'dropdown', 'heading' => __('Order by', 'js_composer'), 'param_name' => 'orderby', 'value' => $order_by_values, 'description' => sprintf(__('Select how to sort retrieved products. More at %s.', 'js_composer'), '<a href="http://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters" target="_blank">WordPress codex page</a>')), array('type' => 'dropdown', 'heading' => __('Order way', 'js_composer'), 'param_name' => 'order', 'value' => $order_way_values, 'description' => sprintf(__('Designates the ascending or descending order. More at %s.', 'js_composer'), '<a href="http://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters" target="_blank">WordPress codex page</a>')), array('type' => 'dropdown', 'heading' => __('Attribute', 'js_composer'), 'param_name' => 'attribute', 'value' => $attributes, 'description' => __('List of product taxonomy attribute', 'js_composer')), array('type' => 'checkbox', 'heading' => __('Filter', 'js_composer'), 'param_name' => 'filter', 'value' => array('empty' => 'empty'), 'description' => __('Taxonomy values', 'js_composer'), 'dependency' => array('element' => 'attribute', 'is_empty' => true, 'callback' => 'vc_woocommerce_product_attribute_filter_dependency_callback')), array('type' => 'dropdown', 'heading' => __('Add Links Position', 'porto-shortcodes'), 'desc' => 'Select position of add to cart, add to wishlist, quickview.', 'param_name' => 'addlinks_pos', 'value' => porto_vc_commons('products_addlinks_pos')), array('type' => 'checkbox', 'heading' => __('Show Navigation', 'porto-shortcodes'), 'param_name' => 'navigation', 'std' => 'yes', 'dependency' => array('element' => 'view', 'value' => array('products-slider')), 'value' => array(__('Yes', 'js_composer') => 'yes')), array('type' => 'checkbox', 'heading' => __('Show Pagination', 'porto-shortcodes'), 'param_name' => 'pagination', 'std' => 'no', 'dependency' => array('element' => 'view', 'value' => array('products-slider')), 'value' => array(__('Yes', 'js_composer') => 'yes')), $animation_type, $animation_duration, $animation_delay, $custom_class)));
    //For param: "filter" param value
    //vc_form_fields_render_field_{shortcode_name}_{param_name}_param
    add_filter('vc_form_fields_render_field_porto_product_attribute_filter_param', 'porto_shortcode_product_attribute_filter_param', 10, 4);
    // Defines default value for param if not provided. Takes from other param value.
    if (!class_exists('WPBakeryShortCode_Porto_Product_Attribute')) {
        class WPBakeryShortCode_Porto_Product_Attribute extends WPBakeryShortCode
        {
        }
    }
}
コード例 #28
-1
 function ultimate_pricing_init()
 {
     if (function_exists("vc_map")) {
         vc_map(array("name" => __("Price Box", "ultimate_vc"), "base" => "ultimate_pricing", "class" => "vc_ultimate_pricing", "icon" => "vc_ultimate_pricing", "category" => "Ultimate VC Addons", "description" => __("Create nice looking pricing tables.", "ultimate_vc"), "params" => array(array("type" => "dropdown", "class" => "", "heading" => __("Select Design Style", "ultimate_vc"), "param_name" => "design_style", "value" => array(__("Design 01", "ultimate_vc") => "design01", __("Design 02", "ultimate_vc") => "design02", __("Design 03", "ultimate_vc") => "design03", __("Design 04", "ultimate_vc") => "design04", __("Design 05", "ultimate_vc") => "design05", __("Design 06", "ultimate_vc") => "design06"), "description" => __("Select Pricing table design you would like to use", "ultimate_vc")), array("type" => "dropdown", "class" => "", "heading" => __("Select Color Scheme", "ultimate_vc"), "param_name" => "color_scheme", "value" => array(__("Black", "ultimate_vc") => "black", __("Red", "ultimate_vc") => "red", __("Blue", "ultimate_vc") => "blue", __("Yellow", "ultimate_vc") => "yellow", __("Green", "ultimate_vc") => "green", __("Gray", "ultimate_vc") => "gray", __("Design Your Own", "ultimate_vc") => "custom"), "description" => __("Which color scheme would like to use?", "ultimate_vc")), array("type" => "colorpicker", "class" => "", "heading" => __("Main background Color", "ultimate_vc"), "param_name" => "color_bg_main", "value" => "", "description" => __("Select normal background color.", "ultimate_vc"), "dependency" => array("element" => "color_scheme", "value" => array("custom"))), array("type" => "colorpicker", "class" => "", "heading" => __("Main text Color", "ultimate_vc"), "param_name" => "color_txt_main", "value" => "", "description" => __("Select normal background color.", "ultimate_vc"), "dependency" => array("element" => "color_scheme", "value" => array("custom"))), array("type" => "colorpicker", "class" => "", "heading" => __("Highlight background Color", "ultimate_vc"), "param_name" => "color_bg_highlight", "value" => "", "description" => __("Select highlight background color.", "ultimate_vc"), "dependency" => array("element" => "color_scheme", "value" => array("custom"))), array("type" => "colorpicker", "class" => "", "heading" => __("Highlight text Color", "ultimate_vc"), "param_name" => "color_txt_highlight", "value" => "", "description" => __("Select highlight background color.", "ultimate_vc"), "dependency" => array("element" => "color_scheme", "value" => array("custom"))), array("type" => "textfield", "class" => "", "heading" => __("Package Name / Title", "ultimate_vc"), "param_name" => "package_heading", "admin_label" => true, "value" => "", "description" => __("Enter the package name or table heading", "ultimate_vc")), array("type" => "textfield", "class" => "", "heading" => __("Sub Heading", "ultimate_vc"), "param_name" => "package_sub_heading", "value" => "", "description" => __("Enter short description for this package", "ultimate_vc")), array("type" => "textfield", "class" => "", "heading" => __("Package Price", "ultimate_vc"), "param_name" => "package_price", "value" => "", "description" => __("Enter the price for this package. e.g. \$157", "ultimate_vc")), array("type" => "textfield", "class" => "", "heading" => __("Price Unit", "ultimate_vc"), "param_name" => "package_unit", "value" => "", "description" => __("Enter the price unit for this package. e.g. per month", "ultimate_vc")), array("type" => "textarea_html", "class" => "", "heading" => __("Features", "ultimate_vc"), "param_name" => "content", "value" => "", "description" => __("Create the features list using un-ordered list elements.", "ultimate_vc")), array("type" => "textfield", "class" => "", "heading" => __("Button Text", "ultimate_vc"), "param_name" => "package_btn_text", "value" => "", "description" => __("Enter call to action button text", "ultimate_vc")), array("type" => "vc_link", "class" => "", "heading" => __("Button Link", "smile"), "param_name" => "package_link", "value" => "", "description" => __("Select / enter the link for call to action button", "ultimate_vc")), array("type" => "checkbox", "class" => "", "heading" => "", "param_name" => "package_featured", "value" => array("Make this pricing box as featured" => "enable")), array("type" => "number", "class" => "", "heading" => __("Minimum Height For Price Box", "ultimate_vc"), "param_name" => "min_ht", "min" => "", "suffix" => "px", "description" => __("Adjust height of your price box.", "ultimate_vc")), array("type" => "textfield", "heading" => __("Extra class name", "js_composer"), "param_name" => "el_class", "description" => __("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.", "ultimate_vc")), array("type" => "ult_param_heading", "text" => __("Package Name/Title Settings", "ultimate_vc"), "param_name" => "package_typograpy", "group" => "Typography", "class" => "ult-param-heading", 'edit_field_class' => 'ult-param-heading-wrapper no-top-margin vc_column vc_col-sm-12'), array("type" => "ultimate_google_fonts", "heading" => __("Font Family", "ultimate_vc"), "param_name" => "package_name_font_family", "description" => __("Select the font of your choice.", "ultimate_vc") . " " . __("You can", "ultimate_vc") . " <a target='_blank' href='" . admin_url('admin.php?page=ultimate-font-manager') . "'>" . __("add new in the collection here", "ultimate_vc") . "</a>.", "group" => "Typography"), array("type" => "ultimate_google_fonts_style", "heading" => __("Font Style", "ultimate_vc"), "param_name" => "package_name_font_style", "group" => "Typography"), array("type" => "number", "class" => "font-size", "heading" => __("Font Size", "ultimate_vc"), "param_name" => "package_name_font_size", "min" => 10, "suffix" => "px", "group" => "Typography"), array("type" => "colorpicker", "class" => "", "heading" => __("Font Color", "ultimate_vc"), "param_name" => "package_name_font_color", "value" => "", "group" => "Typography"), array("type" => "number", "class" => "", "heading" => __("Line Height", "ultimate_vc"), "param_name" => "package_name_line_height", "value" => "", "suffix" => "px", "group" => "Typography"), array("type" => "ult_param_heading", "text" => __("Sub-Heading Settings", "ultimate_vc"), "param_name" => "subheading_typograpy", "group" => "Typography", "class" => "ult-param-heading", 'edit_field_class' => 'ult-param-heading-wrapper vc_column vc_col-sm-12'), array("type" => "ultimate_google_fonts", "heading" => __("Font Family", "ultimate_vc"), "param_name" => "subheading_font_family", "description" => __("Select the font of your choice.", "ultimate_vc") . " " . __("You can", "ultimate_vc") . " <a target='_blank' href='" . admin_url('admin.php?page=ultimate-font-manager') . "'>" . __("add new in the collection here", "ultimate_vc") . "</a>.", "group" => "Typography"), array("type" => "ultimate_google_fonts_style", "heading" => __("Font Style", "ultimate_vc"), "param_name" => "subheading_font_style", "group" => "Typography"), array("type" => "number", "class" => "font-size", "heading" => __("Font Size", "ultimate_vc"), "param_name" => "subheading_font_size", "min" => 10, "suffix" => "px", "group" => "Typography"), array("type" => "colorpicker", "class" => "", "heading" => __("Font Color", "ultimate_vc"), "param_name" => "subheading_font_color", "value" => "", "group" => "Typography"), array("type" => "number", "class" => "", "heading" => __("Line Height", "ultimate_vc"), "param_name" => "subheading_line_height", "value" => "", "suffix" => "px", "group" => "Typography"), array("type" => "ult_param_heading", "text" => __("Price Settings", "ultimate_vc"), "param_name" => "price_typograpy", "group" => "Typography", "class" => "ult-param-heading", 'edit_field_class' => 'ult-param-heading-wrapper vc_column vc_col-sm-12'), array("type" => "ultimate_google_fonts", "heading" => __("Font Family", "ultimate_vc"), "param_name" => "price_font_family", "description" => __("Select the font of your choice.", "ultimate_vc") . " " . __("You can", "ultimate_vc") . " <a target='_blank' href='" . admin_url('admin.php?page=ultimate-font-manager') . "'>" . __("add new in the collection here", "ultimate_vc") . "</a>.", "group" => "Typography"), array("type" => "ultimate_google_fonts_style", "heading" => __("Font Style", "ultimate_vc"), "param_name" => "price_font_style", "group" => "Typography"), array("type" => "number", "class" => "font-size", "heading" => __("Font Size", "ultimate_vc"), "param_name" => "price_font_size", "min" => 10, "suffix" => "px", "group" => "Typography"), array("type" => "colorpicker", "class" => "", "heading" => __("Font Color", "ultimate_vc"), "param_name" => "price_font_color", "value" => "", "group" => "Typography"), array("type" => "number", "class" => "", "heading" => __("Line Height", "ultimate_vc"), "param_name" => "price_line_height", "value" => "", "suffix" => "px", "group" => "Typography"), array("type" => "ult_param_heading", "text" => __("Price Unit Settings", "ultimate_vc"), "param_name" => "price_unit_typograpy", "group" => "Typography", "class" => "ult-param-heading", 'edit_field_class' => 'ult-param-heading-wrapper vc_column vc_col-sm-12'), array("type" => "ultimate_google_fonts", "heading" => __("Font Family", "smile"), "param_name" => "price_unit_font_family", "description" => __("Select the font of your choice.", "ultimate_vc") . " " . __("You can", "ultimate_vc") . " <a target='_blank' href='" . admin_url('admin.php?page=ultimate-font-manager') . "'>" . __("add new in the collection here", "ultimate_vc") . "</a>.", "group" => "Typography"), array("type" => "ultimate_google_fonts_style", "heading" => __("Font Style", "ultimate_vc"), "param_name" => "price_unit_font_style", "group" => "Typography"), array("type" => "number", "class" => "font-size", "heading" => __("Font Size", "ultimate_vc"), "param_name" => "price_unit_font_size", "min" => 10, "suffix" => "px", "group" => "Typography"), array("type" => "colorpicker", "class" => "", "heading" => __("Font Color", "ultimate_vc"), "param_name" => "price_unit_font_color", "value" => "", "group" => "Typography"), array("type" => "number", "class" => "", "heading" => __("Line Height", "ultimate_vc"), "param_name" => "price_unit_line_height", "value" => "", "suffix" => "px", "group" => "Typography"), array("type" => "ult_param_heading", "text" => __("Features Settings", "ultimate_vc"), "param_name" => "features_typograpy", "group" => "Typography", "class" => "ult-param-heading", 'edit_field_class' => 'ult-param-heading-wrapper vc_column vc_col-sm-12'), array("type" => "ultimate_google_fonts", "heading" => __("Font Family", "ultimate_vc"), "param_name" => "features_font_family", "description" => __("Select the font of your choice.", "ultimate_vc") . " " . __("You can", "ultimate_vc") . " <a target='_blank' href='" . admin_url('admin.php?page=ultimate-font-manager') . "'>" . __("add new in the collection here", "ultimate_vc") . "</a>.", "group" => "Typography"), array("type" => "ultimate_google_fonts_style", "heading" => __("Font Style", "ultimate_vc"), "param_name" => "features_font_style", "group" => "Typography"), array("type" => "number", "class" => "font-size", "heading" => __("Font Size", "ultimate_vc"), "param_name" => "features_font_size", "min" => 10, "suffix" => "px", "group" => "Typography"), array("type" => "colorpicker", "class" => "", "heading" => __("Font Color", "ultimate_vc"), "param_name" => "features_font_color", "value" => "", "group" => "Typography"), array("type" => "number", "class" => "", "heading" => __("Line Height", "ultimate_vc"), "param_name" => "features_line_height", "value" => "", "suffix" => "px", "group" => "Typography"), array("type" => "ult_param_heading", "text" => __("Button Settings", "ultimate_vc"), "param_name" => "button_typograpy", "group" => "Typography", "class" => "ult-param-heading", 'edit_field_class' => 'ult-param-heading-wrapper vc_column vc_col-sm-12'), array("type" => "ultimate_google_fonts", "heading" => __("Font Family", "ultimate_vc"), "param_name" => "button_font_family", "description" => __("Select the font of your choice.", "ultimate_vc") . " " . __("You can", "ultimate_vc") . " <a target='_blank' href='" . admin_url('admin.php?page=ultimate-font-manager') . "'>" . __("add new in the collection here", "ultimate_vc") . "</a>.", "group" => "Typography"), array("type" => "ultimate_google_fonts_style", "heading" => __("Font Style", "ultimate_vc"), "param_name" => "button_font_style", "group" => "Typography"), array("type" => "number", "class" => "font-size", "heading" => __("Font Size", "ultimate_vc"), "param_name" => "button_font_size", "min" => 10, "suffix" => "px", "group" => "Typography"), array("type" => "colorpicker", "class" => "", "heading" => __("Font Color", "ultimate_vc"), "param_name" => "button_font_color", "value" => "", "group" => "Typography"), array("type" => "number", "class" => "", "heading" => __("Line Height", "ultimate_vc"), "param_name" => "button_line_height", "value" => "", "suffix" => "px", "group" => "Typography"))));
         // vc_map
     }
 }
コード例 #29
-1
 function VC_Extensions_FAanimation()
 {
     vc_map(array("name" => __("Font Awesome Animation", 'vc_animationfw_cq'), "base" => "cq_vc_animationfw", "class" => "wpb_cq_vc_extension_faanimation", "controls" => "full", "icon" => "cq_allinone_faanimation", "category" => __('Sike Extensions', 'js_composer'), 'description' => __('Animate icon', 'js_composer'), "params" => array(array("type" => "dropdown", "heading" => __("Icon", "vc_animationfw_cq"), "param_name" => "icon", "description" => __('Select the icon', 'vc_animationfw_cq'), "value" => array(__("angellist", "vc_animationfw_cq") => "angellist", __("area-chart", "vc_animationfw_cq") => "area-chart", __("at", "vc_animationfw_cq") => "at", __("bell-slash", "vc_animationfw_cq") => "bell-slash", __("bell-slash-o", "vc_animationfw_cq") => "bell-slash-o", __("bicycle", "vc_animationfw_cq") => "bicycle", __("binoculars", "vc_animationfw_cq") => "binoculars", __("birthday-cake", "vc_animationfw_cq") => "birthday-cake", __("bus", "vc_animationfw_cq") => "bus", __("calculator", "vc_animationfw_cq") => "calculator", __("cc", "vc_animationfw_cq") => "cc", __("cc-amex", "vc_animationfw_cq") => "cc-amex", __("cc-discover", "vc_animationfw_cq") => "cc-discover", __("cc-mastercard", "vc_animationfw_cq") => "cc-mastercard", __("cc-paypal", "vc_animationfw_cq") => "cc-paypal", __("cc-stripe", "vc_animationfw_cq") => "cc-stripe", __("cc-visa", "vc_animationfw_cq") => "cc-visa", __("copyright", "vc_animationfw_cq") => "copyright", __("eyedropper", "vc_animationfw_cq") => "eyedropper", __("futbol-o", "vc_animationfw_cq") => "futbol-o", __("google-wallet", "vc_animationfw_cq") => "google-wallet", __("ils", "vc_animationfw_cq") => "ils", __("ioxhost", "vc_animationfw_cq") => "ioxhost", __("lastfm", "vc_animationfw_cq") => "lastfm", __("lastfm-square", "vc_animationfw_cq") => "lastfm-square", __("line-chart", "vc_animationfw_cq") => "line-chart", __("meanpath", "vc_animationfw_cq") => "meanpath", __("newspaper-o", "vc_animationfw_cq") => "newspaper-o", __("paint-brush", "vc_animationfw_cq") => "paint-brush", __("paypal", "vc_animationfw_cq") => "paypal", __("pie-chart", "vc_animationfw_cq") => "pie-chart", __("plug", "vc_animationfw_cq") => "plug", __("shekel", "vc_animationfw_cq") => "shekel", __("sheqel", "vc_animationfw_cq") => "sheqel", __("slideshare", "vc_animationfw_cq") => "slideshare", __("soccer-ball-o", "vc_animationfw_cq") => "soccer-ball-o", __("toggle-off", "vc_animationfw_cq") => "toggle-off", __("toggle-on", "vc_animationfw_cq") => "toggle-on", __("trash", "vc_animationfw_cq") => "trash", __("tty", "vc_animationfw_cq") => "tty", __("twitch", "vc_animationfw_cq") => "twitch", __("wifi", "vc_animationfw_cq") => "wifi", __("yelp", "vc_animationfw_cq") => "yelp", __("automobile", "vc_animationfw_cq") => "automobile", __("bank", "vc_animationfw_cq") => "bank", __("behance", "vc_animationfw_cq") => "behance", __("behance-square", "vc_animationfw_cq") => "behance-square", __("bomb", "vc_animationfw_cq") => "bomb", __("building", "vc_animationfw_cq") => "building", __("cab", "vc_animationfw_cq") => "cab", __("car", "vc_animationfw_cq") => "car", __("child", "vc_animationfw_cq") => "child", __("circle-o-notch", "vc_animationfw_cq") => "circle-o-notch", __("circle-thin", "vc_animationfw_cq") => "circle-thin", __("codepen", "vc_animationfw_cq") => "codepen", __("cube", "vc_animationfw_cq") => "cube", __("cubes", "vc_animationfw_cq") => "cubes", __("database", "vc_animationfw_cq") => "database", __("delicious", "vc_animationfw_cq") => "delicious", __("deviantart", "vc_animationfw_cq") => "deviantart", __("digg", "vc_animationfw_cq") => "digg", __("drupal", "vc_animationfw_cq") => "drupal", __("empire", "vc_animationfw_cq") => "empire", __("envelope-square", "vc_animationfw_cq") => "envelope-square", __("fax", "vc_animationfw_cq") => "fax", __("file-archive-o", "vc_animationfw_cq") => "file-archive-o", __("file-audio-o", "vc_animationfw_cq") => "file-audio-o", __("file-code-o", "vc_animationfw_cq") => "file-code-o", __("file-excel-o", "vc_animationfw_cq") => "file-excel-o", __("file-image-o", "vc_animationfw_cq") => "file-image-o", __("file-movie-o", "vc_animationfw_cq") => "file-movie-o", __("file-pdf-o", "vc_animationfw_cq") => "file-pdf-o", __("file-photo-o", "vc_animationfw_cq") => "file-photo-o", __("file-picture-o", "vc_animationfw_cq") => "file-picture-o", __("file-powerpoint-o", "vc_animationfw_cq") => "file-powerpoint-o", __("file-sound-o", "vc_animationfw_cq") => "file-sound-o", __("file-video-o", "vc_animationfw_cq") => "file-video-o", __("file-word-o", "vc_animationfw_cq") => "file-word-o", __("file-zip-o", "vc_animationfw_cq") => "file-zip-o", __("ge", "vc_animationfw_cq") => "ge", __("git", "vc_animationfw_cq") => "git", __("git-square", "vc_animationfw_cq") => "git-square", __("google", "vc_animationfw_cq") => "google", __("graduation-cap", "vc_animationfw_cq") => "graduation-cap", __("hacker-news", "vc_animationfw_cq") => "hacker-news", __("header", "vc_animationfw_cq") => "header", __("history", "vc_animationfw_cq") => "history", __("institution", "vc_animationfw_cq") => "institution", __("joomla", "vc_animationfw_cq") => "joomla", __("jsfiddle", "vc_animationfw_cq") => "jsfiddle", __("language", "vc_animationfw_cq") => "language", __("life-bouy", "vc_animationfw_cq") => "life-bouy", __("life-ring", "vc_animationfw_cq") => "life-ring", __("life-saver", "vc_animationfw_cq") => "life-saver", __("mortar-board", "vc_animationfw_cq") => "mortar-board", __("openid", "vc_animationfw_cq") => "openid", __("paper-plane", "vc_animationfw_cq") => "paper-plane", __("paper-plane-o", "vc_animationfw_cq") => "paper-plane-o", __("paragraph", "vc_animationfw_cq") => "paragraph", __("paw", "vc_animationfw_cq") => "paw", __("pied-piper", "vc_animationfw_cq") => "pied-piper", __("pied-piper-alt", "vc_animationfw_cq") => "pied-piper-alt", __("pied-piper-square", "vc_animationfw_cq") => "pied-piper-square", __("qq", "vc_animationfw_cq") => "qq", __("ra", "vc_animationfw_cq") => "ra", __("rebel", "vc_animationfw_cq") => "rebel", __("recycle", "vc_animationfw_cq") => "recycle", __("reddit", "vc_animationfw_cq") => "reddit", __("reddit-square", "vc_animationfw_cq") => "reddit-square", __("send", "vc_animationfw_cq") => "send", __("send-o", "vc_animationfw_cq") => "send-o", __("share-alt", "vc_animationfw_cq") => "share-alt", __("share-alt-square", "vc_animationfw_cq") => "share-alt-square", __("slack", "vc_animationfw_cq") => "slack", __("sliders", "vc_animationfw_cq") => "sliders", __("soundcloud", "vc_animationfw_cq") => "soundcloud", __("space-shuttle", "vc_animationfw_cq") => "space-shuttle", __("spoon", "vc_animationfw_cq") => "spoon", __("spotify", "vc_animationfw_cq") => "spotify", __("steam", "vc_animationfw_cq") => "steam", __("steam-square", "vc_animationfw_cq") => "steam-square", __("stumbleupon", "vc_animationfw_cq") => "stumbleupon", __("stumbleupon-circle", "vc_animationfw_cq") => "stumbleupon-circle", __("support", "vc_animationfw_cq") => "support", __("taxi", "vc_animationfw_cq") => "taxi", __("tencent-weibo", "vc_animationfw_cq") => "tencent-weibo", __("tree", "vc_animationfw_cq") => "tree", __("university", "vc_animationfw_cq") => "university", __("vine", "vc_animationfw_cq") => "vine", __("wechat", "vc_animationfw_cq") => "wechat", __("weixin", "vc_animationfw_cq") => "weixin", __("wordpress", "vc_animationfw_cq") => "wordpress", __("yahoo", "vc_animationfw_cq") => "yahoo", __("rub", "vc_animationfw_cq") => 'rub', __("ruble", "vc_animationfw_cq") => 'ruble', __("rouble", "vc_animationfw_cq") => 'rouble', __("pagelines", "vc_animationfw_cq") => 'pagelines', __("stack-exchange", "vc_animationfw_cq") => 'stack-exchange', __("arrow-circle-o-right", "vc_animationfw_cq") => 'arrow-circle-o-right', __("arrow-circle-o-left", "vc_animationfw_cq") => 'arrow-circle-o-left', __("caret-square-o-left", "vc_animationfw_cq") => 'caret-square-o-left', __("toggle-left", "vc_animationfw_cq") => 'toggle-left', __("dot-circle-o", "vc_animationfw_cq") => 'dot-circle-o', __("wheelchair", "vc_animationfw_cq") => 'wheelchair', __("vimeo-square", "vc_animationfw_cq") => 'vimeo-square', __("try", "vc_animationfw_cq") => 'try', __("turkish-lira", "vc_animationfw_cq") => 'turkish-lira', __("plus-square-o", "vc_animationfw_cq") => 'plus-square-o', __("adjust", "vc_animationfw_cq") => 'adjust', __("anchor", "vc_animationfw_cq") => 'anchor', __("archive", "vc_animationfw_cq") => 'archive', __("arrows", "vc_animationfw_cq") => 'arrows', __("arrows-h", "vc_animationfw_cq") => 'arrows-h', __("arrows-v", "vc_animationfw_cq") => 'arrows-v', __("asterisk", "vc_animationfw_cq") => 'asterisk', __("ban", "vc_animationfw_cq") => 'ban', __("bar-chart-o", "vc_animationfw_cq") => 'bar-chart-o', __("barcode", "vc_animationfw_cq") => 'barcode', __("bars", "vc_animationfw_cq") => 'bars', __("beer", "vc_animationfw_cq") => 'beer', __("bell", "vc_animationfw_cq") => 'bell', __("bell-o", "vc_animationfw_cq") => 'bell-o', __("bolt", "vc_animationfw_cq") => 'bolt', __("book", "vc_animationfw_cq") => 'book', __("bookmark", "vc_animationfw_cq") => 'bookmark', __("bookmark-o", "vc_animationfw_cq") => 'bookmark-o', __("briefcase", "vc_animationfw_cq") => 'briefcase', __("bug", "vc_animationfw_cq") => 'bug', __("building-o", "vc_animationfw_cq") => 'building-o', __("bullhorn", "vc_animationfw_cq") => 'bullhorn', __("bullseye", "vc_animationfw_cq") => 'bullseye', __("calendar", "vc_animationfw_cq") => 'calendar', __("calendar-o", "vc_animationfw_cq") => 'calendar-o', __("camera", "vc_animationfw_cq") => 'camera', __("camera-retro", "vc_animationfw_cq") => 'camera-retro', __("caret-square-o-down", "vc_animationfw_cq") => 'caret-square-o-down', __("caret-square-o-left", "vc_animationfw_cq") => 'caret-square-o-left', __("caret-square-o-right", "vc_animationfw_cq") => 'caret-square-o-right', __("caret-square-o-up", "vc_animationfw_cq") => 'caret-square-o-up', __("certificate", "vc_animationfw_cq") => 'certificate', __("check", "vc_animationfw_cq") => 'check', __("check-circle", "vc_animationfw_cq") => 'check-circle', __("check-circle-o", "vc_animationfw_cq") => 'check-circle-o', __("check-square", "vc_animationfw_cq") => 'check-square', __("check-square-o", "vc_animationfw_cq") => 'check-square-o', __("circle", "vc_animationfw_cq") => 'circle', __("circle-o", "vc_animationfw_cq") => 'circle-o', __("clock-o", "vc_animationfw_cq") => 'clock-o', __("cloud", "vc_animationfw_cq") => 'cloud', __("cloud-download", "vc_animationfw_cq") => 'cloud-download', __("cloud-upload", "vc_animationfw_cq") => 'cloud-upload', __("code", "vc_animationfw_cq") => 'code', __("code-fork", "vc_animationfw_cq") => 'code-fork', __("coffee", "vc_animationfw_cq") => 'coffee', __("cog", "vc_animationfw_cq") => 'cog', __("cogs", "vc_animationfw_cq") => 'cogs', __("comment", "vc_animationfw_cq") => 'comment', __("comment-o", "vc_animationfw_cq") => 'comment-o', __("comments", "vc_animationfw_cq") => 'comments', __("comments-o", "vc_animationfw_cq") => 'comments-o', __("compass", "vc_animationfw_cq") => 'compass', __("credit-card", "vc_animationfw_cq") => 'credit-card', __("crop", "vc_animationfw_cq") => 'crop', __("crosshairs", "vc_animationfw_cq") => 'crosshairs', __("cutlery", "vc_animationfw_cq") => 'cutlery', __("dashboard", "vc_animationfw_cq") => 'dashboard', __("desktop", "vc_animationfw_cq") => 'desktop', __("dot-circle-o", "vc_animationfw_cq") => 'dot-circle-o', __("download", "vc_animationfw_cq") => 'download', __("edit", "vc_animationfw_cq") => 'edit', __("ellipsis-h", "vc_animationfw_cq") => 'ellipsis-h', __("ellipsis-v", "vc_animationfw_cq") => 'ellipsis-v', __("envelope", "vc_animationfw_cq") => 'envelope', __("envelope-o", "vc_animationfw_cq") => 'envelope-o', __("eraser", "vc_animationfw_cq") => 'eraser', __("exchange", "vc_animationfw_cq") => 'exchange', __("exclamation", "vc_animationfw_cq") => 'exclamation', __("exclamation-circle", "vc_animationfw_cq") => 'exclamation-circle', __("exclamation-triangle", "vc_animationfw_cq") => 'exclamation-triangle', __("external-link", "vc_animationfw_cq") => 'external-link', __("external-link-square", "vc_animationfw_cq") => 'external-link-square', __("eye", "vc_animationfw_cq") => 'eye', __("eye-slash", "vc_animationfw_cq") => 'eye-slash', __("female", "vc_animationfw_cq") => 'female', __("fighter-jet", "vc_animationfw_cq") => 'fighter-jet', __("film", "vc_animationfw_cq") => 'film', __("filter", "vc_animationfw_cq") => 'filter', __("fire", "vc_animationfw_cq") => 'fire', __("fire-extinguisher", "vc_animationfw_cq") => 'fire-extinguisher', __("flag", "vc_animationfw_cq") => 'flag', __("flag-checkered", "vc_animationfw_cq") => 'flag-checkered', __("flag-o", "vc_animationfw_cq") => 'flag-o', __("flash", "vc_animationfw_cq") => 'flash', __("flask", "vc_animationfw_cq") => 'flask', __("folder", "vc_animationfw_cq") => 'folder', __("folder-o", "vc_animationfw_cq") => 'folder-o', __("folder-open", "vc_animationfw_cq") => 'folder-open', __("folder-open-o", "vc_animationfw_cq") => 'folder-open-o', __("frown-o", "vc_animationfw_cq") => 'frown-o', __("gamepad", "vc_animationfw_cq") => 'gamepad', __("gavel", "vc_animationfw_cq") => 'gavel', __("gear", "vc_animationfw_cq") => 'gear', __("gears", "vc_animationfw_cq") => 'gears', __("gift", "vc_animationfw_cq") => 'gift', __("glass", "vc_animationfw_cq") => 'glass', __("globe", "vc_animationfw_cq") => 'globe', __("group", "vc_animationfw_cq") => 'group', __("hdd-o", "vc_animationfw_cq") => 'hdd-o', __("headphones", "vc_animationfw_cq") => 'headphones', __("heart", "vc_animationfw_cq") => 'heart', __("heart-o", "vc_animationfw_cq") => 'heart-o', __("home", "vc_animationfw_cq") => 'home', __("inbox", "vc_animationfw_cq") => 'inbox', __("info", "vc_animationfw_cq") => 'info', __("info-circle", "vc_animationfw_cq") => 'info-circle', __("key", "vc_animationfw_cq") => 'key', __("keyboard-o", "vc_animationfw_cq") => 'keyboard-o', __("laptop", "vc_animationfw_cq") => 'laptop', __("leaf", "vc_animationfw_cq") => 'leaf', __("legal", "vc_animationfw_cq") => 'legal', __("lemon-o", "vc_animationfw_cq") => 'lemon-o', __("level-down", "vc_animationfw_cq") => 'level-down', __("level-up", "vc_animationfw_cq") => 'level-up', __("lightbulb-o", "vc_animationfw_cq") => 'lightbulb-o', __("location-arrow", "vc_animationfw_cq") => 'location-arrow', __("lock", "vc_animationfw_cq") => 'lock', __("magic", "vc_animationfw_cq") => 'magic', __("magnet", "vc_animationfw_cq") => 'magnet', __("mail-forward", "vc_animationfw_cq") => 'mail-forward', __("mail-reply", "vc_animationfw_cq") => 'mail-reply', __("mail-reply-all", "vc_animationfw_cq") => 'mail-reply-all', __("male", "vc_animationfw_cq") => 'male', __("map-marker", "vc_animationfw_cq") => 'map-marker', __("meh-o", "vc_animationfw_cq") => 'meh-o', __("microphone", "vc_animationfw_cq") => 'microphone', __("microphone-slash", "vc_animationfw_cq") => 'microphone-slash', __("minus", "vc_animationfw_cq") => 'minus', __("minus-circle", "vc_animationfw_cq") => 'minus-circle', __("minus-square", "vc_animationfw_cq") => 'minus-square', __("minus-square-o", "vc_animationfw_cq") => 'minus-square-o', __("mobile", "vc_animationfw_cq") => 'mobile', __("mobile-phone", "vc_animationfw_cq") => 'mobile-phone', __("money", "vc_animationfw_cq") => 'money', __("moon-o", "vc_animationfw_cq") => 'moon-o', __("music", "vc_animationfw_cq") => 'music', __("pencil", "vc_animationfw_cq") => 'pencil', __("pencil-square", "vc_animationfw_cq") => 'pencil-square', __("pencil-square-o", "vc_animationfw_cq") => 'pencil-square-o', __("phone", "vc_animationfw_cq") => 'phone', __("phone-square", "vc_animationfw_cq") => 'phone-square', __("picture-o", "vc_animationfw_cq") => 'picture-o', __("plane", "vc_animationfw_cq") => 'plane', __("plus", "vc_animationfw_cq") => 'plus', __("plus-circle", "vc_animationfw_cq") => 'plus-circle', __("plus-square", "vc_animationfw_cq") => 'plus-square', __("plus-square-o", "vc_animationfw_cq") => 'plus-square-o', __("power-off", "vc_animationfw_cq") => 'power-off', __("print", "vc_animationfw_cq") => 'print', __("puzzle-piece", "vc_animationfw_cq") => 'puzzle-piece', __("qrcode", "vc_animationfw_cq") => 'qrcode', __("question", "vc_animationfw_cq") => 'question', __("question-circle", "vc_animationfw_cq") => 'question-circle', __("quote-left", "vc_animationfw_cq") => 'quote-left', __("quote-right", "vc_animationfw_cq") => 'quote-right', __("random", "vc_animationfw_cq") => 'random', __("refresh", "vc_animationfw_cq") => 'refresh', __("reply", "vc_animationfw_cq") => 'reply', __("reply-all", "vc_animationfw_cq") => 'reply-all', __("retweet", "vc_animationfw_cq") => 'retweet', __("road", "vc_animationfw_cq") => 'road', __("rocket", "vc_animationfw_cq") => 'rocket', __("rss", "vc_animationfw_cq") => 'rss', __("rss-square", "vc_animationfw_cq") => 'rss-square', __("search", "vc_animationfw_cq") => 'search', __("search-minus", "vc_animationfw_cq") => 'search-minus', __("search-plus", "vc_animationfw_cq") => 'search-plus', __("share", "vc_animationfw_cq") => 'share', __("share-square", "vc_animationfw_cq") => 'share-square', __("share-square-o", "vc_animationfw_cq") => 'share-square-o', __("shield", "vc_animationfw_cq") => 'shield', __("shopping-cart", "vc_animationfw_cq") => 'shopping-cart', __("sign-in", "vc_animationfw_cq") => 'sign-in', __("sign-out", "vc_animationfw_cq") => 'sign-out', __("signal", "vc_animationfw_cq") => 'signal', __("sitemap", "vc_animationfw_cq") => 'sitemap', __("smile-o", "vc_animationfw_cq") => 'smile-o', __("sort", "vc_animationfw_cq") => 'sort', __("sort-alpha-asc", "vc_animationfw_cq") => 'sort-alpha-asc', __("sort-alpha-desc", "vc_animationfw_cq") => 'sort-alpha-desc', __("sort-amount-asc", "vc_animationfw_cq") => 'sort-amount-asc', __("sort-amount-desc", "vc_animationfw_cq") => 'sort-amount-desc', __("sort-asc", "vc_animationfw_cq") => 'sort-asc', __("sort-desc", "vc_animationfw_cq") => 'sort-desc', __("sort-down", "vc_animationfw_cq") => 'sort-down', __("sort-numeric-asc", "vc_animationfw_cq") => 'sort-numeric-asc', __("sort-numeric-desc", "vc_animationfw_cq") => 'sort-numeric-desc', __("sort-up", "vc_animationfw_cq") => 'sort-up', __("spinner", "vc_animationfw_cq") => 'spinner', __("square", "vc_animationfw_cq") => 'square', __("square-o", "vc_animationfw_cq") => 'square-o', __("star", "vc_animationfw_cq") => 'star', __("star-half", "vc_animationfw_cq") => 'star-half', __("star-half-empty", "vc_animationfw_cq") => 'star-half-empty', __("star-half-full", "vc_animationfw_cq") => 'star-half-full', __("star-half-o", "vc_animationfw_cq") => 'star-half-o', __("star-o", "vc_animationfw_cq") => 'star-o', __("subscript", "vc_animationfw_cq") => 'subscript', __("suitcase", "vc_animationfw_cq") => 'suitcase', __("sun-o", "vc_animationfw_cq") => 'sun-o', __("superscript", "vc_animationfw_cq") => 'superscript', __("tablet", "vc_animationfw_cq") => 'tablet', __("tachometer", "vc_animationfw_cq") => 'tachometer', __("tag", "vc_animationfw_cq") => 'tag', __("tags", "vc_animationfw_cq") => 'tags', __("tasks", "vc_animationfw_cq") => 'tasks', __("terminal", "vc_animationfw_cq") => 'terminal', __("thumb-tack", "vc_animationfw_cq") => 'thumb-tack', __("thumbs-down", "vc_animationfw_cq") => 'thumbs-down', __("thumbs-o-down", "vc_animationfw_cq") => 'thumbs-o-down', __("thumbs-o-up", "vc_animationfw_cq") => 'thumbs-o-up', __("thumbs-up", "vc_animationfw_cq") => 'thumbs-up', __("ticket", "vc_animationfw_cq") => 'ticket', __("times", "vc_animationfw_cq") => 'times', __("times-circle", "vc_animationfw_cq") => 'times-circle', __("times-circle-o", "vc_animationfw_cq") => 'times-circle-o', __("tint", "vc_animationfw_cq") => 'tint', __("toggle-down", "vc_animationfw_cq") => 'toggle-down', __("toggle-left", "vc_animationfw_cq") => 'toggle-left', __("toggle-right", "vc_animationfw_cq") => 'toggle-right', __("toggle-up", "vc_animationfw_cq") => 'toggle-up', __("trash-o", "vc_animationfw_cq") => 'trash-o', __("trophy", "vc_animationfw_cq") => 'trophy', __("truck", "vc_animationfw_cq") => 'truck', __("umbrella", "vc_animationfw_cq") => 'umbrella', __("unlock", "vc_animationfw_cq") => 'unlock', __("unlock-alt", "vc_animationfw_cq") => 'unlock-alt', __("unsorted", "vc_animationfw_cq") => 'unsorted', __("upload", "vc_animationfw_cq") => 'upload', __("user", "vc_animationfw_cq") => 'user', __("users", "vc_animationfw_cq") => 'users', __("video-camera", "vc_animationfw_cq") => 'video-camera', __("volume-down", "vc_animationfw_cq") => 'volume-down', __("volume-off", "vc_animationfw_cq") => 'volume-off', __("volume-up", "vc_animationfw_cq") => 'volume-up', __("warning", "vc_animationfw_cq") => 'warning', __("wheelchair", "vc_animationfw_cq") => 'wheelchair', __("wrench", "vc_animationfw_cq") => 'wrench', __("check-square", "vc_animationfw_cq") => 'check-square', __("check-square-o", "vc_animationfw_cq") => 'check-square-o', __("circle", "vc_animationfw_cq") => 'circle', __("circle-o", "vc_animationfw_cq") => 'circle-o', __("dot-circle-o", "vc_animationfw_cq") => 'dot-circle-o', __("minus-square", "vc_animationfw_cq") => 'minus-square', __("minus-square-o", "vc_animationfw_cq") => 'minus-square-o', __("plus-square", "vc_animationfw_cq") => 'plus-square', __("plus-square-o", "vc_animationfw_cq") => 'plus-square-o', __("square", "vc_animationfw_cq") => 'square', __("square-o", "vc_animationfw_cq") => 'square-o', __("bitcoin", "vc_animationfw_cq") => 'bitcoin', __("btc", "vc_animationfw_cq") => 'btc', __("cny", "vc_animationfw_cq") => 'cny', __("dollar", "vc_animationfw_cq") => 'dollar', __("eur", "vc_animationfw_cq") => 'eur', __("euro", "vc_animationfw_cq") => 'euro', __("gbp", "vc_animationfw_cq") => 'gbp', __("inr", "vc_animationfw_cq") => 'inr', __("jpy", "vc_animationfw_cq") => 'jpy', __("krw", "vc_animationfw_cq") => 'krw', __("money", "vc_animationfw_cq") => 'money', __("rmb", "vc_animationfw_cq") => 'rmb', __("rouble", "vc_animationfw_cq") => 'rouble', __("rub", "vc_animationfw_cq") => 'rub', __("ruble", "vc_animationfw_cq") => 'ruble', __("rupee", "vc_animationfw_cq") => 'rupee', __("try", "vc_animationfw_cq") => 'try', __("turkish-lira", "vc_animationfw_cq") => 'turkish-lira', __("usd", "vc_animationfw_cq") => 'usd', __("won", "vc_animationfw_cq") => 'won', __("yen", "vc_animationfw_cq") => 'yen', __("align-center", "vc_animationfw_cq") => 'align-center', __("align-justify", "vc_animationfw_cq") => 'align-justify', __("align-left", "vc_animationfw_cq") => 'align-left', __("align-right", "vc_animationfw_cq") => 'align-right', __("bold", "vc_animationfw_cq") => 'bold', __("chain", "vc_animationfw_cq") => 'chain', __("chain-broken", "vc_animationfw_cq") => 'chain-broken', __("clipboard", "vc_animationfw_cq") => 'clipboard', __("columns", "vc_animationfw_cq") => 'columns', __("copy", "vc_animationfw_cq") => 'copy', __("cut", "vc_animationfw_cq") => 'cut', __("dedent", "vc_animationfw_cq") => 'dedent', __("eraser", "vc_animationfw_cq") => 'eraser', __("file", "vc_animationfw_cq") => 'file', __("file-o", "vc_animationfw_cq") => 'file-o', __("file-text", "vc_animationfw_cq") => 'file-text', __("file-text-o", "vc_animationfw_cq") => 'file-text-o', __("files-o", "vc_animationfw_cq") => 'files-o', __("floppy-o", "vc_animationfw_cq") => 'floppy-o', __("font", "vc_animationfw_cq") => 'font', __("indent", "vc_animationfw_cq") => 'indent', __("italic", "vc_animationfw_cq") => 'italic', __("link", "vc_animationfw_cq") => 'link', __("list", "vc_animationfw_cq") => 'list', __("list-alt", "vc_animationfw_cq") => 'list-alt', __("list-ol", "vc_animationfw_cq") => 'list-ol', __("list-ul", "vc_animationfw_cq") => 'list-ul', __("outdent", "vc_animationfw_cq") => 'outdent', __("paperclip", "vc_animationfw_cq") => 'paperclip', __("paste", "vc_animationfw_cq") => 'paste', __("repeat", "vc_animationfw_cq") => 'repeat', __("rotate-left", "vc_animationfw_cq") => 'rotate-left', __("rotate-right", "vc_animationfw_cq") => 'rotate-right', __("save", "vc_animationfw_cq") => 'save', __("scissors", "vc_animationfw_cq") => 'scissors', __("strikethrough", "vc_animationfw_cq") => 'strikethrough', __("table", "vc_animationfw_cq") => 'table', __("text-height", "vc_animationfw_cq") => 'text-height', __("text-width", "vc_animationfw_cq") => 'text-width', __("th", "vc_animationfw_cq") => 'th', __("th-large", "vc_animationfw_cq") => 'th-large', __("th-list", "vc_animationfw_cq") => 'th-list', __("underline", "vc_animationfw_cq") => 'underline', __("undo", "vc_animationfw_cq") => 'undo', __("unlink", "vc_animationfw_cq") => 'unlink', __("angle-double-down", "vc_animationfw_cq") => 'angle-double-down', __("angle-double-left", "vc_animationfw_cq") => 'angle-double-left', __("angle-double-right", "vc_animationfw_cq") => 'angle-double-right', __("angle-double-up", "vc_animationfw_cq") => 'angle-double-up', __("angle-down", "vc_animationfw_cq") => 'angle-down', __("angle-left", "vc_animationfw_cq") => 'angle-left', __("angle-right", "vc_animationfw_cq") => 'angle-right', __("angle-up", "vc_animationfw_cq") => 'angle-up', __("arrow-circle-down", "vc_animationfw_cq") => 'arrow-circle-down', __("arrow-circle-left", "vc_animationfw_cq") => 'arrow-circle-left', __("arrow-circle-o-down", "vc_animationfw_cq") => 'arrow-circle-o-down', __("arrow-circle-o-left", "vc_animationfw_cq") => 'arrow-circle-o-left', __("arrow-circle-o-right", "vc_animationfw_cq") => 'arrow-circle-o-right', __("arrow-circle-o-up", "vc_animationfw_cq") => 'arrow-circle-o-up', __("arrow-circle-right", "vc_animationfw_cq") => 'arrow-circle-right', __("arrow-circle-up", "vc_animationfw_cq") => 'arrow-circle-up', __("arrow-down", "vc_animationfw_cq") => 'arrow-down', __("arrow-left", "vc_animationfw_cq") => 'arrow-left', __("arrow-right", "vc_animationfw_cq") => 'arrow-right', __("arrow-up", "vc_animationfw_cq") => 'arrow-up', __("arrows", "vc_animationfw_cq") => 'arrows', __("arrows-alt", "vc_animationfw_cq") => 'arrows-alt', __("arrows-h", "vc_animationfw_cq") => 'arrows-h', __("arrows-v", "vc_animationfw_cq") => 'arrows-v', __("caret-down", "vc_animationfw_cq") => 'caret-down', __("caret-left", "vc_animationfw_cq") => 'caret-left', __("caret-right", "vc_animationfw_cq") => 'caret-right', __("caret-square-o-down", "vc_animationfw_cq") => 'caret-square-o-down', __("caret-square-o-left", "vc_animationfw_cq") => 'caret-square-o-left', __("caret-square-o-right", "vc_animationfw_cq") => 'caret-square-o-right', __("caret-square-o-up", "vc_animationfw_cq") => 'caret-square-o-up', __("caret-up", "vc_animationfw_cq") => 'caret-up', __("chevron-circle-down", "vc_animationfw_cq") => 'chevron-circle-down', __("chevron-circle-left", "vc_animationfw_cq") => 'chevron-circle-left', __("chevron-circle-right", "vc_animationfw_cq") => 'chevron-circle-right', __("chevron-circle-up", "vc_animationfw_cq") => 'chevron-circle-up', __("chevron-down", "vc_animationfw_cq") => 'chevron-down', __("chevron-left", "vc_animationfw_cq") => 'chevron-left', __("chevron-right", "vc_animationfw_cq") => 'chevron-right', __("chevron-up", "vc_animationfw_cq") => 'chevron-up', __("hand-o-down", "vc_animationfw_cq") => 'hand-o-down', __("hand-o-left", "vc_animationfw_cq") => 'hand-o-left', __("hand-o-right", "vc_animationfw_cq") => 'hand-o-right', __("hand-o-up", "vc_animationfw_cq") => 'hand-o-up', __("long-arrow-down", "vc_animationfw_cq") => 'long-arrow-down', __("long-arrow-left", "vc_animationfw_cq") => 'long-arrow-left', __("long-arrow-right", "vc_animationfw_cq") => 'long-arrow-right', __("long-arrow-up", "vc_animationfw_cq") => 'long-arrow-up', __("toggle-down", "vc_animationfw_cq") => 'toggle-down', __("toggle-left", "vc_animationfw_cq") => 'toggle-left', __("toggle-right", "vc_animationfw_cq") => 'toggle-right', __("toggle-up", "vc_animationfw_cq") => 'toggle-up', __("arrows-alt", "vc_animationfw_cq") => 'arrows-alt', __("backward", "vc_animationfw_cq") => 'backward', __("compress", "vc_animationfw_cq") => 'compress', __("eject", "vc_animationfw_cq") => 'eject', __("expand", "vc_animationfw_cq") => 'expand', __("fast-backward", "vc_animationfw_cq") => 'fast-backward', __("fast-forward", "vc_animationfw_cq") => 'fast-forward', __("forward", "vc_animationfw_cq") => 'forward', __("pause", "vc_animationfw_cq") => 'pause', __("play", "vc_animationfw_cq") => 'play', __("play-circle", "vc_animationfw_cq") => 'play-circle', __("play-circle-o", "vc_animationfw_cq") => 'play-circle-o', __("step-backward", "vc_animationfw_cq") => 'step-backward', __("step-forward", "vc_animationfw_cq") => 'step-forward', __("stop", "vc_animationfw_cq") => 'stop', __("youtube-play", "vc_animationfw_cq") => 'youtube-play', __("adn", "vc_animationfw_cq") => 'adn', __("android", "vc_animationfw_cq") => 'android', __("apple", "vc_animationfw_cq") => 'apple', __("bitbucket", "vc_animationfw_cq") => 'bitbucket', __("bitbucket-square", "vc_animationfw_cq") => 'bitbucket-square', __("bitcoin", "vc_animationfw_cq") => 'bitcoin', __("btc", "vc_animationfw_cq") => 'btc', __("css3", "vc_animationfw_cq") => 'css3', __("dribbble", "vc_animationfw_cq") => 'dribbble', __("dropbox", "vc_animationfw_cq") => 'dropbox', __("facebook", "vc_animationfw_cq") => 'facebook', __("facebook-square", "vc_animationfw_cq") => 'facebook-square', __("flickr", "vc_animationfw_cq") => 'flickr', __("foursquare", "vc_animationfw_cq") => 'foursquare', __("github", "vc_animationfw_cq") => 'github', __("github-alt", "vc_animationfw_cq") => 'github-alt', __("github-square", "vc_animationfw_cq") => 'github-square', __("gittip", "vc_animationfw_cq") => 'gittip', __("google-plus", "vc_animationfw_cq") => 'google-plus', __("google-plus-square", "vc_animationfw_cq") => 'google-plus-square', __("html5", "vc_animationfw_cq") => 'html5', __("instagram", "vc_animationfw_cq") => 'instagram', __("linkedin", "vc_animationfw_cq") => 'linkedin', __("linkedin-square", "vc_animationfw_cq") => 'linkedin-square', __("linux", "vc_animationfw_cq") => 'linux', __("maxcdn", "vc_animationfw_cq") => 'maxcdn', __("pagelines", "vc_animationfw_cq") => 'pagelines', __("pinterest", "vc_animationfw_cq") => 'pinterest', __("pinterest-square", "vc_animationfw_cq") => 'pinterest-square', __("renren", "vc_animationfw_cq") => 'renren', __("skype", "vc_animationfw_cq") => 'skype', __("stack-exchange", "vc_animationfw_cq") => 'stack-exchange', __("stack-overflow", "vc_animationfw_cq") => 'stack-overflow', __("trello", "vc_animationfw_cq") => 'trello', __("tumblr", "vc_animationfw_cq") => 'tumblr', __("tumblr-square", "vc_animationfw_cq") => 'tumblr-square', __("twitter", "vc_animationfw_cq") => 'twitter', __("twitter-square", "vc_animationfw_cq") => 'twitter-square', __("vimeo-square", "vc_animationfw_cq") => 'vimeo-square', __("vk", "vc_animationfw_cq") => 'vk', __("weibo", "vc_animationfw_cq") => 'weibo', __("windows", "vc_animationfw_cq") => 'windows', __("xing", "vc_animationfw_cq") => 'xing', __("xing-square", "vc_animationfw_cq") => 'xing-square', __("youtube", "vc_animationfw_cq") => 'youtube', __("youtube-play", "vc_animationfw_cq") => 'youtube-play', __("youtube-square", "vc_animationfw_cq") => 'youtube-square', __("ambulance", "vc_animationfw_cq") => 'ambulance', __("h-square", "vc_animationfw_cq") => 'h-square', __("hospital-o", "vc_animationfw_cq") => 'hospital-o', __("medkit", "vc_animationfw_cq") => 'medkit', __("plus-square", "vc_animationfw_cq") => 'plus-square', __("stethoscope", "vc_animationfw_cq") => 'stethoscope', __("user-md", "vc_animationfw_cq") => 'user-md', __("wheelchair", "vc_animationfw_cq") => 'wheelchair')), array("type" => "dropdown", "heading" => __("Icon size", "vc_animationfw_cq"), "param_name" => "size", "description" => __('Select the icon size.', 'vc_animationfw_cq'), "value" => array(__("5x", "vc_animationfw_cq") => '5x', __("4x", "vc_animationfw_cq") => '4x', __("3x", "vc_animationfw_cq") => '3x', __("2x", "vc_animationfw_cq") => '2x', __("large", "vc_animationfw_cq") => 'lg', __("normal", "vc_animationfw_cq") => '')), array("type" => "dropdown", "heading" => __("Icon animation", "vc_animationfw_cq"), "param_name" => "animation", "description" => __('Select the icon animation.', 'vc_animationfw_cq'), "value" => array(__("wrench", "vc_animationfw_cq") => 'wrench', __("ring", "vc_animationfw_cq") => 'ring', __("vertical", "vc_animationfw_cq") => 'vertical', __("horizontal", "vc_animationfw_cq") => 'horizontal', __("flash", "vc_animationfw_cq") => 'flash', __("bounce", "vc_animationfw_cq") => 'bounce', __("spin fast", "vc_animationfw_cq") => 'spin', __("spin slow", "vc_animationfw_cq") => 'spinslow', __("float", "vc_animationfw_cq") => 'float', __("pulse", "vc_animationfw_cq") => 'pulse', __("shake", "vc_animationfw_cq") => 'shake', __("swing", "vc_animationfw_cq") => 'swing', __("tada", "vc_animationfw_cq") => 'tada', __("rubberBand", "vc_animationfw_cq") => 'rubberBand', __("wobble", "vc_animationfw_cq") => 'wobble', __("flip", "vc_animationfw_cq") => 'flip', __("no animation", "vc_animationfw_cq") => '')), array("type" => "colorpicker", "heading" => __("Icon color", "vc_animationfw_cq"), "param_name" => "color", "value" => "#00BFFF", "description" => __("Select color for the icon", "vc_animationfw_cq")), array("type" => "dropdown", "heading" => __("Icon float:", "vc_animationfw_cq"), "param_name" => "float", "description" => __('', 'vc_animationfw_cq'), "value" => array(__("left", "vc_animationfw_cq") => 'pull-left', __("right", "vc_animationfw_cq") => 'pull-right', __("none", "vc_animationfw_cq") => '')), array("type" => "textfield", "heading" => __("Extra class name for the icon", "vc_animationfw_cq"), "param_name" => "icon_class", "description" => __("You can append extra class to the icon, for example <strong>fa-rotate-90</strong> will rotate the icon 90 degree in some animation. <a href='http://fortawesome.github.io/Font-Awesome/examples/' target='_blank'>for more information</a>", "vc_animationfw_cq")), array("type" => "textarea", "heading" => __('Text', 'vc_animationfw_cq'), "param_name" => "content", "value" => "<span style='font-weight:bold;font-size:17px'>Here is the title</span><br />And here is some other text information, you can put <a href='http://codecanyon.net/user/sike/?ref=sike'>a link</a> too.", "description" => __("", "vc_animationfw_cq")), array("type" => "textfield", "heading" => __("Extra class name for the text", "vc_animationfw_cq"), "param_name" => "el_class", "description" => __("If you wish to style the text differently, then use this field to add a class name and then refer to it in your css file.", "vc_animationfw_cq")))));
     function cq_vc_animationfw_func($atts, $content = null, $tag)
     {
         if (version_compare(WPB_VC_VERSION, "4.6") >= 0) {
             $atts = vc_map_get_attributes($tag, $atts);
             extract($atts);
         } else {
             extract(shortcode_atts(array('color' => '#333', 'float' => 'left', 'size' => '', 'icon' => 'fa-smile-o', 'el_class' => '', 'icon_class' => '', 'animation' => '', 'isanimate' => 'on'), $atts));
         }
         wp_register_style('font-awesome', plugins_url('css/font-awesome.min.css', __FILE__));
         wp_register_style('font-awesome-animation', plugins_url('css/font-awesome-animation.min.css', __FILE__));
         wp_enqueue_style('font-awesome');
         wp_enqueue_style('font-awesome-animation');
         $content = wpb_js_remove_wpautop($content);
         // fix unclosed/unwanted paragraph tags in $content
         $output = '';
         if ($el_class != "") {
             $output .= '<i class="fa ' . $float . ' fa-' . $size . ' fa-' . $icon . ' faa-' . $animation . ' animated ' . $icon_class . '" style="color:' . $color . ';"></i><div class="' . $el_class . '">
         ' . $content . '</div>';
         } else {
             $output .= '<i class="fa ' . $float . ' fa-' . $size . ' fa-' . $icon . ' faa-' . $animation . ' animated ' . $icon_class . '" style="color:' . $color . ';"></i>
         ' . $content . '';
         }
         return $output;
     }
     add_shortcode('cq_vc_animationfw', 'cq_vc_animationfw_func');
 }
コード例 #30
-1
ファイル: vc.php プロジェクト: Snaehild/GH2016
function crystalskull_integrateWithVC()
{
    $categories = get_categories(array('type' => 'post', 'child_of' => 0, 'orderby' => 'name', 'order' => 'ASC', 'hide_empty' => 1, 'hierarchical' => 1, 'taxonomy' => 'category', 'pad_counts' => false));
    foreach ($categories as $cat) {
        $cats[$cat->cat_name] = $cat->cat_ID;
    }
    if (!isset($cats)) {
        $cats = '';
    }
    /* News Block vojkan
    ---------------------------------------------------------- */
    vc_map(array('name' => esc_html__('News Block', 'crystalskull'), 'base' => 'vc_column_news', 'icon' => 'icon-wpb-layer-shape-text', 'wrapper_class' => 'clearfix', 'category' => esc_html__('Content', 'crystalskull'), 'description' => esc_html__('A block for news', 'crystalskull'), 'params' => array(array('type' => 'textfield', 'heading' => esc_html__('Title (optional)', 'crystalskull'), 'param_name' => 'el_news_title', 'holder' => 'div', 'value' => '', 'description' => esc_html__('Add title to your news block.', 'crystalskull')), array('type' => 'checkbox', 'heading' => esc_html__('Categories', 'crystalskull'), 'param_name' => 'el_news_categories', 'description' => esc_html__('Select categories you want to include.', 'crystalskull'), 'value' => $cats), array('type' => 'textfield', 'heading' => esc_html__('Number of posts to show', 'crystalskull'), 'param_name' => 'el_news_number_posts', 'holder' => 'div', 'value' => '', 'description' => esc_html__('Enter number of posts you wolud like to show in this block.', 'crystalskull')), array('type' => 'colorpicker', 'heading' => esc_html__('Custom Border Color', 'crystalskull'), 'param_name' => 'border_color', 'description' => esc_html__('Select border color for your element.', 'crystalskull')))));
    /* News Block - Horizontal vojkan
    ---------------------------------------------------------- */
    vc_map(array('name' => esc_html__('News Block - Horizontal', 'crystalskull'), 'base' => 'vc_column_news_horizontal', 'icon' => 'icon-wpb-layer-shape-text', 'wrapper_class' => 'clearfix', 'category' => esc_html__('Content', 'crystalskull'), 'description' => esc_html__('A block for horizontal news', 'crystalskull'), 'params' => array(array('type' => 'textfield', 'heading' => esc_html__('Title (optional)', 'crystalskull'), 'param_name' => 'el_news_horizontal_title', 'holder' => 'div', 'value' => '', 'description' => esc_html__('Add title to your news block.', 'crystalskull')), array('type' => 'checkbox', 'heading' => esc_html__('Categories', 'crystalskull'), 'param_name' => 'el_news_horizontal_categories', 'description' => esc_html__('Select categories you want to include.', 'crystalskull'), 'value' => $cats), array('type' => 'textfield', 'heading' => esc_html__('Number of posts to show', 'crystalskull'), 'param_name' => 'el_news_horizontal_number_posts', 'holder' => 'div', 'value' => '', 'description' => esc_html__('Enter number of posts you wolud like to show in this block.', 'crystalskull')), array('type' => 'colorpicker', 'heading' => esc_html__('Custom Border Color', 'crystalskull'), 'param_name' => 'border_color', 'description' => esc_html__('Select border color for your element.', 'crystalskull')))));
    /* News Block - Tabbed vojkan
    ---------------------------------------------------------- */
    vc_map(array('name' => esc_html__('News Block - Tabbed', 'crystalskull'), 'base' => 'vc_column_news_tabbed', 'icon' => 'icon-wpb-layer-shape-text', 'wrapper_class' => 'clearfix', 'category' => esc_html__('Content', 'crystalskull'), 'description' => esc_html__('A block for horizontal news', 'crystalskull'), 'params' => array(array('type' => 'textfield', 'heading' => esc_html__('Title (optional)', 'crystalskull'), 'param_name' => 'el_news_tabbed_title', 'holder' => 'div', 'value' => '', 'description' => esc_html__('Add title to your news block.', 'crystalskull')), array('type' => 'checkbox', 'heading' => esc_html__('Categories', 'crystalskull'), 'param_name' => 'el_news_tabbed_categories', 'description' => esc_html__('Select categories you want to include.', 'crystalskull'), 'value' => $cats), array('type' => 'textfield', 'heading' => esc_html__('Number of posts to show', 'crystalskull'), 'param_name' => 'el_news_tabbed_number_posts', 'holder' => 'div', 'value' => '', 'description' => esc_html__('Enter number of posts you wolud like to show in this block.', 'crystalskull')), array('type' => 'colorpicker', 'heading' => esc_html__('Custom Border Color', 'crystalskull'), 'param_name' => 'border_color', 'description' => esc_html__('Select border color for your element.', 'crystalskull')))));
    /* Blog Block vojkan
    ---------------------------------------------------------- */
    vc_map(array('name' => esc_html__('Blog Block', 'crystalskull'), 'base' => 'vc_column_blog', 'icon' => 'icon-wpb-layer-shape-text', 'wrapper_class' => 'clearfix', 'category' => esc_html__('Content', 'crystalskull'), 'description' => esc_html__('A blog block', 'crystalskull'), 'params' => array(array('type' => 'textfield', 'heading' => esc_html__('Title (optional)', 'crystalskull'), 'param_name' => 'el_blog_title', 'holder' => 'div', 'value' => '', 'description' => esc_html__('Add title to your news block.', 'crystalskull')), array('type' => 'checkbox', 'heading' => esc_html__('Categories', 'crystalskull'), 'param_name' => 'el_blog_categories', 'description' => esc_html__('Select categories you want to include.', 'crystalskull'), 'value' => $cats), array('type' => 'textfield', 'heading' => esc_html__('Number of posts to show', 'crystalskull'), 'param_name' => 'el_blog_number_posts', 'holder' => 'div', 'value' => '', 'description' => esc_html__('Enter number of posts you wolud like to show in this block.', 'crystalskull')), array('type' => 'colorpicker', 'heading' => esc_html__('Custom Border Color', 'crystalskull'), 'param_name' => 'border_color', 'description' => esc_html__('Select border color for your element.', 'crystalskull')))));
    /* Contact Block vojkan
    ---------------------------------------------------------- */
    vc_map(array('name' => esc_html__('Contact Block', 'crystalskull'), 'base' => 'vc_contact', 'icon' => 'icon-wpb-layer-shape-text', 'wrapper_class' => 'clearfix', 'category' => esc_html__('Content', 'crystalskull'), 'description' => esc_html__('A block with contact form.', 'crystalskull'), 'params' => array(array('type' => 'textfield', 'heading' => esc_html__('Title (optional)', 'crystalskull'), 'param_name' => 'el_contact_title', 'holder' => 'div', 'value' => '', 'description' => esc_html__('Add title to your contact block.', 'crystalskull')))));
    /* Social Block vojkan
    ---------------------------------------------------------- */
    vc_map(array('name' => esc_html__('Social media Block', 'crystalskull'), 'base' => 'vc_social', 'icon' => 'icon-wpb-layer-shape-text', 'wrapper_class' => 'clearfix', 'category' => esc_html__('Content', 'crystalskull'), 'description' => esc_html__('Add social media links', 'crystalskull'), 'params' => array(array('type' => 'textfield', 'heading' => esc_html__('Title (optional)', 'crystalskull'), 'param_name' => 'el_social_title', 'holder' => 'div', 'value' => '', 'description' => esc_html__('Add title to your social media block.', 'crystalskull')), array('type' => 'textfield', 'heading' => esc_html__('Rss link', 'crystalskull'), 'param_name' => 'el_social_rss', 'holder' => 'div', 'value' => '', 'description' => esc_html__('Add link to your Rss feed.', 'crystalskull')), array('type' => 'textfield', 'heading' => esc_html__('Dribbble link', 'crystalskull'), 'param_name' => 'el_social_dribbble', 'holder' => 'div', 'value' => '', 'description' => esc_html__('Add link to your Dribbble profile.', 'crystalskull')), array('type' => 'textfield', 'heading' => esc_html__('Vimeo link', 'crystalskull'), 'param_name' => 'el_social_vimeo', 'holder' => 'div', 'value' => '', 'description' => esc_html__('Add link to your Vimeo profile.', 'crystalskull')), array('type' => 'textfield', 'heading' => esc_html__('Youtube link', 'crystalskull'), 'param_name' => 'el_social_youtube', 'holder' => 'div', 'value' => '', 'description' => esc_html__('Add link to your Youtube profile.', 'crystalskull')), array('type' => 'textfield', 'heading' => esc_html__('Twitch link', 'crystalskull'), 'param_name' => 'el_social_twitch', 'holder' => 'div', 'value' => '', 'description' => esc_html__('Add link to your Twitch profile.', 'crystalskull')), array('type' => 'textfield', 'heading' => esc_html__('Steam link', 'crystalskull'), 'param_name' => 'el_social_steam', 'holder' => 'div', 'value' => '', 'description' => esc_html__('Add link to your Steam profile.', 'crystalskull')), array('type' => 'textfield', 'heading' => esc_html__('Pinterest link', 'crystalskull'), 'param_name' => 'el_social_pinterest', 'holder' => 'div', 'value' => '', 'description' => esc_html__('Add link to your Pinterest profile.', 'crystalskull')), array('type' => 'textfield', 'heading' => esc_html__('Google+ link', 'crystalskull'), 'param_name' => 'el_social_google', 'holder' => 'div', 'value' => '', 'description' => esc_html__('Add link to your Google+ profile.', 'crystalskull')), array('type' => 'textfield', 'heading' => esc_html__('Twitter link', 'crystalskull'), 'param_name' => 'el_social_twitter', 'holder' => 'div', 'value' => '', 'description' => esc_html__('Add link to your Twitter profile.', 'crystalskull')), array('type' => 'textfield', 'heading' => esc_html__('Facebook link', 'crystalskull'), 'param_name' => 'el_social_facebook', 'holder' => 'div', 'value' => '', 'description' => esc_html__('Add link to your Facebook profile.', 'crystalskull')), array('type' => 'textfield', 'heading' => esc_html__('DeviantArt link', 'crystalskull'), 'param_name' => 'el_social_envato', 'holder' => 'div', 'value' => '', 'description' => esc_html__('Add link to your DeviantArt profile.', 'crystalskull')))));
    /* Comments Block vojkan
    ---------------------------------------------------------- */
    vc_map(array('name' => esc_html__('Comments Block', 'crystalskull'), 'base' => 'vc_comments', 'icon' => 'icon-wpb-layer-shape-text', 'wrapper_class' => 'clearfix', 'category' => esc_html__('Content', 'crystalskull'), 'description' => esc_html__('Add comments to your page.', 'crystalskull'), 'params' => array(array('type' => 'textfield', 'heading' => esc_html__('Title (optional)', 'crystalskull'), 'param_name' => 'el_comments_title', 'holder' => 'div', 'value' => '', 'description' => esc_html__('Add title to your comments block.', 'crystalskull')))));
}