Beispiel #1
0
 protected function _prepareLayout()
 {
     $head = $this->getLayout()->getBlock('head');
     $head->addCss('magiccart/plugin/css/jquery.bxslider.css');
     $head->addCss('magiccart/testimonial/css/testimonial.css');
     $head->addJs('magiccart/plugin/jquery.bxslider.js');
     return parent::_prepareLayout();
 }
Beispiel #2
0
 public function _prepareLayout()
 {
     parent::_prepareLayout();
     $this->getLayout()->getBlock('head')->setTitle($this->__('Testimonial'));
     $pager = $this->getLayout()->createBlock('page/html_pager', 'testimonial.pager');
     $perPage = $this->config['per_page'];
     $perPage = explode(',', $perPage);
     $perPage = array_combine($perPage, $perPage);
     $pager->setAvailableLimit($perPage);
     $pager->setCollection($this->getTestimonial());
     $this->setChild('pager', $pager);
     $this->getTestimonial()->load();
     return $this;
 }