panel for the desired changes were made.

This commit is contained in:
profstyle1@gmail.com 2019-09-12 19:33:36 +03:00
parent cd3f39bae0
commit a4e1f47e52
12 changed files with 364 additions and 325 deletions

View File

@ -3,7 +3,7 @@
{% block ogdata %} {% block ogdata %}
<meta property="og:site_name" <meta property="og:site_name"
content="{{ template.get('og_site_name', setting_value('streams::name', config_get('streams::distribution.name'))) }}"/> content="{{ template.get('og_site_name', setting_value('streams::name', config_get('streams::distribution.name'))) }}"/>
<meta property="og:description" content="{{ adv.advs_desc|striptags|raw }}"/> <meta property="og:description" content="{{ template.get('og_description', trans(template.meta_description)) }}"/>
<meta property="og:title" content="{{ adv.title }}"/> <meta property="og:title" content="{{ adv.title }}"/>
<meta property="og:url" content="{{ template.get('og_url', url_current()) }}"/> <meta property="og:url" content="{{ template.get('og_url', url_current()) }}"/>
<meta property="og:image" content="{{ adv.getViewPhotoUrl|first }}"> <meta property="og:image" content="{{ adv.getViewPhotoUrl|first }}">
@ -134,10 +134,8 @@
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 offered-field offered-row"> <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 offered-field offered-row">
<span class="icon"><i class="far fa-clock"></i><a <span class="icon"><i class="far fa-clock"></i><a
href="#">{{ adv.created_at|date('d/m/Y') }}</a></span> href="#">{{ adv.created_at|date('d/m/Y') }}</a></span>
{% if setting_value('visiosoft.module.location::detail_page_location') %}
<span class="icon"><i class="fa fa-map-marker"></i><a href="#">{{ adv.city_name }} <span class="icon"><i class="fa fa-map-marker"></i><a href="#">{{ adv.city_name }}
, {{ adv.country_name }}qqq</a></span> , {{ adv.country_name }}</a></span>
{% endif %}
{% if adv.isCorporate == 2 %} {% if adv.isCorporate == 2 %}
<span class="icon"><i class="fa fa-suitcase"></i><a <span class="icon"><i class="fa fa-suitcase"></i><a
href="{{ url_route('visiosoft.module.advs::list_user_ad', [adv.created_by_id]) }}">{{ adv.owner }}</a></span> href="{{ url_route('visiosoft.module.advs::list_user_ad', [adv.created_by_id]) }}">{{ adv.owner }}</a></span>
@ -280,7 +278,7 @@
{% include "visiosoft.module.customfields::list-item" %} {% include "visiosoft.module.customfields::list-item" %}
{% endif %} {% endif %}
{% endif %} {% endif %}
{% if adv.map_Val != "" and setting_value('visiosoft.module.location::detail_page_location') %} {% if adv.map_Val != "" %}
<div id="streetviewtab" class="tab-pane fade in"> <div id="streetviewtab" class="tab-pane fade in">
<div id="map" data-map-val="{{ adv.map_Val }}"></div> <div id="map" data-map-val="{{ adv.map_Val }}"></div>
{% if entries('advs').isEnabled('streetview') %} {% if entries('advs').isEnabled('streetview') %}
@ -336,11 +334,9 @@
</div> </div>
<!-- item-info-right --> <!-- item-info-right -->
<div class="user-option pull-right"> <div class="user-option pull-right">
{% if setting_value('visiosoft.module.location::detail_page_location') %}
<a href="#" data-toggle="tooltip" data-placement="top" title="" <a href="#" data-toggle="tooltip" data-placement="top" title=""
data-original-title="{{ advs.city_name }}, {{ advs.country_name }}"><i data-original-title="{{ advs.city_name }}, {{ advs.country_name }}"><i
class="fa fa-map-marker"></i> </a> class="fa fa-map-marker"></i> </a>
{% endif %}
</div><!-- item-info-right --> </div><!-- item-info-right -->
</div><!-- ad-meta --> </div><!-- ad-meta -->
</div><!-- item-info --> </div><!-- item-info -->

