• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP vc_remove_element函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: thefox_vc_remove_cf7

function thefox_vc_remove_cf7()
{
    if (is_plugin_active('contact-form-7/wp-contact-form-7.php')) {
        vc_remove_element('contact-form-7');
        // Add other elements that should be removed here
    }
}
开发者ID:anbuf,项目名称:lesecuriesdelizerne,代码行数:7,代码来源:vc-functions.php


示例2: stm_update_existing_shortcodes

function stm_update_existing_shortcodes()
{
    if (function_exists('vc_add_params')) {
        vc_add_params('vc_gallery', array(array('type' => 'dropdown', 'heading' => __('Gallery type', STM_DOMAIN), 'param_name' => 'type', 'value' => array(__('Image grid', STM_DOMAIN) => 'image_grid', __('Slick slider', STM_DOMAIN) => 'slick_slider', __('Slick slider 2', STM_DOMAIN) => 'slick_slider_2')), array('type' => 'textfield', 'heading' => __('Thumbnail size', STM_DOMAIN), 'param_name' => 'thumbnail_size', 'dependency' => array('element' => 'type', 'value' => array('slick_slider_2'))), array('type' => 'css_editor', 'heading' => __('Css', STM_DOMAIN), 'param_name' => 'css', 'group' => __('Design options', STM_DOMAIN))));
        vc_add_params('vc_column_inner', array(array('type' => 'column_offset', 'heading' => __('Responsiveness', 'js_composer'), 'param_name' => 'offset', 'group' => __('Width & Responsiveness', 'js_composer'), 'description' => __('Adjust column for different screen sizes. Control width, offset and visibility settings.', 'js_composer'))));
        vc_add_params('vc_separator', array(array('type' => 'dropdown', 'heading' => __('Type', STM_DOMAIN), 'param_name' => 'type', 'value' => array(__('Type 1', STM_DOMAIN) => 'type_1', __('Type 2', STM_DOMAIN) => 'type_2')), array('type' => 'css_editor', 'heading' => __('Css', STM_DOMAIN), 'param_name' => 'css', 'group' => __('Design options', STM_DOMAIN))));
        vc_add_params('vc_video', array(array('type' => 'textfield', 'heading' => __('Iframe Link', STM_DOMAIN), 'param_name' => 'link'), array('type' => 'attach_image', 'heading' => __('Preview Image', STM_DOMAIN), 'param_name' => 'image')));
        vc_add_params('vc_wp_pages', array(array('type' => 'css_editor', 'heading' => __('Css', STM_DOMAIN), 'param_name' => 'css', 'group' => __('Design options', STM_DOMAIN))));
        vc_add_params('vc_basic_grid', array(array('type' => 'dropdown', 'heading' => __('Gap', 'js_composer'), 'param_name' => 'gap', 'value' => array(__('0px', 'js_composer') => '0', __('1px', 'js_composer') => '1', __('2px', 'js_composer') => '2', __('3px', 'js_composer') => '3', __('4px', 'js_composer') => '4', __('5px', 'js_composer') => '5', __('10px', 'js_composer') => '10', __('15px', 'js_composer') => '15', __('20px', 'js_composer') => '20', __('25px', 'js_composer') => '25', __('30px', 'js_composer') => '30', __('35px', 'js_composer') => '35', __('40px', 'js_composer') => '40', __('45px', 'js_composer') => '45', __('50px', 'js_composer') => '50', __('55px', 'js_composer') => '55', __('60px', 'js_composer') => '60'), 'std' => '30', 'description' => __('Select gap between grid elements.', 'js_composer'), 'edit_field_class' => 'vc_col-sm-6 vc_column')));
    }
    if (function_exists('vc_remove_param')) {
        vc_remove_param('vc_cta_button2', 'h2');
        vc_remove_param('vc_cta_button2', 'content');
        vc_remove_param('vc_cta_button2', 'btn_style');
        vc_remove_param('vc_cta_button2', 'color');
        vc_remove_param('vc_cta_button2', 'size');
        vc_remove_param('vc_cta_button2', 'css_animation');
    }
    if (function_exists('vc_remove_element')) {
        vc_remove_element("vc_cta_button");
        vc_remove_element("vc_posts_slider");
        vc_remove_element("vc_icon");
        vc_remove_element("vc_pinterest");
        vc_remove_element("vc_googleplus");
        vc_remove_element("vc_facebook");
        vc_remove_element("vc_tweetmeme");
    }
}
开发者ID:rinodung,项目名称:wordpress-demo,代码行数:28,代码来源:visual_composer.php


