/** * Show search details for an object. * @param DRAFTABLE_ENTRY $obj * @access private */ protected function _echo_details($obj) { if ($obj->unpublished()) { parent::_echo_details($obj); } else { $this->_echo_user_information('Published by', $obj->publisher(), $obj->time_published); } }
/** * Show search details for an object. * @param PROJECT_ENTRY $obj * @access private */ protected function _echo_details($obj) { ?> <tr> <th>Kind</th> <td> <?php $props = $obj->kind_properties(); echo $this->context->get_icon_with_text($props->icon, Sixteen_px, $obj->kind_as_text()); ?> </td> </tr> <?php $comp = $obj->component(); if (isset($comp)) { ?> <tr> <th>Component</th> <td> <?php echo $this->app->get_icon_with_text($comp->icon_url, Sixteen_px, $comp->title_as_link()); ?> </td> </tr> <?php } parent::_echo_details($obj); }
/** * Show search details for an object. * @param JOURNAL $obj * @access private */ protected function _echo_details($obj) { parent::_echo_details($obj); ?> <tr> <th>Weather</th> <td> <?php $props = $obj->weather_icon_properties(); echo $this->context->get_icon_with_text($props->icon, Thirty_px, $obj->temperature_as_html()); ?> </td> </tr> <?php }