diff --git a/src/App/Page.php b/src/App/Page.php index 87493a67e4..ca83173184 100644 --- a/src/App/Page.php +++ b/src/App/Page.php @@ -356,6 +356,7 @@ class Page implements ArrayAccess $tpl = Renderer::getMarkupTemplate('footer.tpl'); $this->page['footer'] = Renderer::replaceMacros($tpl, [ '$footerScripts' => array_unique($this->footerScripts), + '$close' => $l10n->t('Close'), ]) . $this->page['footer']; } diff --git a/src/Content/Text/BBCode.php b/src/Content/Text/BBCode.php index f03dfa84be..2102b43a32 100644 --- a/src/Content/Text/BBCode.php +++ b/src/Content/Text/BBCode.php @@ -1583,7 +1583,7 @@ class BBCode // Check for headers if ($simple_html == self::INTERNAL) { - //Ensure to always start with

if possible + //Ensure to always start with

if possible $heading_count = 0; for ($level = 6; $level > 0; $level--) { if (preg_match("(\[h$level\].*?\[\/h$level\])ism", $text)) { @@ -1591,7 +1591,7 @@ class BBCode } } if ($heading_count > 0) { - $heading = min($heading_count + 3, 6); + $heading = min($heading_count + 2, 6); for ($level = 6; $level > 0; $level--) { if (preg_match("(\[h$level\].*?\[\/h$level\])ism", $text)) { $text = preg_replace("(\[h$level\](.*?)\[\/h$level\])ism", "

$1

", $text); diff --git a/src/Module/BaseProfile.php b/src/Module/BaseProfile.php index 2fab793152..c034287469 100644 --- a/src/Module/BaseProfile.php +++ b/src/Module/BaseProfile.php @@ -134,6 +134,6 @@ class BaseProfile extends BaseModule $tpl = Renderer::getMarkupTemplate('common_tabs.tpl'); - return Renderer::replaceMacros($tpl, ['$tabs' => $arr['tabs']]); + return Renderer::replaceMacros($tpl, ['$tabs' => $arr['tabs'], '$more' => DI::l10n()->t('More')]); } } diff --git a/src/Module/Calendar/Show.php b/src/Module/Calendar/Show.php index 0a55f7ada7..f808c9d50a 100644 --- a/src/Module/Calendar/Show.php +++ b/src/Module/Calendar/Show.php @@ -119,6 +119,8 @@ class Show extends BaseModule '$week' => $this->t('week'), '$day' => $this->t('day'), '$list' => $this->t('list'), + '$prev' => $this->t('prev'), + '$next' => $this->t('next'), ]); return $o; diff --git a/src/Module/Contact.php b/src/Module/Contact.php index b352648df7..e998160845 100644 --- a/src/Module/Contact.php +++ b/src/Module/Contact.php @@ -387,7 +387,7 @@ class Contact extends BaseModule ]; $tabs_tpl = Renderer::getMarkupTemplate('common_tabs.tpl'); - $tabs_html = Renderer::replaceMacros($tabs_tpl, ['$tabs' => $tabs]); + $tabs_html = Renderer::replaceMacros($tabs_tpl, ['$tabs' => $tabs, '$more' => DI::l10n()->t('More')]); switch ($rel) { case 'followers': @@ -534,7 +534,7 @@ class Contact extends BaseModule } $tab_tpl = Renderer::getMarkupTemplate('common_tabs.tpl'); - $tab_str = Renderer::replaceMacros($tab_tpl, ['$tabs' => $tabs]); + $tab_str = Renderer::replaceMacros($tab_tpl, ['$tabs' => $tabs, '$more' => DI::l10n()->t('More')]); return $tab_str; } diff --git a/src/Module/Conversation/Channel.php b/src/Module/Conversation/Channel.php index b711a58f4e..4c060b65d7 100644 --- a/src/Module/Conversation/Channel.php +++ b/src/Module/Conversation/Channel.php @@ -95,7 +95,7 @@ class Channel extends Timeline $tabs = array_merge($tabs, $this->getTabArray($this->community->getTimelines(true), 'channel')); $tab_tpl = Renderer::getMarkupTemplate('common_tabs.tpl'); - $o .= Renderer::replaceMacros($tab_tpl, ['$tabs' => $tabs]); + $o .= Renderer::replaceMacros($tab_tpl, ['$tabs' => $tabs, '$more' => $this->l10n->t('More')]); Nav::setSelected('channel'); diff --git a/src/Module/Conversation/Community.php b/src/Module/Conversation/Community.php index 375c86ee61..e3f75ddeaf 100644 --- a/src/Module/Conversation/Community.php +++ b/src/Module/Conversation/Community.php @@ -88,7 +88,7 @@ class Community extends Timeline if (!$this->raw) { $tabs = $this->getTabArray($this->community->getTimelines($this->session->isAuthenticated()), 'community'); $tab_tpl = Renderer::getMarkupTemplate('common_tabs.tpl'); - $o .= Renderer::replaceMacros($tab_tpl, ['$tabs' => $tabs]); + $o .= Renderer::replaceMacros($tab_tpl, ['$tabs' => $tabs, '$more' => $this->l10n->t('More')]); Nav::setSelected('community'); diff --git a/src/Module/Conversation/Network.php b/src/Module/Conversation/Network.php index bf8b0614a9..d94aeb6cde 100644 --- a/src/Module/Conversation/Network.php +++ b/src/Module/Conversation/Network.php @@ -292,7 +292,7 @@ class Network extends Timeline $tpl = Renderer::getMarkupTemplate('common_tabs.tpl'); - return Renderer::replaceMacros($tpl, ['$tabs' => $tabs]); + return Renderer::replaceMacros($tpl, ['$tabs' => $tabs, '$more' => $this->l10n->t('More')]); } protected function parseRequest(array $request) diff --git a/src/Module/Moderation/BaseUsers.php b/src/Module/Moderation/BaseUsers.php index 0123ce5bc8..fcf4b4aa16 100644 --- a/src/Module/Moderation/BaseUsers.php +++ b/src/Module/Moderation/BaseUsers.php @@ -99,7 +99,7 @@ abstract class BaseUsers extends BaseModeration Hook::callAll('moderation_users_tabs', $tabs_arr); $tpl = Renderer::getMarkupTemplate('common_tabs.tpl'); - return Renderer::replaceMacros($tpl, ['$tabs' => $tabs_arr['tabs']]); + return Renderer::replaceMacros($tpl, ['$tabs' => $tabs_arr['tabs'], '$more' => $this->t('More')]); } protected function setupUserCallback(): \Closure diff --git a/src/Object/Post.php b/src/Object/Post.php index aafe1b305b..363ad5e7a9 100644 --- a/src/Object/Post.php +++ b/src/Object/Post.php @@ -498,8 +498,10 @@ class Post } $languages = []; + $language = ''; if (!empty($item['language'])) { $languages = DI::l10n()->t('Languages'); + $language = array_key_first(json_decode($item['language'], true)); } if (in_array($item['private'], [Item::PUBLIC, Item::UNLISTED]) && in_array($item['network'], Protocol::FEDERATED)) { @@ -579,6 +581,7 @@ class Post 'tagger' => $tagger, 'filer' => $filer, 'language' => $languages, + 'lang' => $language, 'searchtext' => DI::l10n()->t('Search Text'), 'drop' => $drop, 'block' => $block, diff --git a/tests/src/Content/Text/BBCodeTest.php b/tests/src/Content/Text/BBCodeTest.php index 6d6c610762..4757200000 100644 --- a/tests/src/Content/Text/BBCodeTest.php +++ b/tests/src/Content/Text/BBCodeTest.php @@ -248,11 +248,11 @@ Karl Marx - Die ursprüngliche Akkumulation 'text' => '[emoji=https://fedi.underscore.world/emoji/custom/custom/heart_nb.png]:heart_nb:[/emoji]', ], 'task-12900-multiple-paragraphs' => [ - 'expectedHTML' => '

Header

This is a paragraph
with a line feed.

Second Chapter

', + 'expectedHTML' => '

Header

This is a paragraph
with a line feed.

Second Chapter

', 'text' => "[h4]Header[/h4][ul][li]One[li]Two[/ul]\n\nThis is a paragraph\nwith a line feed.\n\nSecond Chapter", ], 'task-12900-header-with-paragraphs' => [ - 'expectedHTML' => '

Header

Some Chapter

', + 'expectedHTML' => '

Header

Some Chapter

', 'text' => '[h4]Header[/h4]Some Chapter', ], 'bug-12842-ul-newlines' => [ diff --git a/view/theme/frio/css/style.css b/view/theme/frio/css/style.css index ddcb9abef6..811f9afc4f 100644 --- a/view/theme/frio/css/style.css +++ b/view/theme/frio/css/style.css @@ -1806,7 +1806,8 @@ blockquote.shared_content { } /* wall items contact info */ -.media .media-body h4.media-heading { +.media .media-body h1.media-heading, +.media .media-body h2.media-heading { font-size: 14px; font-weight: 500; color: $font_color_darker; @@ -2604,7 +2605,7 @@ ul.viewcontact_wrapper > li { .contact-entry-checkbox { margin-top: -20px; } -.contact-wrapper .media-body .contact-entry-name h4.media-heading a { +.contact-wrapper .media-body .contact-entry-name h1.media-heading a { font-weight: bold !important; color: $link_color; font-size: 15px !important; @@ -2706,10 +2707,10 @@ ul li:hover .contact-wrapper .contact-action-link:hover { #circle-update-wrapper .shortmode .contact-entry-desc { font-size: 12px !important; } -#circle-update-wrapper .shortmode .contact-entry-desc h4.media-heading { +#circle-update-wrapper .shortmode .contact-entry-desc h1.media-heading { margin: 0; } -#circle-update-wrapper .shortmode .contact-entry-desc h4.media-heading a { +#circle-update-wrapper .shortmode .contact-entry-desc h1.media-heading a { font-size: 13px !important; white-space: nowrap; } diff --git a/view/theme/frio/php/default.php b/view/theme/frio/php/default.php index 0f79ca718e..a0d67b474f 100644 --- a/view/theme/frio/php/default.php +++ b/view/theme/frio/php/default.php @@ -67,7 +67,7 @@ $is_singleuser_class = $is_singleuser ? "is-singleuser" : "is-not-singleuser"; "> - t('Skip to main content'); ?> + t('Skip to main content'); ?> @@ -27,7 +30,7 @@