View File

@ -60,7 +60,6 @@
<a data-toggle="dropdown" class="sort-by-open-dropdown" href="#" aria-expanded="false"> <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> <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" > <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_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_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> <li><a href="#" data-value="sort_time" class="sort-by-item">{{ trans("visiosoft.module.advs::field.newest") }}</a></li>
@ -121,9 +120,7 @@
</video>"> </video>">
<i class="fa fa-film"></i> </a> <i class="fa fa-film"></i> </a>
{% endif %} {% endif %}
{% if setting_value('visiosoft.module.location::list_page_location') %}
<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 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>
{% endif %}
<a class="online" href="" data-toggle="tooltip" data-placement="top" title="{{ adv.owner }}"><i class="fa fa-user"></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') %} {% if entries('advs').isEnabled('comparisons') %}
@ -183,9 +180,7 @@
<source src='{{ adv.isAdVideo }}' class='video-src' type='video/mp4' /> <source src='{{ adv.isAdVideo }}' class='video-src' type='video/mp4' />
</video>"></a> </video>"></a>
{% endif %} {% endif %}
{% if setting_value('visiosoft.module.location::list_page_location') %}
<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 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>
{% endif %}
<a class="online" href="" data-toggle="tooltip" data-placement="top" title="{{ adv.owner }}"><i class="fa fa-user"></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') %} {% if entries('advs').isEnabled('comparisons') %}

View File

@ -94,9 +94,7 @@
<th scope="col" colspan="2" class="text-center">{{ trans('visiosoft.module.advs::field.advs_list_table_thead.name') }}</th> <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.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.publish_at') }}</th>
{% if setting_value('visiosoft.module.location::list_page_location') %}
<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> <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>
{% endif %}
{% if entries('advs').isEnabled('customfields') %} {% if entries('advs').isEnabled('customfields') %}
{% include "visiosoft.module.customfields::cftable" %} {% include "visiosoft.module.customfields::cftable" %}
{% endif %} {% endif %}

View File

@ -38,4 +38,29 @@ return [
's-type-banner-mobile-code' => [ 's-type-banner-mobile-code' => [
'type' => 'anomaly.field_type.editor', 'type' => 'anomaly.field_type.editor',
], ],
'show_post_your_add_btn' => [
'type' => 'anomaly.field_type.boolean',
'config' => [
'default_value' => true,
],
],
'show_home_search_on_map_btn' => [
'type' => 'anomaly.field_type.boolean',
'config' => [
'default_value' => true,
],
],
'show_last_search_btn' => [
'type' => 'anomaly.field_type.boolean',
'config' => [
'default_value' => true,
],
],
'header_openclassify_btn' => [
'type' => 'anomaly.field_type.boolean',
'config' => [
'default_value' => true,
],
],
]; ];

View File

@ -24,7 +24,7 @@ return [
'subscribe' => 'Subscribe!', 'subscribe' => 'Subscribe!',
'your_email' => 'Your email', 'your_email' => 'Your email',
'sign_up' => 'Sign Up', 'sign_up' => 'Sign Up',
'copyright' => 'Copyright &copy; 2019. Developed by', 'copyright' => 'Copyright 2019. Developed by',
'cart' => 'My Cart', 'cart' => 'My Cart',
'search' => 'Search', 'search' => 'Search',
'type_your_keyword' => 'Type Your Keyword', 'type_your_keyword' => 'Type Your Keyword',

View File

@ -4,5 +4,33 @@ return [
'meta_tags' => [ 'meta_tags' => [
'name' => 'Meta Keywords', 'name' => 'Meta Keywords',
], ],
'template' => [
'name' => 'Template',
],
's-type-latest-limit' => [
'name' => 'S-type latest limit',
],
's-type-showcase' => [
'name' => 'S-type showcase limit name',
],
's-type-banner-code' => [
'name' => 'S-type banner code',
],
's-type-banner-mobile-code' => [
'name' => 'S-type banner mobile code',
],
'show_post_your_add_btn' => [
'name' => 'Show post your add btn',
],
'show_home_search_on_map_btn' => [
'name' => 'Show home search on_map btn',
],
'show_last_search_btn' => [
'name' => 'Show last search btn',
],
]; ];

