Example #1
0
        </div>
        <?php 
        $source_type = $sections->getSegmentSourceType($segment);
        if ($source_type === 'page') {
            $page_id = $sections->getSegmentPageID($segment);
            $page_obj = get_post($page_id);
            $content = $page_obj->post_content;
            ?>
            <p><?php 
            echo $content;
            ?>
</p>
<?php 
        } else {
            if ($source_type === 'showcase') {
                $sections->displaySegmentShowcase($segment);
            } else {
                $sections->displaySegmentSlider($segment);
            }
        }
        ?>
    </div>
</div>
<?php 
    }
} else {
    ?>
    <h1><?php 
    echo __('There are no options for this template saved', 'sage');
    ?>
</h1>