This is the script i am using i two areas , but the goal is not the same
Code:
[php]
utime($data->start,false),‘medium’,false); ?>
echo CHtml::link($data->name,url(’/deal/view’,array(‘url’=>$data->url)));
?>
<?php echo $data->stats && $data->stats->bought?$data->stats->bought:'0'; ?>
<?php echo $this->t('Coupons Bought'); ?>
<?php echo $this->t('Price').':'; ?>
<?php echo m('payment')->format($data->price); ?>
<?php echo $this->t('Value').':'; ?>
<?php echo m('payment')->format($data->value); ?>
<?php echo $this->t('Savings').':'; ?>
<?php echo m('payment')->format($data->value-$data->price); ?>
if($data->imageBin)
echo CHtml::link(
CHtml::image(app()->storage->bin($data->imageBin)->getFileUrl(‘original’)),
url(’/deal/view’,array(‘url’=>$data->url))
);
?>
Only change:
div class=‘allDeal’ to div class=‘recentDeal’
This is the good:
http://kupon.woano.lv/deal/recent
and the same code in other place looks ugly
http://kupon.woano.lv/deal/all
What i am doing wrong