コード例 #1
0
use common\includes\DataSource;
use common\includes\UrlUtility;
use common\includes\CommonUtility;
?>

<?php 
$channel = $this->getChannel($id);
$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>
コード例 #2
0
ファイル: item.php プロジェクト: dw250100785/lulucms
<?php

use yii\helpers\Html;
use components\helpers\TTimeHelper;
use common\includes\UrlUtility;
?>
<li><?php 
echo UrlUtility::getContentLink($row, $length);
?>
<span class="time"><?php 
TTimeHelper::showTime($row['publish_time'], 'm-d');
?>
</span></li>
コード例 #3
0
ファイル: item-imgtxt2.php プロジェクト: dw250100785/lulucms
<?php

use yii\helpers\Html;
use yii\helpers\Url;
use common\includes\UrlUtility;
?>
<li>
<h4><?php 
echo UrlUtility::getContentLink($row, $length);
?>
</h4>
<a href="<?php 
echo UrlUtility::getContentUrl($row);
?>
">
	<img src="http://images.china.cn/attachement/jpg/site1000/20140629/d02788e9b6d41519f4ac0b.jpg" border="0" alt="<?php 
echo $row['title'];
?>
" />
</a>
<p><?php 
echo UrlUtility::getContentLink($row, 0, ['title' => $row['summary']]);
?>
</p>
</li>

コード例 #4
0
    echo UrlUtility::getContentUrl($hotContent);
    ?>
">
				<img src="<?php 
    echo CommonUtility::getTitlePic($hotContent);
    ?>
" style="width:380px;"></a>
			<h2><?php 
    echo UrlUtility::getContentLink($hotContent);
    ?>
</h2>
			<p style="width:260px;"><?php 
    echo TStringHelper::subStr($hotContent['summary'], 100);
    ?>
				<a href="<?php 
    echo UrlUtility::getContentUrl($hotContent);
    ?>
">[详细]</a></p>		
			<?php 
}
?>
		
		</div>
		<div class="clear"></div>
		<div class="content-channel">
			<?php 
echo LoopData::widget(['dataSource' => $dataList, 'item' => 'item-subchannel']);
?>
		</div>
	</div>
	<div class="columnRight">
コード例 #5
0
ファイル: item-bold.php プロジェクト: dw250100785/lulucms
<?php

use yii\helpers\Html;
use common\includes\UrlUtility;
$boldStyle = '';
if ($index % 5 === 0) {
    $boldStyle = ' class="bold"';
}
?>
<li <?php 
echo $boldStyle;
?>
><?php 
echo UrlUtility::getContentLink($row);
?>
</li>
コード例 #6
0
ファイル: item-img.php プロジェクト: dw250100785/lulucms
<?php

use yii\helpers\Html;
use yii\helpers\Url;
use common\includes\CommonUtility;
use common\includes\UrlUtility;
?>
<li>
	<a href="<?php 
echo UrlUtility::getContentUrl($row);
?>
">
		<img src="<?php 
echo CommonUtility::getTitlePic($row);
?>
" border="0" width="135px" height="100px" alt="<?php 
echo $row['title'];
?>
" /></a>
	<?php 
echo UrlUtility::getContentLink($row, $length, ['class' => 'txt']);
?>
</li>
コード例 #7
0
ファイル: index_.php プロジェクト: bzboy/lulucms
echo UrlUtility::getChannelLink(105);
?>
</h2>
                </div>
                <ul class="txtContent">
            		<?php 
$dataSource = DataSource::getContentByChannel(105, ['limit' => 5]);
echo LoopData::widget(['dataSource' => $dataSource]);
?>
				</ul>
            </div>

            <div class="tbox dot">
            	<div class="middleTitle2">
                    <h2><?php 
echo UrlUtility::getChannelLink(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>
コード例 #8
0
ファイル: page-empty.php プロジェクト: dw250100785/lulucms
<?php

use yii\helpers\Html;
use components\helpers\TTimeHelper;
use common\includes\UrlUtility;
?>

<li><?php 
echo UrlUtility::getPageLink($row);
?>
<span class="time"><?php 
TTimeHelper::showTime($row['publish_time'], 'm-d');
?>
</span></li>
<?php 
if (($index + 1) % 5 === 0) {
    echo '<li class="empty">&nbsp;</li>';
}
?>