コード例 #1
0
 /**
  * Get the array of layout data.
  *
  * Plugins can filter this data with the exhibit_layouts filter.
  *
  * @return array
  */
 public static function getLayoutArray()
 {
     if (self::$layouts) {
         return self::$layouts;
     }
     $defaultLayouts = array('exhibit-openseadragon' => array('name' => __('OpenSeadraon'), 'description' => __('Features OpenSeadragon image view and text')), 'file-text' => array('name' => __('File with Text'), 'description' => __('Default layout features files justified to left or right with text displaying to the opposite side')), 'gallery' => array('name' => __('Gallery'), 'description' => __('A gallery layout featuring file thumbnails')), 'text' => array('name' => __('Text'), 'description' => __('Layout featuring a block of text without files')), 'file' => array('name' => __('File'), 'description' => __('Layout featuring a standalone file')));
     $layouts = apply_filters('exhibit_layouts', $defaultLayouts);
     self::$layouts = $layouts;
     return $layouts;
 }
コード例 #2
0
 /**
  * Get the array of layout data.
  *
  * Plugins can filter this data with the exhibit_layouts filter.
  *
  * @return array
  */
 public static function getLayoutArray()
 {
     if (self::$layouts) {
         return self::$layouts;
     }
     $defaultLayouts = array('file-text' => array('name' => __('File with Text'), 'description' => __('Default layout features files justified to left or right with text displaying to the opposite side')), 'contemporary-voice-header' => array('name' => __('Contemporary Voice Header Block'), 'description' => __('Pick photo, then header, then a block of text')), 'contemporary-voice' => array('name' => __('Contemporary Voice Body!'), 'description' => __('Layout intended for the body of Contemporary Voices')), 'contemporary-voice-header-youtube' => array('name' => __('Contemporary Voice Header w Youtube'), 'description' => __('For the Tubes of You')), 'gallery' => array('name' => __('Gallery'), 'description' => __('A gallery layout featuring file thumbnails')), 'text' => array('name' => __('Text'), 'description' => __('Layout featuring a block of text without files')), 'historic-voice-landing-header' => array('name' => __('Historic Voice Landing Page Header Block'), 'description' => __('Pick photo, then header, then a block of text')), 'historic-voice-interior-header' => array('name' => __('Historic Voice Interior Page Header Block'), 'description' => __('Pick photo, then header, then a block of text')), 'historic-voice-interior-header-fullpage' => array('name' => __('FULL PAGE Historic Voice Section Header'), 'description' => __('Pick photo, then header, then a block of text')), 'historic-voice-interior-header-fullpage-first' => array('name' => __('First Header on a Full-page Historic Voice Exhibit'), 'description' => __('Just text. Use HTML tags.')), 'historic-voice-header-youtube' => array('name' => __('Historic Voice Header w Youtube'), 'description' => __('For the Tubes of You')), 'historic-voice-body' => array('name' => __('Historic Voice Interior Page Body Block'), 'description' => __('Block of text. Items generated by slider.')), 'find-your-voice-header' => array('name' => __('Find Your Voice (Tutorial Header)'), 'description' => __('Pick photo, then header, then a block of text')), 'find-your-voice-body' => array('name' => __('Find Your Voice (Tutorial Body)'), 'description' => __('Pick photo, then header, then a block of text')));
     $layouts = apply_filters('exhibit_layouts', $defaultLayouts);
     self::$layouts = $layouts;
     return $layouts;
 }