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); }
$info = Showcase::get_post_data($args['posttype'], $args['category'], $id); if (!empty($info)) { $data[] = $info; } } } } } ?> <?php if (!empty($data)) { // echo"<pre>";print_r($data);echo"</pre>"; ?> <div id="landing-showcase" class="landing-showcase"> <?php Showcase::displayComponent($args['component'], $data, $textimage_option); ?> </div> <?php } else { ?> <h3>Sorry! Currently there are no <?php echo __(ucfirst($args['category']), 'sage'); ?> </h3> <?php } ?> </div> </section> <!-- END Showcase Section -->
echo $layout['container_class']; ?> vertical segment" style="<?php echo $layout['container_style'] . $layout['content_color']; ?> "> <div class="ui <?php echo $layout['title_alignment']; ?> header" style="<?php echo $layout['title_color']; ?> "> <div class="page-header"> <h1><?php echo $layout['title']; ?> </h1> <?php echo !empty($layout['subtitle']) ? "<h3>" . $layout['subtitle'] . "</h3><br>" : ""; ?> </div> </div> <?php \Showcase::displayComponent($component, $showcase_data, $textimage_obj); ?> <br> <br> <br> </div> </section>