本文整理汇总了PHP中FeedItem::getRecentFeedItemsByFeed方法的典型用法代码示例。如果您正苦于以下问题:PHP FeedItem::getRecentFeedItemsByFeed方法的具体用法?PHP FeedItem::getRecentFeedItemsByFeed怎么用?PHP FeedItem::getRecentFeedItemsByFeed使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FeedItem
的用法示例。
在下文中一共展示了FeedItem::getRecentFeedItemsByFeed方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: drawAdminBoxBegin
</div> <!-- sidebar close -->
<div class="contents">
<div class="contents_item">
<?php echo drawAdminBoxBegin('recent_feed_n_item');?>
<!-- 최근 글.. -->
<?php
if($is_admin) {
$feedItems = FeedItem::getRecentFeedItems(10);
} else {
list($feeds, $totalFeedCount) = Feed::getFeedsByOwner(getLoggedId(), 'all');
$feedIds = array();
foreach($feeds as $feed) {
array_push($feedIds, $feed['id']);
}
$feedItems = FeedItem::getRecentFeedItemsByFeed($feedIds, 10);
}
?>
<div class="contents_in_item1">
<div class="more_wrap">
<div class="title"><?php echo _t('최근 글');?></div>
<div class="more">
<a href="<?php echo $service['path'];?>/admin/blog/entrylist"><?php echo _t('더보기..');?></a>
</div>
<div class="clear"></div>
</div>
<div class="line"></div>
<div class="data">
<ul>
<?php
if(count($feedItems)>0) {
示例2:
$sp_feeds = $skin->parseTag('feeds_title', $event->on('Text.feedTitle', UTF8::lessenAsByte($feed['title'], $skinConfig->feedListPageTitleLength)), $sp_feeds);
if(!empty($feedlogoFile)) {
$sp_feeds = $skin->parseTag('feed_logo_exist', 'feed_logo_exist', $sp_feeds);
} else {
$sp_feeds = $skin->parseTag('feed_logo_exist', 'feed_logo_nonexistence', $sp_feeds);
}
$s_feedrecent = '';
$src_feedrecent = $skin->cutSkinTag('feedrecent');
$src_feedrecent_rep = $skin->cutSkinTag('feedrecent_rep');
$s_feedrecent_rep = '';
if ($recents = FeedItem::getRecentFeedItemsByFeed($feed['id'], $skinConfig->feedListRecentFeedList)) {
$sp_feedrecent_rep = '';
foreach($recents as $recent) {
$link_url = $config->addressType == 'id' ? $service['path'].'/go/'.$recent['id'] : $service['path'].'/go/'.$recent['permalink'];
$recent['thumbnail'] = '';
if($media = Media::getMedia($recent['thumbnailId'])) {
$recent['thumbnail'] = $media['thumbnail'];
}
$src_thumbnail = $skin->cutSkinTag('cond_thumbnail', $src_feedrecent_rep);
$thumbnailFile = $event->on('Text.postThumbnail', Media::getMediaFile($recent['thumbnail']));
if(!empty($thumbnailFile)) {
$s_thumbnail = (!Validator::is_empty($thumbnailFile)) ? $skin->parseTag('feeds_recent_thumbnail', $thumbnailFile, $src_thumbnail) : '';
$s_feedrecent_rep = $skin->dressOn('cond_thumbnail', $src_thumbnail, $s_thumbnail, $src_feedrecent_rep);