本文整理汇总了PHP中vc_map函数的典型用法代码示例。如果您正苦于以下问题:PHP vc_map函数的具体用法?PHP vc_map怎么用?PHP vc_map使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了vc_map函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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") . " <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") . " <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 tha
|
请发表评论