protected function getWidgetCollection(array $items)
    {
        if (empty($items)) {
            return '';
        }

        $item = reset($items);

        $data = array(
            'items' => $items,
            'title' => $item['collection_item']['collection_title'],
            'collection_id' => $item['collection_item']['collection_id']
        );

        return $this->render($item['collection_handler']['template']['list'], $data, true);
    }
protected function getWidgetCollection(array $items)
    {
        if (empty($items)) {
            return '';
        }

        $item = reset($items);

        $data = array(
            'items' => $items,
            'title' => $item['collection_item']['collection_title'],
            'collection_id' => $item['collection_item']['collection_id']
        );

        return $this->render($item['collection_handler']['template']['list'], $data, true);
    }
protected function getWidgetCollection ( array $ items ) { if ( empty ( $ items ) ) { return '' ; } $ item = reset ( $ items ) ; $ data = array ( 'items' => $ items , 'title' => $ item [ 'collection_item' ] [ 'collection_title' ] , 'collection_id' => $ item [ 'collection_item' ] [ 'collection_id' ] ) ; return $ this -> render ( $ item [ 'collection_handler' ] [ 'template' ] [ 'list' ] , $ data , true ) ; }
Returns a rendered collection
@param array $items
@return string
Returns a rendered collection