X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftheme%2Fvier%2Ftheme.php;h=65612623d2d9200e7693e0d9f130db9641e45dbe;hb=3546f5b189891e9fc0f0338f8b691b991fa7a549;hp=2d313cb29edf46b52da1581733c518698842c084;hpb=0ac1c5fbf2a2ad64f90727d090ad849132465ed5;p=friendica.git diff --git a/view/theme/vier/theme.php b/view/theme/vier/theme.php index 2d313cb29e..65612623d2 100644 --- a/view/theme/vier/theme.php +++ b/view/theme/vier/theme.php @@ -42,8 +42,6 @@ use Friendica\Util\Strings; function vier_init(App $a) { - $a->setThemeInfoValue('events_in_profile', false); - Renderer::setActiveTemplateEngine('smarty3'); $args = DI::args(); @@ -106,7 +104,7 @@ EOT; // Hide the left menu bar /// @TODO maybe move this static array out where it should belong? - if (empty(DI::page()['aside']) && in_array($args->get(0), ["community", "events", "help", "delegation", "notifications", + if (empty(DI::page()['aside']) && in_array($args->get(0), ["community", "calendar", "help", "delegation", "notifications", "probe", "webfinger", "login", "invite", "credits"])) { DI::page()['htmlhead'] .= ""; } @@ -144,7 +142,7 @@ function vier_community_info() // comunity_profiles if ($show_profiles) { - $contacts = Contact\Relation::getSuggestions(DI::userSession()->getLocalUserId(), 0, 9); + $contacts = Contact\Relation::getCachedSuggestions(DI::userSession()->getLocalUserId(), 0, 9); $tpl = Renderer::getMarkupTemplate('ch_directory_item.tpl'); if (DBA::isResult($contacts)) { @@ -154,7 +152,7 @@ function vier_community_info() foreach ($contacts as $contact) { $entry = Renderer::replaceMacros($tpl, [ '$id' => $contact['id'], - '$profile_link' => 'follow/?url='.urlencode($contact['url']), + '$profile_link' => 'contact/follow?url=' . urlencode($contact['url']), '$photo' => Contact::getMicro($contact), '$alt_text' => $contact['name'], ]);