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

PHP vc_is_inline函数代码示例

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

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



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

示例1: presscore_vc_inline_editor_scripts

 /**
  * Visual Composer custom view scripts
  * 
  * @since 1.0.0
  */
 function presscore_vc_inline_editor_scripts()
 {
     if (!function_exists('vc_is_inline') || !vc_is_inline()) {
         return;
     }
     wp_enqueue_script('vc-custom-view-by-dt', get_template_directory_uri() . '/inc/shortcodes/js/vc-custom-view.js', array(), false, true);
 }
开发者ID:armslee,项目名称:wp_requid,代码行数:12,代码来源:mod-visual-composer.php


示例2: presscore_remove_puny_effect_for_vc_inline_editor

 function presscore_remove_puny_effect_for_vc_inline_editor($puny_shortcodes = array())
 {
     if (function_exists('vc_is_inline') && vc_is_inline()) {
         return array();
     }
     return $puny_shortcodes;
 }
开发者ID:RDePoppe,项目名称:luminaterealestate,代码行数:7,代码来源:puny-shortcodes-functions.php


示例3: load_admin_static

 public static function load_admin_static()
 {
     wp_enqueue_style('dt-vc-bridge', PRESSCORE_THEME_URI . '/inc/shortcodes/css/js_composer_bridge.css');
     if (function_exists('vc_is_inline') && vc_is_inline()) {
         wp_enqueue_script('vc-custom-view-by-dt', PRESSCORE_THEME_URI . '/inc/shortcodes/js/vc-custom-view.js', array(), false, true);
     }
 }
开发者ID:10asfar,项目名称:WordPress-the7-theme-demo-,代码行数:7,代码来源:class-compatibility-vc.php


示例4: WT_VCSC_IsEditPagePost

 function WT_VCSC_IsEditPagePost($new_edit = null)
 {
     global $pagenow, $typenow;
     if (function_exists('vc_is_inline')) {
         $vc_is_inline = vc_is_inline();
         if (!vc_is_inline() && !is_admin()) {
             return false;
         }
     } else {
         $vc_is_inline = false;
         if (!is_admin()) {
             return false;
         }
     }
     if ($new_edit == "edit") {
         return in_array($pagenow, array('post.php'));
     } else {
         if ($new_edit == "new") {
             return in_array($pagenow, array('post-new.php'));
         } else {
             if ($vc_is_inline == true) {
                 return true;
             } else {
                 return in_array($pagenow, array('post.php', 'post-new.php'));
             }
         }
     }
 }
开发者ID:panchortuzar,项目名称:revistaemprendedores-shop,代码行数:28,代码来源:wt_vcsc_functions.php


示例5: shortcode

    public function shortcode($atts, $content = null)
    {
        extract(shortcode_atts(array('featured_images' => 'true', 'round_images' => '', 'images_width' => 60, 'images_height' => 60, 'category' => '', 'order' => '', 'orderby' => '', 'number' => 6, 'columns' => 1), $atts));
        // sanitize attributes
        $featured_images = apply_filters('dt_sanitize_flag', $featured_images);
        $round_images = apply_filters('dt_sanitize_flag', $round_images);
        $order = apply_filters('dt_sanitize_order', $order);
        $orderby = apply_filters('dt_sanitize_orderby', $orderby);
        $number = apply_filters('dt_sanitize_posts_per_page', $number);
        $columns = absint($columns);
        $images_width = absint($images_width);
        $images_height = absint($images_height);
        if ($category) {
            $category = explode(',', $category);
            $category = array_map('trim', $category);
        }
        $related_posts_args = array('exclude_current' => false, 'post_type' => 'post', 'taxonomy' => 'category', 'field' => 'slug', 'args' => array('posts_per_page' => $number, 'orderby' => $orderby, 'order' => $order));
        if (!empty($category)) {
            $related_posts_args['cats'] = $category;
            $related_posts_args['select'] = 'only';
        } else {
            $related_posts_args['select'] = 'all';
        }
        $attachments_data = presscore_get_related_posts($related_posts_args);
        $list_args = array('show_images' => $featured_images, 'image_dimensions' => array('w' => $images_width, 'h' => $images_height));
        $posts_list = presscore_get_posts_small_list($attachments_data, $list_args);
        switch ($columns) {
            case 2:
                $column_class = 'wf-1-2';
                break;
            case 3:
                $column_class = 'wf-1-3';
                break;
            case 1:
            default:
                $column_class = 'wf-1';
        }
        $output = '';
        if ($posts_list) {
            foreach ($posts_list as $p) {
                $output .= sprintf('<div class="wf-cell %s"><div class="borders">%s</div></div>', $column_class, $p);
            }
            $section_class = 'items-grid wf-container';
            if ($featured_images && $round_images) {
                $section_class .= ' round-images';
            }
            $output = '<section class="' . $section_class . '">' . $output . '</section>';
        }
        if (function_exists('vc_is_inline') && vc_is_inline()) {
            $terms_list = presscore_get_terms_list_by_slug(array('slugs' => $category, 'taxonomy' => 'category'));
            $output = '
				<div class="dt_vc-shortcode_dummy dt_vc-mini_blog" style="height: 250px;">
					<h5>Mini blog</h4>
					<p class="text-small"><strong>Display categories:</strong> ' . $terms_list . '</p>
				</div>
			';
        }
        return $output;
    }
