X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftheme%2Fvier%2Ftheme.php;h=c1562983812416cab64d99939fbf78051582ee94;hb=458e26b00a6f762e16772fa8abac711c19182508;hp=e5d71bdf578545b13157a9f926f8c79de81b6a06;hpb=8b836189d473ef9ba752b4119ecd7eb042c0ad17;p=friendica.git
diff --git a/view/theme/vier/theme.php b/view/theme/vier/theme.php
index e5d71bdf57..c156298381 100644
--- a/view/theme/vier/theme.php
+++ b/view/theme/vier/theme.php
@@ -12,37 +12,36 @@
use Friendica\App;
use Friendica\Content\ForumManager;
use Friendica\Core\Addon;
-use Friendica\Core\Config;
-use Friendica\Core\L10n;
-use Friendica\Core\PConfig;
use Friendica\Core\Renderer;
-use Friendica\Core\System;
+use Friendica\Core\Search;
use Friendica\Database\DBA;
+use Friendica\DI;
use Friendica\Model\Contact;
-use Friendica\Model\GContact;
-use Friendica\Util\Proxy as ProxyUtils;
use Friendica\Util\Strings;
function vier_init(App $a)
{
- $a->theme_events_in_profile = false;
+ $a->setThemeInfoValue('events_in_profile', false);
Renderer::setActiveTemplateEngine('smarty3');
- if (!empty($a->argv[0]) && ($a->argv[0] . ($a->argv[1] ?? '')) === ('profile' . $a->user['nickname']) || $a->argv[0] === 'network' && local_user()) {
+ $args = DI::args();
+
+ if ($args->get(0) === 'profile' && $args->get(1) === ($a->getLoggedInUserNickname() ?? '') || $args->get(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