This commit is contained in:
merdan 2021-04-29 17:56:22 +05:00
parent 87367d525c
commit 3f63ad7eff
6 changed files with 22 additions and 6 deletions

View File

@ -81,7 +81,7 @@ return [
|
*/
'locale' => 'en',
'locale' => 'ru',
/*
|--------------------------------------------------------------------------

View File

@ -80,7 +80,7 @@ return [
|
*/
'backendTimezone' => 'UTC',
'backendTimezone' => 'Asia/Ashgabat',
/*
|--------------------------------------------------------------------------
@ -396,7 +396,7 @@ return [
|
*/
'enableCsrfProtection' => env('ENABLE_CSRF', false),
'enableCsrfProtection' => env('ENABLE_CSRF', true),
/*
|--------------------------------------------------------------------------

View File

@ -13,7 +13,7 @@ return [
|
*/
'default' => env('LOG_CHANNEL', 'single'),
'default' => env('LOG_CHANNEL', 'daily'),
/*
|--------------------------------------------------------------------------

View File

@ -109,7 +109,7 @@ return [
|
*/
'cookie' => 'october_session',
'cookie' => 'orient_session',
/*
|--------------------------------------------------------------------------

View File

@ -31,4 +31,20 @@ class Plugin extends PluginBase
]
];
}
public function registerMarkupTags() {
return [
'filters' => [
// A global function, i.e str_plural()
'mediator' => [$this, 'absoluteMediaUrl'],
],
];
}
public function absoluteMediaUrl($file) {
$original = \Cms\Classes\MediaLibrary::url($file);
// modify here and return
return $original;
}
}

View File

@ -13,7 +13,7 @@
data-request-data = '[{id:{{reklama.id}}},{url:"{{reklama.url}}"}]'
{% endif %}
>
<img src="{{reklama.media|media}}" alt="{{reklama.title}}">
<img src="{{reklama.media|mediator}}" alt="{{reklama.title}}">
</a>
{% endfor %}