Пример #1
0
 /**
  * Preparing global layout
  *
  * You can redefine this method in child classes for changin layout
  *
  * @return Ced_CsMarketplace_Block_Vendor_Abstract
  */
 protected function _prepareLayout()
 {
     Varien_Data_Form::setElementRenderer($this->getLayout()->createBlock('csmarketplace/widget_form_renderer_element'));
     Varien_Data_Form::setFieldsetRenderer($this->getLayout()->createBlock('csmarketplace/widget_form_renderer_fieldset'));
     Varien_Data_Form::setFieldsetElementRenderer($this->getLayout()->createBlock('csmarketplace/widget_form_renderer_fieldset_element'));
     return parent::_prepareLayout();
 }
Пример #2
0
 /**
  * prepare list layout
  *
  */
 protected function _prepareLayout()
 {
     parent::_prepareLayout();
     $pager = $this->getLayout()->createBlock('csmarketplace/html_pager', 'custom.pager');
     $pager->setAvailableLimit(array(5 => 5, 10 => 10, 20 => 20, 'all' => 'all'));
     $pager->setCollection($this->getVpayments());
     $this->setChild('pager', $pager);
     $this->getVpayments()->load();
     return $this;
 }
Пример #3
0
 /**
  * prepare product list layout
  *@return Ced_CsMarketplace_Block_Vproducts
  */
 protected function _prepareLayout()
 {
     parent::_prepareLayout();
     if ($this->_filtercollection) {
         if ($this->_filtercollection->getSize() > 0) {
             $pager = $this->getLayout()->createBlock('csmarketplace/html_pager', 'custom.pager');
             $pager->setAvailableLimit(array(5 => 5, 10 => 10, 20 => 20, 'all' => 'all'));
             $pager->setCollection($this->_filtercollection);
             $this->setChild('pager', $pager);
         }
     }
     return $this;
 }
Пример #4
0
 protected function _prepareLayout()
 {
     parent::_prepareLayout();
     $this->setChild('csmarketplace_vendor_navigation_statatics', $this->getLayout()->createBlock('csmarketplace/vendor_navigation_statatics', 'csmarketplace_vendor_navigation_statatics')->setTemplate('csmarketplace/vendor/navigation/statatics.phtml'));
     return $this;
 }