本文整理汇总了PHP中FeedItem::getRecentFocusFeedItems方法的典型用法代码示例。如果您正苦于以下问题:PHP FeedItem::getRecentFocusFeedItems方法的具体用法?PHP FeedItem::getRecentFocusFeedItems怎么用?PHP FeedItem::getRecentFocusFeedItems使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FeedItem
的用法示例。
在下文中一共展示了FeedItem::getRecentFocusFeedItems方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
$s_feed_rep .= $sp_feed;
$sp_feed = '';
}
$s_feeds = $skin->dressOn('feed_rep', $src_feed_rep, $s_feed_rep, $src_feeds);
} else {
$s_feeds = '';
}
$skin->dress('feed', $s_feeds);
$skin->replace('feedlist_url', $servicePath.'/feedlist/');
// 포커스 : ncloud
requireComponent('LZ.PHP.Media');
$src_focuses = $skin->cutSkinTag('focus');
$result = FeedItem::getRecentFocusFeedItems($skinConfig->focusList);
if(count($result) > 0) {
$s_focus_rep = '';
$src_focus_rep = $skin->cutSkinTag('focus_rep');
foreach($result as $item) {
$item['thumbnail'] = '';
if($media = Media::getMedia($item['thumbnailId'])) {
$item['thumbnail'] = $media['thumbnail'];
}
$src_thumbnail = $skin->cutSkinTag('cond_focus_thumbnail');
$thumbnailFile = Media::getMediaFile($item['thumbnail']);
if(!empty($thumbnailFile)) {
$s_thumbnail = (!Validator::is_empty($thumbnailFile)) ? $skin->parseTag('focus_thumbnail', $thumbnailFile, $src_thumbnail) : '';
$sp_focus = $skin->dressOn('cond_focus_thumbnail', $src_thumbnail, $s_thumbnail, $src_focus_rep);
示例2: getIssueFocus
//.........这里部分代码省略.........
?>
}
function issueFocusMouseOut() {
if(issueFocusTabIntervalId!=0) {
clearInterval(issueFocusTabIntervalId);
issueFocusTabIntervalId = 0;
}
}
</script>
<?php
$javascript = ob_get_contents();
ob_end_clean();
$skin->javascript($javascript);
if($config['issueType'] == 'auto') {
$issueTags = Tag::getIssueTags($config['issueCount']);
} else {
$issueTags = explode(',', $config['issueTag']);
foreach($issueTags as $key=>$tag) {
$issueTags[$key] = array('name'=>trim($tag));
}
}
ob_start();
?>
<div class="issueFocus">
<ul class="menu" onmouseout="issueFocusMouseOut();">
<?php
// 포커스
if($config['useFocus']) {
$focusFeedItems = FeedItem::getRecentFocusFeedItems($config['focusCount']);
?>
<li id="_issueFocus_focus_menu" class="selected _issueFocus_menu" onclick="goto('<?php echo $service['path'];?>/focus'); return false;" onmouseover="issueFocusMouseOverMenu('_issueFocus_focus');">포커스</li>
<?php
}
// 이슈태그
$index = 0;
foreach($issueTags as $key=>$tag) {
list($issueTags[$key]['feedItems'], $totalFeedItemCount) = FeedItem::getFeedItems('tag', $tag['name'], null, 1, $config['issueFeedCount']);
$index++;
?>
<li id="_issueFocus_<?php echo $index;?>_menu" class="<?php echo (!$config['useFocus']&&($index==1))?'selected ':'';?>_issueFocus_menu" onclick="goto('<?php echo $service['path'];?>/search/tag/<?php echo rawurlencode($tag['name']);?>'); return false;" onmouseover="issueFocusMouseOverMenu('_issueFocus_<?php echo $index;?>');" title="클릭하시면 태그검색이 가능합니다."><?php echo $tag['name'];?></li>
<?php
}
?>
</ul>
<div class="clear"></div>
<?php
// 포커스 내용
if($config['useFocus']) {
?>
<ul id="_issueFocus_focus_item" class="item _issueFocus_item viewed">
<?php
if(count($focusFeedItems)>0) {
foreach($focusFeedItems as $feedItem) {
$thumbnailFile = '';
if($media = Media::getMedia($feedItem['thumbnailId'])) {
$thumbnailFile = Media::getMediaFile($media['thumbnail']);
}