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


PHP Vc_Grid_Item::mapShortcodes方法代码示例

本文整理汇总了PHP中Vc_Grid_Item::mapShortcodes方法的典型用法代码示例。如果您正苦于以下问题:PHP Vc_Grid_Item::mapShortcodes方法的具体用法?PHP Vc_Grid_Item::mapShortcodes怎么用?PHP Vc_Grid_Item::mapShortcodes使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Vc_Grid_Item的用法示例。


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

示例1: vc_grid_item_map_shortcodes

/**
 * Map grid element shortcodes.
 *
 * @since 4.5
 */
function vc_grid_item_map_shortcodes()
{
    require_once vc_path_dir('PARAMS_DIR', 'vc_grid_item/class-vc-grid-item.php');
    $grid_item = new Vc_Grid_Item();
    $grid_item->mapShortcodes();
    vc_mapper()->setCheckForAccess(false);
}
开发者ID:RDePoppe,项目名称:luminaterealestate,代码行数:12,代码来源:vc-grid-item-editor.php

示例2: vc_grid_item_render_preview

/**
 *  Render preview for grid item
 * @since 4.4
 */
function vc_grid_item_render_preview()
{
    require_once vc_path_dir('PARAMS_DIR', 'vc_grid_item/class-vc-grid-item.php');
    $grid_item = new Vc_Grid_Item();
    $grid_item->mapShortcodes();
    require_once vc_path_dir('PARAMS_DIR', 'vc_grid_item/editor/class-vc-grid-item-preview.php');
    $vcGridPreview = new Vc_Grid_Item_Preview();
    add_filter('vc_gitem_template_attribute_post_image_background_image_css_value', array($vcGridPreview, 'addCssBackgroundImage'));
    add_filter('vc_gitem_template_attribute_post_image_url_value', array($vcGridPreview, 'addImageUrl'));
    $vcGridPreview->render();
    die;
}
开发者ID:rovak73,项目名称:sinfronterasdoc,代码行数:16,代码来源:vc-grid-item-editor.php

示例3: vc_grid_item_map_shortcodes

/**
 * Map grid element shortcodes.
 *
 * @since 4.5
 */
function vc_grid_item_map_shortcodes()
{
    require_once vc_path_dir('PARAMS_DIR', 'vc_grid_item/class-vc-grid-item.php');
    $grid_item = new Vc_Grid_Item();
    $grid_item->mapShortcodes();
}
开发者ID:lokenxo,项目名称:familygenerator,代码行数:11,代码来源:vc-grid-item-editor.php

示例4: json_encode

<?php

require_once vc_path_dir('PARAMS_DIR', 'vc_grid_item/editor/popups/class-vc-add-element-box-grid-item.php');
$add_element_box = new Vc_Add_Element_Box_Grid_Item();
$add_element_box->render();
// Edit form for mapped shortcode.
visual_composer()->editForm()->render();
require_once vc_path_dir('PARAMS_DIR', 'vc_grid_item/editor/popups/class-vc-templates-editor-grid-item.php');
$templates_editor = new Vc_Templates_Editor_Grid_Item();
$templates_editor->render();
require_once vc_path_dir('EDITORS_DIR', 'popups/class-vc-edit-layout.php');
$edit_layout = new Vc_Edit_Layout();
$edit_layout->render();
$grid_item = new Vc_Grid_Item();
$shortcodes = $grid_item->shortcodes();
$grid_item->mapShortcodes();
?>
<script type="text/javascript">
	var vc_user_mapper = <?php 
echo json_encode($shortcodes);
?>
,
		vc_mapper = <?php 
echo json_encode($shortcodes);
?>
,
		vc_frontend_enabled = false,
		vc_mode = '<?php 
echo vc_mode();
?>
';
开发者ID:chicosilva,项目名称:olharambiental,代码行数:31,代码来源:vc_grid_item_editor_footer.tpl.php


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