예제 #1
0
                    $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 -->
예제 #2
0
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>
예제 #3
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);
 }
예제 #4
0
 private function setShowcaseData()
 {
     $showcase['posttype'] = $this->content_settings['posttype'];
     $showcase['category'] = $this->content_settings['category'];
     $this->showcase_data = \Showcase::getData($showcase);
 }