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

PHP vc_path_dir函数代码示例

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

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



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

示例1: vc_grid_item_vc_settings_exclude

/**
 * Adds grid item post type into the list of excluded post types for VC editors.
 *
 * @param array $list
 *
 * @since 4.4
 * @deprecated
 * @return array
 */
function vc_grid_item_vc_settings_exclude(array $list)
{
    require_once vc_path_dir('PARAMS_DIR', 'vc_grid_item/editor/class-vc-grid-item-editor.php');
    $vc_grid_item_editor = new Vc_Grid_Item_Editor();
    $list[] = $vc_grid_item_editor->postType();
    return $list;
}
开发者ID:chicosilva,项目名称:olharambiental,代码行数:16,代码来源:vc-grid-item-editor.php


示例2: mapGridItemShortcodes

 public function mapGridItemShortcodes(array $shortcodes)
 {
     require_once vc_path_dir('VENDORS_DIR', 'plugins/acf/class-vc-gitem-acf-shortcode.php');
     require_once vc_path_dir('VENDORS_DIR', 'plugins/acf/grid-item-attributes.php');
     $wc_shortcodes = (include vc_path_dir('VENDORS_DIR', 'plugins/acf/grid-item-shortcodes.php'));
     return $shortcodes + $wc_shortcodes;
 }
开发者ID:SayenkoDesign,项目名称:ividf,代码行数:7,代码来源:class-vc-vendor-advanced-custom-fields.php


示例3: getLoop

 protected function getLoop($loop)
 {
     global $vc_posts_grid_exclude_id;
     $vc_posts_grid_exclude_id[] = get_the_ID();
     require_once vc_path_dir('PARAMS_DIR', 'loop/loop.php');
     list($this->loop_args, $this->query) = vc_build_loop_query($loop, $vc_posts_grid_exclude_id);
 }
开发者ID:walkthenight,项目名称:walkthenight-wordpress,代码行数:7,代码来源:vc-posts-grid.php


示例4: vc_include_settings_preset_class

/**
 * Include settings preset class
 *
 * Also check if user has 'edit_posts' capability and if not, respond with unsuccessful status
 *
 * @since 4.8
 */
function vc_include_settings_preset_class()
{
    if (!current_user_can('edit_posts') && !current_user_can('edit_pages')) {
        wp_send_json(array('success' => false));
    }
    require_once vc_path_dir('AUTOLOAD_DIR', 'class-vc-settings-presets.php');
}
开发者ID:ryandong82,项目名称:colorfulladysite,代码行数:14,代码来源:vc-settings-presets.php


示例5: vc_init_vendor_jwplayer

function vc_init_vendor_jwplayer()
{
    if (is_plugin_active('jw-player-plugin-for-wordpress/jwplayermodule.php') || defined('JWP6') || class_exists('JWP6_Plugin')) {
        require_once vc_path_dir('VENDORS_DIR', 'plugins/class-vc-vendor-jwplayer.php');
        $vendor = new Vc_Vendor_Jwplayer();
        $vendor->load();
    }
}
开发者ID:severnrescue,项目名称:web,代码行数:8,代码来源:jwplayer.php


示例6: getLayout

 /**
  * Getter for WPBakeryVisualComposerLayout.
  *
  * @see WPBakeryVisualComposerLayout
  * @since  4.2
  * @access public
  * @return WPBakeryVisualComposerLayout
  */
 public function getLayout()
 {
     require_once vc_path_dir('TEMPLATES_DIR', 'backend_editor/layouts.php');
     if ($this->layout === null) {
         $this->layout = new WPBakeryVisualComposerLayout();
     }
     return $this->layout;
 }
开发者ID:scottnkerr,项目名称:eeco,代码行数:16,代码来源:class-vc-backend-editor.php


示例7: vc_init_vendor_wpml

function vc_init_vendor_wpml()
{
    if (defined('ICL_SITEPRESS_VERSION')) {
        require_once vc_path_dir('VENDORS_DIR', 'plugins/class-vc-vendor-wpml.php');
        $vendor = new Vc_Vendor_WPML();
        add_action('vc_after_set_mode', array($vendor, 'load'));
    }
}
开发者ID:domalexxx,项目名称:nashvancouver,代码行数:8,代码来源:wpml.php


