mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01: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" %}
|
||||
</div>
|
||||
</div>
|
||||
{{ addBlock('ads-list/row',{'topfields':topfields})|raw }}
|
||||
{{ addBlock('ads-list/row',{'topfields':topfields,'advs':advs})|raw }}
|
||||
<div class="row">
|
||||
{% block listContent %}
|
||||
{% include "visiosoft.module.advs::list/partials/ads" %}
|
||||
|
||||
@ -214,14 +214,8 @@ class AdvsController extends PublicController
|
||||
$advs = $this->adv_repository->addAttributes($advs);
|
||||
|
||||
|
||||
if ($isActiveDopings) {
|
||||
$dopingModel = new DopingModel();
|
||||
$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);
|
||||
}
|
||||
if ($isActiveDopings and $param != null) {
|
||||
$featured_advs = app('Visiosoft\DopingsModule\Http\Controller\DopingsController')->listFeatures($advs);
|
||||
}
|
||||
|
||||
foreach ($advs as $index => $ad) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user