Skip to content

Commit

Permalink
refs #1649 : category view is modified.
Browse files Browse the repository at this point in the history
  • Loading branch information
inureyes committed Feb 28, 2014
1 parent 4da808c commit f511b0b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions interface/i/category/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,17 @@
define('__TEXTCUBE_IPHONE__', true);
require ROOT . '/library/preprocessor.php';
requireView('iphoneView');
$context = Model_Context::getInstance();
printMobileHTMLHeader();
printMobileHTMLMenu('','list');
$category = $suri['id'];
if(isset($category)) {
$blog['entriesOnList'] = 8;
if(!$listWithPaging = getEntriesWithPagingByCategory($blogid, $category, $suri['page'], $blog['entriesOnList'],1))
if(!$listWithPaging = getEntriesWithPagingByCategory($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']);
$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);
if ($context->getProperty('blog.entriesOnList') < $list['count']) print printMobileListNavigation($paging,'category/' . $category);
}
?>

0 comments on commit f511b0b

Please sign in to comment.