public function getitems() { $items = array(); if ($album = @$this->options['album']) { if ($image = @$this->options['image']) { if (!is_array($image)) { $image = array($image); } foreach ($image as $filename) { $obj = newImage(NULL, array('folder' => $album, 'filename' => $filename), true); if ($obj->exists) { $items[] = $obj; } } } else { if (!is_array($album)) { $album = array($album); } foreach ($album as $folder) { $obj = newAlbum($folder, true); if ($obj->exists) { $items[] = $obj; } } } return $items; } if ($this->feedtype == 'news' && ($news = @$this->options['titlelink'])) { if (!is_array($news)) { $news = array($news); } foreach ($news as $article) { $obj = new ZenpageNews($article, false); if ($obj->loaded) { $items[] = array('titlelink' => $article); } } return $items; } if ($this->feedtype == 'pages' && ($pages = @$this->options['titlelink'])) { if (!is_array($pages)) { $pages = array($pages); } foreach ($pages as $page) { $obj = new ZenpagePage($page, false); if ($obj->loaded) { $items[] = array('titlelink' => $page); } } return $items; } return parent::getitems(); }