Esempio n. 1
0
<?php

/// Copyright (c) 2004-2012, Needlworks  / Tatter Network Foundation
/// All rights reserved. Licensed under the GPL.
/// See the GNU General Public License for more details. (/documents/LICENSE, /documents/COPYRIGHT)
define('__TEXTCUBE_IPHONE__', true);
require ROOT . '/library/preprocessor.php';
requireView('iphoneView');
printMobileHTMLHeader();
printMobileHTMLMenu('', 'list');
$category = $suri['id'];
if (isset($category)) {
    $blog['entriesOnList'] = 8;
    if (!($listWithPaging = getEntriesWithPagingByCategory($blogid, $category, $suri['page'], $blog['entriesOnList'], 1))) {
        $listWithPaging = array(array(), array('total' => 0));
    }
    $list = array('title' => empty($suri['value']) ? getCategoryLabelById($blogid, 0) : $suri['value'], 'items' => $listWithPaging[0], 'count' => $listWithPaging[1]['total']);
    $paging = $listWithPaging[1];
    print printMobileEntryListView($list['items'], 'category_' . $suri['page'], $category == 0 ? _text('모든 카테고리') : ucwords(getCategoryNameById($blogid, $category)), $paging, $list['count']);
    print printMobileListNavigation($paging, 'category/' . $category);
}
Esempio n. 2
0
        if (!($listWithPaging = getEntryListWithPagingByCategory($blogid, $category, $suri['page'], $blog['entriesOnList']))) {
            $listWithPaging = array(array(), array('total' => 0));
        }
        $list = array('title' => empty($suri['value']) ? getCategoryLabelById($blogid, 0) : $suri['value'], 'items' => $listWithPaging[0], 'count' => $listWithPaging[1]['total'], 'category' => $category);
        $paging = $listWithPaging[1];
        $listView = null;
    } else {
        $paging = $cache->dbContents;
        $listView = $cache->contents;
    }
    require ROOT . '/interface/common/blog/list.php';
}
$entries = array();
if ($skinSetting['showListOnCategory'] != 2) {
    unset($cache);
    if ($skinSetting['showListOnCategory'] == 1) {
        $skinSetting['showListWithTotalEntries'] = true;
    }
    if ($skinSetting['showListOnCategory'] == 0) {
        require ROOT . '/interface/common/blog/begin.php';
    }
    if (!empty($keylogEntry)) {
        $entries = $keylogEntry;
        require ROOT . '/interface/common/blog/entries.php';
        unset($keylogEntry);
        unset($entries);
    }
    list($entries, $paging) = getEntriesWithPagingByCategory($blogid, $category, $suri['page'], $blog['entriesOnList'], $skinSetting['showListOnCategory'] == 3 ? $blog['entriesOnPage'] : $blog['entriesOnList']);
    require ROOT . '/interface/common/blog/entries.php';
}
require ROOT . '/interface/common/blog/end.php';