當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Vc_Grid_Item::shortcodes方法代碼示例

本文整理匯總了PHP中Vc_Grid_Item::shortcodes方法的典型用法代碼示例。如果您正苦於以下問題:PHP Vc_Grid_Item::shortcodes方法的具體用法?PHP Vc_Grid_Item::shortcodes怎麽用?PHP Vc_Grid_Item::shortcodes使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Vc_Grid_Item的用法示例。


在下文中一共展示了Vc_Grid_Item::shortcodes方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: setItemsIfEmpty

 public function setItemsIfEmpty($items)
 {
     if (empty($items)) {
         require_once vc_path_dir('PARAMS_DIR', 'vc_grid_item/class-vc-grid-item.php');
         $grid_item = new Vc_Grid_Item();
         $grid_item->setGridAttributes($this->atts);
         $grid_item->shortcodes();
         $item = '[vc_gitem]<img src="' . vc_asset_url('vc/vc_gitem_image.png') . '">[/vc_gitem]';
         $grid_item->parseTemplate($item);
         $items = str_repeat($grid_item->renderItem(get_post((int) vc_request_param('vc_post_id'))), 3);
     }
     return $items;
 }
開發者ID:Sibzsolutions,項目名稱:Schiffrinpa,代碼行數:13,代碼來源:vc-media-grid.php

示例2: vc_gitem_content_shortcodes

function vc_gitem_content_shortcodes()
{
    require_once vc_path_dir('PARAMS_DIR', 'vc_grid_item/class-vc-grid-item.php');
    $grid_item = new Vc_Grid_Item();
    $invalid_shortcodes = apply_filters('vc_gitem_zone_grid_item_not_content_shortcodes', array('vc_gitem', 'vc_gitem_animated_block', 'vc_gitem_zone', 'vc_gitem_zone_a', 'vc_gitem_zone_b', 'vc_gitem_zone_c', 'vc_gitem_row', 'vc_gitem_col'));
    return array_diff(array_keys($grid_item->shortcodes()), $invalid_shortcodes);
}
開發者ID:RDePoppe,項目名稱:luminaterealestate,代碼行數:7,代碼來源:vc-grid-item-editor.php

示例3: json_encode

<?php

if (!defined('ABSPATH')) {
    die('-1');
}
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->renderUITemplate();
$grid_item = new Vc_Grid_Item();
$shortcodes = $grid_item->shortcodes();
if (vc_user_access()->part('presets')->can()->get()) {
    require_once vc_path_dir('AUTOLOAD_DIR', 'class-vc-settings-presets.php');
    $vc_settings_presets = Vc_Settings_Preset::listDefaultSettingsPresets();
    $vc_vendor_settings_presets = Vc_Settings_Preset::listDefaultVendorSettingsPresets();
} else {
    $vc_settings_presets = array();
    $vc_vendor_settings_presets = array();
}
?>
	<script type="text/javascript">
		var vc_user_mapper = <?php 
echo json_encode(WpbMap_Grid_Item::getGitemUserShortCodes());
?>
,
			vc_mapper = <?php 
echo json_encode(WpbMap_Grid_Item::getShortCodes());
開發者ID:domalexxx,項目名稱:nashvancouver,代碼行數:31,代碼來源:vc_grid_item_editor_footer.tpl.php

示例4: shortcodes

 /**
  * Get shortcodes from param type vc_grid_item
  * @return array|bool
  */
 public function shortcodes()
 {
     $grid_item = new Vc_Grid_Item();
     return $grid_item->shortcodes();
 }
開發者ID:chicosilva,項目名稱:olharambiental,代碼行數:9,代碼來源:class-vc-add-element-box-grid-item.php


注:本文中的Vc_Grid_Item::shortcodes方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。