Exemplo n.º 1
0
$style = $index % 2 === 0 ? ' floatLeft' : ' floatRight';
?>
	<div class="tbox border <?php 
echo $style;
?>
" style="width:49%;">
		<div class="middleTitle2">
			<h2><?php 
echo UrlUtility::getChannelLink($channel['id']);
?>
</h2>
		</div>
		<ul class="imgTxtContent1 size95x95">
			<?php 
$dataSource = DataSource::getContentByChannel($channel['id'], ['is_pic' => true, 'limit' => 1]);
echo LoopData::widget(['dataSource' => $dataSource, 'item' => 'item-imgtxt1', 'length' => 13]);
?>
        </ul>
		<ul class="txtContent dot">
			<?php 
echo LoopData::widget(['dataSource' => $row, 'length' => 18]);
?>
		</ul>
	</div>
<?php 
if ($index % 2 === 1) {
    echo '<div class="clear"></div>';
}
?>

Exemplo n.º 2
0
            </div>

            <div class="tbox dot">
            	<div class="middleTitle2">
                    <h2><?php 
echo $this->getChannelUrl(106);
?>
</h2>
                </div>
                <div class="ad">
                    <a href="http://forum.china.com.cn/hot/jf/"><img src="http://images.china.cn/attachement/jpg/site1000/20140606/7427ea210a0214fb640305.jpg" border="0" width="307" height="64" style="margin:0 0 15px 2px;" alt="《交锋》栏目" /></a>
                </div>
                <ul class="txtContent">
            		<?php 
$dataSource = DataSource::getContentByChannel(106, ['limit' => 2]);
echo LoopData::widget(['dataSource' => $dataSource]);
?>
				</ul>
            </div>
        </div>
    </div>
    <div class="clear"></div>
    <div class="container column">
        <div class="bigTitle">
            <h2>
                <a href="">时政社会</a>
            </h2>
            <span>
                <!--begin 8020594-7183244-1-->
                <a title="" href="tw/node_7185034.htm" target="_blank">台湾</a>︱<a title="" href="gangao/node_7185033.htm" target="_blank">港澳</a>︱<a title="" href="env/node_7185031.htm" target="_blank">环境</a>︱<a title="" href="http://photostock.china.com.cn/Web_CHN/default.aspx" target="_blank">图片库</a>︱<a title="" href="http://opinion.china.com.cn/lib_opinion_0_1.html" target="_blank">观点库</a>
                <!--end 8020594-7183244-1-->
Exemplo n.º 3
0
	
	            <li><a href="2014-06/30/content_32807283.htm">湖北大冶液化气站发生爆燃 已造成8人受伤</a></li>
	
	            <li><a href="2014-06/30/content_32807212.htm">甘肃计划生育工作者不到岗长期在外打工被通报</a></li>
	
	            <li><a href="shehui/2014-06/30/content_32807637.htm">河南村民修下水道挖出三尊元末明初汉白玉雕像(图)</a></li>
	        </ul>
	    </div>
	    <div class="tbox border dot">
	        <div class="middleTitle3">
	            <h2><a href="node_7183298.htm" target="_blank" class="">最新更新</a></h2>
	        </div>
	        <ul class="txtContent">
	        	<?php 
$dataSource = DataSource::getContentByChannel($chnid, ['order' => 'publish_time desc']);
echo LoopData::widget(['dataSource' => $dataSource, 'params' => ['length' => 19]]);
?>
	        </ul>
	    </div>
	    <div class="tbox border">
	        
	        <div class="ad">
	        	<img alt="" src="<?php 
echo CommonUtility::getThemeUrl();
?>
/images/ad2.png">
	        </div>
	    </div>
	</div>
</div>
Exemplo n.º 4
0
use components\widgets\LoopData;
use common\includes\DataSource;
use common\models\PageCategory;
/**
 * @var yii\web\View $this
 * @var yii\data\ActiveDataProvider $dataProvider
 * @var common\models\search\PageSearch $searchModel
 */
?>

<div class="container">
	<div class="columnMain">
		<div class="tbox border page-list ">
			<ul class="txtContent dot">
				<?php 
echo LoopData::widget(['dataSource' => $rows, 'item' => 'page-empty']);
?>
			</ul>
			<div class="floatRight">
				<?php 
echo LinkPager::widget(['pagination' => $pages]);
?>
			</div>
		</div>
	</div>
	<div class="columnRight">
		<div class="tbox border">
	        <div class="middleTitle3">
	            <h2>页面分类</h2>
	        </div>
	        <ul class="txtContent">
Exemplo n.º 5
0
?>
	        </ul>
	    </div>	    
            <div class="tbox border">
                <div class="middleTitle3">
                    <h2><a href="xxx">图片新闻</a></h2>
                </div>
                <ul class="imgContent w120">
	                <?php 
$dataSource = DataSource::getContentByChannel(103, ['is_pic' => true, 'limit' => 4]);
echo LoopData::widget(['dataSource' => $dataSource, 'item' => 'item-img', 'length' => 19]);
?>
	        	
                </ul>
            </div>	    
	    <div class="tbox border dot">
	        <div class="middleTitle3">
	            <h2><a href="node_7183298.htm" target="_blank" class="">热点评论</a></h2>
	        </div>
	        <ul class="txtContent">
	        	<?php 
$dataSource = DataSource::getContentByChannel($chnid, ['order' => 'commonts desc']);
echo LoopData::widget(['dataSource' => $dataSource, 'length' => 19]);
?>
	        </ul>
	       
	    </div>	
	</div>
</div>