mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-05-07 18:26:08 +02:00
Fix for the image preview in the file filed on multilang sites
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
Use the "pagemediaselect" type instead.
|
||||
{% else %}
|
||||
{% if value %}
|
||||
<img src="{{ base_url_relative_frontend == '/' ? '/' : base_url_relative_frontend ~ '/'}}{{ value }}" alt="{{ value|replace({(files.destination ~ '/'): ''}) }}" />
|
||||
<img src="{{ uri.rootUrl == '/' ? '/' : uri.rootUrl ~ '/'}}{{ value }}" alt="{{ value|replace({(files.destination ~ '/'): ''}) }}" />
|
||||
<a href="{{ uri.addNonce(base_url_relative ~ '/media/' ~ base64_encode(base_path ~ '/' ~ value) ~ '/task' ~ config.system.param_sep ~ 'removeFileFromBlueprint' ~ '/blueprint' ~ config.system.param_sep ~ files.blueprint ~ '/field' ~ config.system.param_sep ~ files.name ~ '/redirect' ~ config.system.param_sep ~ base64_encode(uri.path), 'admin-form', 'admin-nonce') }}">
|
||||
<i class="fa fa-close"></i>
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user