开发者ID:noman90rauf,项目名称:wp-content,代码行数:59,代码来源:blog-posts-small.php


示例6: dt_get_puny_shortcodes

/**
 * Some shortcodes triks.
 * From: http://www.viper007bond.com/2009/11/22/wordpress-code-earlier-shortcodes/
 */
function dt_get_puny_shortcodes()
{
    $puny_shortcodes = array('dt_gap' => array(DT_Shortcode_Gap::get_instance(), 'shortcode'), 'dt_divider' => array(DT_Shortcode_Divider::get_instance(), 'shortcode'), 'dt_stripe' => array(DT_Shortcode_Stripe::get_instance(), 'shortcode'), 'dt_box' => array(DT_Shortcode_Box::get_instance(), 'shortcode'), 'dt_cell' => array(DT_Shortcode_Columns::get_instance(), 'shortcode_cell'), 'dt_code' => array(DT_Shortcode_Code::get_instance(), 'shortcode_prepare'), 'dt_toggle' => array(DT_Shortcode_Toggles::get_instance(), 'shortcode'), 'dt_item' => array(DT_Shortcode_Accordion::get_instance(), 'shortcode_item'), 'dt_benefits' => array(DT_Shortcode_Benefits::get_instance(), 'shortcode_benefits'), 'dt_benefit' => array(DT_Shortcode_Benefits::get_instance(), 'shortcode_benefit'), 'dt_progress_bars' => array(DT_Shortcode_ProgressBars::get_instance(), 'shortcode_bars'), 'dt_progress_bar' => array(DT_Shortcode_ProgressBars::get_instance(), 'shortcode_bar'), 'dt_button' => array(DT_Shortcode_Button::get_instance(), 'shortcode'), 'dt_teaser' => array(DT_Shortcode_Teaser::get_instance(), 'shortcode'), 'dt_call_to_action' => array(DT_Shortcode_CallToAction::get_instance(), 'shortcode'), 'dt_fancy_image' => array(DT_Shortcode_FancyImage::get_instance(), 'shortcode'), 'dt_list_item' => array(DT_Shortcode_List::get_instance(), 'shortcode_item'), 'dt_list' => array(DT_Shortcode_List::get_instance(), 'shortcode_list'), 'dt_quote' => array(DT_Shortcode_Quote::get_instance(), 'shortcode'), 'dt_banner' => array(DT_Shortcode_Banner::get_instance(), 'shortcode'), 'dt_accordion' => array(DT_Shortcode_Accordion::get_instance(), 'shortcode_accordion'), 'dt_text' => array(DT_Shortcode_AnimatedText::get_instance(), 'shortcode'), 'dt_social_icons' => array(DT_Shortcode_SocialIcons::get_instance(), 'shortcode_icons_content'), 'dt_social_icon' => array(DT_Shortcode_SocialIcons::get_instance(), 'shortcode_icon'), 'dt_vc_list_item' => array(DT_Shortcode_List_Vc::get_instance(), 'shortcode_item'), 'dt_vc_list' => array(DT_Shortcode_List_Vc::get_instance(), 'shortcode_list'));
    if (function_exists('vc_is_inline') && vc_is_inline()) {
        $puny_shortcodes = array();
    }
    return apply_filters('dt_get_puny_shortcodes', $puny_shortcodes);
}
开发者ID:scottnkerr,项目名称:eeco,代码行数:12,代码来源:setup.php


