public static function get_image_feeds_div($tags, $number_of_feeds, $number_of_items_per_feed) { $feeds = FeedAggregator_DatabaseHelper::get_feeds_for_all_tags($tags, NULL, 0, $number_of_feeds); $div = new HTMLTags_Div(); foreach ($feeds as $feed) { $feed['items'] = FeedAggregator_DatabaseHelper::get_items_for_feed_id($feed['id'], NULL, 0, $number_of_items_per_feed); $div->append(FeedAggregator_DisplayHelper::get_images_only_feed_div($feed)); } return $div; }
protected function render_edit_something_form_ol() { $acm = $this->get_admin_crud_manager(); echo "<ol>\n"; $this->render_edit_something_form_li_text_input('name'); $this->render_edit_something_form_li_text_input('title'); $this->render_edit_something_form_li_text_input('description'); $this->render_edit_something_form_li_text_input('url'); $this->render_edit_something_form_li_text_input('format'); $this->render_edit_something_form_li_text_input('sort_order'); echo '<fieldset class="tags-fieldset" id="tags-fieldset"><legend>Tags</legend>'; echo '<li><label for="tags">Tags</label>'; echo '<input type="text" name="tags" id="tags" value ="'; echo FeedAggregator_DisplayHelper::get_tags_csv_string(FeedAggregator_DatabaseHelper::get_tags_for_feed_id($_GET['id'])); echo '" />'; echo $this->get_tags_list_for_form(); echo "</ol>\n"; echo $this->get_form_help_message(); }
public function get_item_div() { return FeedAggregator_DisplayHelper::get_item_div($this->get_item()); }