当前位置: 首页>>代码示例>>PHP>>正文


PHP vc_include_template函数代码示例

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


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


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