<?php
/**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2022, the Friendica project
*
* @license GNU AGPL version 3 or any later version
*
class BaseSettings extends BaseModule
{
- public static function content()
+ public static function createAside()
{
- $a = DI::app();
-
$tpl = Renderer::getMarkupTemplate('settings/head.tpl');
DI::page()['htmlhead'] .= Renderer::replaceMacros($tpl, [
'$ispublic' => DI::l10n()->t('everybody')
'label' => DI::l10n()->t('Two-factor authentication'),
'url' => 'settings/2fa',
'selected' => ((DI::args()->getArgc() > 1) && (DI::args()->getArgv()[1] === '2fa') ? 'active' : ''),
- 'accesskey' => 'o',
+ 'accesskey' => '2',
];
$tabs[] = [
'$items' => $tabs,
]);
}
+
+ protected function content(array $request = []): string
+ {
+ $a = DI::app();
+
+ static::createAside();
+
+ return '';
+ }
}