]> git.mxchange.org Git - friendica.git/blob - mod/credits.php
The first queries are replaced with the new functions. More to come ...
[friendica.git] / mod / credits.php
1 <?php
2
3 /**
4  * Show a credits page for all the developers who helped with the project
5  * (only contributors to the git repositories for friendica core and the
6  * addons repository will be listed though ATM)
7  */
8
9 use Friendica\App;
10
11 function credits_content(App $a) {
12         /* fill the page with credits */
13         $f = fopen('util/credits.txt', 'r');
14         $names = fread($f, filesize('util/credits.txt'));
15         $arr = explode("\n", htmlspecialchars($names));
16         fclose($f);
17         $tpl = get_markup_template('credits.tpl');
18         return replace_macros($tpl, array(
19                 '$title'  => t('Credits'),
20                 '$thanks' => t('Friendica is a community project, that would not be possible without the help of many people. Here is a list of those who have contributed to the code or the translation of Friendica. Thank you all!'),
21                 '$names'  => $arr,
22         ));
23 }