/**
  * Returns the content for non slider widgets
  *
  * @return string
  * 
  * @author Sebastian Diel <*****@*****.**>
  * @since 30.05.2012
  */
 public function ElementsContent()
 {
     return $this->customise(array('Elements' => $this->Elements()))->renderWith(SilvercartWidgetTools::getGroupViewTemplateName($this));
 }
 /**
  * Returns a number of products from the chosen productgroup.
  * 
  * @return ArrayList
  * 
  * @author Sebastian Diel <*****@*****.**>
  * @since 27.03.2012
  */
 public function ProductPages()
 {
     if (is_null($this->elements)) {
         $this->Elements();
         $pages = array();
         $pageProducts = array();
         $pageNr = 0;
         $PageProductIdx = 1;
         $isFirst = true;
         if ($this->elements) {
             foreach ($this->elements as $product) {
                 $product->addCartFormIdentifier = $this->ID . '_' . $product->ID;
                 $pageProducts[] = $product;
                 $PageProductIdx++;
                 if ($pageNr > 0) {
                     $isFirst = false;
                 }
                 if ($PageProductIdx > $this->numberOfProductsToShow) {
                     $pages['Page' . $pageNr] = array('Elements' => new ArrayList($pageProducts), 'IsFirst' => $isFirst);
                     $PageProductIdx = 1;
                     $pageProducts = array();
                     $pageNr++;
                 }
             }
         }
         if (!array_key_exists('Page' . $pageNr, $pages) && !empty($pageProducts)) {
             if ($pageNr > 0) {
                 $isFirst = false;
             }
             $pages['Page' . $pageNr] = array('Elements' => new ArrayList($pageProducts), 'IsFirst' => $isFirst);
         }
         $this->elements = new ArrayList($pages);
     } else {
         foreach ($this->elements as $page) {
             $page->Content = Controller::curr()->customise($page)->renderWith(SilvercartWidgetTools::getGroupViewTemplateName($this));
         }
     }
     return $this->elements;
 }