X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftheme%2Fvier%2Ftheme.php;h=ebe4011e654b2b0fc9e1beb3050a2233bf378dd1;hb=6ac37e284dbba9c68bb440cd5f630d7096a90a50;hp=d5c5f9fd0a0a61892d6d7a321d538de8387966d7;hpb=0ec44f3e8a73229c3aadea86f61b5571a701c6b7;p=friendica.git
diff --git a/view/theme/vier/theme.php b/view/theme/vier/theme.php
index d5c5f9fd0a..ebe4011e65 100644
--- a/view/theme/vier/theme.php
+++ b/view/theme/vier/theme.php
@@ -12,62 +12,40 @@
use Friendica\App;
use Friendica\Content\ForumManager;
use Friendica\Core\Addon;
-use Friendica\Core\L10n;
use Friendica\Core\Config;
+use Friendica\Core\L10n;
use Friendica\Core\PConfig;
-use Friendica\Core\System;
+use Friendica\Core\Renderer;
+use Friendica\Core\Search;
use Friendica\Database\DBA;
+use Friendica\DI;
use Friendica\Model\Contact;
use Friendica\Model\GContact;
-use Friendica\Model\Profile;
-
-require_once "mod/proxy.php";
+use Friendica\Util\Proxy as ProxyUtils;
+use Friendica\Util\Strings;
function vier_init(App $a)
{
$a->theme_events_in_profile = false;
- $a->set_template_engine('smarty3');
+ Renderer::setActiveTemplateEngine('smarty3');
- if (!empty($a->argv[0]) && $a->argv[0] . defaults($a->argv, 1, '') === "profile".$a->user['nickname'] || $a->argv[0] === "network" && local_user()) {
+ if (!empty($a->argv[0]) && ($a->argv[0] . ($a->argv[1] ?? '')) === ('profile' . $a->user['nickname']) || $a->argv[0] === 'network' && local_user()) {
vier_community_info();
- $a->page['htmlhead'] .= "\n";
+ DI::page()['htmlhead'] .= "\n";
}
- if ($a->is_mobile || $a->is_tablet) {
- $a->page['htmlhead'] .= ''."\n";
- $a->page['htmlhead'] .= ''."\n";
+ if (DI::mode()->isMobile() || DI::mode()->isMobile()) {
+ DI::page()['htmlhead'] .= ''."\n";
+ DI::page()['htmlhead'] .= ''."\n";
}
/// @todo deactivated since it doesn't work with desktop browsers at the moment
- //$a->page['htmlhead'] .= ''."\n";
+ //DI::page()['htmlhead'] .= ''."\n";
- $a->page['htmlhead'] .= <<< EOT
+ DI::page()['htmlhead'] .= <<< EOT
EOT;
- if ($a->is_mobile || $a->is_tablet) {
- $a->page['htmlhead'] .= <<< EOT
+ if (DI::mode()->isMobile() || DI::mode()->isMobile()) {
+ DI::page()['htmlhead'] .= <<< EOT