示例7: initIfActive

 protected function initIfActive()
 {
     vc_is_inline() && !defined('CONCATENATE_SCRIPTS') && define('CONCATENATE_SCRIPTS', false);
     if ($this->get('vceditor') === 'true') {
         $this->addFilter('the_content', 'addContentAnchor');
         do_action('vc_inline_editor_page_view');
         $this->addAction('wp_enqueue_scripts', 'loadIFrameJsCss');
     }
 }
开发者ID:roycocup,项目名称:enclothed,代码行数:9,代码来源:editor.php


示例8: shortcode

    public function shortcode($atts, $content = null)
    {
        extract(shortcode_atts(array('posts' => '', 'width' => '800', 'height' => '450', 'autoplay' => 'false', 'interval' => '5000'), $atts));
        // sanitize attributes
        $width = absint($width);
        $height = absint($height);
        $interval = absint($interval);
        $autoplay = apply_filters('dt_sanitize_flag', $autoplay);
        $posts = array_map('trim', explode(',', $posts));
        $attachments_id = array();
        $selected_posts_titles = array();
        if ($posts) {
            // get posts by slug
            foreach ($posts as $post_slug) {
                $args = array('no_found_rows' => 1, 'ignore_sticky_posts' => 1, 'posts_per_page' => 1, 'post_type' => 'dt_slideshow', 'post_status' => 'publish', 'name' => $post_slug);
                $dt_query = new WP_Query($args);
                if ($dt_query->have_posts()) {
                    $dt_post = $dt_query->posts[0];
                    $selected_posts_titles[] = get_the_title($dt_post);
                    $slides_id = get_post_meta($dt_post->ID, '_dt_slider_media_items', true);
                    if ($slides_id) {
                        $attachments_id = array_merge($attachments_id, $slides_id);
                    }
                }
            }
            // get fresh one
        } else {
            $args = array('no_found_rows' => 1, 'ignore_sticky_posts' => 1, 'posts_per_page' => 1, 'post_type' => 'dt_slideshow', 'post_status' => 'publish', 'orderby' => 'date', 'order' => 'DESC');
            $dt_query = new WP_Query($args);
            if ($dt_query->have_posts()) {
                $dt_post = $dt_query->posts[0];
                $selected_posts_titles[] = get_the_title($dt_post);
                $slides_id = get_post_meta($dt_post->ID, '_dt_slider_media_items', true);
                if ($slides_id) {
                    $attachments_id = array_merge($attachments_id, $slides_id);
                }
            }
        }
        if (function_exists('vc_is_inline') && vc_is_inline()) {
            if (empty($selected_posts_titles)) {
                $dummy_posts_titles = __('No posts selected', 'the7mk2');
            } else {
                $dummy_posts_titles = esc_html(join(', ', $selected_posts_titles));
            }
            $output = '
				<div class="dt_vc-shortcode_dummy dt_vc-royal_slider" style="height: 250px;">
					<h5>Royal slider</h4>
					<p class="text-small"><strong>Display slider(s):</strong> ' . $dummy_posts_titles . '</p>
				</div>
			';
        } else {
            $attachments_data = presscore_get_attachment_post_data($attachments_id);
            $output = presscore_get_royal_slider($attachments_data, array('width' => $width, 'height' => $height, 'autoplay' => $autoplay, 'interval' => $interval, 'class' => array('slider-simple', 'shortcode-royal-slider'), 'style' => ' style="width: 100%"'));
        }
        return $output;
    }
