diff --git a/docs/.vitepress/locales/el.js b/docs/.vitepress/locales/el.js index 2a2705ab..9b1ff704 100644 --- a/docs/.vitepress/locales/el.js +++ b/docs/.vitepress/locales/el.js @@ -8,29 +8,29 @@ export default { nav: [ { text: 'Αρχική', - link: '/', + link: '/' }, { text: 'Εισαγωγή', - link: '/intro', + link: '/intro' }, { text: 'Παραδείγματα', - link: '/examples', + link: '/examples' }, { - text: 'Παρουσίαση', - link: 'https://demo.dragomano.ru/', + text: 'Δοκιμή', + link: 'https://demo.dragomano.ru/' }, { text: 'Καταγραφή αλλαγών', - link: '/changelog', - }, + link: '/changelog' + } ], outline: { label: 'Σε αυτήν την σελίδα' }, docFooter: { prev: 'Προηγούμενη σελίδα', - next: 'Επόμενη σελίδα', + next: 'Επόμενη σελίδα' }, darkModeSwitchLabel: 'Εμφάνιση', lightModeSwitchTitle: 'Εναλλαγή σε φωτεινό θέμα', @@ -40,17 +40,16 @@ export default { langMenuLabel: 'Αλλαγή γλώσσας', notFound: { title: 'Η ΣΕΛΙΔΑ ΔΕΝ ΒΡΕΘΗΚΕ', - quote: - 'Αλλά αν δεν αλλάξετε κατεύθυνση και αν συνεχίσετε να ψάχνετε, μπορεί να καταλήξετε εκεί που πηγαίνετε.', + quote: 'Αλλά αν δεν αλλάξετε κατεύθυνση και αν συνεχίσετε να ψάχνετε, μπορεί να καταλήξετε εκεί που πηγαίνετε.', linkLabel: 'πήγαινε στην αρχική', - linkText: 'Πήγαινε με στην αρχική', + linkText: 'Πήγαινε με στην αρχική' }, search: { options: { translations: { button: { buttonText: 'Αναζήτηση', - buttonAriaLabel: 'Αναζήτηση', + buttonAriaLabel: 'Αναζήτηση' }, modal: { displayDetails: 'Εμφάνιση λεπτομερούς λίστας', @@ -60,11 +59,11 @@ export default { footer: { selectText: 'επέλεξε', navigateText: 'να πλοηγηθείς', - closeText: 'να κλείσεις', - }, - }, - }, - }, - }, - }, -}; + closeText: 'να κλείσεις' + } + } + } + } + } + } +}; \ No newline at end of file diff --git a/docs/.vitepress/locales/it.js b/docs/.vitepress/locales/it.js index 04630d38..0458ab95 100644 --- a/docs/.vitepress/locales/it.js +++ b/docs/.vitepress/locales/it.js @@ -8,29 +8,29 @@ export default { nav: [ { text: 'Inizio', - link: '/', + link: '/' }, { text: 'Introduzione', - link: '/intro', + link: '/intro' }, { text: 'Esempi', - link: '/examples', + link: '/examples' }, { text: 'Demo', - link: 'https://demo.dragomano.ru/', + link: 'https://demo.dragomano.ru/' }, { text: 'Changelog', - link: '/changelog', - }, + link: '/changelog' + } ], outline: { label: 'In questa pagina' }, docFooter: { prev: 'Pagina precedente', - next: 'Pagina successiva', + next: 'Pagina successiva' }, darkModeSwitchLabel: 'Aspetto', lightModeSwitchTitle: 'Passa al tema chiaro', @@ -40,17 +40,16 @@ export default { langMenuLabel: 'Cambia lingua', notFound: { title: 'PAGINA NON TROVATA', - quote: - 'Ma se non cambi direzione e se continui a guardare, potresti finire dove stai andando.', + quote: 'Ma se non cambi direzione e se continui a guardare, potresti finire dove stai andando.', linkLabel: 'Vai alla home', - linkText: 'Vai alla Home', + linkText: 'Vai alla Home' }, search: { options: { translations: { button: { buttonText: 'Cerca', - buttonAriaLabel: 'Cerca', + buttonAriaLabel: 'Cerca' }, modal: { displayDetails: 'Visualizza lista dettagliata', @@ -60,11 +59,11 @@ export default { footer: { selectText: 'seleziona', navigateText: 'naviga', - closeText: 'chiudi', - }, - }, - }, - }, - }, - }, -}; + closeText: 'chiudi' + } + } + } + } + } + } +}; \ No newline at end of file diff --git a/docs/.vitepress/locales/ru.js b/docs/.vitepress/locales/ru.js index dea5ac0e..6d027b97 100644 --- a/docs/.vitepress/locales/ru.js +++ b/docs/.vitepress/locales/ru.js @@ -8,29 +8,29 @@ export default { nav: [ { text: 'Главная', - link: '/', + link: '/' }, { text: 'Введение', - link: '/intro', + link: '/intro' }, { text: 'Примеры', - link: '/examples', + link: '/examples' }, { - text: 'Демка', - link: 'https://demo.dragomano.ru/', + text: 'Демонстрация', + link: 'https://demo.dragomano.ru/' }, { text: 'Обновления', - link: '/changelog', - }, + link: '/changelog' + } ], outline: { label: 'Содержание этой страницы' }, docFooter: { prev: 'Предыдущая страница', - next: 'Следующая страница', + next: 'Следующая страница' }, darkModeSwitchLabel: 'Оформление', lightModeSwitchTitle: 'Переключить на светлую тему', @@ -42,14 +42,14 @@ export default { title: 'СТРАНИЦА НЕ НАЙДЕНА', quote: 'Но если не менять направление и продолжать искать, то можно оказаться там, где надо.', linkLabel: 'перейти на главную', - linkText: 'Вернуться на главную', + linkText: 'Вернуться на главную' }, search: { options: { translations: { button: { buttonText: 'Поиск', - buttonAriaLabel: 'Поиск', + buttonAriaLabel: 'Поиск' }, modal: { displayDetails: 'Отобразить подробный список', @@ -59,11 +59,11 @@ export default { footer: { selectText: 'выбрать', navigateText: 'перейти', - closeText: 'закрыть', - }, - }, - }, - }, - }, - }, -}; + closeText: 'закрыть' + } + } + } + } + } + } +}; \ No newline at end of file diff --git a/docs/src/el/how-to/help-to-project.md b/docs/src/el/how-to/help-to-project.md index bfb80b34..f74e2d88 100644 --- a/docs/src/el/how-to/help-to-project.md +++ b/docs/src/el/how-to/help-to-project.md @@ -12,4 +12,4 @@ description: Οδηγίες για το πώς να βοηθήσετε στον - Τεκμηρίωση - μπορείτε να εξηγήσετε ένα βαρετό πράγμα με ελκυστικό τρόπο; Τότε δοκιμάστε το! - Μεταφράσεις - οι μεταφράσεις χρειάζονται συνεχώς [αναθεώρηση, διόρθωση και βελτίωση](https://crowdin.com/project/light-portal). - Άρθρα και κριτικές - σας αρέσει να γράφετε; Πάντα θα υπάρχουν αναγνώστες! -- Χορηγίες - [donations](https://ko-fi.com/dragomano) είναι πάντα ευπρόσδεκτες. +- Χορηγίες - [δωρεές](https://ko-fi.com/dragomano/) είναι πάντα ευπρόσδεκτες. diff --git a/docs/src/el/plugins/all-hooks.md b/docs/src/el/plugins/all-hooks.md index 4e20bb78..f525e81d 100644 --- a/docs/src/el/plugins/all-hooks.md +++ b/docs/src/el/plugins/all-hooks.md @@ -75,11 +75,11 @@ public function prepareEditor(array $object): void if ($object['type'] !== 'markdown') return; - $this->loadLanguage('Editor'); + Lang::load('Editor'); - $this->loadExtCSS('https://cdn.jsdelivr.net/npm/easymde@2/dist/easymde.min.css'); + Theme::loadCSSFile('https://cdn.jsdelivr.net/npm/easymde@2/dist/easymde.min.css', ['external' => true]); - $this->addInlineCss(' + Theme::addInlineCss(' .editor-toolbar button { box-shadow: none; }'); @@ -345,7 +345,12 @@ public function commentButtons(array $comment, array &$buttons): void ```php public function addSettings(array &$settings): void { - $settings['disqus'][] = ['text', 'shortname', 'subtext' => Lang::$txt['lp_disqus']['shortname_subtext'], 'required' => true]; + $settings['disqus'][] = [ + 'text', + 'shortname', + 'subtext' => Lang::$txt['lp_disqus']['shortname_subtext'], + 'required' => true, + ]; } ``` @@ -410,7 +415,10 @@ public function customLayoutExtensions(array &$extensions): void ```php public function frontAssets(): void { - $this->loadExtJS('https://' . Utils::$context['lp_disqus_plugin']['shortname'] . '.disqus.com/count.js'); + Theme::loadJavaScriptFile( + 'https://' . Utils::$context['lp_disqus_plugin']['shortname'] . '.disqus.com/count.js', + ['external' => true], + ); } ``` @@ -440,7 +448,8 @@ public function frontTopics(array &$columns, array &$tables): void ```php public function frontTopicsOutput(array &$topics, array $row): void { - $topics[$row['id_topic']]['rating'] = empty($row['total_votes']) ? 0 : (number_format($row['total_value'] / $row['total_votes'])); + $topics[$row['id_topic']]['rating'] = empty($row['total_votes']) + ? 0 : (number_format($row['total_value'] / $row['total_votes'])); } ``` diff --git a/docs/src/it/plugins/all-hooks.md b/docs/src/it/plugins/all-hooks.md index f28b0b20..2ee89188 100644 --- a/docs/src/it/plugins/all-hooks.md +++ b/docs/src/it/plugins/all-hooks.md @@ -75,11 +75,11 @@ public function prepareEditor(array $object): void if ($object['type'] !== 'markdown') return; - $this->loadLanguage('Editor'); + Lang::load('Editor'); - $this->loadExtCSS('https://cdn.jsdelivr.net/npm/easymde@2/dist/easymde.min.css'); + Theme::loadCSSFile('https://cdn.jsdelivr.net/npm/easymde@2/dist/easymde.min.css', ['external' => true]); - $this->addInlineCss(' + Theme::addInlineCss(' .editor-toolbar button { box-shadow: none; }'); @@ -345,7 +345,12 @@ public function commentButtons(array $comment, array &$buttons): void ```php public function addSettings(array &$settings): void { - $settings['disqus'][] = ['text', 'shortname', 'subtext' => Lang::$txt['lp_disqus']['shortname_subtext'], 'required' => true]; + $settings['disqus'][] = [ + 'text', + 'shortname', + 'subtext' => Lang::$txt['lp_disqus']['shortname_subtext'], + 'required' => true, + ]; } ``` @@ -410,7 +415,10 @@ public function customLayoutExtensions(array &$extensions): void ```php public function frontAssets(): void { - $this->loadExtJS('https://' . Utils::$context['lp_disqus_plugin']['shortname'] . '.disqus.com/count.js'); + Theme::loadJavaScriptFile( + 'https://' . Utils::$context['lp_disqus_plugin']['shortname'] . '.disqus.com/count.js', + ['external' => true], + ); } ``` @@ -440,7 +448,8 @@ public function frontTopics(array &$columns, array &$tables): void ```php public function frontTopicsOutput(array &$topics, array $row): void { - $topics[$row['id_topic']]['rating'] = empty($row['total_votes']) ? 0 : (number_format($row['total_value'] / $row['total_votes'])); + $topics[$row['id_topic']]['rating'] = empty($row['total_votes']) + ? 0 : (number_format($row['total_value'] / $row['total_votes'])); } ``` diff --git a/docs/src/ru/plugins/all-hooks.md b/docs/src/ru/plugins/all-hooks.md index ecc319c1..6a4fb766 100644 --- a/docs/src/ru/plugins/all-hooks.md +++ b/docs/src/ru/plugins/all-hooks.md @@ -75,11 +75,11 @@ public function prepareEditor(array $object): void if ($object['type'] !== 'markdown') return; - $this->loadLanguage('Editor'); + Lang::load('Editor'); - $this->loadExtCSS('https://cdn.jsdelivr.net/npm/easymde@2/dist/easymde.min.css'); + Theme::loadCSSFile('https://cdn.jsdelivr.net/npm/easymde@2/dist/easymde.min.css', ['external' => true]); - $this->addInlineCss(' + Theme::addInlineCss(' .editor-toolbar button { box-shadow: none; }'); @@ -345,7 +345,12 @@ public function commentButtons(array $comment, array &$buttons): void ```php public function addSettings(array &$settings): void { - $settings['disqus'][] = ['text', 'shortname', 'subtext' => Lang::$txt['lp_disqus']['shortname_subtext'], 'required' => true]; + $settings['disqus'][] = [ + 'text', + 'shortname', + 'subtext' => Lang::$txt['lp_disqus']['shortname_subtext'], + 'required' => true, + ]; } ``` @@ -410,7 +415,10 @@ public function customLayoutExtensions(array &$extensions): void ```php public function frontAssets(): void { - $this->loadExtJS('https://' . Utils::$context['lp_disqus_plugin']['shortname'] . '.disqus.com/count.js'); + Theme::loadJavaScriptFile( + 'https://' . Utils::$context['lp_disqus_plugin']['shortname'] . '.disqus.com/count.js', + ['external' => true], + ); } ``` @@ -440,7 +448,8 @@ public function frontTopics(array &$columns, array &$tables): void ```php public function frontTopicsOutput(array &$topics, array $row): void { - $topics[$row['id_topic']]['rating'] = empty($row['total_votes']) ? 0 : (number_format($row['total_value'] / $row['total_votes'])); + $topics[$row['id_topic']]['rating'] = empty($row['total_votes']) + ? 0 : (number_format($row['total_value'] / $row['total_votes'])); } ```