Plugin zur Darstellung des Personen- und Einrichtungsverzeichnis der FAU in Websites
- RRZE-Webteam, http://www.rrze.fau.de (Version 2.2 and later)
- Mondula, https://mondula.com/ (Version 1 - Version 2.1)
GNU General Public License (GPL) Version 3
See documenation at https://www.wp.rrze.fau.de
To get data from the plugin to use in other plugins or themes, the following filters are avaible.
-
rrze_faudir_get_target_url , input: FAUdir identifier, output: URL
Example usage:
$url = apply_filters('rrze_faudir_get_target_url', [], $identifier);
To add own overwrites:
add_filter('rrze_faudir_get_target_url', function($url, $identifier){ // z.B. eigene Routing-Logik, Sonderfälle, Tracking-Parameter … return $url; }, 20, 2);
Its also possible to make a direct function call in the following ways:
$url = \RRZE\FAUdir\Filters::get_target_url($identifier); // or, if wrapper is avaible: $url = function_exists('faudir_get_target_url') ? faudir_get_target_url($identifier) : '';
-
rrze_faudir_get_person_array , input: FAUdir identifier, output: Array with person data
Example usage:
$person = apply_filters('rrze_faudir_get_person_array', [], $identifier);
To add own overwrites:
add_filter('rrze_faudir_get_person_array', function(array $data, string $identifier) { return $data; }, 20, 2);
Its also possible to make a direct function call in the following ways:
$person = \RRZE\FAUdir\Filters::get_person_array($identifier); // or, if wrapper is avaible: $person = function_exists('faudir_get_person_array') ? faudir_get_person_array($identifier) : [];
-
Abhängig vom Theme werden die Filter
fau_elemental_copyright_info(beim Theme FAU Elemental )fau_copyright_info(bei allen anderen FAU-Themes)
gesetzt. Diese enthalten bei der Ausgabe von Personenbildern mit Copyright-Text den jeweiligen text und die Bild-ID