/** * @param JOURNAL $obj * @access private */ protected function _draw_box($obj) { /** @var ALBUM $folder */ $folder = $obj->parent_folder(); $this->_display_start_minimal_commands_block($obj); $props = $obj->weather_icon_properties(); $this->context->start_icon_container($props->icon, Thirty_px); ?> <h3> <?php if ($this->show_folder) { echo $folder->title_as_link() . $this->app->display_options->object_separator; } echo $this->obj_link($obj); ?> </h3> <p class="date-time"> <?php echo $folder->format_date($obj->date); ?> </p> <div class="text-flow"> <?php $munger = $obj->html_formatter(); $munger->max_visible_output_chars = 250; echo $obj->description_as_html($munger); ?> <p class="info-box-bottom"> <?php if ($this->show_user) { $creator = $obj->creator(); echo $creator->title_as_link() . ' – '; } echo $obj->time_created->format(); ?> </p> </div> <?php $this->context->finish_icon_container(); $this->_display_finish_minimal_commands_block(); }
/** * Draws the list of {@link PICTURE}s. * @param JOURNAL $obj * @param OBJECT_RENDERER_OPTIONS $options */ public function display($obj, $options = null) { $pic_query = $obj->picture_query(); $num_pics = $pic_query->size(); if ($num_pics) { ?> <h2> <?php echo $num_pics; ?> Pictures </h2> <div class="grid-content"> <?php $class_name = $this->app->final_class_name('PICTURE_GRID', 'albums/gui/picture_grid.php'); /** @var $grid PICTURE_GRID */ $grid = new $class_name($this->app); $grid->set_page_size(Default_page_size); $grid->set_query($pic_query); $grid->display(); ?> </div> <?php } parent::display($obj, $options); }