mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
#460 reformat base theme
This commit is contained in:
parent
22844efd87
commit
9507dad255
@ -133,7 +133,7 @@ return [
|
||||
"list-page" => "Liste Sayfası",
|
||||
"search" => "Arama",
|
||||
"recommended" => "Sizin için Önerilen İlanlar",
|
||||
"sort_by" => "Göre sırala",
|
||||
"sort_by" => "Sırala",
|
||||
"pick_option" => "Bir seçenek seçin",
|
||||
"price_high" => "Fiyat pahalıdan ucuza",
|
||||
"price-low" => "Fiyat Düşük Yüksek",
|
||||
|
||||
@ -213,7 +213,7 @@ class AdvRepository extends EntryRepository implements AdvRepositoryInterface
|
||||
$query = $query->orderBy('price', 'asc');
|
||||
break;
|
||||
case "sort_time":
|
||||
$query = $query->orderBy('created_at', 'desc');
|
||||
$query = $query->orderBy('advs_advs.created_at', 'desc');
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
@ -238,10 +238,10 @@ class AdvRepository extends EntryRepository implements AdvRepositoryInterface
|
||||
{
|
||||
$country = CountryModel::query()->where('location_countries.id', $adv->country_id)->first();
|
||||
$city = CityModel::query()->where('location_cities.id', $adv->city)->first();
|
||||
if($country != null) {
|
||||
if ($country != null) {
|
||||
$adv->setAttribute('country_name', $country->name);
|
||||
}
|
||||
if($city != null) {
|
||||
if ($city != null) {
|
||||
$adv->setAttribute('city_name', $city->name);
|
||||
}
|
||||
return $adv;
|
||||
|
||||
@ -1018,7 +1018,7 @@ a.verified i {
|
||||
}
|
||||
|
||||
.oc-item1 {
|
||||
border: 1px solid #f3f3f3;
|
||||
border: 1px solid #e4e1e1;
|
||||
margin: 18px 0;
|
||||
min-height: 152px;
|
||||
border-radius: 2px;
|
||||
@ -1512,7 +1512,6 @@ a.verified i {
|
||||
}
|
||||
|
||||
.recommended-ads {
|
||||
margin-bottom: 0;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
@ -4856,7 +4855,6 @@ input, select, a, .transition,
|
||||
|
||||
.favorite-searches {
|
||||
width: 100%;
|
||||
height: 80px;
|
||||
display: inline-block;
|
||||
margin-top: 40px;
|
||||
border: 1px solid #dedede;
|
||||
@ -5776,7 +5774,7 @@ input[name="username"] {
|
||||
}
|
||||
|
||||
.viewType {
|
||||
color: #5b8dbd !important;
|
||||
color: #6f6f6f !important;
|
||||
}
|
||||
|
||||
.table-image {
|
||||
@ -5996,4 +5994,18 @@ input[name="username"] {
|
||||
transform: rotate(45deg);
|
||||
-webkit-transform: rotate(0deg);
|
||||
overflow: hidden;
|
||||
}
|
||||
}
|
||||
.search-filter-button {
|
||||
width: 100%;
|
||||
}
|
||||
.list-header {
|
||||
border-bottom: 1px solid #f6f6f6;
|
||||
}
|
||||
.list-header .sort-by-list {
|
||||
margin: 25px;
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.list-header .sort-by-list h5{
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
@ -30,4 +30,7 @@ return [
|
||||
'content' => [
|
||||
'name' => 'Content',
|
||||
],
|
||||
'price' => [
|
||||
'name' => 'Price'
|
||||
],
|
||||
];
|
||||
@ -0,0 +1,6 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'filter_by_search_msg' => 'Filter By Search.',
|
||||
];
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'post_ad' => 'İlanınızı Gönderin',
|
||||
'featured_ads' => "Öne Çıkan İlanlar",
|
||||
'post_ad' => 'İlanınızı Gönderin',
|
||||
'featured_ads' => "Öne Çıkan İlanlar",
|
||||
'trending_ads' => 'Popüler İlanlar',
|
||||
'join-us' => 'Üye Ol',
|
||||
'sign-in' => 'Üye Girişi',
|
||||
@ -19,7 +19,6 @@ return [
|
||||
'recent_ads' => 'Son ilanlar',
|
||||
|
||||
|
||||
|
||||
'email' => [
|
||||
'name' => 'Email Adresi',
|
||||
],
|
||||
@ -32,4 +31,7 @@ return [
|
||||
'content' => [
|
||||
'name' => 'Açıklama',
|
||||
],
|
||||
'price' => [
|
||||
'name' => 'Fiyat'
|
||||
],
|
||||
];
|
||||
@ -0,0 +1,5 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'filter_by_search_msg' => 'Aramanızı Daraltın.',
|
||||
];
|
||||
@ -1,261 +1,57 @@
|
||||
{% extends "theme::layouts/default" %}
|
||||
|
||||
{% block content %}
|
||||
<!-- main -->
|
||||
<section id="main" class="clearfix category-page">
|
||||
|
||||
<div class="container">
|
||||
|
||||
{% include "theme::partials/messages" %}
|
||||
<div class="breadcrumb-section">
|
||||
<!-- breadcrumb -->
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="/">{{ trans("visiosoft.module.advs::field.home") }}</a></li>
|
||||
{% if app.request.get('cat')%}
|
||||
{% for category_breadcrumbs in mainCats.first.getMains(app.request.get('cat')) %}
|
||||
<li><a href="{{ url_route('visiosoft.module.advs::list_cat', [category_breadcrumbs.id]) }}">{{ category_breadcrumbs.val }}</a></li>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</ol><!-- breadcrumb -->
|
||||
{% if app.request.get('cat') %}
|
||||
<h2 class="title">{{ mainCats.first.getCategoryName(app.request.get('cat')) }}</h2>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="category-info">
|
||||
<div class="row">
|
||||
{% if app.request.get('user') != null or app.request.get('user') != "" %}
|
||||
<div class="col-md-12 upper-list-banner">
|
||||
<div class="upper-list-user">
|
||||
<div class="upper-list-img">
|
||||
<a href=""><img src="{{ userProfile.file.url}}" alt=""></a>
|
||||
</div>
|
||||
<div class="upper-list-info">
|
||||
{{ user.first_name }} {{ user.last_name }}
|
||||
</div>
|
||||
</div>
|
||||
{% if userProfile.adv_listing_banner.url == '' %}
|
||||
<img src="{{ img('theme::images/bg/1.png').url }}">
|
||||
{% else %}
|
||||
<img src="{{ userProfile.adv_listing_banner.url }}">
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
<!-- accordion-->
|
||||
<form action="{{ url_route('visiosoft.module.advs::list') }}" method="get">
|
||||
{% include "visiosoft.theme.base::list/partials/list-filter" %}
|
||||
|
||||
<!-- recommended-ads -->
|
||||
<div class="col-sm-8 col-md-9">
|
||||
<div class="section recommended-ads">
|
||||
<!-- featured-top -->
|
||||
{% include "visiosoft.theme.base::list/partials/display-mode" %}
|
||||
<div class="featured-top">
|
||||
{% if app.request.get('cat') %}
|
||||
<h4>{{ trans("visiosoft.module.advs::field.search_ads_result_message.name",{'name':mainCats.first.getCategoryName(app.request.get('cat')),'count':count(advs)+count(featured_advs) }) }}</h4>
|
||||
{% else %}
|
||||
<h4>{{ trans("visiosoft.module.advs::field.recommended") }}</h4>
|
||||
{% endif %}
|
||||
<div class="dropdown pull-right">
|
||||
<!-- breadcrumb -->
|
||||
{% include "theme::list/partials/breadcrumb" %}
|
||||
<!-- breadcrumb -->
|
||||
|
||||
<!-- category-change -->
|
||||
<div class="dropdown">
|
||||
<h5>{{ trans("visiosoft.module.advs::field.sort_by") }}:</h5>
|
||||
<a data-toggle="dropdown" class="sort-by-open-dropdown" href="#" aria-expanded="false">
|
||||
<span class="sort-by-selected-text">{{ trans("visiosoft.module.advs::field.pick_option") }}</span><i class="fa fa-caret-square-o-down"></i></a>
|
||||
<ul class="dropdown-menu sort-by-dropdown" x-placement="bottom-start" >
|
||||
<li><a href="#" data-value="sort_price_up" class="sort-by-item">{{ trans("visiosoft.module.advs::field.price_high") }}</a></li>
|
||||
<li><a href="#" data-value="sort_price_down" class="sort-by-item">{{ trans("visiosoft.module.advs::field.price-low") }}</a></li>
|
||||
<li><a href="#" data-value="sort_time" class="sort-by-item">{{ trans("visiosoft.module.advs::field.newest") }}</a></li>
|
||||
</ul>
|
||||
</div><!-- category-change -->
|
||||
</div>
|
||||
</div>
|
||||
{% if entries('advs').isEnabled('customfields') %}
|
||||
{% include "visiosoft.module.customfields::selecttop" %}
|
||||
{% endif %}
|
||||
<div class="category-tabs">
|
||||
{% block listContent %}
|
||||
<div class="category-info">
|
||||
|
||||
</div>
|
||||
<div class="row">
|
||||
|
||||
{% for adv in featured_advs %}
|
||||
{% if adv.doping != null %}
|
||||
<div class="oc-item1 featured_adv_item row">
|
||||
{% else %}
|
||||
<div class="oc-item1 row">
|
||||
{% endif %}
|
||||
<!-- item-image -->
|
||||
<div class="item-image-box col-sm-4">
|
||||
<div class="item-image">
|
||||
<a href="{{ adv.detail_url }}">
|
||||
{% set advPhoto = adv.cover_photo %}
|
||||
{% if adv.is_get_adv == "1" and adv.stock == "0" and entries('advs').isEnabled('carts') %}
|
||||
<div class="corner-ribbon top-right sticky blue">{{ trans('visiosoft.module.advs::field.sold_out.name') }}</div>
|
||||
{% endif %}
|
||||
<img src="{{ adv.cover_photo }}" alt="Image" class="img-responsive"></a>
|
||||
</div><!-- item-image -->
|
||||
</div>
|
||||
{% include "theme::list/partials/user-section" %}
|
||||
|
||||
<!-- rending-text -->
|
||||
<div class="item-info col-sm-8">
|
||||
<!-- ad-info -->
|
||||
<div class="ad-info">
|
||||
<h3 class="item-price">{{ adv.price }} {{ adv.currency }}</h3>
|
||||
<h4 class="item-title bengali"><a href="{{ adv.detail_url }}">{{ adv.name }}</a></h4>
|
||||
<div class="item-cat">
|
||||
<span><a href="#">{{ adv.cat1_name }}</a></span>
|
||||
{% if adv.cat2_name != "" %}
|
||||
/ <span><a href="#">{{ adv.cat2_name }}</a></span>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div><!-- ad-info -->
|
||||
<form action="{{ url_route('visiosoft.module.advs::list') }}" method="get">
|
||||
|
||||
<!-- ad-meta -->
|
||||
<div class="ad-meta">
|
||||
<div class="meta-content">
|
||||
<span class="dated"><a href="#">{{ adv.created_at|date("d/m/Y") }} </a></span>
|
||||
</div>
|
||||
<!-- item-info-right -->
|
||||
<div class="user-option pull-right">
|
||||
{% if adv.isAdVideo is defined and adv.isAdVideo != null %}
|
||||
<a data-toggle="tooltip" data-id="{{ adv.id }}" class="ad-info-right-bar-video" data-placement="top"
|
||||
title="<video controls loop class='img-responsive video-ad-tooltip-{{ adv.id }}' style='text-align: center; width: 100%'>
|
||||
<source src='{{ adv.isAdVideo }}' class='video-src' type='video/mp4' />
|
||||
</video>">
|
||||
<i class="fa fa-film"></i> </a>
|
||||
{% endif %}
|
||||
<a href="{{ url_route('visiosoft.module.advs::show_ad_map_location',[adv.country_id,adv.city,adv.district]) }}" data-toggle="tooltip" data-placement="top" title="{{ adv.city_name }}, {{ adv.country_name }}"><i class="fa fa-map-marker"></i> </a>
|
||||
<a class="online" href="" data-toggle="tooltip" data-placement="top" title="{{ adv.owner }}"><i class="fa fa-user"></i> </a>
|
||||
{% include "theme::list/partials/list-filter" %}
|
||||
|
||||
{% if entries('advs').isEnabled('comparisons') %}
|
||||
<div class="col-sm-8 col-md-9">
|
||||
|
||||
{% include "visiosoft.module.comparisons::comparebtn" %}
|
||||
{% include "theme::list/partials/list-section" %}
|
||||
|
||||
{% endif %}
|
||||
</div><!-- item-info-right -->
|
||||
</div><!-- ad-meta -->
|
||||
</div><!-- item-info -->
|
||||
</div><!-- oc-item -->
|
||||
{% endfor %}
|
||||
|
||||
{% for adv in advs %}
|
||||
<!-- oc-item -->
|
||||
{% if adv.doping != null %}
|
||||
<div class="oc-item1 featured_adv_item row">
|
||||
{% else %}
|
||||
<div class="oc-item1 row">
|
||||
{% endif %}
|
||||
<!-- item-image -->
|
||||
<div class="item-image-box col-sm-4">
|
||||
<div class="item-image">
|
||||
<a href="{{ adv.detail_url }}">
|
||||
{% set advPhoto = adv.cover_photo %}
|
||||
{% if adv.is_get_adv == "1" and adv.stock == "0" and entries('advs').isEnabled('carts') %}
|
||||
<div class="corner-ribbon top-right sticky blue">{{ trans('visiosoft.module.advs::field.sold_out.name') }}</div>
|
||||
{% endif %}
|
||||
<img src="{{ adv.cover_photo }}" alt="Image" class="img-responsive"></a>
|
||||
</div><!-- item-image -->
|
||||
</div>
|
||||
|
||||
<!-- rending-text -->
|
||||
<div class="item-info col-sm-8">
|
||||
<!-- ad-info -->
|
||||
<div class="ad-info">
|
||||
<h3 class="item-price">{{ adv.price }} {{ adv.currency }}</h3>
|
||||
<h4 class="item-title bengali"><a href="{{ adv.detail_url }}">{{ adv.name }}</a></h4>
|
||||
<div class="item-cat">
|
||||
<span><a href="#">{{ adv.cat1_name }}</a></span>
|
||||
{% if adv.cat2_name != "" %}
|
||||
/ <span><a href="#">{{ adv.cat2_name }}</a></span>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div><!-- ad-info -->
|
||||
|
||||
<!-- ad-meta -->
|
||||
<div class="ad-meta">
|
||||
<div class="meta-content">
|
||||
<span class="dated"><a href="#">{{ adv.created_at|date("d/m/Y") }} </a></span>
|
||||
</div>
|
||||
<!-- item-info-right -->
|
||||
<div class="user-option pull-right">
|
||||
{% if adv.isAdVideo is defined and adv.isAdVideo != null %}
|
||||
<a data-toggle="tooltip" data-id="{{ adv.id }}" class="ad-info-right-bar-video" data-placement="top"
|
||||
title="<video controls loop class='img-responsive video-ad-tooltip-{{ adv.id }}' style='text-align: center; width: 100%'>
|
||||
<source src='{{ adv.isAdVideo }}' class='video-src' type='video/mp4' />
|
||||
</video>"></a>
|
||||
{% endif %}
|
||||
<a href="{{ url_route('visiosoft.module.advs::show_ad_map_location',[adv.country_id,adv.city,adv.district]) }}" data-toggle="tooltip" data-placement="top" title="{{ adv.city_name }}, {{ adv.country_name }}"><i class="fa fa-map-marker"></i> </a>
|
||||
<a class="online" href="" data-toggle="tooltip" data-placement="top" title="{{ adv.owner }}"><i class="fa fa-user"></i> </a>
|
||||
|
||||
{% if entries('advs').isEnabled('comparisons') %}
|
||||
{% include "visiosoft.module.comparisons::comparebtn" %}
|
||||
{% endif %}
|
||||
|
||||
</div><!-- item-info-right -->
|
||||
</div><!-- ad-meta -->
|
||||
</div><!-- item-info -->
|
||||
</div><!-- oc-item -->
|
||||
<!-- ad-section -->
|
||||
{% endfor %}
|
||||
<!-- pagination -->
|
||||
<div class="text-center">
|
||||
<div class="tool-pagination">
|
||||
{{ advs.links()|raw }}
|
||||
</div>
|
||||
</div><!-- pagination -->
|
||||
{% if entries('advs').isEnabled('favs') %}
|
||||
<div class="favorite-searches">
|
||||
<div class="search-fav-icon col-md-1">
|
||||
<i class="fa fa-search"></i>
|
||||
</div>
|
||||
<div class="search-fav-tex col-md-8">
|
||||
<h4>{{ trans("visiosoft.module.advs::field.my_favorite_searches") }}</h4><br>
|
||||
<p>{{ trans("visiosoft.module.advs::field.search_desc") }}</p>
|
||||
</div>
|
||||
<div class="search-fav-button col-md-3">
|
||||
<button class="btn btn-success" type="button" id="save-search">{{ trans("visiosoft.module.advs::field.add_to_favorites") }}</button>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div><!-- recommended-ads -->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2"></div>
|
||||
</form>
|
||||
|
||||
</div><!-- container -->
|
||||
</div>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
</section><!-- main -->
|
||||
|
||||
<div id="search-fav-modal" class="modal fade" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header message-header">
|
||||
<h4 class="modal-title">{{ trans("visiosoft.module.advs::field.add_to_favorites") }}</h4>
|
||||
</div>
|
||||
<form action="{{ url_route("visiosoft.module.favs::add_search") }}" method="POST">
|
||||
<div class="modal-body search-fav-body">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
||||
<input name="url" type="hidden" value="{{ app.request.getRequestUri }}">
|
||||
<input placeholder="{{ trans("visiosoft.module.advs::field.search_name") }}" class="form-control" type="text" name="item_name" required>
|
||||
</div>
|
||||
<div class="modal-footer message-footer">
|
||||
<button id="send-fav-search" class="btn btn-success" type="submit">{{ trans("visiosoft.module.advs::field.send") }}</button>
|
||||
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
var select_trans = "{{ trans('visiosoft.module.advs::field.pick_option') }}";
|
||||
</script>
|
||||
{{ asset_add("scripts.js", "visiosoft.theme.base::js/admin-list.js") }}
|
||||
|
||||
{% if entries('advs').isEnabled('favs') %}
|
||||
{% include "visiosoft.module.favs::list/favorites-modal" %}
|
||||
{% endif %}
|
||||
|
||||
{{ asset_add("scripts.js", "visiosoft.theme.base::js/list.js") }}
|
||||
|
||||
{% if entries('advs').isEnabled('comparisons') %}
|
||||
{% include "visiosoft.module.comparisons::comparison" %}
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
||||
@ -1,32 +1,22 @@
|
||||
{% extends "theme::layouts/default" %}
|
||||
{% block content %}
|
||||
<!-- main -->
|
||||
<section id="main" class="clearfix category-page">
|
||||
<div class="container">
|
||||
<div class="breadcrumb-section">
|
||||
<!-- breadcrumb -->
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="/">{{ trans('visiosoft.module.advs::field.home') }}</a></li>
|
||||
</ol><!-- breadcrumb -->
|
||||
</div>
|
||||
|
||||
<div class="category-info">
|
||||
<div class="row">
|
||||
<!-- accordion-->
|
||||
{% include "visiosoft.theme.base::list/partials/list-filter" %}
|
||||
<div class="col-sm-8 col-md-9">
|
||||
<div class="section recommended-ads listMap">
|
||||
<!-- featured-top -->
|
||||
{% include "visiosoft.theme.base::list/partials/display-mode" %}
|
||||
<div id="map"></div>
|
||||
</div>
|
||||
{% extends "theme::list/list" %}
|
||||
{% block listContent %}
|
||||
<div class="category-info">
|
||||
<div class="row">
|
||||
{% include "visiosoft.theme.base::list/partials/list-filter" %}
|
||||
<div class="col-sm-8 col-md-9">
|
||||
<div class="section recommended-ads ">
|
||||
{% include "visiosoft.theme.base::list/partials/display-mode" %}
|
||||
<div class="listMap">
|
||||
<div id="map"></div>
|
||||
</div>
|
||||
|
||||
{% if entries('advs').isEnabled('favs') %}
|
||||
{% include "visiosoft.module.favs::list/favorites-section" %}
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- container -->
|
||||
</section><!-- main -->
|
||||
{{ asset_add("scripts.js", "visiosoft.theme.base::js/admin-list.js") }}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
{% block customjs %}
|
||||
|
||||
@ -0,0 +1,69 @@
|
||||
{% for adv in advs %}
|
||||
<!-- oc-item -->
|
||||
{% if adv.doping != null %}
|
||||
<div class="oc-item1 featured_adv_item row">
|
||||
{% else %}
|
||||
<div class="oc-item1 row">
|
||||
{% endif %}
|
||||
<!-- item-image -->
|
||||
<div class="item-image-box col-sm-4">
|
||||
<div class="item-image">
|
||||
<a href="{{ adv.detail_url }}">
|
||||
{% set advPhoto = adv.cover_photo %}
|
||||
{% if adv.is_get_adv == "1" and adv.stock == "0" and entries('advs').isEnabled('carts') %}
|
||||
<div class="corner-ribbon top-right sticky blue">{{ trans('visiosoft.module.advs::field.sold_out.name') }}</div>
|
||||
{% endif %}
|
||||
<img src="{{ adv.cover_photo }}" alt="Image"
|
||||
class="img-responsive"></a>
|
||||
</div><!-- item-image -->
|
||||
</div>
|
||||
|
||||
<!-- rending-text -->
|
||||
<div class="item-info col-sm-8">
|
||||
<!-- ad-info -->
|
||||
<div class="ad-info">
|
||||
<h3 class="item-price">{{ adv.price }} {{ adv.currency }}</h3>
|
||||
<h4 class="item-title bengali"><a
|
||||
href="{{ adv.detail_url }}">{{ adv.name }}</a></h4>
|
||||
<div class="item-cat">
|
||||
<span><a href="#">{{ adv.cat1_name }}</a></span>
|
||||
{% if adv.cat2_name != "" %}
|
||||
/ <span><a href="#">{{ adv.cat2_name }}</a></span>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div><!-- ad-info -->
|
||||
|
||||
<!-- ad-meta -->
|
||||
<div class="ad-meta">
|
||||
<div class="meta-content">
|
||||
<span class="dated">
|
||||
<a href="#">{{ adv.created_at|date("d/m/Y") }} </a>
|
||||
</span>
|
||||
</div>
|
||||
<!-- item-info-right -->
|
||||
<div class="user-option pull-right">
|
||||
{% if adv.isAdVideo is defined and adv.isAdVideo != null %}
|
||||
<a data-toggle="tooltip" data-id="{{ adv.id }}"
|
||||
class="ad-info-right-bar-video" data-placement="top"
|
||||
title="<video controls loop class='img-responsive video-ad-tooltip-{{ adv.id }}' style='text-align: center; width: 100%'>
|
||||
<source src='{{ adv.isAdVideo }}' class='video-src' type='video/mp4' />
|
||||
</video>"></a>
|
||||
{% endif %}
|
||||
<a href="{{ url_route('visiosoft.module.advs::show_ad_map_location',[adv.country_id,adv.city,adv.district]) }}"
|
||||
data-toggle="tooltip" data-placement="top"
|
||||
title="{{ adv.city_name }}, {{ adv.country_name }}"><i
|
||||
class="fa fa-map-marker"></i> </a>
|
||||
<a class="online" href="" data-toggle="tooltip"
|
||||
data-placement="top" title="{{ adv.owner }}"><i
|
||||
class="fa fa-user"></i> </a>
|
||||
|
||||
{% if entries('advs').isEnabled('comparisons') %}
|
||||
{% include "visiosoft.module.comparisons::comparebtn" %}
|
||||
{% endif %}
|
||||
|
||||
</div><!-- item-info-right -->
|
||||
</div><!-- ad-meta -->
|
||||
</div><!-- item-info -->
|
||||
</div><!-- oc-item -->
|
||||
<!-- ad-section -->
|
||||
{% endfor %}
|
||||
@ -0,0 +1,15 @@
|
||||
<div class="breadcrumb-section">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="/">{{ trans("visiosoft.module.advs::field.home") }}</a></li>
|
||||
{% if app.request.get('cat') %}
|
||||
{% for category_breadcrumbs in mainCats.first.getMains(app.request.get('cat')) %}
|
||||
<li>
|
||||
<a href="{{ url_route('visiosoft.module.advs::list_cat', [category_breadcrumbs.id]) }}">{{ category_breadcrumbs.val }}</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</ol>
|
||||
{% if app.request.get('cat') %}
|
||||
<h2 class="title">{{ mainCats.first.getCategoryName(app.request.get('cat')) }}</h2>
|
||||
{% endif %}
|
||||
</div>
|
||||
@ -0,0 +1,67 @@
|
||||
{% for adv in featured_advs %}
|
||||
|
||||
{% if adv.doping != null %}
|
||||
<div class="oc-item1 featured_adv_item row">
|
||||
{% else %}
|
||||
<div class="oc-item1 row">
|
||||
{% endif %}
|
||||
<!-- item-image -->
|
||||
<div class="item-image-box col-sm-4">
|
||||
<div class="item-image">
|
||||
<a href="{{ adv.detail_url }}">
|
||||
{% set advPhoto = adv.cover_photo %}
|
||||
{% if adv.is_get_adv == "1" and adv.stock == "0" and entries('advs').isEnabled('carts') %}
|
||||
<div class="corner-ribbon top-right sticky blue">{{ trans('visiosoft.module.advs::field.sold_out.name') }}</div>
|
||||
{% endif %}
|
||||
<img src="{{ adv.cover_photo }}" alt="Image" class="img-responsive"></a>
|
||||
</div><!-- item-image -->
|
||||
</div>
|
||||
|
||||
<!-- rending-text -->
|
||||
<div class="item-info col-sm-8">
|
||||
<!-- ad-info -->
|
||||
<div class="ad-info">
|
||||
<h3 class="item-price">{{ adv.price }} {{ adv.currency }}</h3>
|
||||
<h4 class="item-title bengali"><a
|
||||
href="{{ adv.detail_url }}">{{ adv.name }}</a></h4>
|
||||
<div class="item-cat">
|
||||
<span><a href="#">{{ adv.cat1_name }}</a></span>
|
||||
{% if adv.cat2_name != "" %}
|
||||
/ <span><a href="#">{{ adv.cat2_name }}</a></span>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div><!-- ad-info -->
|
||||
|
||||
<!-- ad-meta -->
|
||||
<div class="ad-meta">
|
||||
<div class="meta-content">
|
||||
<span class="dated"><a
|
||||
href="#">{{ adv.created_at|date("d/m/Y") }} </a></span>
|
||||
</div>
|
||||
<!-- item-info-right -->
|
||||
<div class="user-option pull-right">
|
||||
{% if adv.isAdVideo is defined and adv.isAdVideo != null %}
|
||||
<a data-toggle="tooltip" data-id="{{ adv.id }}"
|
||||
class="ad-info-right-bar-video" data-placement="top"
|
||||
title="<video controls loop class='img-responsive video-ad-tooltip-{{ adv.id }}' style='text-align: center; width: 100%'>
|
||||
<source src='{{ adv.isAdVideo }}' class='video-src' type='video/mp4' />
|
||||
</video>">
|
||||
<i class="fa fa-film"></i> </a>
|
||||
{% endif %}
|
||||
<a href="{{ url_route('visiosoft.module.advs::show_ad_map_location',[adv.country_id,adv.city,adv.district]) }}"
|
||||
data-toggle="tooltip" data-placement="top"
|
||||
title="{{ adv.city_name }}, {{ adv.country_name }}"><i
|
||||
class="fa fa-map-marker"></i> </a>
|
||||
<a class="online" href="" data-toggle="tooltip" data-placement="top"
|
||||
title="{{ adv.owner }}"><i class="fa fa-user"></i> </a>
|
||||
|
||||
{% if entries('advs').isEnabled('comparisons') %}
|
||||
|
||||
{% include "visiosoft.module.comparisons::comparebtn" %}
|
||||
|
||||
{% endif %}
|
||||
</div><!-- item-info-right -->
|
||||
</div><!-- ad-meta -->
|
||||
</div><!-- item-info -->
|
||||
</div><!-- oc-item -->
|
||||
{% endfor %}
|
||||
@ -2,19 +2,20 @@
|
||||
<input type="hidden" name="cat" value="{{ app.request.get('cat') }}">
|
||||
<input type="hidden" name="user" value="{{ app.request.get('user') }}">
|
||||
<div class="accordion">
|
||||
<!-- panel-group -->
|
||||
<div class="panel-group" id="accordion">
|
||||
<!-- panel -->
|
||||
<div class="panel-default panel-faq">
|
||||
<!-- panel-heading -->
|
||||
|
||||
<div class="panel-heading active-faq">
|
||||
<a data-toggle="collapse" data-parent="#accordion" href="#accordion-one">
|
||||
<h4 class="panel-title">{{ trans("visiosoft.module.advs::field.categories") }}<span
|
||||
class="pull-right"><i class="fa fa-minus"></i></span></h4>
|
||||
<h4 class="panel-title">{{ trans("visiosoft.module.advs::field.categories") }}
|
||||
<span class="pull-right">
|
||||
<i class="fa fa-minus"></i>
|
||||
</span>
|
||||
</h4>
|
||||
</a>
|
||||
</div><!-- panel-heading -->
|
||||
</div>
|
||||
|
||||
<div id="accordion-one" class="panel-collapse collapse in">
|
||||
<!-- panel-body -->
|
||||
<div class="panel-body">
|
||||
{% for maincat in mainCats %}
|
||||
<a class="main-cat-item"
|
||||
@ -33,220 +34,71 @@
|
||||
</ul>
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
</div><!-- panel-body -->
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- panel -->
|
||||
{% if setting_value('visiosoft.module.location::list_page_location') %}
|
||||
<div class="panel-default panel-faq">
|
||||
<!-- panel-heading -->
|
||||
<div class="panel-heading active-faq">
|
||||
<a data-toggle="collapse" data-parent="#accordion" href="#accordion-location">
|
||||
<h4 class="panel-title">{{ trans("visiosoft.module.advs::field.location") }}<span
|
||||
class="pull-right"><i class="fa fa-minus"></i></span></h4>
|
||||
</a>
|
||||
</div><!-- panel-heading -->
|
||||
</div>
|
||||
|
||||
<div id="accordion-location" class="panel-collapse collapse in">
|
||||
<!-- panel-body -->
|
||||
<div class="panel-body">
|
||||
<ul id="list-items" class="filter-list-items">
|
||||
<li>
|
||||
<label class="label-filter-location">{{ trans("visiosoft.module.location::field.country.name") }}</label>
|
||||
<select class="form-control" name="country" id="countries">
|
||||
{% for country in countries %}
|
||||
<option value="{{ country.id }}">{{ country.name }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</li>
|
||||
<li>
|
||||
<label class="label-filter-location">{{ trans("visiosoft.module.location::field.city.name") }}</label>
|
||||
<select class="form-control" name="city[]" id="cities" multiple>
|
||||
{% for city in cities %}
|
||||
<option value="{{ city.id }}">{{ city.name }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</li>
|
||||
<li>
|
||||
<label class="label-filter-location">{{ trans("visiosoft.module.location::field.district.name") }}</label>
|
||||
<select class="form-control" name="district" id="districts">
|
||||
{% for district in districts %}
|
||||
<option value="{{ district.id }}">{{ district.name }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</li>
|
||||
<li>
|
||||
<label class="label-filter-location">{{ trans("visiosoft.module.location::field.neighborhood.name") }}</label>
|
||||
<select class="form-control" name="neighborhood" id="neighborhoods">
|
||||
{% for neighborhood in neighborhoods %}
|
||||
<option value="{{ neighborhood.id }}">{{ neighborhood.name }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</li>
|
||||
<li>
|
||||
<label class="label-filter-location">{{ trans("visiosoft.module.location::field.village.name") }}</label>
|
||||
<select class="form-control" name="village" id="village">
|
||||
{% for village in villages %}
|
||||
<option value="{{ village.id }}">{{ village.name }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</li>
|
||||
</ul>
|
||||
</div><!-- panel-body -->
|
||||
</div>
|
||||
</div><!-- panel -->
|
||||
{% include "visiosoft.module.location::list/filter" %}
|
||||
|
||||
{% if entries('advs').isEnabled('customfields') %}
|
||||
{% include "visiosoft.module.customfields::list/filter" %}
|
||||
{% endif %}
|
||||
{% for key,value in checkboxes %}
|
||||
<!-- panel -->
|
||||
<div class="panel-default panel-faq">
|
||||
<!-- panel-heading -->
|
||||
<div class="panel-heading">
|
||||
<a data-toggle="collapse" data-parent="#accordion" href="#accordion-{{ loop.index }}">
|
||||
<h4 class="panel-title">{{ value.name }}<span class="pull-right"><i class="fa fa-minus"></i></span>
|
||||
</h4>
|
||||
</a>
|
||||
</div><!-- panel-heading -->
|
||||
|
||||
<div id="accordion-{{ loop.index }}" class="panel-collapse in">
|
||||
<!-- panel-body -->
|
||||
<div class="panel-body">
|
||||
{% for key, val in value %}
|
||||
<div class="input-outer">
|
||||
<ul>
|
||||
{% for key1, value1 in val %}
|
||||
<li class="cf-li-item">
|
||||
<input value="{{ key1 }}" type="checkbox" name="cf_{{ value.id }}[]"
|
||||
id=""
|
||||
{% if key1 in app.request.get('cf_'~ value.id) %}
|
||||
checked
|
||||
{% endif %}
|
||||
> <span class="span{{ key1 }}">{{ value1 }}</span>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div><!-- panel-body -->
|
||||
</div>
|
||||
</div><!-- panel -->
|
||||
{% endfor %}
|
||||
|
||||
{% for key,value in textfields %}
|
||||
<!-- panel -->
|
||||
<div class="panel-default panel-faq">
|
||||
<!-- panel-heading -->
|
||||
<div class="panel-heading">
|
||||
<a data-toggle="collapse" data-parent="#accordion" href="#accordion-{{ loop.index }}">
|
||||
<h4 class="panel-title">{{ key }}<span class="pull-right"><i class="fa fa-minus"></i></span>
|
||||
</h4>
|
||||
</a>
|
||||
</div><!-- panel-heading -->
|
||||
|
||||
<div id="accordion-{{ loop.index }}" class="panel-collapse collapse in">
|
||||
<!-- panel-body -->
|
||||
<div class="panel-body">
|
||||
<input name="{{ key }}" type="text" class="form-control" value="">
|
||||
</div><!-- panel-body -->
|
||||
</div>
|
||||
</div><!-- panel -->
|
||||
{% endfor %}
|
||||
|
||||
|
||||
{% for key,value in ranges %}
|
||||
|
||||
<!-- panel -->
|
||||
<div class="panel-default panel-faq">
|
||||
<!-- panel-heading -->
|
||||
<div class="panel-heading">
|
||||
<a data-toggle="collapse" data-parent="#accordion" href="#accordion-range{{ value.id }}">
|
||||
<h4 class="panel-title">{{ value.name }}<span class="pull-right"><i class="fa fa-minus"></i></span>
|
||||
</h4>
|
||||
</a>
|
||||
</div><!-- panel-heading -->
|
||||
|
||||
<div id="accordion-range{{ value.id }}" class="panel-collapse collapse in">
|
||||
<!-- panel-body -->
|
||||
<div class="panel-body">
|
||||
|
||||
<input type="number" class="price-input" value="{{ app.request.get('min_cf_'~ value.id) }}"
|
||||
name="min_cf_{{ value.id }}" min="0" placeholder="Min"> - <input class="price-input"
|
||||
type="number"
|
||||
value="{{ app.request.get('max_cf_'~ value.id) }}"
|
||||
name="max_cf_{{ value.id }}"
|
||||
placeholder="Max">
|
||||
|
||||
</div><!-- panel-body -->
|
||||
</div>
|
||||
</div><!-- panel -->
|
||||
{% endfor %}
|
||||
|
||||
<!-- panel -->
|
||||
<!-- Price -->
|
||||
<div class="panel-default panel-faq">
|
||||
<!-- panel-heading -->
|
||||
<div class="panel-heading">
|
||||
<a data-toggle="collapse" data-parent="#accordion" href="#accordion-three">
|
||||
<h4 class="panel-title">
|
||||
Price
|
||||
{{ trans('theme::fields.price.name') }}
|
||||
<span class="pull-right"><i class="fa fa-minus"></i></span>
|
||||
</h4>
|
||||
</a>
|
||||
</div><!-- panel-heading -->
|
||||
</div>
|
||||
|
||||
<div id="accordion-three" class="panel-collapse collapse in" aria-expanded="true" style="">
|
||||
<!-- panel-body -->
|
||||
<div class="panel-body">
|
||||
<div class="price-range"><!--price-range-->
|
||||
<div class="price-range">
|
||||
<div class="price">
|
||||
|
||||
{% set active_currencies = setting_value('visiosoft.module.advs::enabled_currencies') %}
|
||||
|
||||
<input type="number" class="price-input" value="{{ request.min_price }}"
|
||||
name="min_price" min="0" placeholder="Min"> - <input class="price-input"
|
||||
type="number"
|
||||
value="{{ request.max_price }}"
|
||||
name="max_price"
|
||||
placeholder="Max">
|
||||
name="min_price" min="0" placeholder="Min"> -
|
||||
|
||||
<input class="price-input" type="number" value="{{ request.max_price }}"
|
||||
name="max_price" placeholder="Max">
|
||||
|
||||
<select name="currency" id="currency">
|
||||
{% for currency in active_currencies %}
|
||||
<option value="{{ currency }}">{{ currency }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
|
||||
</div>
|
||||
</div><!--/price-range-->
|
||||
</div><!-- panel-body -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Price -->
|
||||
|
||||
|
||||
{% if entries('advs').isEnabled('searchbydistance') %}
|
||||
<!--Search By Distance-->
|
||||
{% include "visiosoft.module.searchbydistance::list/filter" %}
|
||||
<!--Search By Distance-->
|
||||
{% endif %}
|
||||
|
||||
<div class="panel-default panel-faq">
|
||||
{% if entries('advs').isEnabled('searchbydistance') %}
|
||||
<div class="panel-heading">
|
||||
<a data-toggle="collapse" data-parent="#accordion" href="#accordion-four">
|
||||
<h4 class="panel-title">
|
||||
{{ trans("visiosoft.module.searchbydistance::field.searchbydistance") }}
|
||||
<span class="pull-right"><i class="fa fa-minus"></i></span>
|
||||
</h4>
|
||||
</a>
|
||||
</div><!-- panel-heading -->
|
||||
<div id="accordion-four" class="panel-collapse collapse in" aria-expanded="true" style="">
|
||||
<!-- panel-body -->
|
||||
<div class="panel-body">
|
||||
<div class="price-range"><!--price-range-->
|
||||
|
||||
<select name="distance" id="distance" class="form-control">
|
||||
<option value="10" {{ request.distance==10 ? 'selected' : '' }}>10</option>
|
||||
<option value="20" {{ request.distance==20 ? 'selected' : '' }}>20</option>
|
||||
<option value="50" {{ request.distance==50 ? 'selected' : '' }}>50</option>
|
||||
</select>
|
||||
|
||||
<input type="hidden" name="dlong" id="distlong">
|
||||
<input type="hidden" name="dlat" id="distlat">
|
||||
</div><!--/price-range-->
|
||||
</div><!-- panel-body -->
|
||||
<div class="panel-heading text-center">
|
||||
<div id="search-button">
|
||||
<button type="submit" class="btn btn-primary search-filter-button">
|
||||
{{ trans("visiosoft.module.advs::field.search") }}
|
||||
</button>
|
||||
<h5><font color="#333">{{ trans('theme::message.filter_by_search_msg') }}</font></h5>
|
||||
</div>
|
||||
{{ asset_add("scripts.js", "visiosoft.module.searchbydistance::js/script.js") }}
|
||||
{% endif %}
|
||||
<div id="search-button">
|
||||
<button type="submit"
|
||||
class="btn btn-default">{{ trans("visiosoft.module.advs::field.search") }}</button>
|
||||
</div>
|
||||
</div><!-- panel -->
|
||||
</div>
|
||||
|
||||
</div><!-- panel-group -->
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- accordion-->
|
||||
{{ asset_add("scripts.js", "visiosoft.theme.base::js/filterLocation.js") }}
|
||||
</div>
|
||||
@ -0,0 +1,40 @@
|
||||
<div class="section recommended-ads">
|
||||
|
||||
<div class="row list-header">
|
||||
|
||||
<div class="col-md-6">
|
||||
{% include "theme::list/partials/list-sort-by" %}
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
{% include "visiosoft.theme.base::list/partials/display-mode" %}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
{% if entries('advs').isEnabled('customfields') %}
|
||||
{% include "visiosoft.module.customfields::selecttop" %}
|
||||
{% endif %}
|
||||
|
||||
<div class="category-tabs"></div>
|
||||
|
||||
{% include "theme::list/partials/featured-ads" %}
|
||||
|
||||
|
||||
{% include "theme::list/partials/ads" %}
|
||||
|
||||
|
||||
<!-- pagination -->
|
||||
<div class="text-center">
|
||||
<div class="tool-pagination">
|
||||
{{ advs.links()|raw }}
|
||||
</div>
|
||||
</div>
|
||||
<!-- pagination -->
|
||||
|
||||
|
||||
{% if entries('advs').isEnabled('favs') %}
|
||||
{% include "visiosoft.module.favs::list/favorites-section" %}
|
||||
{% endif %}
|
||||
|
||||
</div>
|
||||
@ -0,0 +1,26 @@
|
||||
<div class="dropdown pull-left sort-by-list">
|
||||
<div class="dropdown">
|
||||
<h5><i class="fa fa-filter"></i> {{ trans("visiosoft.module.advs::field.sort_by") }}:</h5>
|
||||
|
||||
<a data-toggle="dropdown" class="sort-by-open-dropdown" href="#"
|
||||
aria-expanded="false">
|
||||
<span class="sort-by-selected-text">{{ trans("visiosoft.module.advs::field.pick_option") }}</span>
|
||||
<i class="fa fa-caret-square-o-down"></i>
|
||||
</a>
|
||||
|
||||
<ul class="dropdown-menu" x-placement="bottom-start">
|
||||
<li>
|
||||
<a href="#" data-value="sort_price_up"
|
||||
class="sort-by-item">{{ trans("visiosoft.module.advs::field.price_high") }}</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#" data-value="sort_price_down"
|
||||
class="sort-by-item">{{ trans("visiosoft.module.advs::field.price-low") }}</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#" data-value="sort_time"
|
||||
class="sort-by-item">{{ trans("visiosoft.module.advs::field.newest") }}</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
@ -0,0 +1,17 @@
|
||||
{% if app.request.get('user') != null or app.request.get('user') != "" %}
|
||||
<div class="col-md-12 upper-list-banner">
|
||||
<div class="upper-list-user">
|
||||
<div class="upper-list-img">
|
||||
<a href=""><img src="{{ userProfile.file.url }}" alt=""></a>
|
||||
</div>
|
||||
<div class="upper-list-info">
|
||||
{{ user.first_name }} {{ user.last_name }}
|
||||
</div>
|
||||
</div>
|
||||
{% if userProfile.adv_listing_banner.url == '' %}
|
||||
<img src="{{ img('theme::images/bg/1.png').url }}">
|
||||
{% else %}
|
||||
<img src="{{ userProfile.adv_listing_banner.url }}">
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
@ -1,169 +1,92 @@
|
||||
{% extends "theme::layouts/default" %}
|
||||
{% block content %}
|
||||
<!-- main -->
|
||||
<section id="main" class="clearfix category-page">
|
||||
<div class="container">
|
||||
{% include "theme::partials/messages" %}
|
||||
<div class="breadcrumb-section">
|
||||
<!-- breadcrumb -->
|
||||
<ol class="breadcrumb">
|
||||
<li>
|
||||
<a href="/">{{ trans("visiosoft.module.advs::field.home") }}</a>
|
||||
</li>
|
||||
{% if app.request.get('cat') %}
|
||||
{% for category_breadcrumbs in mainCats.first.getMains(app.request.get('cat')) %}
|
||||
<li>
|
||||
<a href="{{ url_route('visiosoft.module.advs::list_cat', [category_breadcrumbs.id]) }}">{{ category_breadcrumbs.val }}</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</ol><!-- breadcrumb -->
|
||||
{% if app.request.get('cat') %}
|
||||
<h2 class="title">{{ mainCats.first.getCategoryName(app.request.get('cat')) }}</h2>
|
||||
{% else %}
|
||||
<h2 class="title">{{ trans("visiosoft.module.advs::field.recommended") }}</h2>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="category-info">
|
||||
<div class="row">
|
||||
{% if app.request.get('user') != null or app.request.get('user') != "" %}
|
||||
<div class="col-md-12 upper-list-banner">
|
||||
<div class="upper-list-user">
|
||||
<div class="upper-list-img">
|
||||
<a href=""><img src="{{ userProfile.file.url }}" alt=""></a>
|
||||
</div>
|
||||
<div class="upper-list-info">
|
||||
{{ user.first_name }} {{ user.last_name }}
|
||||
</div>
|
||||
</div>
|
||||
<img src="https://s0.shbdn.com/assets/images/6075:5c5f1367b540e2e1c931a2c45e936b37.jpg">
|
||||
</div>
|
||||
{% endif %}
|
||||
<!-- accordion-->
|
||||
<form action="{{ url_route('visiosoft.module.advs::list') }}" method="get">
|
||||
{% include "visiosoft.theme.base::list/partials/list-filter" %}
|
||||
{% extends "theme::list/list" %}
|
||||
{% block listContent %}
|
||||
|
||||
<!-- recommended-ads -->
|
||||
<div class="col-sm-8 col-md-9">
|
||||
<div class="section recommended-ads table-recommended-section">
|
||||
<!-- featured-top -->
|
||||
<div class="category-info">
|
||||
<div class="row">
|
||||
|
||||
{% include "theme::list/partials/user-section" %}
|
||||
|
||||
<form action="{{ url_route('visiosoft.module.advs::list') }}" method="get">
|
||||
|
||||
{% include "visiosoft.theme.base::list/partials/list-filter" %}
|
||||
|
||||
<div class="col-sm-8 col-md-9">
|
||||
<div class="section recommended-ads">
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-6">
|
||||
{% include "theme::list/partials/list-sort-by" %}
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
{% include "visiosoft.theme.base::list/partials/display-mode" %}
|
||||
<div class="featured-top">
|
||||
{% if app.request.get('cat') %}
|
||||
<h4>{{ trans("visiosoft.module.advs::field.search_ads_result_message.name",{'name':mainCats.first.getCategoryName(app.request.get('cat')),'count':count(advs)+count(featured_advs) }) }}</h4>
|
||||
{% else %}
|
||||
<h4>{{ trans("visiosoft.module.advs::field.recommended") }}</h4>
|
||||
{% endif %}
|
||||
<div class="dropdown pull-right">
|
||||
|
||||
<!-- category-change -->
|
||||
<div class="dropdown">
|
||||
<h5>{{ trans("visiosoft.module.advs::field.sort_by") }}:</h5>
|
||||
<a data-toggle="dropdown" class="sort-by-open-dropdown" href="#"
|
||||
aria-expanded="false">
|
||||
<span class="sort-by-selected-text">{{ trans("visiosoft.module.advs::field.pick_option") }}</span><i
|
||||
class="fa fa-caret-square-o-down"></i></a>
|
||||
<ul class="dropdown-menu sort-by-dropdown" x-placement="bottom-start">
|
||||
<li><a href="#" data-value="all"
|
||||
class="sort-by-item">{{ trans("visiosoft.module.advs::field.pick_option") }}</a>
|
||||
</li>
|
||||
<li><a href="#" data-value="sort_price_up"
|
||||
class="sort-by-item">{{ trans("visiosoft.module.advs::field.price_high") }}</a>
|
||||
</li>
|
||||
<li><a href="#" data-value="sort_price_down"
|
||||
class="sort-by-item">{{ trans("visiosoft.module.advs::field.price-low") }}</a>
|
||||
</li>
|
||||
<li><a href="#" data-value="sort_time"
|
||||
class="sort-by-item">{{ trans("visiosoft.module.advs::field.newest") }}</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div><!-- category-change -->
|
||||
</div>
|
||||
</div>
|
||||
{% if entries('advs').isEnabled('customfields') %}
|
||||
{% include "visiosoft.module.customfields::selecttop" %}
|
||||
{% endif %}
|
||||
<div class="category-tabs">
|
||||
|
||||
</div>
|
||||
<div class="table-responsive">
|
||||
|
||||
<table class="table ads-list-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col" colspan="2" class="text-center">{{ trans('visiosoft.module.advs::field.advs_list_table_thead.name') }}</th>
|
||||
<th scope="col" class="text-center">{{ trans('visiosoft.module.advs::field.advs_list_table_thead.price') }}</th>
|
||||
<th scope="col" class="text-center">{{ trans('visiosoft.module.advs::field.advs_list_table_thead.publish_at') }}</th>
|
||||
<th scope="col" class="text-center">{{ trans('visiosoft.module.advs::field.advs_list_table_thead.location_city') }} / {{ trans('visiosoft.module.advs::field.advs_list_table_thead.location_country') }}</th>
|
||||
{% if entries('advs').isEnabled('customfields') %}
|
||||
{% include "visiosoft.module.customfields::cftable" %}
|
||||
{% endif %}
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% include "visiosoft.theme.base::list/partials/table-row" %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- pagination -->
|
||||
<div class="text-center">
|
||||
<div class="tool-pagination">
|
||||
{{ advs.links()|raw }}
|
||||
</div>
|
||||
</div><!-- pagination -->
|
||||
{% if entries('advs').isEnabled('favs') %}
|
||||
<div class="favorite-searches">
|
||||
<div class="search-fav-icon col-md-1">
|
||||
<i class="fa fa-search"></i>
|
||||
</div>
|
||||
<div class="search-fav-tex col-md-8">
|
||||
<h4>{{ trans("visiosoft.module.advs::field.my_favorite_searches") }}</h4>
|
||||
<br>
|
||||
<p>{{ trans("visiosoft.module.advs::field.search_desc") }}</p>
|
||||
</div>
|
||||
<div class="search-fav-button col-md-3">
|
||||
<button class="btn btn-success" type="button"
|
||||
id="save-search">{{ trans("visiosoft.module.advs::field.add_to_favorites") }}</button>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div><!-- recommended-ads -->
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
{% if entries('advs').isEnabled('customfields') %}
|
||||
{% include "visiosoft.module.customfields::selecttop" %}
|
||||
{% endif %}
|
||||
<div class="category-tabs">
|
||||
|
||||
</div>
|
||||
<div class="table-responsive">
|
||||
|
||||
<table class="table ads-list-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col" colspan="2"
|
||||
class="text-center">{{ trans('visiosoft.module.advs::field.advs_list_table_thead.name') }}</th>
|
||||
<th scope="col"
|
||||
class="text-center">{{ trans('visiosoft.module.advs::field.advs_list_table_thead.price') }}</th>
|
||||
<th scope="col"
|
||||
class="text-center">{{ trans('visiosoft.module.advs::field.advs_list_table_thead.publish_at') }}</th>
|
||||
<th scope="col"
|
||||
class="text-center">{{ trans('visiosoft.module.advs::field.advs_list_table_thead.location_city') }}
|
||||
/ {{ trans('visiosoft.module.advs::field.advs_list_table_thead.location_country') }}</th>
|
||||
{% if entries('advs').isEnabled('customfields') %}
|
||||
{% include "visiosoft.module.customfields::cftable" %}
|
||||
{% endif %}
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% include "visiosoft.theme.base::list/partials/table-row" %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- pagination -->
|
||||
<div class="text-center">
|
||||
<div class="tool-pagination">
|
||||
{{ advs.links()|raw }}
|
||||
</div>
|
||||
</div><!-- pagination -->
|
||||
{% if entries('advs').isEnabled('favs') %}
|
||||
<div class="favorite-searches">
|
||||
<div class="search-fav-icon col-md-1">
|
||||
<i class="fa fa-search"></i>
|
||||
</div>
|
||||
<div class="search-fav-tex col-md-8">
|
||||
<h4>{{ trans("visiosoft.module.advs::field.my_favorite_searches") }}</h4>
|
||||
<br>
|
||||
<p>{{ trans("visiosoft.module.advs::field.search_desc") }}</p>
|
||||
</div>
|
||||
<div class="search-fav-button col-md-3">
|
||||
<button class="btn btn-success" type="button"
|
||||
id="save-search">{{ trans("visiosoft.module.advs::field.add_to_favorites") }}</button>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div><!-- recommended-ads -->
|
||||
</form>
|
||||
|
||||
</div><!-- container -->
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
</section><!-- main -->
|
||||
|
||||
<div id="search-fav-modal" class="modal fade" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header message-header">
|
||||
<h4 class="modal-title">{{ trans("visiosoft.module.advs::field.add_to_favorites") }}</h4>
|
||||
</div>
|
||||
<form action="{{ url_route("visiosoft.module.favs::add_search") }}" method="POST">
|
||||
<div class="modal-body search-fav-body">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
||||
<input name="url" type="hidden" value="{{ app.request.getRequestUri }}">
|
||||
<input placeholder="{{ trans("visiosoft.module.advs::field.search_name") }}"
|
||||
class="form-control" type="text" name="item_name" required>
|
||||
</div>
|
||||
<div class="modal-footer message-footer">
|
||||
<button id="send-fav-search" class="btn btn-success"
|
||||
type="submit">{{ trans("visiosoft.module.advs::field.send") }}</button>
|
||||
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ asset_add("scripts.js", "visiosoft.theme.base::js/admin-list.js") }}
|
||||
|
||||
|
||||
{% endblock %}
|
||||
{% block customjs %}
|
||||
{{ asset_add("scripts.js", "visiosoft.theme.base::js/list-table.js") }}
|
||||
{% include "theme::scroll-modal" %}
|
||||
{% endblock %}
|
||||
@ -3,20 +3,9 @@
|
||||
<section id="main" class="clearfix home-default">
|
||||
<div class="container">
|
||||
{% include "theme::partials/messages" %}
|
||||
<div class="breadcrumb-section">
|
||||
<!-- breadcrumb -->
|
||||
<ol class="breadcrumb">
|
||||
<li><a>{{ trans('visiosoft.module.advs::field.home') }}</a></li>
|
||||
<li>{{ trans('visiosoft.module.advs::field.ad_post') }}</li>
|
||||
</ol><!-- breadcrumb -->
|
||||
<h2 class="title">
|
||||
{% if entry(id) == null %}
|
||||
{{ trans('visiosoft.module.advs::field.create_adv') }}
|
||||
{% else %}
|
||||
{{ trans('visiosoft.module.advs::field.edit_adv') }}
|
||||
{% endif %}
|
||||
</h2>
|
||||
</div>
|
||||
|
||||
{% include "theme::new-ad/partials/breadcrumb" %}
|
||||
|
||||
<div class="adpost-details">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
@ -51,7 +40,9 @@
|
||||
</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
<a href="{{ url_route('adv::edit_category',[id]) }}"><i class="fas fa-pencil-alt"></i> {{ trans('visiosoft.module.advs::field.edit_category') }}</a>
|
||||
<a href="{{ url_route('adv::edit_category',[id]) }}"><i
|
||||
class="fas fa-pencil-alt"></i> {{ trans('visiosoft.module.advs::field.edit_category') }}
|
||||
</a>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="row form-group add-title">
|
||||
@ -111,42 +102,12 @@
|
||||
<div class="row form-group images">
|
||||
{{ form.fields.files.input |raw }}
|
||||
</div>
|
||||
{% for custom_field in custom_fields %}
|
||||
<div class="row form-group custom-fields">
|
||||
<label class="col-sm-3 label-title">{{ custom_field.custom_field_label|raw }}</label>
|
||||
<div class="col-sm-9">
|
||||
{{ custom_field.custom_field_input|raw }}
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
<div class="row form-group location-map">
|
||||
<div class="col-sm-4">
|
||||
<ul style="padding: 0">
|
||||
<li class="country-data" data-content="{{ adv['country_id'] }}"
|
||||
data-default="{{ setting_value('visiosoft.module.advs::default_country') }}"
|
||||
class="location-field country-data">{{ form.fields.country|raw }}</li>
|
||||
<li class="city-data" data-content="{{ adv['city'] }}"
|
||||
data-default="{{ setting_value('visiosoft.module.advs::default_city') }}"
|
||||
class="location-field city-data">{{ form.fields.city|raw }}</li>
|
||||
<li class="district-data" data-content="{{ adv['district'] }}"
|
||||
class="location-field district-data">{{ form.fields.district|raw }}</li>
|
||||
<li class="neighborhood-data" data-content="{{ adv['neighborhood'] }}"
|
||||
class="location-field neighborhood-data">{{ form.fields.neighborhood|raw }}</li>
|
||||
<li class="village-data" data-content="{{ adv['village'] }}"
|
||||
class="location-field">{{ form.fields.village|raw }}</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="col-sm-8">
|
||||
<div id="map-canvas" style="
|
||||
position: relative; overflow: hidden;
|
||||
transform: translateZ(0px) translateZ(0px) translateZ(0px) translateZ(0px) translateZ(0px) translateZ(0px);
|
||||
width: 100%;
|
||||
height:550px;
|
||||
background-color: rgb(229, 227, 223);
|
||||
"></div>
|
||||
</div>
|
||||
</div>
|
||||
<input value="{{adv.map_Val}}" name="map_Val" data-max="255" data-mask="" data-alias="" data-regex=""
|
||||
|
||||
|
||||
{% include "visiosoft.module.location::new-ad/map" %}
|
||||
|
||||
<input value="{{ adv.map_Val }}" name="map_Val" data-max="255" data-mask=""
|
||||
data-alias="" data-regex=""
|
||||
type="text" placeholder="" class="hidden d-none mapVal" data-field="map_Val"
|
||||
data-field_name="map_Val" data-provides="anomaly.field_type.text">
|
||||
</div><!-- section -->
|
||||
|
||||
@ -0,0 +1,7 @@
|
||||
<div class="breadcrumb-section">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="/">{{ trans('visiosoft.module.advs::field.home') }}</a></li>
|
||||
<li>{{ trans('visiosoft.module.advs::field.ad_post') }}</li>
|
||||
</ol>
|
||||
<h2 class="title">{{ trans('visiosoft.module.advs::field.post_free_ad') }}</h2>
|
||||
</div>
|
||||
@ -2,15 +2,7 @@
|
||||
{% block content %}
|
||||
<section id="main" class="clearfix ad-post-page">
|
||||
<div class="container">
|
||||
<div class="breadcrumb-section">
|
||||
<!-- breadcrumb -->
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="/">{{ trans('visiosoft.module.advs::field.home') }}</a></li>
|
||||
<li>{{ trans('visiosoft.module.advs::field.ad_post') }}</li>
|
||||
</ol><!-- breadcrumb -->
|
||||
<h2 class="title">{{ trans('visiosoft.module.advs::field.post_free_ad') }}</h2>
|
||||
</div><!-- banner -->
|
||||
|
||||
{% include "theme::new-ad/partials/breadcrumb" %}
|
||||
<div id="ad-cat-section">
|
||||
<form action="{{ url_route('visiosoft.module.advs::post_cat') }}" method="post">
|
||||
<div class="row category-tab">
|
||||
|
||||
@ -0,0 +1,61 @@
|
||||
{% if setting_value('visiosoft.module.location::list_page_location') %}
|
||||
<div class="panel-default panel-faq">
|
||||
<div class="panel-heading active-faq">
|
||||
<a data-toggle="collapse" data-parent="#accordion" href="#accordion-location">
|
||||
<h4 class="panel-title">{{ trans("visiosoft.module.advs::field.location") }}
|
||||
<span class="pull-right">
|
||||
<i class="fa fa-minus"></i>
|
||||
</span>
|
||||
</h4>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div id="accordion-location" class="panel-collapse collapse in">
|
||||
<div class="panel-body">
|
||||
<ul id="list-items" class="filter-list-items">
|
||||
<li>
|
||||
<label class="label-filter-location">{{ trans("visiosoft.module.location::field.country.name") }}</label>
|
||||
<select class="form-control" name="country" id="countries">
|
||||
{% for country in countries %}
|
||||
<option value="{{ country.id }}">{{ country.name }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</li>
|
||||
<li>
|
||||
<label class="label-filter-location">{{ trans("visiosoft.module.location::field.city.name") }}</label>
|
||||
<select class="form-control" name="city[]" id="cities" multiple>
|
||||
{% for city in cities %}
|
||||
<option value="{{ city.id }}">{{ city.name }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</li>
|
||||
<li>
|
||||
<label class="label-filter-location">{{ trans("visiosoft.module.location::field.district.name") }}</label>
|
||||
<select class="form-control" name="district" id="districts">
|
||||
{% for district in districts %}
|
||||
<option value="{{ district.id }}">{{ district.name }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</li>
|
||||
<li>
|
||||
<label class="label-filter-location">{{ trans("visiosoft.module.location::field.neighborhood.name") }}</label>
|
||||
<select class="form-control" name="neighborhood" id="neighborhoods">
|
||||
{% for neighborhood in neighborhoods %}
|
||||
<option value="{{ neighborhood.id }}">{{ neighborhood.name }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</li>
|
||||
<li>
|
||||
<label class="label-filter-location">{{ trans("visiosoft.module.location::field.village.name") }}</label>
|
||||
<select class="form-control" name="village" id="village">
|
||||
{% for village in villages %}
|
||||
<option value="{{ village.id }}">{{ village.name }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{{ asset_add("scripts.js", "visiosoft.theme.base::js/filterLocation.js") }}
|
||||
@ -0,0 +1,27 @@
|
||||
<div class="row form-group location-map">
|
||||
<div class="col-sm-4">
|
||||
<ul style="padding: 0">
|
||||
<li class="country-data" data-content="{{ adv['country_id'] }}"
|
||||
data-default="{{ setting_value('visiosoft.module.advs::default_country') }}"
|
||||
class="location-field country-data">{{ form.fields.country|raw }}</li>
|
||||
<li class="city-data" data-content="{{ adv['city'] }}"
|
||||
data-default="{{ setting_value('visiosoft.module.advs::default_city') }}"
|
||||
class="location-field city-data">{{ form.fields.city|raw }}</li>
|
||||
<li class="district-data" data-content="{{ adv['district'] }}"
|
||||
class="location-field district-data">{{ form.fields.district|raw }}</li>
|
||||
<li class="neighborhood-data" data-content="{{ adv['neighborhood'] }}"
|
||||
class="location-field neighborhood-data">{{ form.fields.neighborhood|raw }}</li>
|
||||
<li class="village-data" data-content="{{ adv['village'] }}"
|
||||
class="location-field">{{ form.fields.village|raw }}</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="col-sm-8">
|
||||
<div id="map-canvas" style="
|
||||
position: relative; overflow: hidden;
|
||||
transform: translateZ(0px) translateZ(0px) translateZ(0px) translateZ(0px) translateZ(0px) translateZ(0px);
|
||||
width: 100%;
|
||||
height:550px;
|
||||
background-color: rgb(229, 227, 223);
|
||||
"></div>
|
||||
</div>
|
||||
</div>
|
||||
Loading…
Reference in New Issue
Block a user