Ejemplo n.º 1
0
<?php

/// Copyright (c) 2004-2016, Needlworks  / Tatter Network Foundation
/// All rights reserved. Licensed under the GPL.
/// See the GNU General Public License for more details. (/documents/LICENSE, /documents/COPYRIGHT)
$IV = array('POST' => array('group' => array('int', 'min' => 0, 'default' => 0), 'feed' => array('int', 'min' => 0, 'default' => 0), 'unread' => array(array('0', '1')), 'starred' => array(array('0', '1')), 'keyword' => array('string', 'mandatory' => false)));
require ROOT . '/library/preprocessor.php';
$result = array('error' => '0');
ob_start();
$count = printFeedEntries($blogid, $_POST['group'], $_POST['feed'], $_POST['unread'] == '1', $_POST['starred'] == '1', $_POST['keyword'] == '' ? null : $_POST['keyword']);
$result['view'] = escapeCData(ob_get_contents());
ob_end_clean();
$entry = getFeedEntry($blogid, $_POST['group'], $_POST['feed'], 0, $_POST['unread'] == '1', $_POST['starred'] == '1', $_POST['keyword'] == '' ? null : $_POST['keyword']);
$result['firstEntryId'] = $entry['id'];
$result['entriesShown'] = $count;
$result['entriesTotal'] = getFeedEntriesTotalCount($blogid, $_POST['group'], $_POST['feed'], $_POST['unread'] == '1', $_POST['starred'] == '1', $_POST['keyword'] == '' ? null : $_POST['keyword']);
Respond::PrintResult($result);
Ejemplo n.º 2
0
echo _t('전체 목록');
?>
</span></a><span class="count">(<span id="entriesShown">0</span>/<span id="entriesTotal">0</span>)</span>
										<span class="hidden">|</span>
										<a id="iconMoreEntries" href="#void" onclick="Reader.listScroll(1); return false;" title="<?php 
echo _t('지나간 글 정보를 더 읽어옵니다.');
?>
"><span class="text"><?php 
echo _t('더 읽어오기');
?>
</span></a>
									</div>
									
									<div id="listup" class="section" onscroll="Reader.listScroll(0)">
<?php 
printFeedEntries($blogid, 0, 0, true);
?>
									</div>
									
									<div class="button-box">
										<a class="hide-button button" href="#void" onclick="Reader.showUnreadOnly(); return false;"><span class="text"><?php 
echo _t('읽은 글 감추기');
?>
</span></a>
										<span class="divider">-</span>
										<a class="markAsReadAll-button button" id="iconMarkAsReadAll" href="#void" onclick="Reader.markAsReadAll(); return false;" title="<?php 
echo _t('모든 글을 읽었다고 표시합니다.');
?>
"><span class="text"><?php 
echo _t('모두 읽은 글로 표시');
?>