当前位置: 首页>>代码示例>>PHP>>正文


PHP vc_map函数代码示例

本文整理汇总了PHP中vc_map函数的典型用法代码示例。如果您正苦于以下问题:PHP vc_map函数的具体用法?PHP vc_map怎么用?PHP vc_map使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了vc_map函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: _init_shortcodes

 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();
     }
 }
开发者ID:ashanrupasinghe,项目名称:amc-car-from-server-2015-1-14,代码行数:27,代码来源:shortcodes.php

示例2: banner_init

 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'))));
     }
 }
开发者ID:GaryJones,项目名称:TPWP,代码行数:7,代码来源:Ultimate_Interactive_Banner_2.php

示例3: init_carousel_addon

 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
     }
 }
开发者ID:VitaAprel,项目名称:mynotebook,代码行数:7,代码来源:Ultimate_Carousel.php

示例4: porto_load_products_shortcode

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
        {
        }
    }
}
开发者ID:rinodung,项目名称:live-theme,代码行数:25,代码来源:porto_products.php

示例5: wps_to_vc_wps_mediabox_shortcode

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));
}
开发者ID:Zsolt-R,项目名称:wps-prime,代码行数:7,代码来源:wps-to-vc-shortcodes.php

示例6: gazeta_map_gmap

 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);
     }
 }
开发者ID:alvarpoon,项目名称:get-it-write,代码行数:7,代码来源:map-shortcodes.php

示例7: tpvc_product_search_vcmap

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'))));
}
开发者ID:Artgorae,项目名称:wp-artgorae,代码行数:7,代码来源:wc_search.php

示例8: TS_VCSC_RowCenter_Frame_Elements

        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'));
            }
        }
开发者ID:Telemedellin,项目名称:fonvalmed,代码行数:30,代码来源:ts_vcsc_class_rowcenter.php

示例9: banner_init

 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"))));
     }
 }
开发者ID:cimocimocimo,项目名称:staydrysystems.com,代码行数:7,代码来源:Ultimate_Interactive_Banner_2.php

示例10: integrateWithVC

 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')))));
 }
开发者ID:nikwin333,项目名称:pcu_project,代码行数:27,代码来源:vc_upme_profile.php

示例11: declareAsVisualComposerWidget

 /**
  * 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]);
 }
开发者ID:filozofer,项目名称:rootpress,代码行数:11,代码来源:WidgetVC_Abstract.php

示例12: VC_Extensions_PageTransition

 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');
 }
开发者ID:sopada85,项目名称:esquema-test,代码行数:35,代码来源:vc-extensions-pagetransition.php

示例13: hello_vcSetAsTheme

/**
 * 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()));
}
开发者ID:democracy-os-fr,项目名称:hello,代码行数:10,代码来源:plugins.php

示例14: integrateWithVC

 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)))));
 }
开发者ID:selinaross,项目名称:spring-ridge,代码行数:29,代码来源:courses-teachers.php

示例15: mm_vc_countdown

/**
 * 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))));
}
开发者ID:roosalles,项目名称:mm-components,代码行数:12,代码来源:countdown.php


注:本文中的vc_map函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。