Exemplo n.º 1
0
 /**
  * Get contribution template row.
  *
  * @param array $row
  * @return array
  */
 protected function get_contribution_tpl_row($row)
 {
     $folder_img = $folder_alt = '';
     $contrib = $this->get_contrib($row);
     $this->display->topic_folder_img($folder_img, $folder_alt, 0, $this->tracking->is_unread(TITANIA_CONTRIB, $contrib->contrib_id, $contrib->contrib_last_update));
     return array('FOLDER_STYLE' => $folder_img, 'SUBSCRIPTION_AUTHOR_FULL' => \users_overlord::get_user($row['contrib_user_id'], '_full'), 'SUBSCRIPTION_CONTRIB_TYPE' => $contrib->type->lang, 'SUBSCRIPTION_DOWNLOADS' => $row['contrib_downloads'], 'SUBSCRIPTION_ID' => $row['contrib_id'], 'SUBSCRIPTION_TARGET' => $this->user->lang['SUBSCRIPTION_CONTRIB'], 'SUBSCRIPTION_TIME' => $this->user->format_date($row['contrib_last_update']), 'SUBSCRIPTION_TITLE' => $row['contrib_name'], 'SUBSCRIPTION_TYPE' => $row['watch_object_type'], 'SUBSCRIPTION_VIEWS' => $row['contrib_views'], 'U_VIEW_SUBSCRIPTION' => $this->get_real_url($contrib->get_url()), 'S_CONTRIB' => true);
 }
Exemplo n.º 2
0
 /**
  * Generate topic status
  */
 public function topic_folder_img(&$folder_img, &$folder_alt)
 {
     $this->display->topic_folder_img($folder_img, $folder_alt, $this->get_postcount(), $this->unread, $this->topic_posted, $this->topic_sticky, $this->topic_locked);
 }