articles upd
This commit is contained in:
parent
1373f6ef93
commit
d5c352db13
@ -8,7 +8,9 @@
|
||||
"ext-gd": "*",
|
||||
"ext-mysqli": "*",
|
||||
"ext-json": "*",
|
||||
"ext-yaml": "*"
|
||||
"ext-yaml": "*",
|
||||
"ext-gmp": "*",
|
||||
"ext-memcached": "*"
|
||||
},
|
||||
"repositories": [
|
||||
{
|
||||
|
@ -71,11 +71,10 @@ class CollectionItem implements FilesItemInterface {
|
||||
public function getUrl(): string {
|
||||
global $config;
|
||||
switch ($this->collection) {
|
||||
case FilesCollection::MercureDeFrance:
|
||||
case FilesCollection::WilliamFriedman:
|
||||
return '/files/'.$this->collection->value.'/';
|
||||
case FilesCollection::Baconiana:
|
||||
return 'https://'.$config['files_domain'].'/Baconiana/';
|
||||
default:
|
||||
return '/files/'.$this->collection->value.'/';
|
||||
}
|
||||
}
|
||||
public function getSize(): ?int { return null; }
|
||||
|
@ -110,8 +110,8 @@ HTML;
|
||||
|
||||
function articlesRightLinks($ctx, string $selected_lang) {
|
||||
$links = [
|
||||
['url' => $selected_lang != 'en' ? '/articles/' : null, 'label' => 'en'],
|
||||
['url' => $selected_lang != 'ru' ? '/articles/?lang=ru' : null, 'label' => 'ru'],
|
||||
['url' => $selected_lang != 'en' ? '/articles/' : null, 'label' => lang('lang_en')],
|
||||
['url' => $selected_lang != 'ru' ? '/articles/?lang=ru' : null, 'label' => lang('lang_ru')],
|
||||
];
|
||||
if (is_admin()) {
|
||||
$links[] = ['url' => '/articles/write/?lang='.$selected_lang, 'label' => 'write'];
|
||||
|
@ -17,6 +17,9 @@ save: "Save"
|
||||
info_saved: 'Information saved.'
|
||||
toc: 'Table of Contents'
|
||||
|
||||
lang_en: "English"
|
||||
lang_ru: "Русский"
|
||||
|
||||
# blog
|
||||
blog_new_post: "New post"
|
||||
blog_view_post: "View post"
|
||||
|
Loading…
x
Reference in New Issue
Block a user