コード例 #1
0
 public function column_realname($contributor)
 {
     $actions = array('edit' => Settings\GenericEntitySettings::get_action_link('contributor', $contributor->id, __('Edit', 'podlove')), 'delete' => Settings\GenericEntitySettings::get_action_link('contributor', $contributor->id, __('Delete', 'podlove'), 'confirm_delete'), 'list' => $this->get_episodes_link($contributor, __('Show Episodes', 'podlove')));
     return sprintf('<strong>%1$s</strong><br /><em>%2$s %3$s</em><br />%4$s', Settings\GenericEntitySettings::get_action_link('contributor', $contributor->id, $contributor->getName()), $contributor->realname, $contributor->nickname == "" ? "" : " (" . $contributor->nickname . ")", $this->row_actions($actions)) . '<input type="hidden" class="contributor_id" value="' . $contributor->id . '">';
 }
 public function column_title($role)
 {
     $actions = array('edit' => Settings\GenericEntitySettings::get_action_link('role', $role->id, __('Edit', 'podlove')), 'delete' => Settings\GenericEntitySettings::get_action_link('role', $role->id, __('Delete', 'podlove'), 'confirm_delete'));
     return sprintf('%1$s %2$s', Settings\GenericEntitySettings::get_action_link('role', $role->id, $role->title), $this->row_actions($actions)) . '<input type="hidden" class="role_id" value="' . $role->id . '">';
 }