articles upd

This commit is contained in:
E. S. 2024-03-13 15:25:13 +00:00
parent 1373f6ef93
commit d5c352db13
4 changed files with 10 additions and 6 deletions

View File

@ -8,7 +8,9 @@
"ext-gd": "*", "ext-gd": "*",
"ext-mysqli": "*", "ext-mysqli": "*",
"ext-json": "*", "ext-json": "*",
"ext-yaml": "*" "ext-yaml": "*",
"ext-gmp": "*",
"ext-memcached": "*"
}, },
"repositories": [ "repositories": [
{ {

View File

@ -71,11 +71,10 @@ class CollectionItem implements FilesItemInterface {
public function getUrl(): string { public function getUrl(): string {
global $config; global $config;
switch ($this->collection) { switch ($this->collection) {
case FilesCollection::MercureDeFrance:
case FilesCollection::WilliamFriedman:
return '/files/'.$this->collection->value.'/';
case FilesCollection::Baconiana: case FilesCollection::Baconiana:
return 'https://'.$config['files_domain'].'/Baconiana/'; return 'https://'.$config['files_domain'].'/Baconiana/';
default:
return '/files/'.$this->collection->value.'/';
} }
} }
public function getSize(): ?int { return null; } public function getSize(): ?int { return null; }

View File

@ -110,8 +110,8 @@ HTML;
function articlesRightLinks($ctx, string $selected_lang) { function articlesRightLinks($ctx, string $selected_lang) {
$links = [ $links = [
['url' => $selected_lang != 'en' ? '/articles/' : null, 'label' => 'en'], ['url' => $selected_lang != 'en' ? '/articles/' : null, 'label' => lang('lang_en')],
['url' => $selected_lang != 'ru' ? '/articles/?lang=ru' : null, 'label' => 'ru'], ['url' => $selected_lang != 'ru' ? '/articles/?lang=ru' : null, 'label' => lang('lang_ru')],
]; ];
if (is_admin()) { if (is_admin()) {
$links[] = ['url' => '/articles/write/?lang='.$selected_lang, 'label' => 'write']; $links[] = ['url' => '/articles/write/?lang='.$selected_lang, 'label' => 'write'];

View File

@ -17,6 +17,9 @@ save: "Save"
info_saved: 'Information saved.' info_saved: 'Information saved.'
toc: 'Table of Contents' toc: 'Table of Contents'
lang_en: "English"
lang_ru: "Русский"
# blog # blog
blog_new_post: "New post" blog_new_post: "New post"
blog_view_post: "View post" blog_view_post: "View post"