示例#1
0
 function get_template_part($path, $separator = false)
 {
     $path = $this->get_path_file($path);
     if (file_exists($path)) {
         if (!$separator) {
             JS_Helper::get_header();
         }
         ob_start();
         include $path;
         $page_content = ob_get_contents();
         ob_end_clean();
         echo $page_content;
         if (!$separator) {
             JS_Helper::get_footer(true);
         }
     } else {
         echo 'Could not found the template.';
     }
 }
示例#2
0
                        <a href="<?php 
echo site_url('search');
?>
">ADVANCED SEARCH <i class="icon icon-more"></i></a>
                    </div>
                </div>
            </div> <!-- /end banner search form -->

            <div class="clearfix"></div>

            <div class="container">
                <div class="list-items thumbs-grid">
                    <div class="list-items-header">
                        <h2 class="pull-left">Latest Jobssnaps</h2>
                        <button class="btn btn-danger pull-right" onclick="document.location.href='<?php 
echo site_url('jobssnaps');
?>
'">View All Jobssnaps</button>
                    </div>
                    <?php 
$_js_helper->import_view('jobs');
$listing = new JS_View_Jobs();
$listing->display('jobs.list', true);
?>
                </div>
            </div>
        </div>
        <!-- /#main-content -->
<?php 
JS_Helper::get_footer(true);