mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-10 15:26:10 -06:00
added sahibinden check icon and show features for web view && fixed get categories
This commit is contained in:
parent
23d596b78b
commit
36756b046f
@ -782,8 +782,14 @@ class AdvsController extends PublicController
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$get_categories = in_array($adv->cat1, setting_value('visiosoft.module.advs::get_categories'));
|
$get_categories_status = false;
|
||||||
$adv->is_get_adv = ($request->is_get_adv and $get_categories) ? true : false;
|
if ($get_categories = setting_value('visiosoft.module.advs::get_categories') and $get_categories = in_array($adv->cat1, $get_categories)) {
|
||||||
|
$get_categories_status = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
$adv->is_get_adv = ($request->is_get_adv and $get_categories_status) ? true : false;
|
||||||
|
|
||||||
|
|
||||||
$adv->save();
|
$adv->save();
|
||||||
|
|
||||||
//algolia Search Module
|
//algolia Search Module
|
||||||
@ -803,7 +809,9 @@ class AdvsController extends PublicController
|
|||||||
$CloudinaryModel = new VideoModel();
|
$CloudinaryModel = new VideoModel();
|
||||||
$CloudinaryModel->updateRequest($request);
|
$CloudinaryModel->updateRequest($request);
|
||||||
|
|
||||||
if ($request->url != "") { $adv->save(); }
|
if ($request->url != "") {
|
||||||
|
$adv->save();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if ($this->adv_model->is_enabled('customfields')) {
|
if ($this->adv_model->is_enabled('customfields')) {
|
||||||
app('Visiosoft\CustomfieldsModule\Http\Controller\cfController')->store($adv, $request);
|
app('Visiosoft\CustomfieldsModule\Http\Controller\cfController')->store($adv, $request);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user