<?php
/**
- * @copyright Copyright (C) 2010-2022, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
*
* @license GNU AGPL version 3 or any later version
*
function vier_init(App $a)
{
- $a->setThemeInfoValue('events_in_profile', false);
-
Renderer::setActiveTemplateEngine('smarty3');
$args = DI::args();
// 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'] .= "<link rel='stylesheet' href='view/theme/vier/hide.css' />";
}
$url = DI::baseUrl();
$aside['$url'] = $url;
- // comunity_profiles
+ // community_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)) {
- $aside['$comunity_profiles_title'] = DI::l10n()->t('Community Profiles');
- $aside['$comunity_profiles_items'] = [];
+ $aside['$community_profiles_title'] = DI::l10n()->t('Community Profiles');
+ $aside['$community_profiles_items'] = [];
foreach ($contacts as $contact) {
$entry = Renderer::replaceMacros($tpl, [
'$photo' => Contact::getMicro($contact),
'$alt_text' => $contact['name'],
]);
- $aside['$comunity_profiles_items'][] = $entry;
+ $aside['$community_profiles_items'][] = $entry;
}
}
}