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