protected function setDataCollectionFront($type)
    {
        $collection_id = $this->getStore("data.collection_$type");

        if (!empty($collection_id)) {
            $conditions = array('collection_id' => $collection_id);
            $options = array('imagestyle' => $this->configTheme("image_style_collection_$type"));
            $items = $this->getCollectionItems($conditions, array_filter($options), $this->collection_item);
            $this->setData("collection_$type", $this->getWidgetCollection($items));
        }
    }
protected function setDataCollectionFront($type)
    {
        $collection_id = $this->getStore("data.collection_$type");

        if (!empty($collection_id)) {
            $conditions = array('collection_id' => $collection_id);
            $options = array('imagestyle' => $this->configTheme("image_style_collection_$type"));
            $items = $this->getCollectionItems($conditions, array_filter($options), $this->collection_item);
            $this->setData("collection_$type", $this->getWidgetCollection($items));
        }
    }
protected function setDataCollectionFront ( $ type ) { $ collection_id = $ this -> getStore ( "data.collection_$type" ) ; if ( ! empty ( $ collection_id ) ) { $ conditions = array ( 'collection_id' => $ collection_id ) ; $ options = array ( 'imagestyle' => $ this -> configTheme ( "image_style_collection_$type" ) ) ; $ items = $ this -> getCollectionItems ( $ conditions , array_filter ( $ options ) , $ this -> collection_item ) ; $ this -> setData ( "collection_$type" , $ this -> getWidgetCollection ( $ items ) ) ; } }
Adds a collection block
@param string $type
Adds a collection block