Made footer text content optional from configuration apart from custom content also
This commit is contained in:
parent
ba4dc11687
commit
109c99f3da
|
|
@ -108,7 +108,7 @@ return [
|
|||
'channel_based' => true,
|
||||
]
|
||||
]
|
||||
],[
|
||||
], [
|
||||
'key' => 'general.content',
|
||||
'name' => 'admin::app.admin.system.content',
|
||||
'sort' => 2,
|
||||
|
|
@ -123,6 +123,21 @@ return [
|
|||
'type' => 'text',
|
||||
'channel_based' => true,
|
||||
'locale_based' => true
|
||||
], [
|
||||
'name' => 'footer_toggle',
|
||||
'title' => 'admin::app.admin.system.footer-toggle',
|
||||
'type' => 'select',
|
||||
'options' => [
|
||||
[
|
||||
'title' => 'True',
|
||||
'value' => 1
|
||||
], [
|
||||
'title' => 'False',
|
||||
'value' => 0
|
||||
]
|
||||
],
|
||||
'locale_based' => true,
|
||||
'channel_based' => true,
|
||||
]
|
||||
]
|
||||
], [
|
||||
|
|
|
|||
|
|
@ -1155,6 +1155,7 @@ return [
|
|||
'footer' => 'Footer',
|
||||
'content' => 'Content',
|
||||
'footer-content' => 'Footer Text',
|
||||
'footer-toggle' => 'Toggle footer',
|
||||
'locale-options' => 'Unit Options',
|
||||
'weight-unit' => 'Weight Unit',
|
||||
'design' => 'Design',
|
||||
|
|
|
|||
|
|
@ -90,16 +90,17 @@
|
|||
|
||||
{!! view_render_event('bagisto.admin.layout.content.after') !!}
|
||||
|
||||
<div class="footer">
|
||||
<p>
|
||||
@if (core()->getConfigData('general.content.footer.footer_content'))
|
||||
{{ core()->getConfigData('general.content.footer.footer_content') }}
|
||||
@else
|
||||
{{ trans('admin::app.footer.copy-right') }}
|
||||
@endif
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@if (core()->getConfigData('general.content.footer.footer_toggle'))
|
||||
<div class="footer">
|
||||
<p style="text-align: center;">
|
||||
@if (core()->getConfigData('general.content.footer.footer_content'))
|
||||
{{ core()->getConfigData('general.content.footer.footer_content') }}
|
||||
@else
|
||||
{{ trans('admin::app.footer.copy-right') }}
|
||||
@endif
|
||||
</p>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -70,16 +70,17 @@
|
|||
|
||||
{!! view_render_event('bagisto.shop.layout.footer.after') !!}
|
||||
|
||||
<div class="footer-bottom">
|
||||
<p>
|
||||
@if (core()->getConfigData('general.content.footer.footer_content'))
|
||||
{{ core()->getConfigData('general.content.footer.footer_content') }}
|
||||
@else
|
||||
{{ trans('admin::app.footer.copy-right') }}
|
||||
@endif
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@if (core()->getConfigData('general.content.footer.footer_toggle'))
|
||||
<div class="footer">
|
||||
<p style="text-align: center;">
|
||||
@if (core()->getConfigData('general.content.footer.footer_content'))
|
||||
{{ core()->getConfigData('general.content.footer.footer_content') }}
|
||||
@else
|
||||
{{ trans('admin::app.footer.copy-right') }}
|
||||
@endif
|
||||
</p>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
|
|
|||
Loading…
Reference in New Issue