示例3: javo_vb_basic_shortcodes_trash_callback

 public function javo_vb_basic_shortcodes_trash_callback()
 {
     $javo_remove_shortcodes = array('get_items', 'vc_posts_grid');
     foreach ($javo_remove_shortcodes as $element) {
         vc_remove_element($element);
     }
 }
开发者ID:redcypress,项目名称:lacecake,代码行数:7,代码来源:shortcode-settings.php


示例4: enabledStdModules

 /**
  * Removes all standard modules witch is not a port of the array $whiteList
  * @param array $whiteList (Standard modules to keep)
  */
 public function enabledStdModules(array $whiteList)
 {
     foreach ($this->stdModules as $moduleName) {
         if (!in_array($moduleName, $whiteList)) {
             vc_remove_element($moduleName);
         }
     }
 }
开发者ID:digitalunited,项目名称:vc-clean-up,代码行数:12,代码来源:Utils.php


示例5: presscore_js_composer_load_bridge

 /**
  * Visual composer theme shortcodes map
  *
  * @since 1.0.0
  */
 function presscore_js_composer_load_bridge()
 {
     $shortcodes_to_remove = apply_filters('presscore_js_composer_shortcodes_to_remove', array("vc_wp_search", "vc_wp_meta", "vc_wp_recentcomments", "vc_wp_calendar", "vc_wp_pages", "vc_wp_tagcloud", "vc_wp_custommenu", "vc_wp_text", "vc_wp_posts", "vc_wp_links", "vc_wp_categories", "vc_wp_archives", "vc_wp_rss", "vc_gallery", "vc_teaser_grid", "vc_button", "vc_cta_button", "vc_posts_grid", "vc_carousel", "vc_images_carousel", "vc_posts_slider", "vc_cta_button2", "vc_pie"));
     foreach ($shortcodes_to_remove as $shortcode) {
         vc_remove_element($shortcode);
     }
     require_once locate_template('/inc/shortcodes/js_composer_bridge.php');
 }
开发者ID:armslee,项目名称:wp_requid,代码行数:13,代码来源:mod-visual-composer.php


示例6: remove_vc_shortcodes

 public function remove_vc_shortcodes()
 {
     vc_remove_element('vc_toggle');
     vc_remove_element('vc_posts_grid');
     vc_remove_element('vc_gallery');
     vc_remove_element('vc_images_carousel');
     vc_remove_element('vc_posts_slider');
     vc_remove_element('vc_carousel');
 }
开发者ID:WillLin,项目名称:CS-SC-Front-End,代码行数:9,代码来源:shortcodes-mapper.php


示例7: wpc_theme_remove_unwanted_vc_elements

function wpc_theme_remove_unwanted_vc_elements()
{
    // Array of unwanted elements to remove
    $remove_elements = array('vc_wp_categories', 'vc_wp_rss', 'vc_wp_text', 'vc_wp_meta', 'vc_wp_recentcomments', 'vc_wp_tagcloud', 'vc_wp_archives', 'vc_wp_calendar', 'vc_wp_pages', 'vc_wp_links', 'vc_wp_posts', 'vc_wp_search', 'vc_wp_custommenu', 'vc_cta_button', 'vc_cta_button2', 'vc_facebook', 'vc_tweetmeme', 'vc_googleplus', 'vc_pinterest', 'vc_flickr', 'vc_progress_bar', 'vc_pie', 'vc_carousel', 'vc_posts_slider', 'vc_images_carousel', 'vc_gallery', 'vc_toggle');
    // Apply filters for tweaking
    $remove_elements = apply_filters('wpc_theme_remove_vc_elements', $remove_elements);
    // Remove VC elements
    if (is_array($remove_elements)) {
        foreach ($remove_elements as $remove_element) {
            vc_remove_element($remove_element);
        }
    }
}
开发者ID:dipsad,项目名称:ins,代码行数:13,代码来源:vc_mods.php


示例8: rt_remove_vc_shortcodes

