public function getTeaser() { $helper = new CString(); return $helper->truncate(strip_tags($this->content), Yii::app()->params['entryTeaserLength']); }
" width="150" height="150" /> </div> <div class="box-blog-2"> <a href="<?php echo $entry->href; ?> "> <span class="blog-title"><?php echo $entry->title; ?> </span> </a> <p> <?php $helper = new CString(); echo $helper->truncate(strip_tags($entry->content), Yii::app()->params['blogTeaserLength']); ?> </p> <a href="<?php echo $this->createUrl('entry/view', array('id' => $entry->getPrimaryKey())); ?> "><span id="style-for"><?php echo Yii::t('flexiblearn', 'Read more'); ?> </span></a> </div> </div><!--end-box-blog--> <?php } ?> <?php $this->widget('CLinkPager', array('pages' => $pages));