示例8: init

	/**
	 * Include params list objects and calls all stored activity methods.
	 *
	 * @since  4.2
	 * @access public
	 */
	public function init() {
		do_action('vc_mapper_init_before');
		require_once vc_path_dir( 'PARAMS_DIR', 'load.php' );
		WPBMap::setInit();
		require_once vc_path_dir( 'CONFIG_DIR', 'map.php' );
		$this->callActivities();
		do_action('vc_mapper_init_after');
	}
开发者ID:verbazend,项目名称:AWFA,代码行数:14,代码来源:class-vc-mapper.php


示例9: vc_init_vendor_qtranslatex

function vc_init_vendor_qtranslatex()
{
    if (defined('QTX_VERSION')) {
        require_once vc_path_dir('VENDORS_DIR', 'plugins/class-vc-vendor-qtranslate-x.php');
        $vendor = new Vc_Vendor_QtranslateX();
        add_action('vc_after_set_mode', array($vendor, 'load'));
    }
}
开发者ID:ksan5835,项目名称:maadithottam,代码行数:8,代码来源:qtranslate-x.php


示例10: renderFields

 /**
  * Build edit form fields.
  *
  * @since 4.4
  */
 public function renderFields()
 {
     $params = array_map('htmlspecialchars_decode', (array) stripslashes_deep(vc_post_param('params')));
     $tag = stripslashes(vc_post_param('tag'));
     require_once vc_path_dir('EDITORS_DIR', 'class-vc-edit-form-fields.php');
     $fields = new Vc_Edit_Form_Fields($tag, $params);
     $fields->render();
     die;
 }
开发者ID:SayenkoDesign,项目名称:ividf,代码行数:14,代码来源:class-vc-shortcode-edit-form.php


示例11: build

 /**
  * Build edit form fields
  *
  * @deprecated 4.4
  * @use Vc_Shortcode_Edit_Form::renderFields
  */
 public function build()
 {
     $tag = vc_post_param('element');
     $shortCode = stripslashes(vc_post_param('shortcode'));
     require_once vc_path_dir('EDITORS_DIR', 'class-vc-edit-form-fields.php');
     $fields = new Vc_Edit_Form_Fields($tag, shortcode_parse_atts($shortCode));
     $fields->render();
     die;
 }
开发者ID:Junaid-Farid,项目名称:gocnex,代码行数:15,代码来源:class-vc-shortcode-edit-form.php


示例12: _vc_google_fonts_get_fonts

 /**
  * Load google fonts list for param
  * To change this list use add_filters('vc_google_fonts_get_fonts_filter','your_custom_function'); and change array
  * vc_filter: vc_google_fonts_get_fonts_filter
  * @since 4.3
  * @return array List of available fonts as array of objects. {"font_family":"Abril Fatface","font_styles":"regular","font_types":"400 regular:400:normal"}
  */
 public function _vc_google_fonts_get_fonts()
 {
     global $wp_filesystem;
     if (empty($wp_filesystem)) {
         require_once ABSPATH . '/wp-admin/includes/file.php';
         WP_Filesystem();
     }
     return apply_filters('vc_google_fonts_get_fonts_filter', json_decode($wp_filesystem->get_contents(vc_path_dir('ASSETS_DIR', 'js/params/google_fonts.json'))));
 }
开发者ID:chicosilva,项目名称:olharambiental,代码行数:16,代码来源:google_fonts.php


示例13: vc_init_vendor_acf

function vc_init_vendor_acf()
{
    include_once ABSPATH . 'wp-admin/includes/plugin.php';
    // Require plugin.php to use is_plugin_active() below
    if (class_exists('acf') || is_plugin_active('advanced-custom-fields/acf.php') || is_plugin_active('advanced-custom-fields-pro/acf.php')) {
        require_once vc_path_dir('VENDORS_DIR', 'plugins/class-vc-vendor-advanced-custom-fields.php');
        $vendor = new Vc_Vendor_AdvancedCustomFields();
        add_action('vc_after_set_mode', array($vendor, 'load'));
    }
}
开发者ID:k2jysy,项目名称:wedev,代码行数:10,代码来源:acf.php


示例14: render

 /**
  * @param $settings
  * @param $value
  *
  * @since 4.3
  * @return string
  */
 public function render($settings, $value)
 {
     $fields = array();
     $values = array();
     $set = isset($settings['settings'], $settings['settings']['fields']) ? $settings['settings']['fields'] : array();
     extract($this->_vc_google_fonts_parse_attributes($set, $value));
     ob_start();
     include vc_path_dir('TEMPLATES_DIR', 'params/google_fonts/template.php');
     return ob_get_clean();
 }
开发者ID:AlchemyMomentum,项目名称:public_html,代码行数:17,代码来源:google_fonts.php


示例15: vc_init_vendor_qtranslate

function vc_init_vendor_qtranslate()
{
    include_once ABSPATH . 'wp-admin/includes/plugin.php';
    // Require plugin.php to use is_plugin_active() below
    if (is_plugin_active('qtranslate/qtranslate.php') || defined('QT_SUPPORTED_WP_VERSION')) {
        require_once vc_path_dir('VENDORS_DIR', 'plugins/class-vc-vendor-qtranslate.php');
        $vendor = new Vc_Vendor_Qtranslate();
        add_action('vc_after_set_mode', array($vendor, 'load'));
    }
}
开发者ID:severnrescue,项目名称:web,代码行数:10,代码来源:qtranslate.php


示例16: vc_init_vendor_mqtranslate

function vc_init_vendor_mqtranslate()
{
    include_once ABSPATH . 'wp-admin/includes/plugin.php';
    // Require plugin.php to use is_plugin_active() below
    if (is_plugin_active('mqtranslate/mqtranslate.php') || function_exists('mqtranslate_activation_check')) {
        require_once vc_path_dir('VENDORS_DIR', 'plugins/class-vc-vendor-mqtranslate.php');
        $vendor = new Vc_Vendor_Mqtranslate();
        add_action('vc_after_set_mode', array($vendor, 'load'));
    }
}
开发者ID:Angelpm28,项目名称:ong-canada,代码行数:10,代码来源:mqtranslate.php


示例17: vc_init_vendor_revslider

function vc_init_vendor_revslider()
{
    include_once ABSPATH . 'wp-admin/includes/plugin.php';
    // Require plugin.php to use is_plugin_active() below
    if (is_plugin_active('revslider/revslider.php') || class_exists('RevSlider')) {
        require_once vc_path_dir('VENDORS_DIR', 'plugins/class-vc-vendor-revslider.php');
        $vendor = new Vc_Vendor_Revslider();
        $vendor->load();
    }
}
开发者ID:Angelpm28,项目名称:ong-canada,代码行数:10,代码来源:revslider.php


示例18: vc_roles_settings_save

function vc_roles_settings_save()
{
    if (check_admin_referer('vc_settings-roles-action', 'vc_nonce_field') && current_user_can('manage_options')) {
        require_once vc_path_dir('SETTINGS_DIR', 'class-vc-roles.php');
        $vc_roles = new Vc_Roles();
        $data = $vc_roles->save(vc_request_param('vc_roles', array()));
        echo json_encode($data);
        die;
    }
}
开发者ID:severnrescue,项目名称:web,代码行数:10,代码来源:page-role-manager.php


示例19: vc_init_vendor_yoast

function vc_init_vendor_yoast()
{
    include_once ABSPATH . 'wp-admin/includes/plugin.php';
    // Require plugin.php to use is_plugin_active() below
    if (is_plugin_active('wordpress-seo/wp-seo.php') || class_exists('WPSEO_Metabox')) {
        require_once vc_path_dir('VENDORS_DIR', 'plugins/class-vc-vendor-yoast_seo.php');
        $vendor = new Vc_Vendor_YoastSeo();
        add_action('vc_after_set_mode', array($vendor, 'load'));
    }
}
开发者ID:arkev,项目名称:IntelligentMode,代码行数:10,代码来源:yoast_seo.php


示例20: vc_init_vendor_ninja_forms

function vc_init_vendor_ninja_forms()
{
    include_once ABSPATH . 'wp-admin/includes/plugin.php';
    // Require plugin.php to use is_plugin_active() below
    if (is_plugin_active('ninja-forms/ninja-forms.php') || defined('NINJA_FORMS_DIR') || function_exists('ninja_forms_get_all_forms')) {
        require_once vc_path_dir('VENDORS_DIR', 'plugins/class-vc-vendor-ninja-forms.php');
        $vendor = new Vc_Vendor_NinjaForms();
        add_action('vc_after_set_mode', array($vendor, 'load'));
    }
}
开发者ID:swc-dng,项目名称:swcsandbox,代码行数:10,代码来源:ninja_forms.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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