當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。