function rt_remove_vc_shortcodes()
{
    //vc_remove_element( 'vc_column_text' );
    //vc_remove_element( 'vc_separator' );
    //vc_remove_element( 'vc_text_separator' );
    //vc_remove_element( 'vc_message' );
    //vc_remove_element( 'vc_facebook' );
    //vc_remove_element( 'vc_tweetmeme' );
    //vc_remove_element( 'vc_googleplus' );
    //vc_remove_element( 'vc_pinterest' );
    //vc_remove_element( 'vc_toggle' );
    //vc_remove_element( 'vc_single_image' );
    //vc_remove_element( 'vc_gallery' );
    //vc_remove_element( 'vc_images_carousel' );
    //vc_remove_element( 'vc_tabs' );
    vc_remove_element('vc_tour');
    //vc_remove_element( 'vc_accordion' );
    //vc_remove_element( 'vc_posts_grid' );
    //vc_remove_element( 'vc_carousel' );
    //vc_remove_element( 'vc_posts_slider' );
    //vc_remove_element( 'vc_widget_sidebar' );
    //vc_remove_element( 'vc_button' );
    //vc_remove_element( 'vc_cta_button' );
    //vc_remove_element( 'vc_video' );
    vc_remove_element('vc_gmaps');
    //vc_remove_element( 'vc_raw_html' );
    //vc_remove_element( 'vc_raw_js' );
    //vc_remove_element( 'vc_flickr' );
    //vc_remove_element( 'vc_progress_bar' );
    //vc_remove_element( 'vc_pie' );
    //vc_remove_element( 'contact-form-7' );
    //vc_remove_element( 'rev_slider_vc' );
    //vc_remove_element( 'vc_wp_search' );
    //vc_remove_element( 'vc_wp_meta' );
    //vc_remove_element( 'vc_wp_recentcomments' );
    //vc_remove_element( 'vc_wp_calendar' );
    //vc_remove_element( 'vc_wp_pages' );
    //vc_remove_element( 'vc_wp_tagcloud' );
    //vc_remove_element( 'vc_wp_custommenu' );
    //vc_remove_element( 'vc_wp_text' );
    //vc_remove_element( 'vc_wp_posts' );
    //vc_remove_element( 'vc_wp_links' );
    //vc_remove_element( 'vc_wp_categories' );
    //vc_remove_element( 'vc_wp_archives' );
    //vc_remove_element( 'vc_wp_rss' );
    //vc_remove_element( 'vc_button2' );
    //vc_remove_element( 'vc_cta_button2' );
}
开发者ID:ryan-konkolewski,项目名称:rt-theme-19-extentions-multisite,代码行数:48,代码来源:visual_composer_config.php


示例9: wt_vc_modules_remove

 function wt_vc_modules_remove()
 {
     /* vc_remove_element("vc_widget_sidebar"); */
     vc_remove_element("vc_wp_search");
     vc_remove_element("vc_wp_meta");
     vc_remove_element("vc_wp_recentcomments");
     vc_remove_element("vc_wp_calendar");
     vc_remove_element("vc_wp_pages");
     vc_remove_element("vc_wp_tagcloud");
     vc_remove_element("vc_wp_custommenu");
     vc_remove_element("vc_wp_text");
     vc_remove_element("vc_wp_posts");
     vc_remove_element("vc_wp_links");
     vc_remove_element("vc_wp_categories");
     vc_remove_element("vc_wp_archives");
     vc_remove_element("vc_wp_rss");
     vc_remove_element("vc_empty_space");
     vc_remove_element("vc_custom_heading");
 }
开发者ID:panchortuzar,项目名称:revistaemprendedores-shop,代码行数:19,代码来源:remove.php


示例10: sd_vc_remove_elements

 function sd_vc_remove_elements()
 {
     vc_remove_element('vc_wp_tagcloud');
     vc_remove_element('vc_wp_archives');
     vc_remove_element('vc_wp_calendar');
     vc_remove_element('vc_wp_pages');
     vc_remove_element('vc_wp_links');
     vc_remove_element('vc_wp_posts');
     vc_remove_element('vc_gallery');
     vc_remove_element('vc_wp_rss');
     vc_remove_element('vc_wp_text');
     vc_remove_element('vc_wp_meta');
     vc_remove_element('vc_wp_recentcomments');
     vc_remove_element('vc_wp_categories');
     vc_remove_element('vc_button2');
     vc_remove_element('vc_cta_button2');
     vc_remove_element('vc_gmaps');
     vc_remove_element('vc_posts_grid');
     vc_remove_element('vc_carousel');
     vc_remove_element('vc_widget_sidebar');
 }
开发者ID:AdriC1705,项目名称:keepmoving,代码行数:21,代码来源:sd-vc-remove.php


示例11: rehub_vc_remove_woocommerce

