mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-10 15:26:10 -06:00
Merge branch 'master' of https://github.com/openclassify/openclassify into master
This commit is contained in:
commit
ca9f268e72
@ -43,6 +43,12 @@ return [
|
|||||||
'register_email_field',
|
'register_email_field',
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
'filter' => [
|
||||||
|
'title' => 'visiosoft.module.advs::section.filter',
|
||||||
|
'fields' => [
|
||||||
|
'hide_price_filter','hide_date_filter','hide_photo_filter','hide_map_filter'
|
||||||
|
],
|
||||||
|
],
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|||||||
@ -201,4 +201,31 @@ return [
|
|||||||
'default_value' => true,
|
'default_value' => true,
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
|
||||||
|
'hide_price_filter' => [
|
||||||
|
'type' => 'anomaly.field_type.boolean',
|
||||||
|
'config' => [
|
||||||
|
'default_value' => false,
|
||||||
|
]
|
||||||
|
],
|
||||||
|
|
||||||
|
'hide_date_filter' => [
|
||||||
|
'type' => 'anomaly.field_type.boolean',
|
||||||
|
'config' => [
|
||||||
|
'default_value' => false,
|
||||||
|
]
|
||||||
|
],
|
||||||
|
|
||||||
|
'hide_photo_filter' => [
|
||||||
|
'type' => 'anomaly.field_type.boolean',
|
||||||
|
'config' => [
|
||||||
|
'default_value' => false,
|
||||||
|
]
|
||||||
|
],
|
||||||
|
'hide_map_filter' => [
|
||||||
|
'type' => 'anomaly.field_type.boolean',
|
||||||
|
'config' => [
|
||||||
|
'default_value' => false,
|
||||||
|
]
|
||||||
|
],
|
||||||
];
|
];
|
||||||
|
|||||||
@ -40,13 +40,6 @@ $('.sort-by-item').on('click', function () {
|
|||||||
window.location.replace(goURL);
|
window.location.replace(goURL);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
$('.ad-info-right-bar-video').on('click', function () {
|
|
||||||
$(".video-ad-tooltip-" + $(this).attr('data-id'))[0].play();
|
|
||||||
$(".video-ad-tooltip-" + $(this).attr('data-id'))[0].controls = false;
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
let searchParams = new URLSearchParams(window.location.search);
|
let searchParams = new URLSearchParams(window.location.search);
|
||||||
|
|
||||||
@ -167,12 +160,6 @@ $(document).ready(function () {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
$('.ad-info-right-bar-video').tooltip({
|
|
||||||
animated: 'fade',
|
|
||||||
placement: 'bottom',
|
|
||||||
html: true
|
|
||||||
});
|
|
||||||
|
|
||||||
$("#listFilterForm").submit(function(e) {
|
$("#listFilterForm").submit(function(e) {
|
||||||
const inputs = $('#listFilterForm :input');
|
const inputs = $('#listFilterForm :input');
|
||||||
[...inputs].forEach((input) => {
|
[...inputs].forEach((input) => {
|
||||||
|
|||||||
@ -40,6 +40,7 @@ return [
|
|||||||
'general' => 'General',
|
'general' => 'General',
|
||||||
'ads' => 'Ads',
|
'ads' => 'Ads',
|
||||||
'user' => 'User',
|
'user' => 'User',
|
||||||
|
'filter' => 'Filter',
|
||||||
'options' => [
|
'options' => [
|
||||||
'title' => 'Options',
|
'title' => 'Options',
|
||||||
],
|
],
|
||||||
|
|||||||
@ -133,4 +133,17 @@ return [
|
|||||||
'market_place' => [
|
'market_place' => [
|
||||||
'name' => 'Market Place',
|
'name' => 'Market Place',
|
||||||
],
|
],
|
||||||
|
|
||||||
|
'hide_price_filter' => [
|
||||||
|
'name' => 'Hide Price Filter',
|
||||||
|
],
|
||||||
|
'hide_date_filter' => [
|
||||||
|
'name' => 'Hide Date Filter',
|
||||||
|
],
|
||||||
|
'hide_photo_filter' => [
|
||||||
|
'name' => 'Hide Photo Filter',
|
||||||
|
],
|
||||||
|
'hide_map_filter' => [
|
||||||
|
'name' => 'Hide Map Filter',
|
||||||
|
],
|
||||||
];
|
];
|
||||||
|
|||||||
@ -48,19 +48,23 @@
|
|||||||
{% include 'visiosoft.module.advs::list/partials/price-filter' %}
|
{% include 'visiosoft.module.advs::list/partials/price-filter' %}
|
||||||
<!-- Price Filter End -->
|
<!-- Price Filter End -->
|
||||||
|
|
||||||
|
{% if setting_value('visiosoft.module.advs::hide_date_filter') == false %}
|
||||||
<!-- Date Filter Start -->
|
<!-- Date Filter Start -->
|
||||||
<div class="card mb-3">
|
<div class="card mb-3">
|
||||||
<div class="card-header breadcrumb mb-0" id="dateHeading">
|
<div class="card-header breadcrumb mb-0" id="dateHeading">
|
||||||
<h5 class="mb-0">
|
<h5 class="mb-0">
|
||||||
<button class="btn btn-link text-dark d-flex align-items-center" data-toggle="collapse" data-target="#date"
|
<button class="btn btn-link text-dark d-flex align-items-center"
|
||||||
aria-expanded="true" aria-controls="date">
|
data-toggle="collapse" data-target="#dateContainer"
|
||||||
<img src="{{ img('visiosoft.module.advs::images/date-icon.svg').url }}" class="mr-2"
|
aria-expanded="true" aria-controls="dateContainer">
|
||||||
|
<img src="{{ img('visiosoft.module.advs::images/date-icon.svg').url }}"
|
||||||
|
class="mr-2"
|
||||||
alt="date icon">
|
alt="date icon">
|
||||||
<span>{{ trans("visiosoft.module.advs::field.date.name") }}</span>
|
<span>{{ trans("visiosoft.module.advs::field.date.name") }}</span>
|
||||||
</button>
|
</button>
|
||||||
</h5>
|
</h5>
|
||||||
</div>
|
</div>
|
||||||
<div id="dateContainer" class="collapse show overflow-auto" aria-labelledby="dateHeading"
|
<div id="dateContainer" class="collapse show overflow-auto"
|
||||||
|
aria-labelledby="dateHeading"
|
||||||
style="max-height: 300px;">
|
style="max-height: 300px;">
|
||||||
<div class="d-flex flex-column p-3 m-0">
|
<div class="d-flex flex-column p-3 m-0">
|
||||||
<div class="form-check py-1">
|
<div class="form-check py-1">
|
||||||
@ -100,20 +104,24 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- Date Filter End -->
|
<!-- Date Filter End -->
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% if setting_value('visiosoft.module.advs::hide_photo_filter') == false %}
|
||||||
<!-- Media Filter Start -->
|
<!-- Media Filter Start -->
|
||||||
<div class="card mb-3">
|
<div class="card mb-3">
|
||||||
<div class="card-header breadcrumb mb-0" id="mediaHeading">
|
<div class="card-header breadcrumb mb-0" id="mediaHeading">
|
||||||
<h5 class="mb-0">
|
<h5 class="mb-0">
|
||||||
<button class="btn btn-link text-dark" data-toggle="collapse" data-target="#media"
|
<button class="btn btn-link text-dark" data-toggle="collapse"
|
||||||
aria-expanded="true" aria-controls="media">
|
data-target="#mediaContainer"
|
||||||
|
aria-expanded="true" aria-controls="mediaContainer">
|
||||||
<i class="fa fa-camera"></i>
|
<i class="fa fa-camera"></i>
|
||||||
{{ trans("visiosoft.module.advs::field.photo.name") }}
|
{{ trans("visiosoft.module.advs::field.photo.name") }}
|
||||||
, {{ trans("visiosoft.module.advs::field.video.name") }}
|
, {{ trans("visiosoft.module.advs::field.video.name") }}
|
||||||
</button>
|
</button>
|
||||||
</h5>
|
</h5>
|
||||||
</div>
|
</div>
|
||||||
<div id="mediaContainer" class="collapse show overflow-auto" aria-labelledby="mediaHeading"
|
<div id="mediaContainer" class="collapse show overflow-auto"
|
||||||
|
aria-labelledby="mediaHeading"
|
||||||
style="max-height: 300px;">
|
style="max-height: 300px;">
|
||||||
<div class="d-flex p-3 m-0 flex-column">
|
<div class="d-flex p-3 m-0 flex-column">
|
||||||
<div class="form-check py-1">
|
<div class="form-check py-1">
|
||||||
@ -142,14 +150,16 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- Media Filter End -->
|
<!-- Media Filter End -->
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% if setting_value('visiosoft.module.advs::hide_map_filter') == false %}
|
||||||
<!-- Map Filter Start -->
|
<!-- Map Filter Start -->
|
||||||
<div class="card mb-3">
|
<div class="card mb-3">
|
||||||
<div class="card-header breadcrumb mb-0" id="mapHeading">
|
<div class="card-header breadcrumb mb-0" id="mapHeading">
|
||||||
<h5 class="mb-0">
|
<h5 class="mb-0">
|
||||||
<button class="btn btn-link text-dark" data-toggle="collapse"
|
<button class="btn btn-link text-dark" data-toggle="collapse"
|
||||||
data-target="#mapFilter"
|
data-target="#mapContainer"
|
||||||
aria-expanded="true" aria-controls="mapFilter">
|
aria-expanded="true" aria-controls="mapContainer">
|
||||||
<i class="fa fa-map"></i>
|
<i class="fa fa-map"></i>
|
||||||
{{ trans("visiosoft.module.advs::field.map.name") }}
|
{{ trans("visiosoft.module.advs::field.map.name") }}
|
||||||
</button>
|
</button>
|
||||||
@ -173,6 +183,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- Map Filter End -->
|
<!-- Map Filter End -->
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="card-header bg-primary text-center" id="submitHeading">
|
<div class="card-header bg-primary text-center" id="submitHeading">
|
||||||
|
|||||||
@ -1,15 +1,17 @@
|
|||||||
|
{% if setting_value('visiosoft.module.advs::hide_price_filter') == false %}
|
||||||
<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" data-target="#price"
|
<button class="btn btn-link text-dark d-flex align-items-center" data-toggle="collapse"
|
||||||
|
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" 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>
|
<span>{{ trans("visiosoft.module.advs::field.price.name") }}</span>
|
||||||
</button>
|
</button>
|
||||||
</h5>
|
</h5>
|
||||||
</div>
|
</div>
|
||||||
<div id="price" class="collapse show overflow-auto" aria-labelledby="priceHeading"
|
<div id="price" class="collapse show overflow-auto" aria-labelledby="priceHeading"
|
||||||
data-parent="#filter"
|
|
||||||
style="max-height: 300px;">
|
style="max-height: 300px;">
|
||||||
<div class="row p-0 m-0">
|
<div class="row p-0 m-0">
|
||||||
{% set active_currencies = setting_value('visiosoft.module.advs::enabled_currencies') %}
|
{% set active_currencies = setting_value('visiosoft.module.advs::enabled_currencies') %}
|
||||||
@ -39,3 +41,4 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
{% endif %}
|
||||||
@ -11,16 +11,18 @@ class appendRequestURL
|
|||||||
protected $request;
|
protected $request;
|
||||||
protected $url;
|
protected $url;
|
||||||
protected $new_parameters;
|
protected $new_parameters;
|
||||||
|
protected $remove_parameters;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* appendRequestURL constructor.
|
* appendRequestURL constructor.
|
||||||
* @param $request
|
* @param $request
|
||||||
*/
|
*/
|
||||||
public function __construct($request, $url, $new_parameters = [])
|
public function __construct($request, $url, $new_parameters = [], $remove_parameters = [])
|
||||||
{
|
{
|
||||||
$this->url = $url;
|
$this->url = $url;
|
||||||
$this->request = $request;
|
$this->request = $request;
|
||||||
$this->new_parameters = $new_parameters;
|
$this->new_parameters = $new_parameters;
|
||||||
|
$this->remove_parameters = $remove_parameters;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -28,23 +30,23 @@ class appendRequestURL
|
|||||||
*/
|
*/
|
||||||
public function handle()
|
public function handle()
|
||||||
{
|
{
|
||||||
if (count($this->new_parameters) === 0 && count($this->request) === 0) {
|
|
||||||
return $this->url;
|
$request = $this->removeParameters($this->request);
|
||||||
} elseif (count($this->new_parameters) > 0 && count($this->request) > 0) {
|
$count_newParameters = count($this->new_parameters);
|
||||||
return $this->url
|
$count_request = count($this->request);
|
||||||
. (Str::contains($this->url, '?') ? '&' : '?')
|
|
||||||
. Arr::query($this->appends(array_merge($this->request, $this->new_parameters)));
|
if ($count_newParameters > 0) {
|
||||||
} elseif (count($this->new_parameters) > 0 && count($this->request) === 0) {
|
return ($count_request > 0) ? $this->createURL(array_merge($request, $this->new_parameters)) : $this->createURL($this->new_parameters);
|
||||||
return $this->url
|
} else {
|
||||||
. (Str::contains($this->url, '?') ? '&' : '?')
|
return ($count_request > 0) ? $this->createURL($request) : $this->url;
|
||||||
. Arr::query($this->appends($this->new_parameters));
|
|
||||||
} elseif (count($this->new_parameters) === 0 && count($this->request) > 0) {
|
|
||||||
return $this->url
|
|
||||||
. (Str::contains($this->url, '?') ? '&' : '?')
|
|
||||||
. Arr::query($this->appends($this->request));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function createURL($append)
|
||||||
|
{
|
||||||
|
return $this->url . (Str::contains($this->url, '?') ? '&' : '?') . Arr::query($this->appends($append));
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param $key
|
* @param $key
|
||||||
* @param null $value
|
* @param null $value
|
||||||
@ -87,4 +89,13 @@ class appendRequestURL
|
|||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function removeParameters(array $array)
|
||||||
|
{
|
||||||
|
foreach ($this->remove_parameters as $parameter) {
|
||||||
|
unset($array[$parameter]);
|
||||||
|
}
|
||||||
|
|
||||||
|
return $array;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -57,9 +57,9 @@ class AdvsModulePlugin extends Plugin
|
|||||||
),
|
),
|
||||||
new \Twig_SimpleFunction(
|
new \Twig_SimpleFunction(
|
||||||
'appendRequestURL',
|
'appendRequestURL',
|
||||||
function ($request, $url, $new_parameters) {
|
function ($request, $url, $new_parameters, $removeParams = []) {
|
||||||
|
|
||||||
return $this->dispatch(new appendRequestURL($request, $url, $new_parameters));
|
return $this->dispatch(new appendRequestURL($request, $url, $new_parameters, $removeParams));
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
new \Twig_SimpleFunction(
|
new \Twig_SimpleFunction(
|
||||||
|
|||||||
@ -35,13 +35,19 @@ class redirectDiffrentLang
|
|||||||
$setting_language = setting_value('streams::default_locale');
|
$setting_language = setting_value('streams::default_locale');
|
||||||
$current_language = $request->session()->get('_locale', $setting_language);
|
$current_language = $request->session()->get('_locale', $setting_language);
|
||||||
$request_url = ltrim($request->getRequestUri(), '/');
|
$request_url = ltrim($request->getRequestUri(), '/');
|
||||||
if ($current_language != $setting_language) {
|
|
||||||
if ($request_url != "" and $original_url != '/' . $current_language . '/' . $request_url) {
|
// If the segment(1) is admin and language parameters is not null, no forwarding will be made.
|
||||||
return $this->redirect->to('/' . $current_language . '/' . $request_url);
|
if ($request->segment(1) == "admin" and in_array($current_language, explode('/', $original_url))) {
|
||||||
|
return $this->redirect->to($request->fullUrl());
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
if ($request_url == "" and '/' . $current_language != $original_url) {
|
if ($current_language != $setting_language) {
|
||||||
$this->redirect->to($current_language);
|
|
||||||
|
// If the method is get, no forwarding will be made.
|
||||||
|
// If the segment(1) is admin, no forwarding will be made.
|
||||||
|
|
||||||
|
if ($request->method() == "GET" and $request->segment(1) != "admin" and $request_url != "" and $original_url != '/' . $current_language . '/' . $request_url) {
|
||||||
|
return $this->redirect->to('/' . $current_language . '/' . $request_url);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -0,0 +1,18 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="{{ config('app.locale') }}">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
{% block styles %}{% endblock %}
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="container" style="max-width: 800px;">
|
||||||
|
|
||||||
|
{% include "theme::partials/messages" %}
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
|
{% endblock %}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@ -0,0 +1,37 @@
|
|||||||
|
<!doctype html>
|
||||||
|
|
||||||
|
<!--[if lt IE 7]>
|
||||||
|
<html class="nojs ms lt_ie7" lang="en"><![endif]-->
|
||||||
|
<!--[if IE 7]>
|
||||||
|
<html class="nojs ms ie7" lang="en"><![endif]-->
|
||||||
|
<!--[if IE 8]>
|
||||||
|
<html class="nojs ms ie8" lang="en"><![endif]-->
|
||||||
|
<!--[if gt IE 8]>
|
||||||
|
<html class="nojs ms" lang="en"><![endif]-->
|
||||||
|
|
||||||
|
<html>
|
||||||
|
|
||||||
|
<head>
|
||||||
|
{% include "visiosoft.theme.base::partials/metadata" %}
|
||||||
|
{% block styles %}{% endblock %}
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
|
||||||
|
{% include "visiosoft.theme.base::partials/header" %}
|
||||||
|
|
||||||
|
<main id="main">
|
||||||
|
<div class="container">
|
||||||
|
|
||||||
|
{% include "visiosoft.theme.base::partials/messages" %}
|
||||||
|
|
||||||
|
{% block content %}{% endblock %}
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
|
||||||
|
{% include "visiosoft.theme.base::partials/footer" %}
|
||||||
|
{% include "visiosoft.theme.base::partials/settings" %}
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@ -0,0 +1,5 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
return [
|
||||||
|
'categories_mass_delete_success' => 'Categories and related sub-categories has been deleted successfully!',
|
||||||
|
];
|
||||||
@ -8,8 +8,7 @@
|
|||||||
</button>
|
</button>
|
||||||
</h5>
|
</h5>
|
||||||
</div>
|
</div>
|
||||||
<div id="category" class="collapse show overflow-auto" aria-labelledby="categoryHeading"
|
<div id="category" class="collapse show overflow-auto" aria-labelledby="categoryHeading" style="max-height: 300px;">
|
||||||
data-parent="#filter" style="max-height: 300px;">
|
|
||||||
<div class="list-group">
|
<div class="list-group">
|
||||||
{% for maincat in params.mainCats %}
|
{% for maincat in params.mainCats %}
|
||||||
{% set name = maincat['val'] %}
|
{% set name = maincat['val'] %}
|
||||||
@ -29,9 +28,9 @@
|
|||||||
{% set citySlug = pathInfo[3] %}
|
{% set citySlug = pathInfo[3] %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<a href="{% if(viewType != "map") %}
|
<a href="{% if(viewType != "map") %}
|
||||||
{{ appendRequestURL(request_query(),url_route('adv_list_seo', [catId.slug, citySlug]),{}) }}
|
{{ appendRequestURL(request_query(),url_route('adv_list_seo', [catId.slug, citySlug]),{},['page']) }}
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ appendRequestURL(request_query(),url_route('advs_map_list'),{'cat':id}) }}
|
{{ appendRequestURL(request_query(),url_route('advs_map_list'),{'cat':id},['page']) }}
|
||||||
{% endif %}" class="list-group-item list-group-item-action text-truncate">
|
{% endif %}" class="list-group-item list-group-item-action text-truncate">
|
||||||
<i class="fas fa-dot-circle"></i>
|
<i class="fas fa-dot-circle"></i>
|
||||||
{{ name }}
|
{{ name }}
|
||||||
@ -41,9 +40,9 @@
|
|||||||
{% if subcat.parent_category_id == maincat['id'] %}
|
{% if subcat.parent_category_id == maincat['id'] %}
|
||||||
{% set subCatId = entries('cats', 'category').find(subcat.id) %}
|
{% set subCatId = entries('cats', 'category').find(subcat.id) %}
|
||||||
<a href="{% if(viewType != "map") %}
|
<a href="{% if(viewType != "map") %}
|
||||||
{{ appendRequestURL(request_query(),url_route('adv_list_seo', [subCatId.slug, citySlug]),{}) }}
|
{{ appendRequestURL(request_query(),url_route('adv_list_seo', [subCatId.slug, citySlug]),{},['page']) }}
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ appendRequestURL(request_query(),url_route('advs_map_list'),{'cat':subcat.id}) }}
|
{{ appendRequestURL(request_query(),url_route('advs_map_list'),{'cat':subcat.id},['page']) }}
|
||||||
{% endif %}" class="list-group-item list-group-item-action text-truncate">
|
{% endif %}" class="list-group-item list-group-item-action text-truncate">
|
||||||
{{ subcat.name }}
|
{{ subcat.name }}
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
<?php namespace Visiosoft\CatsModule\Category\Table;
|
<?php namespace Visiosoft\CatsModule\Category\Table;
|
||||||
|
|
||||||
use Anomaly\Streams\Platform\Ui\Table\TableBuilder;
|
use Anomaly\Streams\Platform\Ui\Table\TableBuilder;
|
||||||
|
use Visiosoft\CatsModule\Category\Table\Handler\Delete;
|
||||||
|
|
||||||
class CategoryTableBuilder extends TableBuilder
|
class CategoryTableBuilder extends TableBuilder
|
||||||
{
|
{
|
||||||
@ -68,6 +69,9 @@ class CategoryTableBuilder extends TableBuilder
|
|||||||
* @var array|string
|
* @var array|string
|
||||||
*/
|
*/
|
||||||
protected $actions = [
|
protected $actions = [
|
||||||
|
'delete' => [
|
||||||
|
'handler' => Delete::class
|
||||||
|
]
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -0,0 +1,26 @@
|
|||||||
|
<?php namespace Visiosoft\CatsModule\Category\Table\Handler;
|
||||||
|
|
||||||
|
use Anomaly\Streams\Platform\Ui\Table\Component\Action\ActionHandler;
|
||||||
|
use Visiosoft\CatsModule\Category\Contract\CategoryRepositoryInterface;
|
||||||
|
use Visiosoft\CatsModule\Category\Table\CategoryTableBuilder;
|
||||||
|
|
||||||
|
class Delete extends ActionHandler
|
||||||
|
{
|
||||||
|
public function handle(
|
||||||
|
CategoryTableBuilder $builder, array $selected,
|
||||||
|
CategoryRepositoryInterface $categoryRepository
|
||||||
|
)
|
||||||
|
{
|
||||||
|
try {
|
||||||
|
foreach ($selected as $id) {
|
||||||
|
$categoryRepository->DeleteCategories($id);
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($selected) {
|
||||||
|
$this->messages->success(trans('visiosoft.module.cats::message.categories_mass_delete_success'));
|
||||||
|
}
|
||||||
|
} catch (\Exception $e) {
|
||||||
|
$this->messages->error($e->getMessage());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -6,4 +6,34 @@ return [
|
|||||||
'type' => 'anomaly.field_type.textarea',
|
'type' => 'anomaly.field_type.textarea',
|
||||||
'input_view' => 'visiosoft.theme.defaultadmin::admin/navigation/settings',
|
'input_view' => 'visiosoft.theme.defaultadmin::admin/navigation/settings',
|
||||||
],
|
],
|
||||||
|
"icon" => [
|
||||||
|
"type" => "anomaly.field_type.file",
|
||||||
|
"config" => [
|
||||||
|
"folders" => ['images'],
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"title" => [
|
||||||
|
"type" => "anomaly.field_type.text",
|
||||||
|
"config" => [
|
||||||
|
"default_value" => 'OpenClassify',
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"sidebar_main_color" => [
|
||||||
|
"type" => "anomaly.field_type.colorpicker",
|
||||||
|
"config" => [
|
||||||
|
"default_value" => '#252525',
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"sidebar_secondary_color" => [
|
||||||
|
"type" => "anomaly.field_type.colorpicker",
|
||||||
|
"config" => [
|
||||||
|
"default_value" => '#333333',
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"active_sidebar_border_color" => [
|
||||||
|
"type" => "anomaly.field_type.colorpicker",
|
||||||
|
"config" => [
|
||||||
|
"default_value" => '#c61db4',
|
||||||
|
]
|
||||||
|
],
|
||||||
];
|
];
|
||||||
|
|||||||
@ -769,8 +769,8 @@ pre code {
|
|||||||
.container-fluid {
|
.container-fluid {
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
/*padding-left: 15px;*/
|
padding-left: 15px;
|
||||||
/*padding-right: 15px;*/
|
padding-right: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.row {
|
.row {
|
||||||
|
|||||||
@ -26,7 +26,7 @@
|
|||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
overflow-x: scroll;
|
overflow-x: scroll;
|
||||||
background: #333333;
|
background: {{ setting_value('visiosoft.theme.defaultadmin::sidebar_secondary_color') }};
|
||||||
padding-bottom: 70px;
|
padding-bottom: 70px;
|
||||||
box-shadow: 2px 0 0 rgba(66, 66, 66, 0.1);
|
box-shadow: 2px 0 0 rgba(66, 66, 66, 0.1);
|
||||||
}
|
}
|
||||||
@ -218,8 +218,8 @@
|
|||||||
#topbar .logo span {
|
#topbar .logo span {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
#topbar .logo svg {
|
#topbar .logo svg, #topbar .logo img {
|
||||||
width: 22px;
|
max-width: 40px;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
margin-top: -9px;
|
margin-top: -9px;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
@ -398,7 +398,7 @@ body.expand #topbar .topbar-left .logo span {
|
|||||||
position: fixed;
|
position: fixed;
|
||||||
overflow-x: scroll;
|
overflow-x: scroll;
|
||||||
overflow-y: hidden;
|
overflow-y: hidden;
|
||||||
background: #252525;
|
background: {{ setting_value('visiosoft.theme.defaultadmin::sidebar_main_color') }};
|
||||||
padding-bottom: 70px;
|
padding-bottom: 70px;
|
||||||
transition: width 200ms cubic-bezier(0.075, 0.82, 0.165, 1);
|
transition: width 200ms cubic-bezier(0.075, 0.82, 0.165, 1);
|
||||||
}
|
}
|
||||||
@ -456,9 +456,9 @@ body.expand #topbar .topbar-left .logo span {
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
#sidebar > ul > li.active {
|
#sidebar > ul > li.active {
|
||||||
background: #333333;
|
background: {{ setting_value('visiosoft.theme.defaultadmin::sidebar_secondary_color') }};
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
border-left: 3px solid #ffffff;
|
border-left: 3px solid {{ setting_value('visiosoft.theme.defaultadmin::active_sidebar_border_color') }} !important;
|
||||||
}
|
}
|
||||||
#sidebar > ul > li.active a {
|
#sidebar > ul > li.active a {
|
||||||
color: #eeeeee;
|
color: #eeeeee;
|
||||||
@ -2625,9 +2625,9 @@ body {
|
|||||||
#login .login-container .logo {
|
#login .login-container .logo {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
#login .login-container .logo svg {
|
#login .login-container .logo svg, #login .login-container .logo img {
|
||||||
width: 45px;
|
width: 45px;
|
||||||
height: 82px;
|
max-height: 82px;
|
||||||
fill: #ffffff;
|
fill: #ffffff;
|
||||||
margin-top: -30px;
|
margin-top: -30px;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
@ -2665,9 +2665,9 @@ body {
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
font-family: "Montserrat", sans-serif;
|
font-family: "Montserrat", sans-serif;
|
||||||
}
|
}
|
||||||
#login .logo svg {
|
#login .logo svg, #login .logo img {
|
||||||
width: 45px;
|
width: 45px;
|
||||||
height: 82px;
|
max-height: 82px;
|
||||||
margin-top: -30px;
|
margin-top: -30px;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
@ -2719,9 +2719,9 @@ body {
|
|||||||
display: inherit;
|
display: inherit;
|
||||||
margin-bottom: 2rem;
|
margin-bottom: 2rem;
|
||||||
}
|
}
|
||||||
#login .login-container .logo svg {
|
#login .login-container .logo svg, #login .login-container .logo img {
|
||||||
width: 55px;
|
width: 55px;
|
||||||
height: 100px;
|
max-height: 100px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@media (max-width: 767px) {
|
@media (max-width: 767px) {
|
||||||
|
|||||||
@ -11,4 +11,19 @@ return [
|
|||||||
'warning' => 'The first accessible navigation item is used as the <strong>home</strong> area.',
|
'warning' => 'The first accessible navigation item is used as the <strong>home</strong> area.',
|
||||||
'reorder' => 'Drag and drop the primary navigation items in the <strong>sidebar</strong> to reorder them.',
|
'reorder' => 'Drag and drop the primary navigation items in the <strong>sidebar</strong> to reorder them.',
|
||||||
],
|
],
|
||||||
|
"icon" => [
|
||||||
|
'name' => 'Icon',
|
||||||
|
],
|
||||||
|
"title" => [
|
||||||
|
'name' => 'Title',
|
||||||
|
],
|
||||||
|
"sidebar_main_color" => [
|
||||||
|
'name' => 'Sidebar Main Color',
|
||||||
|
],
|
||||||
|
"sidebar_secondary_color" => [
|
||||||
|
'name' => 'Sidebar Secondary Color',
|
||||||
|
],
|
||||||
|
"active_sidebar_border_color" => [
|
||||||
|
'name' => 'Active Sidebar Border Color',
|
||||||
|
]
|
||||||
];
|
];
|
||||||
|
|||||||
@ -4,8 +4,12 @@
|
|||||||
|
|
||||||
<div class="logo-container">
|
<div class="logo-container">
|
||||||
<div class="logo">
|
<div class="logo">
|
||||||
|
{% if setting_value('visiosoft.theme.defaultadmin::icon') %}
|
||||||
|
<img src="{{ file(setting_value('visiosoft.theme.defaultadmin::icon')).url }}" alt="site icon">
|
||||||
|
{% else %}
|
||||||
{{ img('theme::img/icon.svg').data|raw }}
|
{{ img('theme::img/icon.svg').data|raw }}
|
||||||
OpenClassify
|
{% endif %}
|
||||||
|
{{ setting_value('visiosoft.theme.defaultadmin::title') }}
|
||||||
</div>
|
</div>
|
||||||
<div class="overlay"></div>
|
<div class="overlay"></div>
|
||||||
</div>
|
</div>
|
||||||
@ -14,7 +18,11 @@
|
|||||||
<div class="login-wrapper container-fluid">
|
<div class="login-wrapper container-fluid">
|
||||||
|
|
||||||
<div class="logo">
|
<div class="logo">
|
||||||
|
{% if setting_value('visiosoft.theme.defaultadmin::icon') %}
|
||||||
|
<img src="{{ file(setting_value('visiosoft.theme.defaultadmin::icon')).url }}" alt="site icon">
|
||||||
|
{% else %}
|
||||||
{{ img('theme::img/icon.svg').data|raw }}
|
{{ img('theme::img/icon.svg').data|raw }}
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-sm-12 offset-sm-6">
|
<div class="col-sm-12 offset-sm-6">
|
||||||
|
|||||||
@ -2,8 +2,12 @@
|
|||||||
|
|
||||||
<div class="topbar-left">
|
<div class="topbar-left">
|
||||||
<a href="/admin" class="logo variant-logo">
|
<a href="/admin" class="logo variant-logo">
|
||||||
|
{% if setting_value('visiosoft.theme.defaultadmin::icon') %}
|
||||||
|
<img src="{{ file(setting_value('visiosoft.theme.defaultadmin::icon')).url }}" alt="site icon">
|
||||||
|
{% else %}
|
||||||
{{ img('theme::img/icon.svg').data|raw }}
|
{{ img('theme::img/icon.svg').data|raw }}
|
||||||
<span>OpenClassify</span>
|
{% endif %}
|
||||||
|
<span>{{ setting_value('visiosoft.theme.defaultadmin::title') }}</span>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@ -22,6 +22,12 @@ return [
|
|||||||
'google_map_key', 'map_coordinates_long', 'map_coordinates_lat'
|
'google_map_key', 'map_coordinates_long', 'map_coordinates_lat'
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
'filter' => [
|
||||||
|
'title' => 'visiosoft.module.location::section.filter',
|
||||||
|
'fields' => [
|
||||||
|
'hide_location_filter'
|
||||||
|
],
|
||||||
|
],
|
||||||
'html' => [
|
'html' => [
|
||||||
'html' => '{% include "visiosoft.module.location::settings/field" %}',
|
'html' => '{% include "visiosoft.module.location::settings/field" %}',
|
||||||
],
|
],
|
||||||
|
|||||||
@ -68,4 +68,11 @@ return [
|
|||||||
'default_value' => '40.97817786299617',
|
'default_value' => '40.97817786299617',
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
|
||||||
|
'hide_location_filter' => [
|
||||||
|
'type' => 'anomaly.field_type.boolean',
|
||||||
|
'config' => [
|
||||||
|
'default_value' => false,
|
||||||
|
],
|
||||||
|
],
|
||||||
];
|
];
|
||||||
@ -19,4 +19,5 @@ return [
|
|||||||
'general' => 'General',
|
'general' => 'General',
|
||||||
'map' => 'Map',
|
'map' => 'Map',
|
||||||
'setting' => 'Setting',
|
'setting' => 'Setting',
|
||||||
|
'filter' => 'Filter',
|
||||||
];
|
];
|
||||||
|
|||||||
@ -40,4 +40,8 @@ return [
|
|||||||
'map_coordinates_lat' => [
|
'map_coordinates_lat' => [
|
||||||
'name' => 'Default Lat',
|
'name' => 'Default Lat',
|
||||||
],
|
],
|
||||||
|
|
||||||
|
'hide_location_filter' => [
|
||||||
|
'name' => 'Hide Location Filter',
|
||||||
|
],
|
||||||
];
|
];
|
||||||
|
|||||||
@ -1,3 +1,4 @@
|
|||||||
|
{% if setting_value('visiosoft.module.location::hide_location_filter') == false %}
|
||||||
{% if setting_value('visiosoft.module.location::list_page_location') %}
|
{% if setting_value('visiosoft.module.location::list_page_location') %}
|
||||||
<div class="card mb-3">
|
<div class="card mb-3">
|
||||||
<div class="card-header breadcrumb mb-0" id="locationHeading">
|
<div class="card-header breadcrumb mb-0" id="locationHeading">
|
||||||
@ -10,8 +11,7 @@
|
|||||||
</button>
|
</button>
|
||||||
</h5>
|
</h5>
|
||||||
</div>
|
</div>
|
||||||
<div id="location" class="collapse show overflow-auto" aria-labelledby="locationHeading"
|
<div id="location" class="collapse show overflow-auto" aria-labelledby="locationHeading">
|
||||||
data-parent="#filter">
|
|
||||||
{% include "visiosoft.module.location::ads-list/partials/location-fields" %}
|
{% include "visiosoft.module.location::ads-list/partials/location-fields" %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -21,3 +21,4 @@
|
|||||||
{{ asset_add("scripts.js", "visiosoft.module.location::js/filterLocation.js") }}
|
{{ asset_add("scripts.js", "visiosoft.module.location::js/filterLocation.js") }}
|
||||||
{{ asset_add("styles.css", "visiosoft.module.location::css/filterLocation.css") }}
|
{{ asset_add("styles.css", "visiosoft.module.location::css/filterLocation.css") }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
Loading…
Reference in New Issue
Block a user