/**
     * Outputs the object as HTML.
     * @param JOURNAL $entry
     * @access private
     */
    protected function _display_as_html($entry)
    {
        /** @var ALBUM $folder */
        $folder = $entry->parent_folder();
        ?>
    <p class="date-time">
      <?php 
        echo $folder->format_date($entry->date);
        ?>
    </p>
    <?php 
        $props = $entry->weather_icon_properties();
        $this->context->start_icon_container($props->icon, Thirty_px);
        ?>
    <div>
      <?php 
        echo $entry->temperature_as_html();
        ?>
    </div>
    <div>
      <?php 
        echo $entry->weather_as_html();
        ?>
    </div>
    <?php 
        $this->context->finish_icon_container();
        ?>
    <div class="text-flow">
<?php 
        echo $entry->description_as_html();
        ?>
    </div>
<?php 
        $this->_echo_html_user_information($entry, 'info-box-bottom');
    }
Exemplo n.º 2
0
 /**
  * @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() . ' &ndash; ';
     }
     echo $obj->time_created->format();
     ?>
     </p>
   </div>
   <?php 
     $this->context->finish_icon_container();
     $this->_display_finish_minimal_commands_block();
 }