function rehub_vc_remove_woocommerce()
{
    if (is_plugin_active('woocommerce/woocommerce.php')) {
        vc_remove_element('woocommerce_cart');
        vc_remove_element('woocommerce_checkout');
        vc_remove_element('woocommerce_order_tracking');
        vc_remove_element('woocommerce_my_account');
        vc_remove_element('recent_products');
        vc_remove_element('featured_products');
        vc_remove_element('product');
        vc_remove_element('products');
        vc_remove_element('add_to_cart');
        vc_remove_element('add_to_cart_url');
        vc_remove_element('product_page');
        vc_remove_element('product_category');
        vc_remove_element('product_categories');
        vc_remove_element('sale_products');
        vc_remove_element('best_selling_products');
        vc_remove_element('top_rated_products');
        vc_remove_element('product_attribute');
    }
}
开发者ID:rhondamoananui,项目名称:rehub,代码行数:22,代码来源:vc_functions.php


示例12: vcex_vc_modules_remove

 function vcex_vc_modules_remove()
 {
     vc_remove_element('vc_teaser_grid');
     vc_remove_element('vc_posts_grid');
     vc_remove_element('vc_posts_slider');
     vc_remove_element('vc_carousel');
     vc_remove_element('vc_wp_tagcloud');
     vc_remove_element('vc_wp_archives');
     vc_remove_element('vc_wp_calendar');
     vc_remove_element('vc_wp_pages');
     vc_remove_element('vc_wp_links');
     vc_remove_element('vc_wp_posts');
     vc_remove_element('vc_separator');
     vc_remove_element('vc_gallery');
     vc_remove_element('vc_button');
     vc_remove_element('vc_cta_button');
     vc_remove_element('vc_wp_categories');
     vc_remove_element('vc_wp_rss');
     vc_remove_element('vc_wp_text');
     vc_remove_element('vc_wp_meta');
     vc_remove_element('vc_wp_recentcomments');
     vc_remove_element('vc_images_carousel');
 }
开发者ID:nhatnam1102,项目名称:wp-content,代码行数:23,代码来源:remove.php


