Beispiel #1
0
 public function about()
 {
     Builder::set_title(get_string('pages', 'about_title'));
     Builder::add_meta('robots', 'none', TRUE);
     $nav = array();
     $nav[get_string('url_naming', 'home')] = '';
     $nav[get_string('url_naming', 'about')] = 'home/about';
     //------------------Total page------------
     $path = get_article_path('about');
     $page = array();
     $page['nav'] =& $nav;
     $page['content'] = $this->view($path, array(), TRUE);
     $this->view('frontend/frontend', $page);
 }
}
if (!empty($following)) {
    echo '<a class="button" style="float:right;" href="' . $following . '" > ' . get_string('pages', 'next') . ' &#8594;</a>';
}
echo '<br class="clear" />';
?>
    <header>
        <div class="last-creation"><?php 
echo get_string('pages', 'last-creation'), $creation;
?>
</div>
        <br class="clear" />
        <h1>
            <?php 
echo $header;
?>
        </h1>
    </header>
    <?php 
echo $this->view(get_article_path($id, $type), array(), TRUE);
?>
    <?php 
echo '<br class="clear" />';
if (!empty($previous)) {
    echo '<a class="button" style="float:left;" href="' . $previous . '" >&#8592; ' . get_string('pages', 'prev') . '</a>';
}
if (!empty($following)) {
    echo '<a class="button" style="float:right;" href="' . $following . '" >' . get_string('pages', 'next') . ' &#8594;</a>';
}
?>
</article>