mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
#1795 Register Info Block change with type
This commit is contained in:
parent
4a1b008bb0
commit
42f096f19e
@ -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 }}
|
||||
|
||||
|
||||
@ -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 }}">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user