mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -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 cats = entries('cats','category').whereIn('id', hidePriceCats).get() %}
|
||||
{% set isHidden = false %}
|
||||
{% if (hidePriceCats != null) %}
|
||||
{% set cats = entries('cats','category').whereIn('id', hidePriceCats).get() %}
|
||||
{% set isHidden = false %}
|
||||
|
||||
{% for cat in cats %}
|
||||
{% if request().segment(2) == cat.slug %}
|
||||
{% set isHidden = true %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% for cat in cats %}
|
||||
{% if request().segment(2) == cat.slug %}
|
||||
{% set isHidden = true %}
|
||||
{% endif %}
|
||||
{% 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-header breadcrumb mb-0" id="priceHeading">
|
||||
<h5 class="mb-0">
|
||||
<button class="btn btn-link text-dark d-flex align-items-center" data-toggle="collapse"
|
||||
data-target="#price"
|
||||
aria-expanded="true" aria-controls="price">
|
||||
{# <img src="{{ img('visiosoft.module.advs::images/price-icon.svg').url }}" alt="price icon"#}
|
||||
{# class="mr-2">#}
|
||||
{# <img src="{{ img('visiosoft.module.advs::images/price-icon.svg').url }}" alt="price icon"#}
|
||||
{# class="mr-2">#}
|
||||
<span>{{ trans("visiosoft.module.advs::field.price.name") }}</span>
|
||||
</button>
|
||||
</h5>
|
||||
@ -47,7 +49,6 @@
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
<?php namespace Visiosoft\AdvsModule;
|
||||
|
||||
|
||||
use Anomaly\FilesModule\File\FileModel;
|
||||
use Anomaly\Streams\Platform\Addon\AddonCollection;
|
||||
use Anomaly\Streams\Platform\Addon\AddonServiceProvider;
|
||||
@ -67,7 +68,6 @@ class AdvsModuleServiceProvider extends AddonServiceProvider
|
||||
'uses' => 'Visiosoft\AdvsModule\Http\Controller\Admin\ExcelController@import',
|
||||
],
|
||||
|
||||
|
||||
// AdvsController
|
||||
'advs/list' => [
|
||||
'as' => 'visiosoft.module.advs::list',
|
||||
|
||||
@ -1,10 +1,8 @@
|
||||
<div class="home-container">
|
||||
|
||||
|
||||
|
||||
<div class="row">
|
||||
<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 }}
|
||||
|
||||
<div class="row p-2">
|
||||
@ -19,8 +17,6 @@
|
||||
{% endif %}
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row list-classified-home">
|
||||
{% for latestAd in latestAds() %}
|
||||
<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;">
|
||||
<a href="{{ latestAd.detail_url }}">
|
||||
<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">
|
||||
</div>
|
||||
</a>
|
||||
@ -70,9 +67,4 @@
|
||||
{{ addBlock('index')|raw }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
@ -6,14 +6,14 @@ use Anomaly\Streams\Platform\Database\Migration\Migration;
|
||||
|
||||
class VisiosoftModuleCatsAddIndexTable extends Migration
|
||||
{
|
||||
public function up()
|
||||
{
|
||||
Schema::table('cats_category', function (Blueprint $table) {
|
||||
$table->index('deleted_at');
|
||||
$table->index('slug');
|
||||
$table->index('parent_category_id');
|
||||
$table->index('icon_id');
|
||||
$table->index('sort_order');
|
||||
});
|
||||
}
|
||||
// public function up()
|
||||
// {
|
||||
// Schema::table('cats_category', function (Blueprint $table) {
|
||||
// $table->index('deleted_at');
|
||||
// $table->index('slug');
|
||||
// $table->index('parent_category_id');
|
||||
// $table->index('icon_id');
|
||||
// $table->index('sort_order');
|
||||
// });
|
||||
// }
|
||||
}
|
||||
|
||||
@ -15,8 +15,6 @@
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
"wikimedia/composer-merge-plugin": "~1.4.0",
|
||||
"anomaly/streams-composer-plugin": "~1.1.0",
|
||||
"anomaly/streams-platform": "~1.9.0",
|
||||
"anomaly/default_authenticator-extension": "~2.1.0",
|
||||
"anomaly/throttle_security_check-extension": "~2.1.0",
|
||||
@ -63,6 +61,7 @@
|
||||
"anomaly/settings-module": "~2.4.0",
|
||||
"anomaly/blocks-module": "~1.3.0",
|
||||
"anomaly/search-module": "~3.0.0",
|
||||
"anomaly/system-module": "~1.1.0",
|
||||
"anomaly/users-module": "~2.5.0",
|
||||
"anomaly/pages-module": "~2.6.0",
|
||||
"anomaly/posts-module": "~2.6.0",
|
||||
@ -90,16 +89,16 @@
|
||||
"symfony/dom-crawler": "3.1.*",
|
||||
"anomaly/installer-module": "~2.4.0"
|
||||
},
|
||||
"repositories": {
|
||||
"0": {
|
||||
"repositories": [
|
||||
{
|
||||
"type": "composer",
|
||||
"url": "https://packages.pyrocms.com"
|
||||
},
|
||||
"1": {
|
||||
{
|
||||
"type": "composer",
|
||||
"url": "https://community.pyrocms.com"
|
||||
}
|
||||
},
|
||||
],
|
||||
"autoload": {
|
||||
"classmap": [
|
||||
"database"
|
||||
@ -133,4 +132,4 @@
|
||||
"preferred-install": "dist",
|
||||
"optimize-autoloader": true
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user