コード例 #1
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>

コード例 #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-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>
コード例 #4
0
		<div class="tbox channelHot border">
			<?php 
$channelHot = DataSource::getContentByChannel(103, ['flag' => '64', 'limit' => 1]);
if (isset($channelHot[0])) {
    $hotContent = $channelHot[0];
    ?>
			<a href="<?php 
    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>
コード例 #5
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>