开发者ID:10asfar,项目名称:WordPress-the7-theme-demo-,代码行数:56,代码来源:slideshow.php


示例9: wpex_is_front_end_composer

 function wpex_is_front_end_composer()
 {
     if (!function_exists('vc_is_inline')) {
         return false;
     } elseif (vc_is_inline()) {
         return true;
     } else {
         return false;
     }
 }
开发者ID:sergey-h,项目名称:naman,代码行数:10,代码来源:conditionals.php


示例10: custom_css_classes_for_vc_row_and_vc_column

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', 'wf-container', $class_string);
    }
    if ($tag == 'vc_column' || $tag == 'vc_column_inner') {
        if (!(function_exists('vc_is_inline') && vc_is_inline())) {
            $class_string = preg_replace('/vc_span(\\d{1,2})/', 'wf-cell wf-span-$1', $class_string);
        }
    }
    return $class_string;
}
开发者ID:scottnkerr,项目名称:eeco,代码行数:12,代码来源:js_composer_bridge.php


示例11: __construct

 function __construct()
 {
     add_action('init', array($this, 'swatch_book_init'));
     add_action("wp_enqueue_scripts", array($this, "register_swatch_assets"), 1);
     if (function_exists('vc_is_inline')) {
         if (!vc_is_inline()) {
             add_shortcode('swatch_container', array($this, 'swatch_container'));
             add_shortcode('swatch_item', array($this, 'swatch_item'));
         }
     } else {
         add_shortcode('swatch_container', array($this, 'swatch_container'));
         add_shortcode('swatch_item', array($this, 'swatch_item'));
     }
 }
开发者ID:VitaAprel,项目名称:mynotebook,代码行数:14,代码来源:Ultimate_Swatch_Book.php


示例12: __construct

 function __construct()
 {
     add_action('admin_init', array($this, 'swatch_book_init'));
     add_action('wp_enqueue_scripts', array($this, 'frontend_scripts'));
     if (function_exists('vc_is_inline')) {
         if (!vc_is_inline()) {
             add_shortcode('swatch_container', array($this, 'swatch_container'));
             add_shortcode('swatch_item', array($this, 'swatch_item'));
         }
     } else {
         add_shortcode('swatch_container', array($this, 'swatch_container'));
         add_shortcode('swatch_item', array($this, 'swatch_item'));
     }
 }
开发者ID:cimocimocimo,项目名称:staydrysystems.com,代码行数:14,代码来源:Ultimate_Swatch_Book.php


示例13: __construct

 function __construct()
 {
     $this->connector_animate = '';
     $this->connect_color = '';
     $this->icon_style = '';
     $this->icon_style = '';
     add_action('admin_init', array($this, 'add_info_list'));
     if (function_exists('vc_is_inline')) {
         if (!vc_is_inline()) {
             add_shortcode('info_list', array($this, 'info_list'));
             add_shortcode('info_list_item', array($this, 'info_list_item'));
         }
     } else {
         add_shortcode('info_list', array($this, 'info_list'));
         add_shortcode('info_list_item', array($this, 'info_list_item'));
     }
 }
开发者ID:prosenjit-itobuz,项目名称:upages,代码行数:17,代码来源:Ultimate_Info_List.php


示例14: symple_skillbar_shortcode

