mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-09 23:06:08 -06:00
Merge pull request #1028 from openclassify/dia
#3472 listing design improvments - Integrate
This commit is contained in:
commit
7c66e50f5e
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
<div id="gallerying" class="d-flex flex-wrap">
|
<div id="gallerying" class="d-flex flex-wrap">
|
||||||
|
|
||||||
{{ addBlock('ad-list/partials/gallery',{'featured_advs':featured_advs})|raw }}
|
{{ addBlock('ad-list/partials/gallery',{'featured_advs': featured_advs, 'vars': _context})|raw }}
|
||||||
|
|
||||||
{% for adv in advs %}
|
{% for adv in advs %}
|
||||||
<div class="w-50 gallery-item-wrapper mb-1{{ adv.doping != null ? ' doping_type4' }}">
|
<div class="w-50 gallery-item-wrapper mb-1{{ adv.doping != null ? ' doping_type4' }}">
|
||||||
|
|||||||
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|
||||||
{{ addBlock('ad-list/partials/ads', {'featured_advs': featured_advs})|raw }}
|
{{ addBlock('ad-list/partials/ads', {'featured_advs': featured_advs, 'vars': _context})|raw }}
|
||||||
|
|
||||||
{% for adv in advs %}
|
{% for adv in advs %}
|
||||||
<tr class="{{ adv.doping_type ? 'doping_type' ~ adv.doping_type }}">
|
<tr class="{{ adv.doping_type ? 'doping_type' ~ adv.doping_type }}">
|
||||||
|
|||||||
@ -280,16 +280,11 @@ class AdvsController extends PublicController
|
|||||||
|
|
||||||
|
|
||||||
if ($categoryId) {
|
if ($categoryId) {
|
||||||
// if ($hierarchy = $categoryId->getMains()) {
|
|
||||||
// dd(123);
|
|
||||||
// }
|
|
||||||
|
|
||||||
$mainCats = $this->category_model->getMains($categoryId->id);
|
$mainCats = $this->category_model->getMains($categoryId->id);
|
||||||
$current_cat = $this->category_model->getCat($categoryId->id);
|
$current_cat = $this->category_model->getCat($categoryId->id);
|
||||||
$mainCats[] = $current_cat;
|
$mainCats[] = $current_cat;
|
||||||
$subCats = $this->category_repository->getSubCatById($categoryId->id);
|
$subCats = $this->category_repository->getSubCatById($categoryId->id);
|
||||||
$allCats = false;
|
$allCats = false;
|
||||||
// dd($mainCats);
|
|
||||||
} else {
|
} else {
|
||||||
$mainCats = $this->category_repository->mainCats();
|
$mainCats = $this->category_repository->mainCats();
|
||||||
$allCats = true;
|
$allCats = true;
|
||||||
|
|||||||
@ -1,8 +1,8 @@
|
|||||||
{% if params.category %}
|
{% if params.category %}
|
||||||
{% for category_breadcrumbs in params.mainCats %}
|
{% for category_breadcrumbs in params.mainCats %}
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ url_route('adv_list_seo', [category_breadcrumbs['slug']]) }}">
|
<a href="{{ url_route('adv_list_seo', [category_breadcrumbs.slug]) }}">
|
||||||
{{ category_breadcrumbs['val'] }}
|
{{ category_breadcrumbs.name }}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user