View File

@ -9,8 +9,6 @@
<form action="{{ url('advs/list') }}" id="home-page-search-form" method="get"> <form action="{{ url('advs/list') }}" id="home-page-search-form" method="get">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">
{% if setting_value('visiosoft.module.location::home_page_location') %}
<div class="col-md-2 home-search-field"> <div class="col-md-2 home-search-field">
<div class="form-group "> <div class="form-group ">
{% set cities = entries('location','cities').orderBy('slug').get() %} {% set cities = entries('location','cities').orderBy('slug').get() %}
@ -23,10 +21,6 @@
</div> </div>
</div> </div>
<div class="col-md-2 home-search-field"> <div class="col-md-2 home-search-field">
{% else %}
<div class="col-md-4 home-search-field">
{% endif %}
<div class="form-group "> <div class="form-group ">
<ul> <ul>
<li class="dropdown home-search-category-field"> <li class="dropdown home-search-category-field">
@ -57,20 +51,23 @@
class="form-control search-input"> class="form-control search-input">
</div> </div>
</div> </div>
<div class="col-md-1 home-search-field"> {% set search_on_map_btn = setting_value('visiosoft.theme.default::show_home_search_on_map_btn') %}
<div class="{% if search_on_map_btn != 1 %} col-md-4 {% else %}col-md-1 {% endif %} home-search-field">
<button type="submit" class="btn btn-default pl-5 pr-5 search-button"><i <button type="submit" class="btn btn-default pl-5 pr-5 search-button"><i
class="fa fa-search"></i> {{ trans('theme::fields.search') }} class="fa fa-search"></i> {{ trans('theme::fields.search') }}
</button> </button>
</div> </div>
{% if search_on_map_btn %}
<div class="col-md-3 home-search-field"> <div class="col-md-3 home-search-field">
<button type="button" class="btn btn-default map-search-button pl-5 pr-5 "><i <button type="button" class="btn btn-default map-search-button pl-5 pr-5 "><i
class="fa fa-map-marker"></i> {{ trans('theme::fields.search_map') }} class="fa fa-map-marker"></i> {{ trans('theme::fields.search_map') }}
</button> </button>
</div> </div>
{% endif %}
</div> </div>
</div> </div>
</form> </form>
{% if setting_value('visiosoft.theme.default::show_last_search_btn') %}
{% if(app.request.cookies.has('last_search')) %} {% if(app.request.cookies.has('last_search')) %}
<div class="last-search"> <div class="last-search">
<a href="{{ app.request.cookies.get('last_search') }}" class="btn btn-default center-block"> <a href="{{ app.request.cookies.get('last_search') }}" class="btn btn-default center-block">
@ -78,8 +75,10 @@
{{ trans('theme::fields.last_search') }}</a> {{ trans('theme::fields.last_search') }}</a>
</div> </div>
{% endif %} {% endif %}
{% endif %}
</div> </div>
,
<!-- banner-form --> <!-- banner-form -->
</div><!-- banner --> </div><!-- banner -->
<!-- main-content --> <!-- main-content -->
@ -156,17 +155,14 @@
<!-- item-info-right --> <!-- item-info-right -->
<div class="user-option pull-right"> <div class="user-option pull-right">
{% if adv.is_get_adv == "1" and adv.stock != "0" and entries('advs').isEnabled('carts') %} {% if adv.is_get_adv == "1" and adv.stock != "0" and entries('advs').isEnabled('carts') %}
<a href="{{ url_route('adv_AddCart',[adv.id]) }}" <a href="{{ url_route('adv_AddCart',[adv.id]) }}" data-toggle="tooltip" data-placement="top"
data-toggle="tooltip" data-placement="top"
title="{{ trans('visiosoft.module.advs::field.online_shopping') }}"><i title="{{ trans('visiosoft.module.advs::field.online_shopping') }}"><i
class="fa fa-shopping-cart"></i> </a> class="fa fa-shopping-cart"></i> </a>
{% endif %} {% endif %}
{% if setting_value('visiosoft.module.location::home_page_location') %}
<a href="{{ url_route('visiosoft.module.advs::show_ad_map_location',[adv.country_id,adv.city,adv.district]) }}" <a href="{{ url_route('visiosoft.module.advs::show_ad_map_location',[adv.country_id,adv.city,adv.district]) }}"
data-toggle="tooltip" data-placement="top" data-toggle="tooltip" data-placement="top"
title="{{ adv.city_name }}, {{ adv.country_name }}"><i title="{{ adv.city_name }}, {{ adv.country_name }}"><i
class="fa fa-map-marker"></i> </a> class="fa fa-map-marker"></i> </a>
{% endif %}
</div><!-- item-info-right --> </div><!-- item-info-right -->
</div><!-- ad-meta --> </div><!-- ad-meta -->
</div><!-- featured --> </div><!-- featured -->
@ -212,7 +208,7 @@
{% for adv in latest_advs %} {% for adv in latest_advs %}
<div class="ad-item row main-page-ad-item"> <div class="oc-item1 ad-item row main-page-ad-item">
<div class="item-image-box col-sm-4"> <div class="item-image-box col-sm-4">
<!-- item-image --> <!-- item-image -->
<div class="item-image"> <div class="item-image">
@ -252,17 +248,14 @@
<!-- item-info-right --> <!-- item-info-right -->
<div class="user-option pull-right"> <div class="user-option pull-right">
{% if adv.is_get_adv == "1" and adv.stock != "0" and entries('advs').isEnabled('carts') %} {% if adv.is_get_adv == "1" and adv.stock != "0" and entries('advs').isEnabled('carts') %}
<a href="{{ url_route('adv_AddCart',[adv.id]) }}" <a href="{{ url_route('adv_AddCart',[adv.id]) }}" data-toggle="tooltip" data-placement="top"
data-toggle="tooltip" data-placement="top"
title="{{ adv.city_name }}, {{ adv.country_name }}"><i title="{{ adv.city_name }}, {{ adv.country_name }}"><i
class="fa fa-shopping-cart"></i> </a> class="fa fa-shopping-cart"></i> </a>
{% endif %} {% endif %}
{% if setting_value('visiosoft.module.location::home_page_location') %}
<a href="{{ url_route('visiosoft.module.advs::show_ad_map_location',[adv.country_id,adv.city,adv.district]) }}" <a href="{{ url_route('visiosoft.module.advs::show_ad_map_location',[adv.country_id,adv.city,adv.district]) }}"
data-toggle="tooltip" data-placement="top" data-toggle="tooltip" data-placement="top"
title="{{ adv.city_name }}, {{ adv.country_name }}"><i title="{{ adv.city_name }}, {{ adv.country_name }}"><i
class="fa fa-map-marker"></i> </a> class="fa fa-map-marker"></i> </a>
{% endif %}
</div><!-- item-info-right --> </div><!-- item-info-right -->
</div><!-- ad-meta --> </div><!-- ad-meta -->
</div><!-- item-info --> </div><!-- item-info -->
@ -275,7 +268,7 @@
{% set popular_advs = entries('advs').popularAdvs() %} {% set popular_advs = entries('advs').popularAdvs() %}
{% for adv in popular_advs %} {% for adv in popular_advs %}
<div class="main-page-ad-item row"> <div class="oc-item1 main-page-ad-item row">
<div class="item-image-box col-sm-4"> <div class="item-image-box col-sm-4">
<!-- item-image --> <!-- item-image -->
<div class="item-image"> <div class="item-image">
@ -288,8 +281,7 @@
class="img-respocive"></a> class="img-respocive"></a>
{% if adv.is_get_adv == "1" and adv.stock != "0" and entries('advs').isEnabled('carts') %} {% if adv.is_get_adv == "1" and adv.stock != "0" and entries('advs').isEnabled('carts') %}
<a href="{{ url_route('adv_AddCart',[adv.id]) }}" <a href="{{ url_route('adv_AddCart',[adv.id]) }}" data-toggle="tooltip" data-placement="top"
data-toggle="tooltip" data-placement="top"
title="Get ilanı"><i title="Get ilanı"><i
class="fa fa-check-square-o"></i></a> class="fa fa-check-square-o"></i></a>
{% endif %} {% endif %}
@ -322,17 +314,14 @@
<!-- item-info-right --> <!-- item-info-right -->
<div class="user-option pull-right"> <div class="user-option pull-right">
{% if adv.is_get_adv == "1" and adv.stock != "0" and entries('advs').isEnabled('carts') %} {% if adv.is_get_adv == "1" and adv.stock != "0" and entries('advs').isEnabled('carts') %}
<a href="{{ url_route('adv_AddCart',[adv.id]) }}" <a href="{{ url_route('adv_AddCart',[adv.id]) }}" data-toggle="tooltip" data-placement="top"
data-toggle="tooltip" data-placement="top"
title="{{ trans('visiosoft.module.advs::field.online_shopping') }}"><i title="{{ trans('visiosoft.module.advs::field.online_shopping') }}"><i
class="fa fa-shopping-cart"></i> </a> class="fa fa-shopping-cart"></i> </a>
{% endif %} {% endif %}
{% if setting_value('visiosoft.module.location::home_page_location') %}
<a href="{{ url_route('visiosoft.module.advs::show_ad_map_location',[adv.country_id,adv.city,adv.district]) }}" <a href="{{ url_route('visiosoft.module.advs::show_ad_map_location',[adv.country_id,adv.city,adv.district]) }}"
data-toggle="tooltip" data-placement="top" data-toggle="tooltip" data-placement="top"
title="{{ adv.city_name }}, {{ adv.country_name }}"><i title="{{ adv.city_name }}, {{ adv.country_name }}"><i
class="fa fa-map-marker"></i> </a> class="fa fa-map-marker"></i> </a>
{% endif %}
</div><!-- item-info-right --> </div><!-- item-info-right -->
</div><!-- ad-meta --> </div><!-- ad-meta -->
</div><!-- item-info --> </div><!-- item-info -->