function symple_skillbar_shortcode($atts)
{
    // Parse and extract shortcode attributes
    extract(shortcode_atts(array('title' => '', 'percentage' => '100', 'color' => '#6adcfa', 'class' => '', 'show_percent' => 'true'), $atts));
    // Define output var
    $output = '';
    // Enque scripts
    wp_enqueue_script('symple_skillbar');
    // Inline js
    if (function_exists('vc_is_inline') && vc_is_inline()) {
        $output .= '<script>
			jQuery(function($){
				$(document).ready(function(){
					$(".symple-skillbar").each(function(){
						$(this).find(".symple-skillbar-bar").animate({ width: $(this).attr("data-percent") }, 800 );
					});
				});
			});</script>';
    }
    // Open skillbar main wrapper
    $output .= '<div class="symple-skillbar symple-clearfix ' . $class . '" data-percent="' . $percentage . '%">';
    // Display title
    if ($title) {
        $output .= '<div class="symple-skillbar-title" style="background: ' . $color . ';"><span>' . $title . '</span></div>';
    }
    // Display bar
    $output .= '<div class="symple-skillbar-bar" style="background: ' . $color . ';"></div>';
    // Display percentage
    if ($show_percent == 'true') {
        $output .= '<div class="symple-skill-bar-percent">' . $percentage . '%</div>';
    }
    // Close main wrapper
    $output .= '</div>';
    // Return output
    return $output;
}
开发者ID:lytranuit,项目名称:wordpress,代码行数:36,代码来源:shortcodes.php


示例15: portfolio_slider

    /**
     * Portfolio slider.
     *
     */
    public function portfolio_slider($attributes = array())
    {
        $config = Presscore_Config::get_instance();
        $slider_class = array();
        if ('disabled' == $config->get('sidebar_position')) {
            $slider_class[] = 'full';
        }
        $slider_fields = array();
        if ($attributes['show_title']) {
            $slider_fields[] = 'title';
        }
        if ($attributes['meta_info']) {
            $slider_fields[] = 'meta';
        }
        if ($attributes['show_excerpt']) {
            $slider_fields[] = 'description';
        }
        if ($attributes['show_link']) {
            $slider_fields[] = 'link';
        }
        if ($attributes['show_zoom']) {
            $slider_fields[] = 'zoom';
        }
        if ($attributes['show_details']) {
            $slider_fields[] = 'details';
        }
        $slider_style = array();
        if ($attributes['margin_bottom']) {
            $slider_style[] = 'margin-bottom: ' . $attributes['margin_bottom'];
        }
        if ($attributes['margin_top']) {
            $slider_style[] = 'margin-top: ' . $attributes['margin_top'];
        }
        $slider_args = array('mode' => $attributes['appearance'], 'fields' => $slider_fields, 'class' => $slider_class, 'style' => implode(';', $slider_style), 'under_image_buttons' => $attributes['under_image_buttons'], 'hover_animation' => $attributes['hover_animation'], 'hover_bg_color' => $attributes['hover_bg_color'], 'hover_content_visibility' => $attributes['hover_content_visibility']);
        if ($attributes['height']) {
            $slider_args['height'] = $attributes['height'];
        }
        if ($attributes['width']) {
            $slider_args['img_width'] = $attributes['width'];
        }
        if (function_exists('vc_is_inline') && vc_is_inline()) {
            $terms_list = presscore_get_terms_list_by_slug(array('slugs' => $attributes['category'], 'taxonomy' => 'dt_portfolio_category'));
            $output = '
				<div class="dt_vc-shortcode_dummy dt_vc-portfolio_scroller" style="height: ' . $slider_args['height'] . 'px;">
					<h5>Portfolio scroller</h5>
					<p class="text-small"><strong>Display categories:</strong> ' . $terms_list . '</p>
				</div>
			';
        } else {
            $related_posts_args = array('exclude_current' => false, 'post_type' => 'dt_portfolio', 'taxonomy' => 'dt_portfolio_category', 'field' => 'slug', 'args' => array('posts_per_page' => $attributes['number'], 'orderby' => $attributes['orderby'], 'order' => $attributes['order']));
            $related_posts_args['cats'] = $attributes['category'];
            if (!empty($attributes['category'])) {
                $related_posts_args['select'] = 'only';
            } else {
                $related_posts_args['select'] = 'all';
            }
            $attachments_data = presscore_get_related_posts($related_posts_args);
            $output = presscore_get_fullwidth_slider_two_with_hovers($attachments_data, $slider_args);
        }
        return $output;
    }
开发者ID:scottnkerr,项目名称:eeco,代码行数:65,代码来源:functions.php


示例16: presscore_vc_is_inline

 function presscore_vc_is_inline()
 {
     return function_exists('vc_is_inline') && vc_is_inline();
 }
