Skip to content

Commit

Permalink
add missing contributor template accessors: organisation, department,…
Browse files Browse the repository at this point in the history
… jobtitle
  • Loading branch information
eteubert committed Nov 29, 2018
1 parent 74b841d commit 3f2fbff
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
27 changes: 27 additions & 0 deletions lib/modules/contributors/template/contributor.php
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,33 @@ public function flattr_url() {
});
}

/**
* Affiliation: organisation
*
* @accessor
*/
public function organisation() {
return $this->contributor->organisation;
}

/**
* Affiliation: department
*
* @accessor
*/
public function department() {
return $this->contributor->department;
}

/**
* Affiliation: jobtitle
*
* @accessor
*/
public function jobtitle() {
return $this->contributor->jobtitle;
}

/**
* Episodes with this contributor
*
Expand Down
1 change: 1 addition & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ This product includes GeoLite2 data created by MaxMind, available from http://ww
* add warning when there might be too many form fields
* new PHP constant `PODLOVE_DISABLE_TAG_AND_CATEGORY_SEARCH` ([#1017](https://github.com/podlove/podlove-publisher/issues/1017))
* feed item limit: "1" is now an option
* add missing contributor template accessors: organisation, department, jobtitle

= 2.7.17 =

Expand Down

0 comments on commit 3f2fbff

Please sign in to comment.