Move news config to settings

This commit is contained in:
slawkens
2023-07-20 21:01:33 +02:00
parent ed7daf9482
commit 1b2fd39ea7
3 changed files with 34 additions and 6 deletions

View File

@@ -564,6 +564,36 @@ Sent by MyAAC,<br/>
'type' => 'category',
'title' => 'Pages',
],
[
'type' => 'section',
'title' => 'News Page',
],
'news_author' => [
'name' => 'News Author',
'type' => 'boolean',
'desc' => 'Show author of the news',
'default' => true,
],
'news_limit' => [
'name' => 'News Limit',
'type' => 'number',
'min' => 0,
'desc' => 'Limit of news on the latest news page (0 to disable)',
'default' => 5,
],
'news_ticker_limit' => [
'name' => 'News Ticker Limit',
'type' => 'number',
'min' => 0,
'desc' => 'Limit of news in tickers (mini news) (0 to disable)',
'default' => 5,
],
'news_date_format' => [
'name' => 'News Date Format',
'type' => 'text',
'desc' => 'Check php manual date() function for more info about this',
'default' => 'j.n.Y',
],
[
'type' => 'section',
'title' => 'Forum'