]> git.mxchange.org Git - friendica.git/blob - src/Module/Credits.php
parameters now are having a default value and are optional
[friendica.git] / src / Module / Credits.php
1 <?php
2
3 namespace Friendica\Module;
4
5 use Friendica\BaseModule;
6 use Friendica\Core\L10n;
7 use Friendica\Core\Renderer;
8
9 /**
10  * Show a credits page for all the developers who helped with the project
11  * (only contributors to the git repositories for friendica core and the
12  * addons repository will be listed though ATM)
13  */
14 class Credits extends BaseModule
15 {
16         public static function content(array $parameters = [])
17         {
18                 /* fill the page with credits */
19                 $credits_string = file_get_contents('CREDITS.txt');
20
21                 $names = explode("\n", $credits_string);
22
23                 $tpl = Renderer::getMarkupTemplate('credits.tpl');
24                 return Renderer::replaceMacros($tpl, [
25                         '$title'  => L10n::t('Credits'),
26                         '$thanks' => L10n::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!'),
27                         '$names'  => $names,
28                 ]);
29         }
30 }