/** * Outputs the object as HTML. * @param RECIPE $entry * @access private */ protected function _display_as_html($entry) { if ($entry->originator) { ?> <p>From the kitchen of <span class="field"><?php echo $entry->originator_as_html(); ?> </span>.</p> <?php } ?> <?php $this->_echo_html_description($entry); ?> <?php if (!$this->_options->preferred_text_length) { ?> <div class="columns text-flow"> <div> <h3>Ingredients</h3> <?php echo $entry->ingredients_as_html(); ?> </div> <div> <h3>Instructions</h3> <?php echo $entry->instructions_as_html(); ?> </div> </div> <?php } $this->_echo_html_user_information($entry, 'info-box-bottom'); }
/** * @param RECIPE $obj * @access private */ protected function _draw_box($obj) { $folder = $obj->parent_folder(); $this->_display_start_minimal_commands_block($obj); ?> <h3> <?php if ($this->show_folder) { echo $folder->title_as_link() . $this->app->display_options->object_separator; } echo $this->obj_link($obj); ?> </h3> <div class="info-box-top"> <?php if ($this->show_user) { $creator = $obj->creator(); echo $creator->title_as_link() . ' – '; } echo $obj->time_created->format(); ?> </div> <?php if ($this->show_description) { ?> <div class="text-flow"> <?php if ($obj->originator) { ?> <p> From the kitchen of <em><?php echo $obj->originator; ?> </em> </p> <?php } if ($obj->description && !$this->items_are_selectable) { echo $obj->description_as_html(); } ?> </div> <?php } $this->_display_finish_minimal_commands_block(); }