mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-28 08:34:40 -06:00
Merge pull request #1172 from openclassify/muammertop
#4527 SEO optimise for openclassify.com (ahrefs.com)
This commit is contained in:
commit
4cb72bf693
@ -436,13 +436,6 @@ class AdvModel extends AdvsAdvsEntryModel implements AdvInterface
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function authControl()
|
|
||||||
{
|
|
||||||
if (!Auth::user()) {
|
|
||||||
redirect('/login?redirect=' . url()->current())->send();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public function currentAds() {
|
public function currentAds() {
|
||||||
return $this->whereDate('finish_at', '>=', date("Y-m-d H:i:s"))
|
return $this->whereDate('finish_at', '>=', date("Y-m-d H:i:s"))
|
||||||
->where('status', '=', 'approved')
|
->where('status', '=', 'approved')
|
||||||
|
|||||||
@ -70,8 +70,6 @@ interface AdvInterface extends EntryInterface
|
|||||||
|
|
||||||
public function getRecommended($id);
|
public function getRecommended($id);
|
||||||
|
|
||||||
public function authControl();
|
|
||||||
|
|
||||||
public function inStock();
|
public function inStock();
|
||||||
|
|
||||||
public function getCity();
|
public function getCity();
|
||||||
|
|||||||
@ -711,9 +711,7 @@ class AdvsController extends PublicController
|
|||||||
public function deleteAd(AdvRepositoryInterface $advs, $id)
|
public function deleteAd(AdvRepositoryInterface $advs, $id)
|
||||||
{
|
{
|
||||||
$ad = $this->adv_model->find($id);
|
$ad = $this->adv_model->find($id);
|
||||||
if (!Auth::user()) {
|
$this->middleware('auth');
|
||||||
redirect('/login?redirect=' . url()->current())->send();
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($ad->created_by_id != Auth::id()) {
|
if ($ad->created_by_id != Auth::id()) {
|
||||||
$this->messages->error(trans('visiosoft.module.advs::message.delete_author_error'));
|
$this->messages->error(trans('visiosoft.module.advs::message.delete_author_error'));
|
||||||
@ -745,9 +743,7 @@ class AdvsController extends PublicController
|
|||||||
|
|
||||||
public function create(AdvFormBuilder $formBuilder, CategoryRepositoryInterface $repository)
|
public function create(AdvFormBuilder $formBuilder, CategoryRepositoryInterface $repository)
|
||||||
{
|
{
|
||||||
if (!Auth::user()) {
|
$this->middleware('auth');
|
||||||
redirect('/login?redirect=' . url()->current())->send();
|
|
||||||
}
|
|
||||||
|
|
||||||
$isActive = new AdvModel();
|
$isActive = new AdvModel();
|
||||||
$cats = $this->request->toArray();
|
$cats = $this->request->toArray();
|
||||||
@ -1059,9 +1055,7 @@ class AdvsController extends PublicController
|
|||||||
|
|
||||||
public function cats()
|
public function cats()
|
||||||
{
|
{
|
||||||
if (!Auth::user()) {
|
$this->middleware('auth');
|
||||||
redirect('/login?redirect=' . url()->current())->send();
|
|
||||||
}
|
|
||||||
$main_cats = $this->category_repository->getMainCategories();
|
$main_cats = $this->category_repository->getMainCategories();
|
||||||
|
|
||||||
return $this->view->make('visiosoft.module.advs::new-ad/post-cat', compact('main_cats'));
|
return $this->view->make('visiosoft.module.advs::new-ad/post-cat', compact('main_cats'));
|
||||||
|
|||||||
@ -19,7 +19,7 @@
|
|||||||
{{ asset_add("theme.css", "visiosoft.theme.base::css/select2.css") }}
|
{{ asset_add("theme.css", "visiosoft.theme.base::css/select2.css") }}
|
||||||
{{ asset_add("theme.css", "visiosoft.theme.base::css/font-awesome.min.css") }}
|
{{ asset_add("theme.css", "visiosoft.theme.base::css/font-awesome.min.css") }}
|
||||||
{{ asset_add("theme.css", "visiosoft.theme.base::css/intlTelInput.css") }}
|
{{ asset_add("theme.css", "visiosoft.theme.base::css/intlTelInput.css") }}
|
||||||
{{ asset_style("visiosoft.theme.base::css/offline.scss") }}
|
{{ asset_add("theme.css", "visiosoft.theme.base::css/offline.scss") }}
|
||||||
|
|
||||||
<script src="{{ asset_path('visiosoft.theme.base::js/vendor/jquery.min.js') }}"></script>
|
<script src="{{ asset_path('visiosoft.theme.base::js/vendor/jquery.min.js') }}"></script>
|
||||||
{{ asset_script('visiosoft.theme.base::js/visiosoft.js') }}
|
{{ asset_script('visiosoft.theme.base::js/visiosoft.js') }}
|
||||||
|
|||||||
@ -1,6 +1,5 @@
|
|||||||
<!-- Meta Tags -->
|
<!-- Meta Tags -->
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="viewport" content="width=device-width"/>
|
|
||||||
<meta name="generator" content="{{ config_get('streams::distribution.name') }}"/>
|
<meta name="generator" content="{{ config_get('streams::distribution.name') }}"/>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, viewport-fit=cover">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, viewport-fit=cover">
|
||||||
<meta name="description"
|
<meta name="description"
|
||||||
|
|||||||
@ -90,6 +90,11 @@
|
|||||||
var selectedAddressText = "{{ trans('visiosoft.module.location::field.selected') }}";
|
var selectedAddressText = "{{ trans('visiosoft.module.location::field.selected') }}";
|
||||||
var chooseAddressText = '{{ trans("visiosoft.module.profile::field.choose.name") }}';
|
var chooseAddressText = '{{ trans("visiosoft.module.profile::field.choose.name") }}';
|
||||||
var chooseOptionTrans = '{{ trans("visiosoft.module.location::field.choose_an_option") }}';
|
var chooseOptionTrans = '{{ trans("visiosoft.module.location::field.choose_an_option") }}';
|
||||||
|
var default_country = "{{ setting_value('visiosoft.module.location::default_country') }}";
|
||||||
|
var default_city = "{{ setting_value('visiosoft.module.location::default_city') }}";
|
||||||
|
var default_district = "{{ setting_value('visiosoft.module.location::default_district') }}";
|
||||||
|
var default_neighborhood = "{{ setting_value('visiosoft.module.location::default_neighborhood') }}";
|
||||||
|
var default_village = "{{ setting_value('visiosoft.module.location::default_village') }}";
|
||||||
</script>
|
</script>
|
||||||
<script src="https://maps.googleapis.com/maps/api/js?key={{ setting_value('visiosoft.module.location::google_map_key') }}&callback="
|
<script src="https://maps.googleapis.com/maps/api/js?key={{ setting_value('visiosoft.module.location::google_map_key') }}&callback="
|
||||||
type="text/javascript"></script>
|
type="text/javascript"></script>
|
||||||
|
|||||||
@ -34,10 +34,7 @@ class MyProfileController extends PublicController
|
|||||||
)
|
)
|
||||||
{
|
{
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
if (!Auth::user()) {
|
$this->middleware('auth');
|
||||||
redirect('/login?redirect=' . url()->current())->send();
|
|
||||||
}
|
|
||||||
|
|
||||||
$this->adressRepository = $adressRepository;
|
$this->adressRepository = $adressRepository;
|
||||||
$this->userRepository = $userRepository;
|
$this->userRepository = $userRepository;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user