本文整理汇总了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);
}
示例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;
}
示例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();
}
示例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();
?>
';