示例#1
0
?>
</a>
								</p><!-- auther -->
                                                                <h6 class=" clearfix">
                                                                        <small>
                                                                        <?php 
echo CHtml::encode($data->getCatName());
?>
                                                                        |
                                                                        <?php 
echo CHtml::encode($data->popularity);
?>
 views
                                                                        | 
                                                                        <span class="timeago" title="<?php 
echo CHtml::encode(DTHelper::dtStrToISO8601($data->created_datetime));
?>
"></span>
                                                                       </small>
                                                                </h6>
								<ul class="textOverflow tagContainer">
									<?php 
$tagLinks_arr = $data->getTagsLink();
foreach ($tagLinks_arr as $tagLink) {
    echo '<li>' . $tagLink . '</li>';
}
?>
								</ul><!-- tag -->
							</div><!-- left col-->
						</div>
					</div>
示例#2
0
文件: view.php 项目: kittolau/gcm
<?php

/* @var $this IllustController */
/* @var $model Illust */
$this->openGraphTitle = CHtml::encode($model->title) . '@graphic_site';
$this->openGraphDescription = CHtml::encode($model->product_summary);
$this->openGraphType = "article";
$this->openGraphURL = Yii::app()->createAbsoluteUrl('groupProduct/view', array('id' => $model->id));
$this->openGraphSiteName = "graphic_site.net";
$absoluteIMGPath = array();
foreach ($model->getAllSrc() as $relativeIMGPath) {
    array_push($absoluteIMGPath, 'http://graphic_site.net/' . $relativeIMGPath);
}
$this->openGraphImageArray = $absoluteIMGPath;
$this->openGraphArticleTagArray = $model->getEventTitleArray();
$this->openGraphArticlePublishedTime = DTHelper::dtStrToISO8601($model->created_datetime);
//$this->openGraphArticleAuthor = $model->getFirstOwner()->nickname;
$this->openGraphArticleSection = $model->getCatName();
$ownedGroup = $model->getOwnedGroup();
$this->pageTitle = CHtml::encode($model->title) . "(" . CHtml::encode($ownedGroup->group_name) . ") - 販賣情報 - ";
?>
<!-- group product part -->
<div class="col-12 col-lg-12">
        <ul class="pager">
                <li class="previous"><?php 
echo $model->getOlderGroupProductLink();
?>
</li>
                <li class="next"><?php 
echo $model->getNewerGroupProductLink();
?>