开发者ID:RDePoppe,项目名称:luminaterealestate,代码行数:4,代码来源:helpers.php


示例17: vc_is_inline

 /**
  * safe way to call visual composers function vc_is_inline (if we are in the live editor)
  * @return bool|null
  */
 static function vc_is_inline()
 {
     if (function_exists('vc_is_inline')) {
         return vc_is_inline();
     } else {
         return false;
     }
 }
开发者ID:weerapat,项目名称:wp-daily,代码行数:12,代码来源:td_util.php


示例18: vc_shortcode_custom_css_class

function vc_shortcode_custom_css_class($param_value, $prefix = '')
{
    $css_class = preg_match('/\\s*\\.([^\\{]+)\\s*\\{\\s*([^\\}]+)\\s*\\}\\s*/', $param_value) ? $prefix . preg_replace('/\\s*\\.([^\\{]+)\\s*\\{\\s*([^\\}]+)\\s*\\}\\s*/', '$1', $param_value) : '';
    if (vc_is_inline()) {
        $css_class .= ' vc-cc-placeholder';
    }
    return $css_class;
}
开发者ID:venamax,项目名称:trixandtrax-cl,代码行数:8,代码来源:helpers.php


示例19: setUpPlugin

 public function setUpPlugin()
 {
     if (is_plugin_active_for_network('js_composer/js_composer.php') || is_network_only_plugin('js_composer/js_composer.php')) {
         $this->composer->setAsNetworkPlugin(true);
     }
     global $current_user;
     get_currentuserinfo();
     /** @var $settings - get use group access rules */
     $settings = WPBakeryVisualComposerSettings::get('groups_access_rules');
     parent::setUpPlugin();
     $show = true;
     foreach ($current_user->roles as $role) {
         if (isset($settings[$role]['show']) && $settings[$role]['show'] === 'no') {
             $show = false;
             break;
         }
     }
     if ($show) {
         $this->composer->addAction('edit_post', 'saveMetaBoxes');
         $this->composer->addAction('wp_ajax_wpb_get_element_backend_html', 'elementBackendHtmlJavascript_callback');
         $this->composer->addAction('wp_ajax_wpb_get_convert_elements_backend_html', 'Convert2NewVersionJavascript_callback');
         $this->composer->addAction('wp_ajax_wpb_get_row_element_backend_html', 'elementRowBackendHtmlJavascript_callback');
         $this->composer->addAction('wp_ajax_wpb_shortcodes_to_visualComposer', 'shortCodesVisualComposerJavascript_callback');
         $this->composer->addAction('wp_ajax_wpb_single_image_src', 'singleImageSrcJavascript_callback');
         $this->composer->addAction('wp_ajax_wpb_gallery_html', 'galleryHTMLJavascript_callback');
         $this->composer->addAction('wp_ajax_wpb_get_loop_suggestion', 'getLoopSuggestionJavascript_callback');
         $this->composer->addAction('wp_ajax_wpb_remove_settings_notification_element_css_class', 'removeSettingsNotificationJavascript_callback');
         $this->composer->addAction('wp_ajax_wpb_image_url', 'getImageUrlByIdJavascript_callback');
         /*
          * Create edit form html
          * @deprecated
          */
         $this->composer->addAction('wp_ajax_wpb_show_edit_form', 'showEditFormJavascript_callback');
         $this->composer->addAction('wp_ajax_wpb_get_edit_form', 'getEditFormJavascript_callback');
         $this->composer->addAction('wp_ajax_wpb_save_template', 'saveTemplateJavascript_callback');
         $this->composer->addAction('wp_ajax_wpb_load_template', 'loadTemplateJavascript_callback');
         $this->composer->addAction('wp_ajax_wpb_load_inline_template', 'loadInlineTemplateJavascript_callback');
         $this->composer->addAction('wp_ajax_wpb_load_template_shortcodes', 'loadTemplateShortcodesJavascript_callback');
         $this->composer->addAction('wp_ajax_wpb_delete_template', 'deleteTemplateJavascript_callback');
         $this->composer->addAction('wp_ajax_wpb_get_loop_settings', 'getLoopSettingsJavascript_callback');
         $this->composer->addAction('wp_ajax_wpb_activate_license', 'activateLicense');
         $this->composer->addAction('wp_ajax_wpb_deactivate_license', 'deactivateLicense');
         $this->composer->inlineEditor()->addAction('wp_ajax_vc_load_shortcode', 'loadShortcodes');
         $this->composer->inlineEditor()->addAction('wp_ajax_vc_show_edit_form', 'renderEditForm');
         $this->composer->inlineEditor()->addAction('wp_ajax_vc_update_content', 'savePost');
         $this->composer->inlineEditor()->addAction('wp_ajax_vc_inline_template', 'renderTemplate');
         $this->composer->inlineEditor()->addAction('wp_ajax_vc_show_inline_edit_form', 'buildInlineEditForm');
         $this->addAction('admin_init', 'jsComposerEditPage', 5);
         $this->composer->inlineEditor()->addFilter('page_row_actions', 'renderRowAction');
         $this->composer->inlineEditor()->addFilter('post_row_actions', 'renderRowAction');
     }
     vc_automapper()->addAction('wp_ajax_vc_automapper', 'goAction');
     if (vc_is_inline()) {
         $this->composer->inlineEditor()->addFilter('vc_single_param_edit', 'changeEditFormFieldParams');
         $this->composer->inlineEditor()->addFilter('vc_edit_form_class', 'changeEditFormParams');
     }
     $this->composer->addAction('admin_init', 'renderInlineEditor');
     // Add specific CSS class by filter
     $this->addFilter('body_class', 'jsComposerBodyClass');
     $this->addFilter('get_media_item_args', 'jsForceSend');
     $this->addAction('admin_init', 'composerRedirect');
     $this->addAction('admin_init', 'registerCss');
     $this->addAction('admin_init', 'registerJavascript');
     if ($this->composer->isNetworkPlugin() && is_network_admin()) {
         $this->addAction('network_admin_menu', 'composerSettings');
     }
     $this->addAction('admin_menu', 'composerSettings');
     $this->addAction('admin_print_scripts-post.php', 'editScreen_js');
     $this->addAction('admin_print_scripts-post-new.php', 'editScreen_js');
     // Upgrade message in plugins list.
     if ($this->composer->updaterDisabled()) {
         return $this;
     }
     $plugin_file_name = 'js_composer/js_composer.php';
     new WpbAutoUpdate(WPB_VC_VERSION, 'http://wpbakery.com/version/?' . time(), $plugin_file_name);
     $this->addAction('in_plugin_update_message-' . $plugin_file_name, 'addUpgradeMessageLink');
 }
