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


PHP Essential_Grid_Base::get_lb_source_order方法代码示例

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


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

示例1: array

// INIT POSTER IMAGE SOURCE ORDERS
if (intval($isCreate) > 0) {
    //currently editing, so default can be empty
    $poster_source_order = $base->getVar($grid['params'], 'poster-source-order', '');
} else {
    $poster_source_order = $base->getVar($grid['params'], 'poster-source-order', array('featured-image'));
}
$poster_source_list = $base->get_poster_source_order();
// INIT LIGHTBOX SOURCE ORDERS
if (intval($isCreate) > 0) {
    //currently editing, so default can be empty
    $lb_source_order = $base->getVar($grid['params'], 'lb-source-order', '');
} else {
    $lb_source_order = $base->getVar($grid['params'], 'lb-source-order', array('featured-image'));
}
$lb_source_list = $base->get_lb_source_order();
// INIT AJAX SOURCE ORDERS
if (intval($isCreate) > 0) {
    //currently editing, so default can be empty
    $aj_source_order = $base->getVar($grid['params'], 'aj-source-order', '');
} else {
    $aj_source_order = $base->getVar($grid['params'], 'aj-source-order', array('post-content'));
}
$aj_source_list = $base->get_aj_source_order();
$all_metas = $eg_meta->get_all_meta();
?>
	<!-- SETTINGS -->
	<form id="eg-form-create-settings">
		<!--
		GRID SETTINGS
		-->
开发者ID:Brandonsmith23,项目名称:prodgyr,代码行数:31,代码来源:grid-settings.php

示例2: apply_all_media_types

 /**
  * Apply all media types for custom grids that have not much settings
  * @since: 1.2.0
  */
 public function apply_all_media_types()
 {
     /**
      * Add settings that need to be set
      * - use all media sources, sorting does not matter since we only set one thing in each entry
      * - use all poster sources for videos, sorting does not matter since we only set one thing in each entry
      * - use all lightbox sources, sorting does not matter since we only set one thing in each entry
      */
     $media_orders = Essential_Grid_Base::get_media_source_order();
     foreach ($media_orders as $handle => $vals) {
         if ($handle == 'featured-image' || $handle == 'alternate-image') {
             continue;
         }
         $this->grid_postparams['media-source-order'][] = $handle;
     }
     $this->grid_postparams['media-source-order'][] = 'featured-image';
     //set this as the last entry
     $this->grid_postparams['media-source-order'][] = 'alternate-image';
     //set this as the last entry
     $poster_orders = Essential_Grid_Base::get_poster_source_order();
     foreach ($poster_orders as $handle => $vals) {
         $this->grid_params['poster-source-order'][] = $handle;
     }
     $lb_orders = Essential_Grid_Base::get_lb_source_order();
     foreach ($lb_orders as $handle => $vals) {
         $this->grid_params['lb-source-order'][] = $handle;
     }
 }
开发者ID:kfwebdev,项目名称:wp-atd,代码行数:32,代码来源:essential-grid.class.php


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