/** * Outputs the object as plain text. * @param ALBUM $obj * @access private */ protected function _display_as_plain_text($obj) { if (!$obj->is_organizational()) { $f = $obj->first_day->formatter(); $f->clear_flags(); echo $this->line($obj->format_date($obj->first_day, $f) . ' - ' . $obj->format_date($obj->last_day, $f)); } parent::_display_as_plain_text($obj); }
/** * @param ALBUM $obj * @access private */ protected function _draw_box($obj) { $main_pic = $obj->main_picture(); if ($main_pic) { $f = $main_pic->date->formatter(); $f->show_CSS = false; $pic_title = $main_pic->title_as_plain_text() . " (" . $obj->format_date($main_pic->date, $f) . ")"; ?> <h3> <?php echo $obj->title_as_html(); ?> </h3> <?php $this->_display_start_overlay_commands($obj); ?> <div> <a href="view_folder.php?<?php echo "id={$obj->id}"; ?> "><img src="<?php echo $main_pic->full_thumbnail_name(); ?> " title="<?php echo $pic_title; ?> " alt="<?php echo $pic_title; ?> "></a> </div> <?php $this->_display_finish_overlay_commands(); } else { $this->_display_start_minimal_commands_block($obj); ?> <h3> <?php echo $obj->title_as_html(); ?> </h3> <p> <a href="view_folder.php?<?php echo "id={$obj->id}"; ?> "><?php echo $obj->title; ?> </a> </p> <?php $this->_display_finish_minimal_commands_block(); } ?> <p class="detail"> <?php if ($obj->is_multi_day()) { echo $obj->format_date($obj->first_day) . ' - ' . $obj->format_date($obj->last_day); } else { echo $obj->format_date($obj->first_day); } ?> </p> <div class="text-flow multi-column-grid-description"> <?php echo $obj->summary_as_html(); ?> </div> <?php }