/** * 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); }