#1795 Register Info Block change with type

This commit is contained in:
Diatrex 2020-07-15 13:14:07 +03:00
parent 4a1b008bb0
commit 42f096f19e
2 changed files with 7 additions and 2 deletions

View File

@ -37,7 +37,12 @@
</div>
<div class="col-12 col-md-6 py-3 pr-0 instructions d-none d-md-block">
{{ blocks('register-instructions') }}
{% set type = app.request.get('type') %}
{% if type %}
{{ blocks(type) }}
{% else %}
{{ blocks('register-instructions') }}
{% endif %}
{{ addBlock('register/instructions')|raw }}

View File

@ -56,7 +56,7 @@ class RegisterInstructionSeeder extends Seeder
'name' => trans('visiosoft.theme.base::field.list'),
'slug' => 'list',
'category' => 'other',
'content_layout' => '<div class="border {{ block.area.slug == \'register-instructions\' ? \'personal-advantages\' : \'corporate-advantages\' }} py-5 px-5">
'content_layout' => '<div class="border {{ block.area.slug == \'store-register-instructions\' ? \'corporate-advantages\' : \'personal-advantages\' }} py-5 px-5">
<div class="d-flex align-items-center mb-4">
{% if setting_value(\'visiosoft.theme.base::register_page_instruction_logo\') %}
<img class="mr-3" src="{{ file(setting_value(\'visiosoft.theme.base::register_page_instruction_logo\')).url }}">