當前位置: 首頁>>代碼示例>>PHP>>正文


PHP FeedItem::getRecentFocusFeedItems方法代碼示例

本文整理匯總了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);		
開發者ID:ncloud,項目名稱:bloglounge,代碼行數:31,代碼來源:skin.begin.php

示例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']);
			}
開發者ID:ncloud,項目名稱:bloglounge,代碼行數:66,代碼來源:index.php


注:本文中的FeedItem::getRecentFocusFeedItems方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。