From 23f16df112ffb3c9f9b4f2d7281e4cfc6ba7969c Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 13 Feb 2025 06:47:19 +0000 Subject: [PATCH 1/2] Set the page language --- view/php/minimal.php | 2 +- view/theme/frio/php/default.php | 2 +- view/theme/frio/php/minimal.php | 2 +- view/theme/frio/php/standard.php | 2 +- view/theme/smoothly/php/default.php | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/view/php/minimal.php b/view/php/minimal.php index 22f9bbeeaf..fec1d67716 100644 --- a/view/php/minimal.php +++ b/view/php/minimal.php @@ -13,7 +13,7 @@ ?> - + <?php if(!empty($page['title'])) echo $page['title'] ?> diff --git a/view/theme/frio/php/default.php b/view/theme/frio/php/default.php index bfceee0f66..d569b190ed 100644 --- a/view/theme/frio/php/default.php +++ b/view/theme/frio/php/default.php @@ -30,7 +30,7 @@ $view_mode_class = (DI::mode()->isMobile() || DI::mode()->isMobile()) ? 'mob $is_singleuser = DI::config()->get('system', 'singleuser'); $is_singleuser_class = $is_singleuser ? "is-singleuser" : "is-not-singleuser"; ?> - + <?php if (!empty($page['title'])) { echo $page['title']; diff --git a/view/theme/frio/php/minimal.php b/view/theme/frio/php/minimal.php index f75c6a6ac7..06c64d66d3 100644 --- a/view/theme/frio/php/minimal.php +++ b/view/theme/frio/php/minimal.php @@ -10,7 +10,7 @@ use Friendica\DI; ?> <!DOCTYPE html> -<html> +<html lang="<?php echo DI::l10n()->getCurrentLang(); ?>"> <head> <title><?php if(!empty($page['title'])) { echo $page['title']; diff --git a/view/theme/frio/php/standard.php b/view/theme/frio/php/standard.php index b8e6a125e3..bb9a0a4c7a 100644 --- a/view/theme/frio/php/standard.php +++ b/view/theme/frio/php/standard.php @@ -14,7 +14,7 @@ $frio = 'view/theme/frio'; ?> <!DOCTYPE html> -<html> +<html lang="<?php echo DI::l10n()->getCurrentLang(); ?>"> <head> <title><?php if(!empty($page['title'])) { echo $page['title']; diff --git a/view/theme/smoothly/php/default.php b/view/theme/smoothly/php/default.php index a496b8b19a..9b0f39c50e 100644 --- a/view/theme/smoothly/php/default.php +++ b/view/theme/smoothly/php/default.php @@ -7,7 +7,7 @@ */ ?> <!DOCTYPE html> -<html> +<html lang="<?php echo Friendica\DI::l10n()->getCurrentLang(); ?>"> <head> <title><?php if(!empty($page['title'])) echo $page['title'] ?> From cfb9a3a41c721086d94da34ab624589b6682cee0 Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 13 Feb 2025 06:55:10 +0000 Subject: [PATCH 2/2] Fix codestyle --- view/php/minimal.php | 12 ++++++--- view/theme/smoothly/php/default.php | 40 +++++++++++++++++++++-------- 2 files changed, 39 insertions(+), 13 deletions(-) diff --git a/view/php/minimal.php b/view/php/minimal.php index fec1d67716..595697ba88 100644 --- a/view/php/minimal.php +++ b/view/php/minimal.php @@ -15,12 +15,18 @@ - <?php if(!empty($page['title'])) echo $page['title'] ?> + <?php if(!empty($page['title'])) { + echo $page['title']; + } ?> - + -
+
diff --git a/view/theme/smoothly/php/default.php b/view/theme/smoothly/php/default.php index 9b0f39c50e..fff38e2ede 100644 --- a/view/theme/smoothly/php/default.php +++ b/view/theme/smoothly/php/default.php @@ -9,38 +9,56 @@ - <?php if(!empty($page['title'])) echo $page['title'] ?> + <?php if(!empty($page['title'])) { + echo $page['title']; + } ?> - +
- +
- + - +
- +
- +
- +
- + - +