-
-
-function friendica_content(&$a) {
-
- $o = '';
- $o .= '<h3>Friendica</h3>';
-
-
- $o .= '<p></p><p>';
-
- $o .= t('This is Friendica, version') . ' ' . FRIENDICA_VERSION . ' ';
- $o .= t('running at web location') . ' ' . z_root() . '</p><p>';
-
- $o .= t('Please visit <a href="http://friendica.com">Friendica.com</a> to learn more about the Friendica project.') . '</p><p>';
-
- $o .= t('Bug reports and issues: please visit') . ' ' . '<a href="https://github.com/friendica/friendica/issues?state=open">'.t('the bugtracker at github').'</a></p><p>';
- $o .= t('Suggestions, praise, donations, etc. - please email "Info" at Friendica - dot com') . '</p>';
-
- $o .= '<p></p>';
-
- $visible_plugins = array();
- if(is_array($a->plugins) && count($a->plugins)) {
- $r = q("select * from addon where hidden = 0");
- if (dbm::is_result($r))
- foreach($r as $rr)
- $visible_plugins[] = $rr['name'];
+function friendica_content(App $a)
+{
+ $o = '<h1>Friendica</h1>' . PHP_EOL;
+ $o .= '<p>';
+ $o .= L10n::t('This is Friendica, version') . ' <strong>' . FRIENDICA_VERSION . '</strong> ';
+ $o .= L10n::t('running at web location') . ' ' . System::baseUrl();
+ $o .= '</p>' . PHP_EOL;
+
+ $o .= '<p>';
+ $o .= L10n::t('Please visit <a href="https://friendi.ca">Friendi.ca</a> to learn more about the Friendica project.') . PHP_EOL;
+ $o .= '</p>' . PHP_EOL;
+
+ $o .= '<p>';
+ $o .= L10n::t('Bug reports and issues: please visit') . ' ' . '<a href="https://github.com/friendica/friendica/issues?state=open">'.L10n::t('the bugtracker at github').'</a>';
+ $o .= '</p>' . PHP_EOL;
+ $o .= '<p>';
+ $o .= L10n::t('Suggestions, praise, donations, etc. - please email "Info" at Friendica - dot com');
+ $o .= '</p>' . PHP_EOL;
+
+ $visible_addons = [];
+ if (is_array($a->addons) && count($a->addons)) {
+ $r = q("SELECT * FROM `addon` WHERE `hidden` = 0");
+ if (DBM::is_result($r)) {
+ foreach ($r as $rr) {
+ $visible_addons[] = $rr['name'];
+ }
+ }