mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-10 15:26:10 -06:00
#873 add addBlock params && move old function
This commit is contained in:
parent
0621b4c03b
commit
fa60a43672
@ -27,7 +27,7 @@
|
|||||||
{% include "visiosoft.module.advs::list/partials/display-mode" %}
|
{% include "visiosoft.module.advs::list/partials/display-mode" %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{ addBlock('ads-list/row',{'topfields':topfields})|raw }}
|
{{ addBlock('ads-list/row',{'topfields':topfields,'advs':advs})|raw }}
|
||||||
<div class="row">
|
<div class="row">
|
||||||
{% block listContent %}
|
{% block listContent %}
|
||||||
{% include "visiosoft.module.advs::list/partials/ads" %}
|
{% include "visiosoft.module.advs::list/partials/ads" %}
|
||||||
|
|||||||
@ -214,14 +214,8 @@ class AdvsController extends PublicController
|
|||||||
$advs = $this->adv_repository->addAttributes($advs);
|
$advs = $this->adv_repository->addAttributes($advs);
|
||||||
|
|
||||||
|
|
||||||
if ($isActiveDopings) {
|
if ($isActiveDopings and $param != null) {
|
||||||
$dopingModel = new DopingModel();
|
$featured_advs = app('Visiosoft\DopingsModule\Http\Controller\DopingsController')->listFeatures($advs);
|
||||||
$featured_advs = $dopingModel->filterAdvs(2, $advs);
|
|
||||||
|
|
||||||
foreach ($featured_advs as $index => $ad) {
|
|
||||||
$featured_advs[$index]->detail_url = $this->adv_model->getAdvDetailLinkByModel($ad, 'list');
|
|
||||||
$featured_advs[$index] = $this->adv_model->AddAdsDefaultCoverImage($ad);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($advs as $index => $ad) {
|
foreach ($advs as $index => $ad) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user