*
*/
-use Friendica\App;
+use Friendica\AppHelper;
use Friendica\Core\Renderer;
use Friendica\DI;
-function theme_content(App $a)
+function theme_content(AppHelper $appHelper)
{
if (!DI::userSession()->getLocalUserId()) {
return;
$colorset = DI::pConfig()->get(DI::userSession()->getLocalUserId(), 'duepuntozero', 'colorset');
$user = true;
- return clean_form($a, $colorset, $user);
+ return clean_form($appHelper, $colorset, $user);
}
-function theme_post(App $a)
+function theme_post(AppHelper $appHelper)
{
if (!DI::userSession()->getLocalUserId()) {
return;
}
}
-function theme_admin(App $a)
+function theme_admin(AppHelper $appHelper)
{
$colorset = DI::config()->get('duepuntozero', 'colorset');
$user = false;
- return clean_form($a, $colorset, $user);
+ return clean_form($appHelper, $colorset, $user);
}
-function theme_admin_post(App $a)
+function theme_admin_post(AppHelper $appHelper)
{
if (isset($_POST['duepuntozero-settings-submit'])) {
DI::config()->set('duepuntozero', 'colorset', $_POST['duepuntozero_colorset']);
}
}
-/// @TODO $a is no longer used
-function clean_form(App $a, &$colorset, $user)
+/// @TODO $appHelper is no longer used
+function clean_form(AppHelper $appHelper, &$colorset, $user)
{
$colorset = [
'default' => DI::l10n()->t('default'),
*
*/
-use Friendica\App;
+use Friendica\App\Mode;
+use Friendica\AppHelper;
use Friendica\Core\Renderer;
use Friendica\DI;
* This script can be included even when the app is in maintenance mode which requires us to avoid any config call
*/
-function duepuntozero_init(App $a) {
+function duepuntozero_init(AppHelper $appHelper) {
Renderer::setActiveTemplateEngine('smarty3');
$colorset = null;
- if (DI::mode()->has(App\Mode::MAINTENANCEDISABLED)) {
+ if (DI::mode()->has(Mode::MAINTENANCEDISABLED)) {
$colorset = DI::pConfig()->get(DI::userSession()->getLocalUserId(), 'duepuntozero', 'colorset');
if (!$colorset)
$colorset = DI::config()->get('duepuntozero', 'colorset'); // user setting have priority, then node settings
*
*/
-use Friendica\App;
+use Friendica\AppHelper;
use Friendica\Core\Renderer;
use Friendica\DI;
require_once 'view/theme/frio/php/Image.php';
require_once 'view/theme/frio/php/scheme.php';
-function theme_post(App $a)
+function theme_post(AppHelper $appHelper)
{
if (!DI::userSession()->getLocalUserId()) {
return;
*
*/
-use Friendica\App;
+use Friendica\AppHelper;
use Friendica\Core\Renderer;
use Friendica\DI;
-function theme_content(App $a) {
+function theme_content(AppHelper $appHelper) {
if (!DI::userSession()->getLocalUserId()) {
return;
}
$tfs = DI::pConfig()->get(DI::userSession()->getLocalUserId(),"quattro","tfs");
$pfs = DI::pConfig()->get(DI::userSession()->getLocalUserId(),"quattro","pfs");
- return quattro_form($a,$align, $color, $tfs, $pfs);
+ return quattro_form($appHelper,$align, $color, $tfs, $pfs);
}
-function theme_post(App $a) {
+function theme_post(AppHelper $appHelper) {
if (!DI::userSession()->getLocalUserId()) {
return;
}
}
}
-function theme_admin(App $a) {
+function theme_admin(AppHelper $appHelper) {
$align = DI::config()->get('quattro', 'align' );
$color = DI::config()->get('quattro', 'color' );
$tfs = DI::config()->get("quattro","tfs");
$pfs = DI::config()->get("quattro","pfs");
- return quattro_form($a,$align, $color, $tfs, $pfs);
+ return quattro_form($appHelper,$align, $color, $tfs, $pfs);
}
-function theme_admin_post(App $a) {
+function theme_admin_post(AppHelper $appHelper) {
if (isset($_POST['quattro-settings-submit'])){
DI::config()->set('quattro', 'align', $_POST['quattro_align']);
DI::config()->set('quattro', 'color', $_POST['quattro_color']);
}
/// @TODO $a is no longer used here
-function quattro_form(App $a, $align, $color, $tfs, $pfs) {
+function quattro_form(AppHelper $appHelper, $align, $color, $tfs, $pfs) {
$colors = [
"dark" => "Quattro",
"lilac" => "Lilac",
* Maintainer: Tobias <https://diekershoff.homeunix.net/friendica/profile/tobias>
*/
-use Friendica\App;
+use Friendica\AppHelper;
use Friendica\DI;
/*
* This script can be included even when the app is in maintenance mode which requires us to avoid any config call
*/
-function quattro_init(App $a) {
+function quattro_init(AppHelper $appHelper) {
DI::page()['htmlhead'] .= '<script src="'.DI::baseUrl().'/view/theme/quattro/tinycon.min.js"></script>';
DI::page()['htmlhead'] .= '<script src="'.DI::baseUrl().'/view/theme/quattro/js/quattro.js"></script>';;
}
* Screenshot: <a href="screenshot.png">Screenshot</a>
*/
-use Friendica\App;
+use Friendica\AppHelper;
use Friendica\Core\Renderer;
use Friendica\DI;
* This script can be included even when the app is in maintenance mode which requires us to avoid any config call
*/
-function smoothly_init(App $a) {
+function smoothly_init(AppHelper $appHelper) {
Renderer::setActiveTemplateEngine('smarty3');
$cssFile = null;
*
*/
-use Friendica\App;
+use Friendica\AppHelper;
use Friendica\Core\Renderer;
use Friendica\DI;
require_once __DIR__ . '/theme.php';
-function theme_content(App $a)
+function theme_content(AppHelper $appHelper)
{
if (!DI::userSession()->getLocalUserId()) {
return;
$show_friends = get_vier_config('show_friends', true);
$show_lastusers = get_vier_config('show_lastusers', true);
- return vier_form($a,$style, $show_pages, $show_profiles, $show_helpers,
+ return vier_form($appHelper,$style, $show_pages, $show_profiles, $show_helpers,
$show_services, $show_friends, $show_lastusers);
}
-function theme_post(App $a)
+function theme_post(AppHelper $appHelper)
{
if (!DI::userSession()->getLocalUserId()) {
return;
}
-function theme_admin(App $a) {
+function theme_admin(AppHelper $appHelper) {
if (!function_exists('get_vier_config'))
return;
$show_services = get_vier_config('show_services', true, true);
$show_friends = get_vier_config('show_friends', true, true);
$show_lastusers = get_vier_config('show_lastusers', true, true);
- $o .= vier_form($a,$style, $show_pages, $show_profiles, $show_helpers, $show_services,
+ $o .= vier_form($appHelper,$style, $show_pages, $show_profiles, $show_helpers, $show_services,
$show_friends, $show_lastusers);
return $o;
}
-function theme_admin_post(App $a) {
+function theme_admin_post(AppHelper $appHelper) {
if (isset($_POST['vier-settings-submit'])){
DI::config()->set('vier', 'style', $_POST['vier_style']);
DI::config()->set('vier', 'show_pages', $_POST['vier_show_pages']);
}
}
-/// @TODO $a is no longer used
-function vier_form(App $a, $style, $show_pages, $show_profiles, $show_helpers, $show_services, $show_friends, $show_lastusers) {
+/// @TODO $appHelper is no longer used
+function vier_form(AppHelper $appHelper, $style, $show_pages, $show_profiles, $show_helpers, $show_services, $show_friends, $show_lastusers) {
$styles = [
"breathe"=>"Breathe",
"netcolour"=>"Coloured Networks",