开发者ID:ksingh812,项目名称:thub-old,代码行数:77,代码来源:build.php


示例20: extract

if ($wpex_query->have_posts()) {
    // Extract attributes
    extract($atts);
    // Load scripts
    $inline_js = array('carousel');
    if ('lightbox' == $thumbnail_link) {
        vcex_enque_style('ilightbox');
        $inline_js[] = 'ilightbox';
    }
    vcex_inline_js($inline_js);
    // Disable auto play if there is only 1 post
    if ('1' == count($wpex_query->posts)) {
        $auto_play = false;
    }
    // Prevent auto play in visual composer
    if (vc_is_inline()) {
        $auto_play = 'false';
    }
    // Item Margin
    if ('no-margins' == $style) {
        $items_margin = '0';
    }
    // Items to scroll fallback for old setting
    if ('page' == $items_scroll) {
        $items_scroll = $items;
    }
    // Main Classes
    $wrap_classes = array('wpex-carousel', 'wpex-carousel-post-type', 'wpex-clr', 'owl-carousel');
    if ($style) {
        $wrap_classes[] = $style;
    }
开发者ID:iq007,项目名称:MadScape,代码行数:31,代码来源:vcex_post_type_carousel.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP vc_is_network_plugin函数代码示例发布时间:2022-05-23
下一篇:
PHP vc_is_frontend_editor函数代码示例发布时间: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