Пример #1
0
 public function displaySegmentShowcase($segment)
 {
     $showcase_options = $segment['content_source_options']['showcase_options'];
     $showcase['posttype'] = $showcase_options['posttype'];
     $showcase['category'] = $showcase_options['category'];
     $component = $showcase_options['component'];
     $data = \Showcase::getData($showcase);
     $textimage = array();
     $textimage_options = $segment['content_source_options']['showcase_options']['textimage_options'];
     if (isset($textimage_options) && !empty($textimage_options)) {
         $textimage = $textimage_options;
     }
     $textimage_object = new Textimage($textimage);
     \Showcase::displayComponent($component, $data, $textimage_object);
 }
Пример #2
0
 private function setShowcaseData()
 {
     $showcase['posttype'] = $this->content_settings['posttype'];
     $showcase['category'] = $this->content_settings['category'];
     $this->showcase_data = \Showcase::getData($showcase);
 }