当前位置: 首页>>代码示例>>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;未经允许,请勿转载。