mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-09 06:46:08 -06:00
Merge pull request #427 from openclassify/dia
#1097 [Celep-theme] Meta data error
This commit is contained in:
commit
73d87a5490
@ -1,6 +1,6 @@
|
|||||||
.dropleft-edit {
|
.dropleft-edit {
|
||||||
right: 0;
|
right: 0;
|
||||||
top: 50%;
|
top: 40%;
|
||||||
}
|
}
|
||||||
.dropleft-edit button {
|
.dropleft-edit button {
|
||||||
transform: rotate(-90deg) translate(0, -100%);
|
transform: rotate(-90deg) translate(0, -100%);
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
{% set formHtml %}
|
{% set formHtml %}
|
||||||
<form action="{{ url_route('visiosoft.module.advs::list') }}" method="get">
|
<form action="{{ url_route('visiosoft.module.advs::list') }}" method="get">
|
||||||
{% endset %}
|
{% endset %}
|
||||||
{% if 'cat' in param|keys %}
|
{% if 'cat' in param|keys %}
|
||||||
{% if not param['cat'] is empty %}
|
{% if not param['cat'] is empty %}
|
||||||
{% set catId = entries('cats', 'category').find(param['cat']) %}
|
{% set catId = entries('cats', 'category').find(param['cat']) %}
|
||||||
{% set cityId = null %}
|
{% set cityId = null %}
|
||||||
@ -15,8 +15,8 @@
|
|||||||
<form action="{{ url_route('adv_list_seo', [catId.slug, cityId.slug]) }}" method="get">
|
<form action="{{ url_route('adv_list_seo', [catId.slug, cityId.slug]) }}" method="get">
|
||||||
{% endset %}
|
{% endset %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{{ formHtml }}
|
{{ formHtml }}
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<input type="hidden" name="cat" value="{{ app.request.get('cat') }}">
|
<input type="hidden" name="cat" value="{{ app.request.get('cat') }}">
|
||||||
<input type="hidden" name="user" value="{{ app.request.get('user') }}">
|
<input type="hidden" name="user" value="{{ app.request.get('user') }}">
|
||||||
@ -185,4 +185,4 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
@ -13,7 +13,6 @@ use Visiosoft\LocationModule\Village\VillageRepository;
|
|||||||
use Visiosoft\LocationModule\Village\VillageModel;
|
use Visiosoft\LocationModule\Village\VillageModel;
|
||||||
use Visiosoft\CatsModule\Category\Contract\CategoryRepositoryInterface;
|
use Visiosoft\CatsModule\Category\Contract\CategoryRepositoryInterface;
|
||||||
use Visiosoft\CatsModule\Category\CategoryRepository;
|
use Visiosoft\CatsModule\Category\CategoryRepository;
|
||||||
use Anomaly\Streams\Platform\Model\Advs\AdvsCategoriesEntryModel;
|
|
||||||
use Visiosoft\CatsModule\Category\CategoryModel;
|
use Visiosoft\CatsModule\Category\CategoryModel;
|
||||||
use Illuminate\Routing\Router;
|
use Illuminate\Routing\Router;
|
||||||
use Visiosoft\LocationModule\Country\Contract\CountryRepositoryInterface;
|
use Visiosoft\LocationModule\Country\Contract\CountryRepositoryInterface;
|
||||||
@ -111,11 +110,11 @@ class AdvsModuleServiceProvider extends AddonServiceProvider
|
|||||||
'getlocations' => 'Visiosoft\AdvsModule\Http\Controller\advsController@getLocations',
|
'getlocations' => 'Visiosoft\AdvsModule\Http\Controller\advsController@getLocations',
|
||||||
'advs/main' => 'Visiosoft\AdvsModule\Http\Controller\advsController@advsMainPage',
|
'advs/main' => 'Visiosoft\AdvsModule\Http\Controller\advsController@advsMainPage',
|
||||||
'advs/adv/{id}' => [
|
'advs/adv/{id}' => [
|
||||||
'as' => 'adv_detail',
|
'as' => 'adv_detail_backup',
|
||||||
'uses' => 'Visiosoft\AdvsModule\Http\Controller\advsController@view'
|
'uses' => 'Visiosoft\AdvsModule\Http\Controller\advsController@view'
|
||||||
],
|
],
|
||||||
'advs/adv/{id}/{seo}' => [
|
'advs/adv/{id}/{seo}' => [
|
||||||
'as' => 'adv_detail_seo',
|
'as' => 'adv_detail_seo_backup',
|
||||||
'uses' => 'Visiosoft\AdvsModule\Http\Controller\advsController@view'
|
'uses' => 'Visiosoft\AdvsModule\Http\Controller\advsController@view'
|
||||||
],
|
],
|
||||||
'ad/{id}' => [
|
'ad/{id}' => [
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||||
<meta name="generator" content="{{ config_get('streams::distribution.name') }}"/>
|
<meta name="generator" content="{{ config_get('streams::distribution.name') }}"/>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
|
||||||
<meta name="description" content="{{ trans(template.meta_description) }}"/>
|
<meta name="description" content="{{ setting_value('streams::description') }}"/>
|
||||||
<!-- Meta Tags -->
|
<!-- Meta Tags -->
|
||||||
|
|
||||||
<title>
|
<title>
|
||||||
|
|||||||
@ -8,7 +8,7 @@ var village;
|
|||||||
$('.filter-country-btn').on('click', function () {
|
$('.filter-country-btn').on('click', function () {
|
||||||
if (countries == undefined) {
|
if (countries == undefined) {
|
||||||
var promiseForCountries = new Promise(function (resolve, reject) {
|
var promiseForCountries = new Promise(function (resolve, reject) {
|
||||||
crud('', '/ajax/getCountry', 'POST', beforeSend(), function (callback) {
|
locationCrud('', '/ajax/getCountry', 'POST', beforeSend(), function (callback) {
|
||||||
countries = callback;
|
countries = callback;
|
||||||
resetValue('country', true, false)
|
resetValue('country', true, false)
|
||||||
$.each(countries, function (index, value) {
|
$.each(countries, function (index, value) {
|
||||||
@ -39,7 +39,7 @@ $('.filter-city-btn').on('click', function () {
|
|||||||
if (cities == undefined || $(this).attr('data-parent') != countries_value) {
|
if (cities == undefined || $(this).attr('data-parent') != countries_value) {
|
||||||
$(this).attr('data-parent', countries_value)
|
$(this).attr('data-parent', countries_value)
|
||||||
var promiseForCities = new Promise(function (resolve, reject) {
|
var promiseForCities = new Promise(function (resolve, reject) {
|
||||||
crud('id=' + countries_value, '/ajax/getCities', 'POST', beforeSend(), function (callback) {
|
locationCrud('id=' + countries_value, '/ajax/getCities', 'POST', beforeSend(), function (callback) {
|
||||||
cities = callback;
|
cities = callback;
|
||||||
resetValue('city', true, false)
|
resetValue('city', true, false)
|
||||||
$.each(cities, function (index, value) {
|
$.each(cities, function (index, value) {
|
||||||
@ -73,7 +73,7 @@ $('.filter-district-btn').on('click', function () {
|
|||||||
if (districts == undefined || $(this).attr('data-parent') != city_value) {
|
if (districts == undefined || $(this).attr('data-parent') != city_value) {
|
||||||
$(this).attr('data-parent', city_value)
|
$(this).attr('data-parent', city_value)
|
||||||
var promiseForDistricts = new Promise(function (resolve, reject) {
|
var promiseForDistricts = new Promise(function (resolve, reject) {
|
||||||
crud('id=' + city_value, '/ajax/getDistricts', 'POST', beforeSend(), function (callback) {
|
locationCrud('id=' + city_value, '/ajax/getDistricts', 'POST', beforeSend(), function (callback) {
|
||||||
districts = callback;
|
districts = callback;
|
||||||
resetValue('district', true, false)
|
resetValue('district', true, false)
|
||||||
$.each(districts, function (index, value) {
|
$.each(districts, function (index, value) {
|
||||||
@ -107,7 +107,7 @@ $('.filter-neighborhood-btn').on('click', function () {
|
|||||||
if (neighborhoods == undefined || $(this).attr('data-parent') != district_value) {
|
if (neighborhoods == undefined || $(this).attr('data-parent') != district_value) {
|
||||||
$(this).attr('data-parent', district_value)
|
$(this).attr('data-parent', district_value)
|
||||||
var promiseForNeighborhoods = new Promise(function (resolve, reject) {
|
var promiseForNeighborhoods = new Promise(function (resolve, reject) {
|
||||||
crud('id=' + district_value, '/ajax/getNeighborhoods', 'POST', beforeSend(), function (callback) {
|
locationCrud('id=' + district_value, '/ajax/getNeighborhoods', 'POST', beforeSend(), function (callback) {
|
||||||
neighborhoods = callback;
|
neighborhoods = callback;
|
||||||
resetValue('neighborhood', true, false)
|
resetValue('neighborhood', true, false)
|
||||||
$.each(neighborhoods, function (index, value) {
|
$.each(neighborhoods, function (index, value) {
|
||||||
@ -141,7 +141,7 @@ $('.filter-village-btn').on('click', function () {
|
|||||||
if (village == undefined || $(this).attr('data-parent') != neighborhood_value) {
|
if (village == undefined || $(this).attr('data-parent') != neighborhood_value) {
|
||||||
$(this).attr('data-parent', neighborhood_value)
|
$(this).attr('data-parent', neighborhood_value)
|
||||||
var promiseForVillage = new Promise(function (resolve, reject) {
|
var promiseForVillage = new Promise(function (resolve, reject) {
|
||||||
crud('id=' + neighborhood_value, '/ajax/getVillage', 'POST', beforeSend(), function (callback) {
|
locationCrud('id=' + neighborhood_value, '/ajax/getVillage', 'POST', beforeSend(), function (callback) {
|
||||||
village = callback;
|
village = callback;
|
||||||
$('.filter-location-modal .village').html("");
|
$('.filter-location-modal .village').html("");
|
||||||
$.each(village, function (index, value) {
|
$.each(village, function (index, value) {
|
||||||
@ -225,7 +225,7 @@ function SelectOnClick() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function crud(params, url, type, beforeSend, callback) {
|
function locationCrud(params, url, type, beforeSend, callback) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: type,
|
type: type,
|
||||||
data: params,
|
data: params,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user