示例13: vc_remove_element

    vc_remove_element("vc_pie");
    vc_remove_element("vc_wp_search");
    vc_remove_element("vc_wp_meta");
    vc_remove_element("vc_wp_archives");
    vc_remove_element("vc_wp_recentcomments");
    vc_remove_element("vc_wp_calendar");
    vc_remove_element("vc_wp_pages");
    vc_remove_element("vc_wp_tagcloud");
    vc_remove_element("vc_wp_custommenu");
    vc_remove_element("vc_wp_text");
    vc_remove_element("vc_wp_posts");
    vc_remove_element("vc_wp_links");
    vc_remove_element("vc_wp_rss");
    vc_remove_element("vc_wp_categories");
    vc_remove_element("vc_carousel");
    vc_remove_element("vc_gmaps");
}
/*###################################################################################
/##				KraftiveComments:  Custom Functions							   		   ##/										
#####################################################################################*/
//getting post name and ids for slider module fields
function folio_rev_sliders()
{
    if (is_plugin_active('revslider/revslider.php')) {
        global $wpdb;
        $rs = $wpdb->get_results("\r\n\t\t\t\t  SELECT id, title, alias\r\n\t\t\t\t  FROM " . $wpdb->prefix . "revslider_sliders\r\n\t\t\t\t  ORDER BY id ASC LIMIT 999\r\n\t\t\t\t  ");
        $revsliders = array();
        if ($rs) {
            foreach ($rs as $slider) {
                $revsliders[$slider->title] = $slider->alias;
            }
开发者ID:javalidigital,项目名称:multipla,代码行数:31,代码来源:vc-xtend.php


示例14: etheme_VC_setup

    function etheme_VC_setup()
    {
        if (!class_exists('WPBakeryVisualComposerAbstract')) {
            return;
        }
        global $vc_params_list;
        $vc_params_list[] = 'icon';
        vc_remove_element("vc_carousel");
        vc_remove_element("vc_images_carousel");
        vc_remove_element("vc_tour");
        $target_arr = array(__("Same window", "js_composer") => "_self", __("New window", "js_composer") => "_blank");
        $add_css_animation = array("type" => "dropdown", "heading" => __("CSS Animation", "js_composer"), "param_name" => "css_animation", "admin_label" => true, "value" => array(__("No", "js_composer") => '', __("Top to bottom", "js_composer") => "top-to-bottom", __("Bottom to top", "js_composer") => "bottom-to-top", __("Left to right", "js_composer") => "left-to-right", __("Right to left", "js_composer") => "right-to-left", __("Appear from center", "js_composer") => "appear"), "description" => __("Select animation type if you want this element to be animated when it enters into the browsers viewport. Note: Works only in modern browsers.", "js_composer"));
        // **********************************************************************//
        // ! Row (add anchor field)
        // **********************************************************************//
        vc_add_param('vc_row', array('type' => 'textfield', 'heading' => __('Anchor for one page navigation', 'js_composer'), 'param_name' => 'anchor'));
        // **********************************************************************//
        // ! Separator
        // **********************************************************************//
        $setting_vc_separator = array("show_settings_on_create" => true, 'params' => array(array("type" => "dropdown", "heading" => __("Type", "js_composer"), "param_name" => "type", "value" => array("", __("Default", ETHEME_DOMAIN) => "", __("Double", ETHEME_DOMAIN) => "double", __("Dashed", ETHEME_DOMAIN) => "dashed", __("Dotted", ETHEME_DOMAIN) => "dotted", __("Double Dotted", ETHEME_DOMAIN) => "double dotted", __("Double Dashed", ETHEME_DOMAIN) => "double dashed", __("Horizontal break", ETHEME_DOMAIN) => "horizontal-break", __("Space", ETHEME_DOMAIN) => "space")), array("type" => "textfield", "heading" => __("Height", "js_composer"), "param_name" => "height", "dependency" => array('element' => "type", 'value' => array('space'))), array("type" => "textfield", "heading" => __("Extra class", "js_composer"), "param_name" => "class")));
        vc_map_update('vc_separator', $setting_vc_separator);
        function vc_theme_vc_separator($atts, $content = null)
        {
            $output = $color = $el_class = $css_animation = '';
            extract(shortcode_atts(array('type' => '', 'class' => '', 'height' => ''), $atts));
            $output .= do_shortcode('[hr class="' . $type . ' ' . $class . '" height="' . $height . '"]');
            return $output;
        }
        // **********************************************************************//
        // ! Alert boxes
        // **********************************************************************//
        function vc_theme_vc_message($atts, $content = null)
        {
            $output = $color = $el_class = $css_animation = '';
            extract(shortcode_atts(array('color' => 'alert-info', 'el_class' => '', 'css_animation' => ''), $atts));
            $color = $color != '' ? ' ' . $color : '';
            $css_class = $color . $el_class;
            $css_class .= getCSSAnimation($css_animation);
            $output .= '<div class="' . $css_class . '">' . wpb_js_remove_wpautop($content) . '<span class="close-parent"></span></div>';
            return $output;
        }
        // **********************************************************************//
        // ! FAQ toggle elements
        // **********************************************************************//
        $toggle_params = array("name" => __("FAQ", "js_composer"), "icon" => "icon-wpb-toggle-small-expand", "category" => __('Content', 'js_composer'), "description" => __('Toggle element for Q&A block', 'js_composer'), "params" => array(array("type" => "textfield", "holder" => "h4", "class" => "toggle_title", "heading" => __("Toggle title", "js_composer"), "param_name" => "title", "value" => __("Toggle title", "js_composer"), "description" => __("Toggle block title.", "js_composer")), array("type" => "textarea_html", "holder" => "div", "class" => "toggle_content", "heading" => __("Toggle content", "js_composer"), "param_name" => "content", "value" => __("<p>Toggle content goes here, click edit button to change this text.</p>", "js_composer"), "description" => __("Toggle block content.", "js_composer")), array("type" => "dropdown", "heading" => __("Default state", "js_composer"), "param_name" => "open", "value" => array(__("Closed", "js_composer") => "false", __("Open", "js_composer") => "true"), "description" => __('Select "Open" if you want toggle to be open by default.', "js_composer")), array("type" => "dropdown", "heading" => __("Style", "js_composer"), "param_name" => "style", "value" => array(__("Default", "js_composer") => "default", __("Bordered", "js_composer") => "bordered")), $add_css_animation, array("type" => "textfield", "heading" => __("Extra class name", "js_composer"), "param_name" => "el_class", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", "js_composer"))), "js_view" => 'VcToggleView');
        vc_map_update('vc_toggle', $toggle_params);
        function vc_theme_vc_toggle($atts, $content = null)
        {
            $output = $title = $css_class = $el_class = $open = $css_animation = '';
            extract(shortcode_atts(array('title' => __("Click to toggle", "js_composer"), 'el_class' => '', 'style' => 'default', 'open' => 'false', 'css_animation' => ''), $atts));
            $open = $open == 'true' ? 1 : 0;
            $css_class .= getCSSAnimation($css_animation);
            $css_class .= ' ' . $el_class;
            $output .= '<div class="toggle-block ' . $css_class . ' ' . $style . '">' . do_shortcode('[toggle title="' . $title . '" class="' . $css_class . '" active="' . $open . '"]' . wpb_js_remove_wpautop($content) . '[/toggle]') . '</div>';
            return $output;
        }
        // **********************************************************************//
        // ! Sliders
        // **********************************************************************//
        $setting_vc_gallery = array("name" => __("Image Gallery", "js_composer"), "icon" => "icon-wpb-images-stack", "category" => __('Content', 'js_composer'), "params" => array(array("type" => "textfield", "heading" => __("Widget title", "js_composer"), "param_name" => "title", "description" => __("What text use as a widget title. Leave blank if no title is needed.", "js_composer")), array("type" => "dropdown", "heading" => __("Gallery type", "js_composer"), "param_name" => "type", "value" => array(__("OWL slider", "js_composer") => "owl", __("Nivo slider", "js_composer") => "nivo", __("Carousel", "js_composer") => "carousel", __("Image grid", "js_composer") => "image_grid"), "description" => __("Select gallery type.", "js_composer")), array("type" => "dropdown", "heading" => __("Auto rotate slides", "js_composer"), "param_name" => "interval", "value" => array(3, 5, 10, 15, __("Disable", "js_composer") => 0), "description" => __("Auto rotate slides each X seconds.", "js_composer"), "dependency" => array('element' => "type", 'value' => array('flexslider_fade', 'flexslider_slide', 'nivo'))), array("type" => "attach_images", "heading" => __("Images", "js_composer"), "param_name" => "images", "value" => "", "description" => __("Select images from media library.", "js_composer")), array("type" => "textfield", "heading" => __("Image size", "js_composer"), "param_name" => "img_size", "description" => __("Enter image size. Example: thumbnail, medium, large, full or other sizes defined by current theme. Alternatively enter image size in pixels: 200x100 (Width x Height). Leave empty to use 'thumbnail' size.", "js_composer")), array("type" => "dropdown", "heading" => __("On click", "js_composer"), "param_name" => "onclick", "value" => array(__("Open prettyPhoto", "js_composer") => "link_image", __("Do nothing", "js_composer") => "link_no", __("Open custom link", "js_composer") => "custom_link"), "description" => __("What to do when slide is clicked?", "js_composer")), array("type" => "exploded_textarea", "heading" => __("Custom links", "js_composer"), "param_name" => "custom_links", "description" => __('Enter links for each slide here. Divide links with linebreaks (Enter).', 'js_composer'), "dependency" => array('element' => "onclick", 'value' => array('custom_link'))), array("type" => "dropdown", "heading" => __("Custom link target", "js_composer"), "param_name" => "custom_links_target", "description" => __('Select where to open  custom links.', 'js_composer'), "dependency" => array('element' => "onclick", 'value' => array('custom_link')), 'value' => $target_arr), array("type" => "textfield", "heading" => __("Extra class name", "js_composer"), "param_name" => "el_class", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", "js_composer"))));
        vc_map_update('vc_gallery', $setting_vc_gallery);
        function vc_theme_vc_gallery($atts, $content = null)
        {
            $output = $title = $type = $onclick = $custom_links = $img_size = $custom_links_target = $images = $el_class = $interval = '';
            extract(shortcode_atts(array('title' => '', 'type' => 'flexslider', 'onclick' => 'link_image', 'custom_links' => '', 'custom_links_target' => '', 'img_size' => 'thumbnail', 'images' => '', 'el_class' => '', 'interval' => '5'), $atts));
            $gal_images = '';
            $link_start = '';
            $link_end = '';
            $el_start = '';
            $el_end = '';
            $slides_wrap_start = '';
            $slides_wrap_end = '';
            $rand = rand(1000, 9999);
            $el_class = ' ' . $el_class . ' ';
            if ($type == 'nivo') {
                $type = ' wpb_slider_nivo theme-default';
                wp_enqueue_script('nivo-slider');
                wp_enqueue_style('nivo-slider-css');
                wp_enqueue_style('nivo-slider-theme');
                $slides_wrap_start = '<div class="nivoSlider">';
                $slides_wrap_end = '</div>';
            } else {
                if ($type == 'flexslider' || $type == 'flexslider_fade' || $type == 'flexslider_slide' || $type == 'fading') {
                    $el_start = '<li>';
                    $el_end = '</li>';
                    $slides_wrap_start = '<ul class="slides">';
                    $slides_wrap_end = '</ul>';
                } else {
                    if ($type == 'image_grid') {
                        $el_start = '<li class="gallery-item">';
                        $el_end = '</li>';
                        $slides_wrap_start = '<ul class="wpb_images_grid_ul">';
                        $slides_wrap_end = '</ul>';
                    } else {
                        if ($type == 'carousel') {
                            $el_start = '<li class="">';
                            $el_end = '</li>';
                            $slides_wrap_start = '<ul class="images-carousel carousel-' . $rand . '">';
                            $slides_wrap_end = '</ul>';
                        }
//.........这里部分代码省略.........
开发者ID:EmmaTope,项目名称:gadafunds,代码行数:101,代码来源:vc.php


示例15: removeElements

function removeElements()
{
    if (defined('WPB_VC_VERSION')) {
        vc_remove_element("vc_facebook");
        vc_remove_element("vc_tweetmeme");
        vc_remove_element("vc_googleplus");
        vc_remove_element("vc_pinterest");
        vc_remove_element("vc_images_carousel");
        vc_remove_element("vc_tabs");
        vc_remove_element("vc_tour");
        vc_remove_element("vc_accordion");
        vc_remove_element("vc_posts_grid");
        vc_remove_element("vc_carousel");
        vc_remove_element("vc_video");
        vc_remove_element("vc_progress_bar");
        vc_remove_element("vc_pie");
        vc_remove_element("vc_wp_search");
        vc_remove_element("vc_wp_meta");
        vc_remove_element("vc_wp_calendar");
        vc_remove_element("vc_wp_recentcomments");
        vc_remove_element("vc_wp_pages");
        vc_remove_element("vc_wp_tagcloud");
        vc_remove_element("vc_wp_custommenu");
        vc_remove_element("vc_wp_text");
        vc_remove_element("vc_wp_posts");
        vc_remove_element("vc_wp_categories");
        vc_remove_element("vc_wp_archives");
        vc_remove_element("vc_wp_rss");
        vc_remove_element("vc_wp_search");
        vc_remove_element("vc_flickr");
        vc_remove_element("rev_slider_vc");
        vc_remove_element("vc_gmaps");
        vc_remove_element("contact-form-7");
        vc_remove_element("vc_widget_sidebar");
        vc_remove_element("vc_toggle");
    }
}
开发者ID:m-godefroid76,项目名称:devrestofactory,代码行数:37,代码来源:functions_def.php


示例16: vc_remove_param

    vc_remove_param('vc_separator', 'style');
    vc_remove_param('vc_separator', 'border_width');
    vc_remove_param('vc_separator', 'color');
    vc_remove_param('vc_separator', 'accent_color');
    vc_remove_param('vc_separator', 'el_width');
    vc_remove_param('vc_separator', 'align');
    vc_remove_param('vc_column_text', 'css_animation');
    vc_remove_param('vc_gmaps', 'title');
    vc_remove_param('vc_progress_bar', 'title');
    vc_remove_param('vc_progress_bar', 'bgcolor');
    vc_remove_param('vc_progress_bar', 'custombgcolor');
    vc_remove_param('vc_progress_bar', 'options');
    vc_remove_element('vc_button');
    vc_remove_element('vc_button2');
    vc_remove_element('vc_cta_button');
    vc_remove_element('vc_cta_button2');
    if (defined('WPCF7_VERSION')) {
        // contact form 7
        vc_remove_param('contact-form-7', 'title');
    }
}
/* Disable front end editor */
if (function_exists('vc_disable_frontend')) {
    vc_disable_frontend();
}
if (!function_exists('single_file_settings_field')) {
    /**
     * We will create a custom attribute for videos & images
     */
    function single_file_settings_field($settings, $value)
    {
开发者ID:estrategasdigitales,项目名称:dictobas,代码行数:31,代码来源:vc-extend.php


示例17: TheShortcodesForVC

function TheShortcodesForVC()
{
    if (!class_exists('WPBakeryVisualComposerAbstract')) {
        // or using plugins path function
        return;
    }
    // Remove Front End
    vc_disable_frontend();
    // Set as Theme
    WPBakeryVisualComposerAbstract::$config['USER_DIR_NAME'] = 'inc/shortcodes';
    vc_set_default_editor_post_types(array('post', 'page', 'product'));
    vc_set_as_theme(true);
    // Removing Default shortcodes
    vc_remove_element("vc_widget_sidebar");
    vc_remove_element("vc_wp_search");
    vc_remove_element("vc_wp_meta");
    vc_remove_element("vc_wp_recentcomments");
    vc_remove_element("vc_wp_calendar");
    vc_remove_element("vc_wp_pages");
    vc_remove_element("vc_wp_tagcloud");
    vc_remove_element("vc_wp_custommenu");
    vc_remove_element("vc_wp_text");
    vc_remove_element("vc_wp_posts");
    vc_remove_element("vc_wp_links");
    vc_remove_element("vc_wp_categories");
    vc_remove_element("vc_wp_archives");
    vc_remove_element("vc_wp_rss");
    vc_remove_element("vc_teaser_grid");
    vc_remove_element("vc_button");
    vc_remove_element("vc_button2");
    vc_remove_element("vc_cta_button");
    vc_remove_element("vc_message");
    vc_remove_element("vc_progress_bar");
    vc_remove_element("vc_pie");
    vc_remove_element("vc_posts_slider");
    vc_remove_element("vc_posts_grid");
    vc_remove_element("vc_images_carousel");
    vc_remove_element("vc_carousel");
    vc_remove_element("vc_gallery");
    vc_remove_element("vc_single_image");
    vc_remove_element("vc_facebook");
    vc_remove_element("vc_tweetmeme");
    vc_remove_element("vc_googleplus");
    vc_remove_element("vc_pinterest");
    vc_remove_element("vc_single_image");
    vc_remove_element("vc_cta_button2");
    vc_remove_element("vc_gmaps");
    vc_remove_element("vc_raw_js");
    vc_remove_element("vc_flickr");
    vc_remove_element("vc_separator");
    vc_remove_element("vc_text_separator");
    vc_remove_element("vc_empty_space");
    vc_remove_element("vc_custom_heading");
    add_action('admin_head', 'remove_my_meta_box');
    function remove_my_meta_box()
    {
        remove_meta_box("vc_teaser", "portfolio", "side");
        remove_meta_box("vc_teaser", "page", "side");
        remove_meta_box("vc_teaser", "product", "side");
    }
    // Shortcodes
    require_once 'visualcomposer-extend.php';
    /* Columns */
    function thb_translateColumnWidthToSpan($width)
    {
        switch ($width) {
            case "1/6":
                $w = "medium-2";
                break;
            case "1/4":
                $w = "medium-3";
                break;
            case "1/3":
                $w = "medium-4";
                break;
            case "2/4":
                $w = "medium-6";
            case "1/2":
                $w = "medium-6";
                break;
            case "4/6":
                $w = "medium-8";
                break;
            case "2/3":
                $w = "medium-8";
                break;
            case "3/4":
                $w = "medium-9";
                break;
            case "10/12":
                $w = "medium-10";
                break;
            case "5/6":
                $w = "medium-10";
                break;
            case "1/1":
                $w = "medium-12";
                break;
            case "1/12":
                $w = "medium-1";
//.........这里部分代码省略.........
开发者ID:ardiqghenatya,项目名称:web4,代码行数:101,代码来源:visualcomposer.php


示例18: vc_remove_element

<?php

// Remove VC Elements
vc_remove_element('vc_posts_slider');
vc_remove_element('vc_posts_grid');
vc_remove_element('vc_carousel');
vc_remove_element('vc_cta_button');
vc_remove_element('vc_cta_button2');
vc_remove_element('vc_button');
vc_remove_element('vc_button2');
vc_remove_element('vc_gallery');
vc_remove_element('vc_images_carousel');
// Custom Column Classes
// ...............................................................
function custom_css_classes_for_vc_row_and_vc_column($class_string, $tag)
{
    if ($tag == 'vc_row' || $tag == 'vc_row_inner') {
        $class_string = str_replace('vc_row-fluid', '', $class_string);
    }
    if ($tag == 'vc_column' || $tag == 'vc_column_inner') {
        $class_string = str_replace('vc_col', 'col', $class_string);
    }
    return $class_string;
}
// Filter to Replace default css class for vc_row shortcode and vc_column
add_filter('vc_shortcodes_css_class', 'custom_css_classes_for_vc_row_and_vc_column', 10, 2);
# ---------------------------------------------------------------
# Modified or added options for Visual Composer default elements
# ---------------------------------------------------------------
function add_media_center_vc_params()
{
开发者ID:Qualitair,项目名称:ecommerce,代码行数:31,代码来源:custom_vc.php


示例19: vc_remove_element

vc_remove_element("vc_tab");
vc_remove_element("vc_images_carousel");
// Remove standard WP widgets
vc_remove_element("vc_wp_archives");
vc_remove_element("vc_wp_calendar");
vc_remove_element("vc_wp_categories");
vc_remove_element("vc_wp_custommenu");
vc_remove_element("vc_wp_links");
vc_remove_element("vc_wp_meta");
vc_remove_element("vc_wp_pages");
vc_remove_element("vc_wp_posts");
vc_remove_element(" 

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP vc_remove_param函数代码示例发布时间:2022-05-23
下一篇:
PHP vc_post_param函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap