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

PHP vc_include_template函数代码示例

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

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



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

示例1: vc_gitem_template_attribute_vc_btn

/**
 * Create new btn
 *
 * @param $value
 * @param $data
 *
 * @since 4.5
 *
 * @return mixed
 */
function vc_gitem_template_attribute_vc_btn($value, $data)
{
    /**
     * @var Wp_Post $post
     * @var string $data
     */
    extract(array_merge(array('post' => null, 'data' => ''), $data));
    return vc_include_template('params/vc_grid_item/attributes/vc_btn.php', array('post' => $post, 'data' => $data));
}
开发者ID:RDePoppe,项目名称:luminaterealestate,代码行数:19,代码来源:attributes.php


示例2: render

 public function render()
 {
     $this->post_id = vc_request_param('post_id');
     $this->shortcodes_string = stripslashes(vc_request_param('shortcodes_string', true));
     require_once vc_path_dir('PARAMS_DIR', 'vc_grid_item/class-vc-grid-item.php');
     $grid_item = new Vc_Grid_Item();
     $grid_item->setIsEnd(false);
     $grid_item->setGridAttributes(array('element_width' => 4));
     $grid_item->setTemplate($this->shortcodes_string, $this->post_id);
     $this->enqueue();
     vc_include_template('params/vc_grid_item/preview.tpl.php', array('preview' => $this, 'grid_item' => $grid_item, 'shortcodes_string' => $this->shortcodes_string, 'post' => $this->mockingPost(), 'default_width_value' => apply_filters('vc_grid_item_preview_render_default_width_value', 4)));
 }
开发者ID:Junaid-Farid,项目名称:gocnex,代码行数:12,代码来源:class-vc-grid-item-preview.php


示例3: vc_include_template

<?php

vc_include_template('pages/partials/vc-roles-parts/_part.tpl.php', array('part' => $part, 'role' => $role, 'params_prefix' => 'vc_roles[' . $role . '][' . $part . ']', 'controller' => vc_role_access()->who($role)->part($part), 'options' => array(array(true, __('Enabled', 'js_composer')), array(false, __('Disabled', 'js_composer'))), 'main_label' => __('Grid Builder', 'js_composer'), 'custom_label' => __('Grid Builder', 'js_composer'), 'description' => __('Control user access to Grid Builder and Grid Builder Elements.', 'js_composer')));
开发者ID:severnrescue,项目名称:web,代码行数:3,代码来源:_grid_builder.tpl.php


示例4: die

<?php

if (!defined('ABSPATH')) {
    die('-1');
}
?>
<div class="vc_ui-font-open-sans vc_ui-panel-window vc_media-xs vc_ui-panel"
     data-vc-panel=".vc_ui-panel-header-header" data-vc-ui-element="panel-add-element" id="vc_ui-panel-add-element">
	<div class="vc_ui-panel-window-inner">
		<?php 
vc_include_template('editors/popups/vc_ui-header.tpl.php', array('title' => __('Add Element', 'js_composer'), 'controls' => array('close'), 'header_css_class' => 'vc_ui-add-element-header-container', 'content_template' => 'editors/partials/add_element_tabs.tpl.php', 'search_template' => 'editors/partials/add_element_search.tpl.php', 'template_variables' => $template_variables));
?>
		<div class="vc_ui-panel-content-container">
			<div class="vc_add-element-container">
				<div class="wpb-elements-list vc_filter-all" data-vc-ui-filter="*"
				     data-vc-ui-element="panel-add-element-list">
					<ul class="wpb-content-layouts-container">
						<li class="vc_add-element-deprecated-warning">
							<div class="wpb_element_wrapper">
								<?php 
echo vc_message_warning(__('Elements within this list are deprecated and are no longer supported in newer versions of Visual Composer.', 'js_composer'));
?>
							</div>
						</li>
						<li><?php 
echo $box->getControls();
?>
</li>
						<?php 
if ($box->isShowEmptyMessage() && true !== $box->getPartState()) {
    ?>
开发者ID:arkev,项目名称:IntelligentMode,代码行数:31,代码来源:vc_ui-panel-add-element.tpl.php


示例5: esc_attr

			<a href="<?php 
    echo esc_attr(admin_url('admin.php?page=vc-general'));
    ?>
"
			class="button button-primary"><?php 
    _e('Settings', 'js_composer');
    ?>
</a><?php 
}
?>
		<a href="https://twitter.com/share" class="twitter-share-button"
			data-text="Take full control over your WordPress site with Visual Composer page builder by @WPBakery"
			data-url="http://vc.wpbakery.com" data-size="large">Tweet</a>
		<script>! function ( d, s, id ) {
				var js, fjs = d.getElementsByTagName( s )[ 0 ], p = /^http:/.test( d.location ) ? 'http' : 'https';
				if ( ! d.getElementById( id ) ) {
					js = d.createElement( s );
					js.id = id;
					js.src = p + '://platform.twitter.com/widgets.js';
					fjs.parentNode.insertBefore( js, fjs );
				}
			}( document, 'script', 'twitter-wjs' );</script>
	</p>
	<?php 
vc_include_template('/pages/partials/_tabs.php', array('slug' => $page->getSlug(), 'active_tab' => $active_page->getSlug(), 'tabs' => $pages));
?>
	<?php 
echo $active_page->render();
?>
</div>
开发者ID:k2jysy,项目名称:wedev,代码行数:30,代码来源:index.php


示例6: renderUITemplate

 /**
  * @since 4.7
  *
  */
 public function renderUITemplate()
 {
     vc_include_template('editors/popups/vc_ui-panel-templates.tpl.php', array('box' => $this));
 }
开发者ID:VitaAprel,项目名称:mynotebook,代码行数:8,代码来源:class-vc-templates-panel-editor.php


示例7: render

 public function render()
 {
     vc_include_template('editors/popups/vc_ui-panel-add-element.tpl.php', array('box' => $this, 'template_variables' => array('categories' => $this->getCategories())));
 }
开发者ID:swc-dng,项目名称:swcsandbox,代码行数:4,代码来源:class-vc-add-element-box.php


示例8: vc_include_template

			'[vc_gitem_row position="middle"]' +
			'[vc_gitem_col width="1/2"][/vc_gitem_col]' +
			'[vc_gitem_col width="1/2"][/vc_gitem_col]' +
			'[/vc_gitem_row]' +
			'[vc_gitem_row position="bottom"]' +
			'[vc_gitem_col width="1/1"][/vc_gitem_col]' +
			'[/vc_gitem_row]' +
			'[/vc_gitem_zone_a]' +
			'[vc_gitem_zone_b]' +
			'[vc_gitem_row position="top"]' +
			'[vc_gitem_col width="1/1"][/vc_gitem_col]' +
			'[/vc_gitem_row]' +
			'[vc_gitem_row position="middle"]' +
			'[vc_gitem_col width="1/2"][/vc_gitem_col]' +
			'[vc_gitem_col width="1/2"][/vc_gitem_col]' +
			'[/vc_gitem_row]' +
			'[vc_gitem_row position="bottom"]' +
			'[vc_gitem_col width="1/1"][/vc_gitem_col]' +
			'[/vc_gitem_row]' +
			'[/vc_gitem_zone_b]' +
			'[/vc_gitem_animated_block]' +
			'[/vc_gitem]';
	</script>
<?php 
vc_include_template('editors/partials/backend-shortcodes-templates.tpl.php');
do_action('vc_backend_editor_render');
do_action('vc_vc_grid_item_editor_render');
do_action('vc_ui-template-preview');
// fix bug #59741644518985 in firefox
wp_dequeue_script('isotope');
require_once ABSPATH . 'wp-admin/admin-footer.php';
开发者ID:hikaram,项目名称:wee,代码行数:31,代码来源:vc_ui-template-preview.tpl.php


示例9: render

 /**
  * @return string
  */
 public function render()
 {
     ob_start();
     vc_include_template('params/column_offset/template.tpl.php', array('settings' => $this->settings, 'value' => $this->value, 'data' => $this->valueData(), 'sizes' => $this->size_types, 'param' => $this));
     return ob_get_clean();
 }
开发者ID:severnrescue,项目名称:web,代码行数:9,代码来源:column_offset.php


示例10: getColumnControlsModular

 /**
  * Build new modern controls for shortcode.
  *
  * @param string $extended_css
  *
  * @return string
  */
 public function getColumnControlsModular($extended_css = '')
 {
     ob_start();
     vc_include_template(apply_filters('vc_wpbakery_shortcode_get_column_controls_modular_template', $this->controls_template_file), array('shortcode' => $this->shortcode, 'position' => $this->controls_css_settings, 'extended_css' => $extended_css, 'name' => $this->settings('name'), 'controls' => $this->getControlsList(), 'name_css_class' => $this->getBackendEditorControlsElementCssClass(), 'add_allowed' => $this->getAddAllowed()));
     return ob_get_clean();
 }
开发者ID:AlchemyMomentum,项目名称:public_html,代码行数:13,代码来源:shortcodes.php


示例11: array

<?php

$tabs = array();
foreach (vc_settings()->getTabs() as $tab => $title) {
    $tabs[] = array($tab . '-tab', $title);
}
vc_include_template('pages/partials/vc-roles-parts/_part.tpl.php', array('part' => $part, 'role' => $role, 'params_prefix' => 'vc_roles[' . $role . '][' . $part . ']', 'controller' => vc_role_access()->who($role)->part($part), 'custom_value' => 'custom', 'capabilities' => $tabs, 'options' => array(array(true, __('All', 'js_composer')), array('custom', __('Custom', 'js_composer')), array(false, __('Disabled', 'js_composer'))), 'main_label' => __('Settings options', 'js_composer'), 'custom_label' => __('Settings options', 'js_composer'), 'description' => __('Control access rights to Visual Composer admin settings tabs (e.g. General Settings, Shortcode Mapper, ...)', 'js_composer')));
开发者ID:severnrescue,项目名称:web,代码行数:7,代码来源:_settings.tpl.php


示例12: render

 /**
  * Render template.
  */
 public function render()
 {
     vc_include_template('editors/navbar/navbar.tpl.php', array('css_class' => $this->css_class, 'controls' => $this->getControls(), 'nav_bar' => $this, 'post' => $this->post()));
 }
开发者ID:hikaram,项目名称:wee,代码行数:7,代码来源:class-vc-navbar.php


示例13: getColumnControlsModular

 /**
  * Build new modern controls for shortcode.
  *
  * @param string $position - y,x position where to put controls inside block
  * 	Possible $position values
  * 	cc - center center position of the block
  * 	tl - top left
  * 	tr - top right
  * 	br - bottom right
  * @param string $extended_css
  * @return string
  */
 public function getColumnControlsModular($extended_css = '')
 {
     ob_start();
     vc_include_template($this->controls_template_file, array('position' => $this->controls_css_settings, 'extended_css' => $extended_css, 'name' => $this->settings('name'), 'controls' => $this->controls_list));
     return ob_get_clean();
 }
开发者ID:epiii,项目名称:aros,代码行数:18,代码来源:shortcodes.php


示例14: vc_include_template

<?php

vc_include_template('pages/partials/vc-roles-parts/_part.tpl.php', array('part' => $part, 'role' => $role, 'params_prefix' => 'vc_roles[' . $role . '][' . $part . ']', 'controller' => vc_role_access()->who($role)->part($part), 'options' => array(array(true, __('All', 'js_composer')), array('add', __('Apply presets only', 'js_composer')), array(false, __('Disabled', 'js_composer'))), 'main_label' => __('Element Presets', 'js_composer'), 'description' => __('Control access rights to element presets in element edit form. Note: "Apply presets only" restricts users from saving new presets, deleting existing and setting defaults.', 'js_composer')));
开发者ID:hikaram,项目名称:wee,代码行数:3,代码来源:_presets.tpl.php


示例15: vc_generate_nonce

echo vc_generate_nonce('vc-admin-nonce');
?>
';
	</script>

	<script type="text/html" id="vc_settings-image-block">
		<li class="added">
			<div class="inner" style="width: 80px; height: 80px; overflow: hidden;text-align: center;">
				<img rel="{{ id }}" src="<# if(sizes && sizes.thumbnail) { #>{{ sizes.thumbnail.url }}<# } else {#>{{ url }}<# } #>"/>
			</div>
			<a href="#" class="vc_icon-remove"></a>
		</li>
	</script>
<?php 
foreach (WpbMap_Grid_Item::getShortCodes() as $sc_base => $el) {
    ?>
	<script type="text/html" id="vc_shortcode-template-<?php 
    echo $sc_base;
    ?>
">
		<?php 
    echo visual_composer()->getShortCode($sc_base)->template();
    ?>
	</script>
<?php 
}
?>

<?php 
vc_include_template('editors/partials/access-manager-js.tpl.php');
开发者ID:domalexxx,项目名称:nashvancouver,代码行数:30,代码来源:vc_grid_item_editor_footer.tpl.php


示例16: render

 /**
  * @since 4.4
  * @return mixed|string
  */
 public function render()
 {
     $output = "";
     $edit_form = new Vc_ParamGroup_Edit_Form_Fields($this->settings);
     $settings = $this->settings;
     $output .= '<ul class="vc_param_group-list vc_settings" data-settings="' . htmlentities(json_encode($settings), ENT_QUOTES, "utf-8") . '">';
     $template = vc_include_template('params/param_group/content.tpl.php');
     // Parsing values
     if (!empty($this->value)) {
         foreach ($this->value as $values) {
             $output .= $template;
             $value_block = "<div class='vc_param_group-wrapper vc_clearfix'>";
             $data = $values;
             foreach ($this->settings['params'] as $param) {
                 $param_value = isset($data[$param['param_name']]) ? $data[$param['param_name']] : (isset($param['value']) ? $param['value'] : "");
                 $param['param_name'] = $this->settings['param_name'] . '_' . $param['param_name'];
                 $value_block .= $edit_form->renderField($param, $param_value);
             }
             $value_block .= "</div>";
             $output = str_replace('%content%', $value_block, $output);
         }
     } else {
         $output .= $template;
     }
     // Empty fields wrapper and Add new fields wrapper
     $content = "<div class='vc_param_group-wrapper vc_clearfix'>";
     foreach ($this->settings['params'] as $param) {
         $param['param_name'] = $this->settings['param_name'] . '_' . $param['param_name'];
         $content .= $edit_form->renderField($param, isset($param['value']) ? $param['value'] : "");
     }
     $content .= "</div>";
     $output = str_replace('%content%', $content, $output);
     // And button on bottom
     $output .= '<li class="wpb_column_container vc_container_for_children vc_param_group-add_content vc_empty-container"></li></ul>';
     $add_template = vc_include_template('params/param_group/add.tpl.php');
     $add_template = str_replace('%content%', $content, $add_template);
     $output .= '<script type="text/html" class="vc_param_group-template">' . json_encode($add_template) . '</script>';
     $output .= '<input name="' . $this->settings['param_name'] . '" class="wpb_vc_param_value  ' . $this->settings['param_name'] . ' ' . $this->settings['type'] . '_field" type="hidden" value="' . $this->unparsed_value . '" />';
     return $output;
 }
开发者ID:RDePoppe,项目名称:luminaterealestate,代码行数:44,代码来源:param_group.php


示例17: vc_action_render_settings_preset_title_prompt

/**
 * Return rendered title prompt
 *
 * @since 4.7
 *
 * @return string
 */
function vc_action_render_settings_preset_title_prompt()
{
    vc_user_access()->checkAdminNonce()->validateDie()->wpAny('edit_posts', 'edit_pages')->validateDie()->part('presets')->can()->validateDie();
    ob_start();
    vc_include_template(apply_filters('vc_render_settings_preset_title_prompt', 'editors/partials/prompt.tpl.php'));
    $html = ob_get_clean();
    $response = array('success' => true, 'html' => $html);
    wp_send_json($response);
}
开发者ID:arkev,项目名称:IntelligentMode,代码行数:16,代码来源:vc-settings-presets.php


示例18: die

<?php

if (!defined('ABSPATH')) {
    die('-1');
}
vc_include_template('pages/partials/vc-roles-parts/_part.tpl.php', array('part' => $part, 'role' => $role, 'params_prefix' => 'vc_roles[' . $role . '][' . $part . ']', 'controller' => vc_role_access()->who($role)->part($part), 'custom_value' => 'custom', 'capabilities' => WPBMap::getSortedAllShortCodes(), 'ignore_capabilities' => array('vc_gitem', 'vc_gitem_animated_block', 'vc_gitem_zone', 'vc_gitem_zone_a', 'vc_gitem_zone_b', 'vc_gitem_zone_c', 'vc_column', 'vc_row_inner', 'vc_column_inner', 'vc_posts_grid'), 'categories' => WPBMap::getCategories(), 'cap_types' => array(array('all', __('All', 'js_composer')), array('edit', __('Edit', 'js_composer'))), 'item_header_name' => __('Element', 'js_composer'), 'options' => array(array(true, __('All', 'js_composer')), array('edit', __('Edit only', 'js_composer')), array('custom', __('Custom', 'js_composer'))), 'main_label' => __('Elements', 'js_composer'), 'custom_label' => __('Elements', 'js_composer'), 'description' => __('Control user access to content elements.', 'js_composer'), 'use_table' => true));
开发者ID:arkev,项目名称:IntelligentMode,代码行数:6,代码来源:_shortcodes.tpl.php


示例19: json_encode

			vc_vendor_settings_presets = <?php 
echo json_encode($vc_vendor_settings_presets);
?>
,
			vc_settings_presets = <?php 
echo json_encode($vc_settings_presets);
?>
,
			vc_roles = [], // @todo fix_roles BC for roles
			vcAdminNonce = '<?php 
echo vc_generate_nonce('vc-admin-nonce');
?>
';
	</script>

<?php 
vc_include_template('editors/partials/vc_settings-image-block.tpl.php');
?>
	<div style="height: 1px; visibility: hidden; overflow: hidden;">
		<?php 
// Disable notice in edit-form-advanced.php
$is_IE = false;
require_once ABSPATH . 'wp-admin/edit-form-advanced.php';
// Fix: WP 4.0
wp_dequeue_script('editor-expand');
do_action('vc_frontend_editor_render_template');
?>
	</div>
<?php 
// other admin footer files and actions.
require_once $editor->adminFile('admin-footer.php');
开发者ID:ntngiri,项目名称:Wordpress-dhaba,代码行数:31,代码来源:frontend_editor.tpl.php


示例20: render

 /**
  *
  */
 public function render()
 {
     global $vc_row_layouts;
     vc_include_template('editors/popups/panel_edit_layout.tpl.php', array('vc_row_layouts' => $vc_row_layouts));
 }
开发者ID:Angelpm28,项目名称:ong-canada,代码行数:8,代码来源:class-vc-edit-layout.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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