/** * @param THEME $obj * @access private */ protected function _draw_box($obj) { if ($this->is_chooser) { $this->_display_start_overlay_container(); $this->_display_start_bottom_right_overlay(); ?> <a class="button" href="#" onclick="set_main_theme ('<?php echo $obj->id; ?> '); return false;" title="Choose this theme"><?php echo $obj->title_as_html(); ?> </a> <?php $this->_display_finish_bottom_right_overlay(); $this->_draw_thumbnail($obj); $this->_display_finish_overlay_container(); } else { $this->_display_start_overlay_commands($obj); $this->_draw_thumbnail($obj); ?> <h3> <?php echo $obj->title_as_html(); ?> </h3> <?php $this->_display_finish_overlay_commands(); } }
/** * Outputs the object as HTML. * * @param THEME $obj */ protected function _display_as_html($obj) { ?> <h2><?php echo $obj->title_as_html(); ?> </h2> <p> <img src="<?php echo $obj->snapshot_thumbnail_name(); ?> " alt="<?php echo $obj->title_as_plain_text(); ?> "> </p> <div class="detail"> [<a href="<?php echo $obj->snapshot_name(); ?> ">full-size sample</a>] </div> <?php }