mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
Merge pull request #25 from openclassify/vedat
#8 remove unnecessary field types
This commit is contained in:
commit
00da4777cc
@ -7,10 +7,10 @@ fav.checkFav = (id, type, divId, iconId) => {
|
||||
success: function (response) {
|
||||
if(response.length == 0) {
|
||||
$(divId).attr("href", "/favs/add_fav/" + id+ "/"+type);
|
||||
$(iconId).attr("class", "fa fa-heart-o");
|
||||
$(iconId).attr("class", "far fa-heart");
|
||||
} else {
|
||||
$(divId).attr("href", "/favs/delete_fav/" + id + "/" + "adv");
|
||||
$(iconId).attr("class", "fa fa-heart");
|
||||
$(iconId).attr("class", "fas fa-heart");
|
||||
}
|
||||
},
|
||||
error:function (err) {
|
||||
|
||||
@ -1,7 +1,8 @@
|
||||
{% extends "theme::layouts/default" %}
|
||||
|
||||
{% block ogdata %}
|
||||
<meta property="og:site_name" content="{{ template.get('og_site_name', setting_value('streams::name', config_get('streams::distribution.name'))) }}"/>
|
||||
<meta property="og:site_name"
|
||||
content="{{ template.get('og_site_name', setting_value('streams::name', config_get('streams::distribution.name'))) }}"/>
|
||||
<meta property="og:description" content="{{ template.get('og_description', trans(template.meta_description)) }}"/>
|
||||
<meta property="og:title" content="{{ adv.title }}"/>
|
||||
<meta property="og:url" content="{{ template.get('og_url', url_current()) }}"/>
|
||||
@ -84,7 +85,7 @@
|
||||
<div class="col-md-5">
|
||||
<div class="slider-text">
|
||||
{% if entries('advs').isEnabled('favs') %}
|
||||
<a class="favorites" href="#"><i id="heart-icon-adv" class="fa fa-heart-o"></i></a>
|
||||
<a class="favorites" href="#"><i id="heart-icon-adv" class="far fa-heart"></i></a>
|
||||
{% endif %}
|
||||
<h3 class="title">{{ adv.title }}</h3>
|
||||
<h2 class="ad-price">
|
||||
@ -126,7 +127,8 @@
|
||||
</div>
|
||||
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-4 add-cart-upgrade">
|
||||
<button type="button" class="btn btn-default btn-number"
|
||||
data-type="plus" data-field="quant[1]" {% if adv.stock < "2" %} disabled="true" {% endif %}>
|
||||
data-type="plus"
|
||||
data-field="quant[1]" {% if adv.stock < "2" %} disabled="true" {% endif %}>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
@ -166,11 +168,11 @@
|
||||
</div>
|
||||
|
||||
{% if(profile.getObject().gsm_phone is not null or profile.office_phone is not null or entries('advs').isEnabled('messages')) %}
|
||||
<!-- contact-with -->
|
||||
<div class="contact-with">
|
||||
<h4> {{ trans('visiosoft.module.advs::field.contact_with') }}</h4>
|
||||
{% if(profile.getObject().gsm_phone != null) %}
|
||||
<span class="btn btn-red show-number" data-id="{{ adv.id }}">
|
||||
<!-- contact-with -->
|
||||
<div class="contact-with">
|
||||
<h4> {{ trans('visiosoft.module.advs::field.contact_with') }}</h4>
|
||||
{% if(profile.getObject().gsm_phone != null) %}
|
||||
<span class="btn btn-red show-number" data-id="{{ adv.id }}">
|
||||
<i class="fa fa-phone-square"></i>
|
||||
<span class="hide-text">{{ trans('visiosoft.module.advs::field.click_phone') }} </span>
|
||||
<span class="hide-number">{{ trans("visiosoft.module.advs::field.phone_gsm") }}
|
||||
@ -181,16 +183,16 @@
|
||||
{% endif %}
|
||||
</span>
|
||||
</span>
|
||||
{% endif %}
|
||||
{% if entries('advs').isEnabled('messages') %}
|
||||
<a data-content="{{ app.auth.id }}" id="message" class="btn"><i
|
||||
class="fa fa-envelope-square"></i>{{ trans("visiosoft.module.advs::field.send_message") }}
|
||||
</a>
|
||||
{% endif %}
|
||||
{% if entries('advs').isEnabled('comparisons') %}
|
||||
{% include "visiosoft.module.comparisons::comparebtn" %}
|
||||
{% endif %}
|
||||
</div><!-- contact-with -->
|
||||
{% endif %}
|
||||
{% if entries('advs').isEnabled('messages') %}
|
||||
<a data-content="{{ app.auth.id }}" id="message" class="btn"><i
|
||||
class="fa fa-envelope-square"></i>{{ trans("visiosoft.module.advs::field.send_message") }}
|
||||
</a>
|
||||
{% endif %}
|
||||
{% if entries('advs').isEnabled('comparisons') %}
|
||||
{% include "visiosoft.module.comparisons::comparebtn" %}
|
||||
{% endif %}
|
||||
</div><!-- contact-with -->
|
||||
{% endif %}
|
||||
{% if adv_detail_place_code %}
|
||||
<div>
|
||||
@ -218,8 +220,12 @@
|
||||
</div><!-- slider-text -->
|
||||
</div>
|
||||
</div>
|
||||
<a class="complaints pull-right" id="complaints"
|
||||
title="{{ trans('visiosoft.module.advs::field.report') }}"><i class="fa fa-exclamation-triangle"></i></a>
|
||||
{% if entries('advs').isEnabled('complaints') %}
|
||||
<a class="complaints pull-right" id="complaints"
|
||||
title="{{ trans('visiosoft.module.advs::field.report') }}"><i
|
||||
class="fa fa-exclamation-triangle"></i></a>
|
||||
{% endif %}
|
||||
|
||||
|
||||
</div><!-- slider -->
|
||||
|
||||
@ -408,40 +414,14 @@
|
||||
</div><!-- recommended-info -->
|
||||
</div><!-- container -->
|
||||
</section>
|
||||
<div id="complaints_modal" class="modal fade" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<!-- Modal content-->
|
||||
<div class="modal-content">
|
||||
<form action="{{ url_route('save_complaint') }}" method="get">
|
||||
<div class="modal-header">
|
||||
<h4 class="modal-title">{{ trans('visiosoft.module.advs::field.report') }}</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<input type="hidden" data-content="{{ adv.created_by_id }}" value="{{ adv.id }}" name="adv_id"
|
||||
id="adv_id">
|
||||
{% for complaint in complaints %}
|
||||
<li class="radio-element" style="list-style: none"><label><input type="radio"
|
||||
name="reasonList"
|
||||
value="{{ complaint.id }}"> {{ complaint.name }}
|
||||
</label></li>
|
||||
{% endfor %}
|
||||
<li class="radio-element" style="list-style: none"><label><textarea id="txtDisputeDescription1"
|
||||
name="complaint_description"
|
||||
rows="6" cols="50"
|
||||
maxlength="256"
|
||||
class="disputeDescription"
|
||||
placeholder="{{ trans('visiosoft.module.advs::field.complaint_placeholder') }}"> </textarea></label>
|
||||
</li>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="submit"
|
||||
class="btn btn-primary">{{ trans("visiosoft.module.advs::field.send_message") }}</button>
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
{% if entries('advs').isEnabled('complaints') %}
|
||||
{% include "visiosoft.module.complaints::modal" %}
|
||||
{% endif %}
|
||||
|
||||
|
||||
<div id="messages_modal" class="modal fade" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<form action="{{ url_route('visiosoft.module.messages::save_message', [adv.id]) }}" method="post">
|
||||
@ -478,7 +458,9 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% if entries('advs').isEnabled('favs') %}
|
||||
{{ asset_add("scripts.js", "visiosoft.module.advs::js/favs.js") }}
|
||||
{% endif %}
|
||||
{{ asset_add("scripts.js", "visiosoft.module.advs::js/list-item.js") }}
|
||||
{{ asset_add("scripts.js", "visiosoft.module.advs::js/quantity.js") }}
|
||||
{{ asset_add("scripts.js", "visiosoft.module.advs::js/phoneCounter.js") }}
|
||||
@ -498,5 +480,5 @@
|
||||
{% if entries('advs').isEnabled('streetview') and adv.map_Val != "" %}
|
||||
{% include "visiosoft.module.streetview::list-item" %}
|
||||
{% endif %}
|
||||
|
||||
|
||||
{% endblock %}
|
||||
|
||||
@ -161,11 +161,12 @@
|
||||
<div class="panel-body">
|
||||
<div class="price-range"><!--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">
|
||||
<select name="currency" id="currency">
|
||||
<option value="USD">USD</option>
|
||||
<option value="TRY">TRY</option>
|
||||
<option value="EUR">EUR</option>
|
||||
{% for currency in active_currencies %}
|
||||
<option value="{{ currency }}">{{ currency }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
</div><!--/price-range-->
|
||||
|
||||
@ -4500,7 +4500,7 @@ input, select, a, .transition,
|
||||
.complaints {
|
||||
font-size: 26px;
|
||||
padding-left: 5px;
|
||||
color: #f7f7f7;
|
||||
color: #bfbcbc;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
@ -5870,4 +5870,49 @@ input[name="username"] {
|
||||
|
||||
.filter-list-items {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#login-dp {
|
||||
min-width: 250px;
|
||||
padding: 14px 14px 0;
|
||||
overflow: hidden;
|
||||
background-color: rgba(255, 255, 255, .8);
|
||||
}
|
||||
|
||||
#login-dp .help-block {
|
||||
font-size: 12px
|
||||
}
|
||||
|
||||
#login-dp .bottom {
|
||||
border-top: 1px solid #ddd;
|
||||
clear: both;
|
||||
padding: 14px;
|
||||
}
|
||||
|
||||
#login-dp .social-buttons {
|
||||
margin: 12px 0
|
||||
}
|
||||
|
||||
#login-dp .social-buttons a {
|
||||
width: 49%;
|
||||
}
|
||||
|
||||
#login-dp .form-group {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.login-button-dropdown a {
|
||||
color: #fff !important;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
#login-dp {
|
||||
background-color: inherit;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
#login-dp .bottom {
|
||||
background-color: inherit;
|
||||
border-top: 0 none;
|
||||
}
|
||||
}
|
||||
@ -9,5 +9,8 @@ return [
|
||||
'search' => 'Search',
|
||||
'categories' => 'Categories',
|
||||
'city' => 'City',
|
||||
'last_search' => 'To Continue Last Search'
|
||||
'last_search' => 'To Continue Last Search',
|
||||
'join-us' => 'Join Us',
|
||||
'sign-in' => 'Sign In',
|
||||
'new-here' => 'New here ?',
|
||||
];
|
||||
@ -3,5 +3,8 @@
|
||||
return [
|
||||
'post_ad' => 'İlanınızı Gönderin',
|
||||
'featured_ads' => "Öne Çıkan İlanlar",
|
||||
'trending_ads' => 'Popüler İlanlar'
|
||||
'trending_ads' => 'Popüler İlanlar',
|
||||
'join-us' => 'Üye Ol',
|
||||
'sign-in' => 'Üye Girişi',
|
||||
'new-here' => 'Avantajlar için ',
|
||||
];
|
||||
@ -1,135 +1,188 @@
|
||||
<header id="header" class="clearfix">
|
||||
<div class="container">
|
||||
<nav class="navbar navbar-default">
|
||||
<div class="container-fluid navigation-menu">
|
||||
<!-- Brand and toggle get grouped for better mobile display -->
|
||||
<div class="navbar-header">
|
||||
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
|
||||
<i class="fa fa-bars"></i>
|
||||
</button>
|
||||
<a class="navbar-brand" href="/">
|
||||
{% if setting_value('visiosoft.module.advs::logo') == NULL %}
|
||||
<img class="img-responsive" src="{{ img('theme::images/logo-horizontal.png').url }}" alt="Logo">
|
||||
<nav class="navbar navbar-default">
|
||||
<div class="container-fluid navigation-menu">
|
||||
<!-- Brand and toggle get grouped for better mobile display -->
|
||||
<div class="navbar-header">
|
||||
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
|
||||
data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
|
||||
<i class="fa fa-bars"></i>
|
||||
</button>
|
||||
<a class="navbar-brand" href="/">
|
||||
{% if setting_value('visiosoft.module.advs::logo') == NULL %}
|
||||
<img class="img-responsive" src="{{ img('theme::images/logo-horizontal.png').url }}"
|
||||
alt="Logo">
|
||||
{% else %}
|
||||
<img class="img-responsive"
|
||||
src="{{ url('files/' ~ file(setting_value('visiosoft.module.advs::logo')).path) }}"
|
||||
alt="Logo">
|
||||
{% endif %}
|
||||
</a>
|
||||
</div>
|
||||
<!-- Collect the nav links, forms, and other content for toggling -->
|
||||
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
|
||||
<!--left-->
|
||||
{% if app.request.pathInfo == "/" %}
|
||||
<!--Sayfa Linkleri-->
|
||||
{{ structure()
|
||||
.listClass('nav navbar-nav')
|
||||
.render()|raw }}
|
||||
<!--Sayfa linkleri End-->
|
||||
{% else %}
|
||||
<img class="img-responsive" src="{{ url('files/' ~ file(setting_value('visiosoft.module.advs::logo')).path) }}" alt="Logo">
|
||||
{% endif %}
|
||||
</a>
|
||||
</div>
|
||||
<!-- Collect the nav links, forms, and other content for toggling -->
|
||||
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
|
||||
<!--left-->
|
||||
{% if app.request.pathInfo == "/" %}
|
||||
<!--Sayfa Linkleri-->
|
||||
{{ structure()
|
||||
.listClass('nav navbar-nav')
|
||||
.render()|raw }}
|
||||
<!--Sayfa linkleri End-->
|
||||
{% else %}
|
||||
<form action="{{ url('advs/list') }}" method="get">
|
||||
<ul class="nav navbar-nav center-navigation">
|
||||
<li class="dropdown navigation-select-category-field">
|
||||
{% set cats = entries('cats','category').where('parent_category_id', null).where('deleted_at', null).orderBy('order').get() %} <a href="#" class="dropdown-toggle selected-category-item-field" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
|
||||
<span class="selected-category-item" style="">{{ cats[0].name }}</span> <span class="caret"></span>
|
||||
</a>
|
||||
<ul class="dropdown-menu cat-dropdown-menu">
|
||||
{% for cat in cats %}
|
||||
<li><a href="#" data-id="{{ cat.id }}" class="navigation-category-select-item">{{ cat.name }}</a></li>
|
||||
{% endfor %}
|
||||
<form action="{{ url('advs/list') }}" method="get">
|
||||
<ul class="nav navbar-nav center-navigation">
|
||||
<li class="dropdown navigation-select-category-field">
|
||||
{% set cats = entries('cats','category').where('parent_category_id', null).where('deleted_at', null).orderBy('order').get() %}
|
||||
<a href="#" class="dropdown-toggle selected-category-item-field"
|
||||
data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
|
||||
<span class="selected-category-item" style="">{{ cats[0].name }}</span> <span
|
||||
class="caret"></span>
|
||||
</a>
|
||||
<ul class="dropdown-menu cat-dropdown-menu">
|
||||
{% for cat in cats %}
|
||||
<li><a href="#" data-id="{{ cat.id }}"
|
||||
class="navigation-category-select-item">{{ cat.name }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</li>
|
||||
<li class="navigation-input-category-field">
|
||||
{% set SearchPlaceHolder = entries('cats','placeholderforsearch').get() %}
|
||||
<input type="text" name="keyword" data-period="2000"
|
||||
data-type='[{% for placeholder in SearchPlaceHolder %}"{{ placeholder.name }}","...",{% endfor %}"..."]'
|
||||
class="form-control search-ac" placeholder=" Type your key word"
|
||||
id="search_ac_navigator">
|
||||
<input type="hidden" value="{{ cats[0].id }}" name="cat"
|
||||
id="searchable_category_input" class="select-category-navigation-id">
|
||||
</li>
|
||||
<li class="navigation-button-category-field">
|
||||
<button type="submit" class="form-control"
|
||||
value="{{ trans('visiosoft.module.advs::field.search') }}">{{ trans('visiosoft.module.advs::field.search') }}</button>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="navigation-input-category-field">
|
||||
{% set SearchPlaceHolder = entries('cats','placeholderforsearch').get() %}
|
||||
<input type="text" name="keyword" data-period="2000"
|
||||
data-type='[{% for placeholder in SearchPlaceHolder %}"{{ placeholder.name }}","...",{% endfor %}"..."]'
|
||||
class="form-control search-ac" placeholder=" Type your key word" id="search_ac_navigator">
|
||||
<input type="hidden" value="{{ cats[0].id }}" name="cat" id="searchable_category_input" class="select-category-navigation-id">
|
||||
</li>
|
||||
<li class="navigation-button-category-field">
|
||||
<button type="submit" class="form-control" value="{{ trans('visiosoft.module.advs::field.search') }}">{{ trans('visiosoft.module.advs::field.search') }}</button>
|
||||
</form>
|
||||
<!--Sayfa Linkleri-->
|
||||
{{ structure()
|
||||
.listClass('nav navbar-nav mobile-navigation-page')
|
||||
.render()|raw }}
|
||||
<!--Sayfa linkleri End-->
|
||||
{% endif %}
|
||||
<!--right-->
|
||||
</div><!-- /.navbar-collapse -->
|
||||
|
||||
<div style="position: absolute; right: 0;">
|
||||
|
||||
<ul class="nav navbar-nav controls-menu-right" style="float: right;">
|
||||
{% set current_locale = entries('advs').getCurrentLocale() %}
|
||||
{{ languageSwitcher('openclassify-lang', {'toggle_title': '<img src="'~img('theme::images/flags/'~config('app.locale')~'.png').url~'" class="lang-flag" >' ~current_locale~'','toggle_class':'navigation-lang-field-none'}) }}
|
||||
|
||||
{% if auth_check() %}
|
||||
<li class="dropdown profile-navigation-field">
|
||||
<a href="{{ url_route('anomaly.module.users::login') }}" class="login-button-field"
|
||||
data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
|
||||
<span class="login-username"><i
|
||||
class="fa fa-user"></i> {{ trans("visiosoft.theme.default::addon.login") }}</span>
|
||||
</a>
|
||||
<a href="#" class="dropdown-toggle login-username-field" data-toggle="dropdown"
|
||||
role="button" aria-haspopup="true" aria-expanded="false">
|
||||
<i class="fa fa-user"></i> <span class="login-username"></span><span
|
||||
class="caret"></span>
|
||||
</a>
|
||||
<ul class="dropdown-menu login-user-dropdown-menu">
|
||||
{% include "theme::partials/links" %}
|
||||
</ul>
|
||||
</li>
|
||||
{% else %}
|
||||
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><b><i class="fa fa-user"></i> Login</b> <span
|
||||
class="caret"></span></a>
|
||||
<ul id="login-dp" class="dropdown-menu">
|
||||
<li>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="form-group login-button-dropdown">
|
||||
<a href="{{ url_route('stream::login-route') }}"
|
||||
class="btn btn-primary btn-block">{{ trans('visiosoft.theme.default::fields.sign-in') }}</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="bottom text-center">
|
||||
{{ trans('visiosoft.theme.default::fields.new-here') }} <a
|
||||
href="{{ url_route('stream::register-route') }}"><b>{{ trans('visiosoft.theme.default::fields.join-us') }}</b></a>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
{% endif %}
|
||||
|
||||
|
||||
{% if entries('advs').isEnabled('carts') %}
|
||||
{% set cart_items = entries('carts').get()[0].getCart() %}
|
||||
<li class="dropdown profile-navigation-field">
|
||||
<a data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
|
||||
<i class="fa fa-shopping-cart"></i> {{ cart_items.quantity }}<span
|
||||
class="caret"></span>
|
||||
</a>
|
||||
<ul class="dropdown-menu dropdown-cart" role="menu">
|
||||
<!--items cart-->
|
||||
{% for item_cart in cart_items.items(1) %}
|
||||
<li>
|
||||
<span class="cart-item">
|
||||
<span class="cart-item-left">
|
||||
<img src="{{ item_cart.cover_photo }}" alt="" height="50" width="70"
|
||||
class="item-cart-img">
|
||||
<span class="item-name">{{ item_cart.name }}</span>
|
||||
<span class="item-price">{{ item_cart.priceFormat(item_cart) }}</span>
|
||||
<span class="item-quantity">{{ trans('visiosoft.module.advs::field.quantity') }}: {{ item_cart.quantity }}</span>
|
||||
</span>
|
||||
</span>
|
||||
</li>
|
||||
{% endfor %}
|
||||
<li class="cart-footer">
|
||||
<span class="lighter-text">{{ trans('visiosoft.module.advs::field.total') }}:</span>
|
||||
<span class="total-color-text">{{ cart_items.subtotal }}</span>
|
||||
</li>
|
||||
<!--items cart-->
|
||||
<li><span><a class="text-center cart-view-button"
|
||||
href="/cart">{{ trans('visiosoft.module.advs::field.view_cart') }}</a></span>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
{% endif %}
|
||||
|
||||
<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>
|
||||
</li>
|
||||
</ul>
|
||||
</form>
|
||||
<!--Sayfa Linkleri-->
|
||||
{{ structure()
|
||||
.listClass('nav navbar-nav mobile-navigation-page')
|
||||
.render()|raw }}
|
||||
<!--Sayfa linkleri End-->
|
||||
{% endif %}
|
||||
<!--right-->
|
||||
</div><!-- /.navbar-collapse -->
|
||||
</div>
|
||||
|
||||
<div style="position: absolute; right: 0;">
|
||||
|
||||
<ul class="nav navbar-nav controls-menu-right" style="float: right;">
|
||||
</div><!-- /.container-fluid -->
|
||||
<ul class="nav mobile-navbar-bottom-navigation" style="float: left;">
|
||||
{% set current_locale = entries('advs').getCurrentLocale() %}
|
||||
{{ languageSwitcher('openclassify-lang', {'toggle_title': '<img src="'~img('theme::images/flags/'~config('app.locale')~'.png').url~'" class="lang-flag" >' ~current_locale~'','toggle_class':'navigation-lang-field-none'}) }}
|
||||
<li class="dropdown profile-navigation-field">
|
||||
{{ languageSwitcher('openclassify-lang', {'toggle_title':'<i class="fa fa-globe"></i> '~current_locale~' ','toggle_class':''}) }}
|
||||
|
||||
<li class="dropdown profile-navigation-mobile-field">
|
||||
<a href="{{ url_route('anomaly.module.users::login') }}" class="login-button-field"
|
||||
data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
|
||||
<span class="login-username"><i class="fa fa-user"></i> {{ trans("visiosoft.theme.default::addon.login") }}</span>
|
||||
<span class="login-username"><i
|
||||
class="fa fa-user"></i> {{ trans("visiosoft.theme.default::addon.login") }}</span>
|
||||
</a>
|
||||
<a href="#" class="dropdown-toggle login-username-field" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
|
||||
<a href="#" class="dropdown-toggle login-username-field" data-toggle="dropdown" role="button"
|
||||
aria-haspopup="true" aria-expanded="false">
|
||||
<i class="fa fa-user"></i> <span class="login-username"></span><span class="caret"></span>
|
||||
</a>
|
||||
<ul class="dropdown-menu login-user-dropdown-menu">
|
||||
{% include "theme::partials/links" %}
|
||||
</ul>
|
||||
</li>
|
||||
{% if entries('advs').isEnabled('carts') %}
|
||||
{% set cart_items = entries('carts').get()[0].getCart() %}
|
||||
<li class="dropdown profile-navigation-field">
|
||||
<a data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
|
||||
<i class="fa fa-shopping-cart"></i> {{ cart_items.quantity }}<span class="caret"></span>
|
||||
</a>
|
||||
<ul class="dropdown-menu dropdown-cart" role="menu">
|
||||
<!--items cart-->
|
||||
{% for item_cart in cart_items.items(1) %}
|
||||
<li>
|
||||
<span class="cart-item">
|
||||
<span class="cart-item-left">
|
||||
<img src="{{ item_cart.cover_photo }}" alt="" height="50" width="70" class="item-cart-img">
|
||||
<span class="item-name">{{ item_cart.name }}</span>
|
||||
<span class="item-price">{{ item_cart.priceFormat(item_cart) }}</span>
|
||||
<span class="item-quantity">{{ trans('visiosoft.module.advs::field.quantity') }}: {{ item_cart.quantity }}</span>
|
||||
</span>
|
||||
</span>
|
||||
</li>
|
||||
{% endfor %}
|
||||
<li class="cart-footer">
|
||||
<span class="lighter-text">{{ trans('visiosoft.module.advs::field.total') }}:</span>
|
||||
<span class="total-color-text">{{ cart_items.subtotal }}</span>
|
||||
</li>
|
||||
<!--items cart-->
|
||||
<li><span><a class="text-center cart-view-button" href="/cart">{{ trans('visiosoft.module.advs::field.view_cart') }}</a></span></li>
|
||||
</ul>
|
||||
</li>
|
||||
{% endif %}
|
||||
|
||||
<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></li>
|
||||
|
||||
<li class="new-ads-navigation-mobile-field pull-right"><a href="/advs/create_adv"
|
||||
class="btn btn-success navigation-new-ad-btn">{{ trans("visiosoft.theme.default::addon.post_ad") }}</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- /.container-fluid -->
|
||||
<ul class="nav mobile-navbar-bottom-navigation" style="float: left;">
|
||||
{% set current_locale = entries('advs').getCurrentLocale() %}
|
||||
{{ languageSwitcher('openclassify-lang', {'toggle_title':'<i class="fa fa-globe"></i> '~current_locale~' ','toggle_class':''}) }}
|
||||
<li class="dropdown profile-navigation-mobile-field">
|
||||
<a href="{{ url_route('anomaly.module.users::login') }}" class="login-button-field"
|
||||
data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
|
||||
<span class="login-username"><i class="fa fa-user"></i> {{ trans("visiosoft.theme.default::addon.login") }}</span>
|
||||
</a>
|
||||
<a href="#" class="dropdown-toggle login-username-field" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
|
||||
<i class="fa fa-user"></i> <span class="login-username"></span><span class="caret"></span>
|
||||
</a>
|
||||
<ul class="dropdown-menu login-user-dropdown-menu">
|
||||
{% include "theme::partials/links" %}
|
||||
</ul>
|
||||
</li>
|
||||
<li class="new-ads-navigation-mobile-field pull-right"><a href="/advs/create_adv" class="btn btn-success navigation-new-ad-btn">{{ trans("visiosoft.theme.default::addon.post_ad") }}</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</nav>
|
||||
</div>
|
||||
</header>
|
||||
@ -40,8 +40,14 @@ class DefaultThemeServiceProvider extends AddonServiceProvider
|
||||
* @type array|null
|
||||
*/
|
||||
protected $routes = [
|
||||
'login' => 'Visiosoft\AdvsModule\Http\Controller\advsController@login',
|
||||
'register' => 'Visiosoft\AdvsModule\Http\Controller\advsController@register',
|
||||
'login' => [
|
||||
'as' => 'stream::login-route',
|
||||
'uses' => 'Visiosoft\AdvsModule\Http\Controller\advsController@login',
|
||||
],
|
||||
'register' => [
|
||||
'as' => 'stream::register-route',
|
||||
'uses' => 'Visiosoft\AdvsModule\Http\Controller\advsController@register',
|
||||
],
|
||||
'users/password/forgot' => 'Visiosoft\AdvsModule\Http\Controller\advsController@passwordForgot',
|
||||
'users/password/reset' => 'Visiosoft\AdvsModule\Http\Controller\advsController@passwordReset',
|
||||
'authcheck' => 'Visiosoft\AdvsModule\Http\Controller\advsController@authCheck',
|
||||
|
||||
@ -27,27 +27,20 @@
|
||||
"anomaly/page_link_type-extension": "~2.1.0",
|
||||
"anomaly/url_link_type-extension": "~2.1.0",
|
||||
"anomaly/relationship-field_type": "~2.2.0",
|
||||
"anomaly/colorpicker-field_type": "~2.3.0",
|
||||
"anomaly/polymorphic-field_type": "~2.1.0",
|
||||
"anomaly/checkboxes-field_type": "~2.4.0",
|
||||
"anomaly/encrypted-field_type": "~2.1.0",
|
||||
"anomaly/datetime-field_type": "~3.0.0",
|
||||
"anomaly/repeater-field_type": "~1.3.0",
|
||||
"anomaly/language-field_type": "~2.2.0",
|
||||
"anomaly/multiple-field_type": "~2.2.0",
|
||||
"anomaly/textarea-field_type": "~2.1.0",
|
||||
"anomaly/markdown-field_type": "~3.1.0",
|
||||
"anomaly/wysiwyg-field_type": "~3.1.0",
|
||||
"anomaly/boolean-field_type": "~2.3.0",
|
||||
"anomaly/country-field_type": "~2.3.0",
|
||||
"anomaly/decimal-field_type": "~2.1.0",
|
||||
"anomaly/integer-field_type": "~2.1.0",
|
||||
"anomaly/editor-field_type": "~3.1.0",
|
||||
"anomaly/select-field_type": "~2.3.0",
|
||||
"anomaly/slider-field_type": "~3.0.0",
|
||||
"anomaly/addon-field_type": "~2.2.0",
|
||||
"anomaly/email-field_type": "~2.1.0",
|
||||
"anomaly/state-field_type": "~2.3.0",
|
||||
"anomaly/files-field_type": "~2.2.0",
|
||||
"anomaly/tags-field_type": "~2.3.0",
|
||||
"anomaly/slug-field_type": "~2.1.0",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user