View File

@ -28,9 +28,9 @@
</address> </address>
<ul class="social"> <ul class="social">
<li><a href="#"><i class="fa fa-facebook"></i></a></li> <li><a href="#"><i class="fab fa-facebook"></i></a></li>
<li><a href="#"><i class="fa fa-twitter"></i></a></li> <li><a href="#"><i class="fab fa-twitter"></i></a></li>
<li><a href="#"><i class="fa fa-google-plus"></i></a></li> <li><a href="#"><i class="fab fa-google-plus"></i></a></li>
</ul> </ul>
</div> </div>
</div><!-- contact-info --> </div><!-- contact-info -->

View File

@ -153,4 +153,3 @@
</script> </script>
{% endif %} {% endif %}
{{ blocks('advs-default-theme-footercss-bottom') }}

View File

@ -162,10 +162,13 @@
{% endif %} {% endif %}
{% endif %} {% endif %}
{% if setting_value('visiosoft.theme.default::show_post_your_add_btn') %}
<li class="new-ads-navigation-field"><a href="/advs/create_adv" <li class="new-ads-navigation-field"><a href="/advs/create_adv"
class="btn btn-success navigation-new-ad-btn">{{ trans("visiosoft.theme.default::addon.post_ad") }}</a> class="btn btn-success navigation-new-ad-btn">{{ trans("visiosoft.theme.default::addon.post_ad") }}</a>
</li> </li>
{% endif %}
</ul> </ul>
</div> </div>

View File

@ -24,4 +24,10 @@ return [
'default_value' => true, 'default_value' => true,
], ],
], ],
'show_search_location_btn' => [
'type' => 'anomaly.field_type.boolean',
'config' => [
'default_value' => true,
],
],
]; ];