sarga theme
This commit is contained in:
parent
93c24c4c94
commit
bd6957c916
|
|
@ -2,6 +2,28 @@
|
||||||
<div class="footer-content">
|
<div class="footer-content">
|
||||||
<div class="footer-list-container">
|
<div class="footer-list-container">
|
||||||
|
|
||||||
|
<?php
|
||||||
|
$categories = [];
|
||||||
|
|
||||||
|
foreach (app('Webkul\Category\Repositories\CategoryRepository')->getVisibleCategoryTree(core()->getCurrentChannel()->root_category_id) as $category){
|
||||||
|
if ($category->slug)
|
||||||
|
array_push($categories, $category);
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
|
@if (count($categories))
|
||||||
|
<div class="list-container">
|
||||||
|
<span class="list-heading">Categories</span>
|
||||||
|
|
||||||
|
<ul class="list-group">
|
||||||
|
@foreach ($categories as $key => $category)
|
||||||
|
<li>
|
||||||
|
<a href="{{ route('shop.productOrCategory.index', $category->slug) }}">{{ $category->name }}</a>
|
||||||
|
</li>
|
||||||
|
@endforeach
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
@endif
|
||||||
|
|
||||||
{!! DbView::make(core()->getCurrentChannel())->field('footer_content')->render() !!}
|
{!! DbView::make(core()->getCurrentChannel())->field('footer_content')->render() !!}
|
||||||
|
|
||||||
|
|
@ -19,14 +41,6 @@
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
<?php
|
|
||||||
$term = request()->input('term');
|
|
||||||
|
|
||||||
if (! is_null($term)) {
|
|
||||||
$serachQuery = 'term='.request()->input('term');
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
|
||||||
<label class="list-heading" for="locale-switcher">{{ __('shop::app.footer.locale') }}</label>
|
<label class="list-heading" for="locale-switcher">{{ __('shop::app.footer.locale') }}</label>
|
||||||
<div class="form-container">
|
<div class="form-container">
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue