Merge pull request #333 from openclassify/vedat

Vedat
This commit is contained in:
Fatih Alp 2020-02-17 14:38:38 +03:00 committed by GitHub
commit f5128db38e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 10 deletions

View File

@ -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" %}

View File

@ -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) {

View File

@ -52,7 +52,7 @@
"anomaly/tags-field_type": "~2.4.0",
"anomaly/slug-field_type": "~2.1.0",
"anomaly/text-field_type": "~2.2.0",
"anomaly/file-field_type": "2.2.32",
"anomaly/file-field_type": "~2.2.0",
"anomaly/url-field_type": "~2.2.0",
"anomaly/configuration-module": "~2.1.0",
"anomaly/preferences-module": "~2.2.0",