Esempio n. 1
0
 */
if (!defined('EVO_MAIN_INIT')) {
    die('Please, do not access this page directly.');
}
global $number_of_posts_in_cat, $cat;
if ($cat > 0) {
    // Init MainList
    $page = param('paged', 'integer', 1);
    $MainList = new ItemList2($Blog, $Blog->get_timestamp_min(), $Blog->get_timestamp_max(), $Blog->get_setting('posts_per_page'));
    $MainList->load_from_Request();
    $MainList->set_filters(array('cat_array' => array($cat), 'cat_modifier' => NULL, 'page' => $page));
    $MainList->query();
    $MainList->nav_target = $cat;
    // set navigation target, we are always navigating through category in this skin
    // Load read statuses if required
    $MainList->load_content_read_statuses();
    // Breadcrumbs
    $Skin->display_breadcrumbs($cat);
    ?>
<div class="post_panel">
<?php 
    // Buttons to post/reply
    $Skin->display_post_button($cat);
    // Page title
    $ChapterCache =& get_ChapterCache();
    if ($category =& $ChapterCache->get_by_ID($cat)) {
        // Display category title
        $category_name = $category->get('name');
        // $category_name is also used below
        echo '<h2 class="page_title">' . $category_name . '</h2>';
    }