mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-24 22:11:01 -06:00
updates for new version
This commit is contained in:
parent
460720f624
commit
0dfd983825
@ -1,22 +1,24 @@
|
|||||||
{% set hidePriceCats = setting_value('visiosoft.module.advs::hide_price_categories') %}
|
{% set hidePriceCats = setting_value('visiosoft.module.advs::hide_price_categories') %}
|
||||||
{% set cats = entries('cats','category').whereIn('id', hidePriceCats).get() %}
|
{% if (hidePriceCats != null) %}
|
||||||
{% set isHidden = false %}
|
{% set cats = entries('cats','category').whereIn('id', hidePriceCats).get() %}
|
||||||
|
{% set isHidden = false %}
|
||||||
|
|
||||||
{% for cat in cats %}
|
{% for cat in cats %}
|
||||||
{% if request().segment(2) == cat.slug %}
|
{% if request().segment(2) == cat.slug %}
|
||||||
{% set isHidden = true %}
|
{% set isHidden = true %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% if setting_value('visiosoft.module.advs::hide_price_filter') == false and not isHidden%}
|
{% if setting_value('visiosoft.module.advs::hide_price_filter') == false and not isHidden %}
|
||||||
<div class="card mb-3">
|
<div class="card mb-3">
|
||||||
<div class="card-header breadcrumb mb-0" id="priceHeading">
|
<div class="card-header breadcrumb mb-0" id="priceHeading">
|
||||||
<h5 class="mb-0">
|
<h5 class="mb-0">
|
||||||
<button class="btn btn-link text-dark d-flex align-items-center" data-toggle="collapse"
|
<button class="btn btn-link text-dark d-flex align-items-center" data-toggle="collapse"
|
||||||
data-target="#price"
|
data-target="#price"
|
||||||
aria-expanded="true" aria-controls="price">
|
aria-expanded="true" aria-controls="price">
|
||||||
{# <img src="{{ img('visiosoft.module.advs::images/price-icon.svg').url }}" alt="price icon"#}
|
{# <img src="{{ img('visiosoft.module.advs::images/price-icon.svg').url }}" alt="price icon"#}
|
||||||
{# class="mr-2">#}
|
{# class="mr-2">#}
|
||||||
<span>{{ trans("visiosoft.module.advs::field.price.name") }}</span>
|
<span>{{ trans("visiosoft.module.advs::field.price.name") }}</span>
|
||||||
</button>
|
</button>
|
||||||
</h5>
|
</h5>
|
||||||
@ -47,7 +49,6 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
<?php namespace Visiosoft\AdvsModule;
|
<?php namespace Visiosoft\AdvsModule;
|
||||||
|
|
||||||
|
|
||||||
use Anomaly\FilesModule\File\FileModel;
|
use Anomaly\FilesModule\File\FileModel;
|
||||||
use Anomaly\Streams\Platform\Addon\AddonCollection;
|
use Anomaly\Streams\Platform\Addon\AddonCollection;
|
||||||
use Anomaly\Streams\Platform\Addon\AddonServiceProvider;
|
use Anomaly\Streams\Platform\Addon\AddonServiceProvider;
|
||||||
@ -67,7 +68,6 @@ class AdvsModuleServiceProvider extends AddonServiceProvider
|
|||||||
'uses' => 'Visiosoft\AdvsModule\Http\Controller\Admin\ExcelController@import',
|
'uses' => 'Visiosoft\AdvsModule\Http\Controller\Admin\ExcelController@import',
|
||||||
],
|
],
|
||||||
|
|
||||||
|
|
||||||
// AdvsController
|
// AdvsController
|
||||||
'advs/list' => [
|
'advs/list' => [
|
||||||
'as' => 'visiosoft.module.advs::list',
|
'as' => 'visiosoft.module.advs::list',
|
||||||
|
|||||||
@ -1,10 +1,8 @@
|
|||||||
<div class="home-container">
|
<div class="home-container">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-4">{% include "visiosoft.theme.base::partials/categories" %}</div>
|
<div class="col-md-4">{% include "visiosoft.theme.base::partials/categories" %}</div>
|
||||||
<div class="col-md-8"><div class="album bg-light">
|
<div class="col-md-8">
|
||||||
|
<div class="album bg-light">
|
||||||
{{ addBlock('index_top')|raw }}
|
{{ addBlock('index_top')|raw }}
|
||||||
|
|
||||||
<div class="row p-2">
|
<div class="row p-2">
|
||||||
@ -19,8 +17,6 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="row list-classified-home">
|
<div class="row list-classified-home">
|
||||||
{% for latestAd in latestAds() %}
|
{% for latestAd in latestAds() %}
|
||||||
<div class="col-sm-6 col-md-4 col-lg-3 d-flex align-items-stretch">
|
<div class="col-sm-6 col-md-4 col-lg-3 d-flex align-items-stretch">
|
||||||
@ -28,7 +24,8 @@
|
|||||||
<div class="row p-2" style="min-height: 150px;">
|
<div class="row p-2" style="min-height: 150px;">
|
||||||
<a href="{{ latestAd.detail_url }}">
|
<a href="{{ latestAd.detail_url }}">
|
||||||
<div class="col-md-12 justify-content-center align-self-center">
|
<div class="col-md-12 justify-content-center align-self-center">
|
||||||
<img class="card-img-top img-fluid img-thumbnail" src="{{ latestAd.cover_photo }}"
|
<img class="card-img-top img-fluid img-thumbnail"
|
||||||
|
src="{{ latestAd.cover_photo }}"
|
||||||
style="height: 150px">
|
style="height: 150px">
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
@ -70,9 +67,4 @@
|
|||||||
{{ addBlock('index')|raw }}
|
{{ addBlock('index')|raw }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@ -6,14 +6,14 @@ use Anomaly\Streams\Platform\Database\Migration\Migration;
|
|||||||
|
|
||||||
class VisiosoftModuleCatsAddIndexTable extends Migration
|
class VisiosoftModuleCatsAddIndexTable extends Migration
|
||||||
{
|
{
|
||||||
public function up()
|
// public function up()
|
||||||
{
|
// {
|
||||||
Schema::table('cats_category', function (Blueprint $table) {
|
// Schema::table('cats_category', function (Blueprint $table) {
|
||||||
$table->index('deleted_at');
|
// $table->index('deleted_at');
|
||||||
$table->index('slug');
|
// $table->index('slug');
|
||||||
$table->index('parent_category_id');
|
// $table->index('parent_category_id');
|
||||||
$table->index('icon_id');
|
// $table->index('icon_id');
|
||||||
$table->index('sort_order');
|
// $table->index('sort_order');
|
||||||
});
|
// });
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|||||||
@ -15,8 +15,6 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"require": {
|
"require": {
|
||||||
"wikimedia/composer-merge-plugin": "~1.4.0",
|
|
||||||
"anomaly/streams-composer-plugin": "~1.1.0",
|
|
||||||
"anomaly/streams-platform": "~1.9.0",
|
"anomaly/streams-platform": "~1.9.0",
|
||||||
"anomaly/default_authenticator-extension": "~2.1.0",
|
"anomaly/default_authenticator-extension": "~2.1.0",
|
||||||
"anomaly/throttle_security_check-extension": "~2.1.0",
|
"anomaly/throttle_security_check-extension": "~2.1.0",
|
||||||
@ -63,6 +61,7 @@
|
|||||||
"anomaly/settings-module": "~2.4.0",
|
"anomaly/settings-module": "~2.4.0",
|
||||||
"anomaly/blocks-module": "~1.3.0",
|
"anomaly/blocks-module": "~1.3.0",
|
||||||
"anomaly/search-module": "~3.0.0",
|
"anomaly/search-module": "~3.0.0",
|
||||||
|
"anomaly/system-module": "~1.1.0",
|
||||||
"anomaly/users-module": "~2.5.0",
|
"anomaly/users-module": "~2.5.0",
|
||||||
"anomaly/pages-module": "~2.6.0",
|
"anomaly/pages-module": "~2.6.0",
|
||||||
"anomaly/posts-module": "~2.6.0",
|
"anomaly/posts-module": "~2.6.0",
|
||||||
@ -90,16 +89,16 @@
|
|||||||
"symfony/dom-crawler": "3.1.*",
|
"symfony/dom-crawler": "3.1.*",
|
||||||
"anomaly/installer-module": "~2.4.0"
|
"anomaly/installer-module": "~2.4.0"
|
||||||
},
|
},
|
||||||
"repositories": {
|
"repositories": [
|
||||||
"0": {
|
{
|
||||||
"type": "composer",
|
"type": "composer",
|
||||||
"url": "https://packages.pyrocms.com"
|
"url": "https://packages.pyrocms.com"
|
||||||
},
|
},
|
||||||
"1": {
|
{
|
||||||
"type": "composer",
|
"type": "composer",
|
||||||
"url": "https://community.pyrocms.com"
|
"url": "https://community.pyrocms.com"
|
||||||
}
|
}
|
||||||
},
|
],
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"classmap": [
|
"classmap": [
|
||||||
"database"
|
"database"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user