?> /<?php echo $data->getFirstImgSrc(); ?> " alt="post image"> </div> </a> </div><!-- right thumbnail col --> <div class="col-xs-7 col-sm-6 "> <h4 class="textOverflow forceInline" title="<?php echo CHtml::encode($data->title); ?> "> <b><a href="<?php echo $this->createUrl('groupProduct/view', SeoHelper::groupProductViewSEORouteArrayParam($data)); ?> "> <?php echo CHtml::encode($data->title); ?> </a> </b> </h4><!-- title --> <?php $ownedGroup = $data->getOwnedGroup(); ?> <p class="textOverflow forceInline"> By 組織 <?php echo CHtml::link(CHtml::encode($ownedGroup->group_name), SeoHelper::groupViewSEORouteArray($ownedGroup), array('title' => CHtml::encode($ownedGroup->group_name))); ?>
public function getNewerGroupProductLink() { $groupProduct_arr = $this->getNewerGroupProduct(); if (count($groupProduct_arr) == 0) { return ''; } $groupProduct = $groupProduct_arr[0]; $link = CHtml::link(CHtml::encode('下一張作品: ' . $groupProduct->title), SeoHelper::groupProductViewSEORouteArrayParam($groupProduct)); return $link; }
<div class="list-group panel panel-default userBelongGroupPanel"> <div class="panel-heading list-group-item text-center hidden-xs"> <h4> <span class="pull-left">最受歡迎販賣品</span> <span class="clearfix"></span> </h4> </div><!-- header --> <ul class="list-group"> <?php $mostPopularIllust = $mostPopularNonR18GroupProduct; foreach ($mostPopularIllust as $illust) { $illustURL = Yii::app()->createUrl('groupProduct/view', SeoHelper::groupProductViewSEORouteArrayParam($illust)); ?> <a href="<?php echo $illustURL; ?> " class="list-group-item"> <div class="media"> <div class="pull-left" rel="tooltip" title="<?php echo CHtml::encode($illust->title); ?> " href="<?php echo $illustURL; ?> " data-original-title="<?php echo CHtml::encode($illust->title); ?> "> <div style="height:60px;width:60px;">