![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/job-board.corals.io/Corals/modules/Classified/Hooks/ |
<?php namespace Corals\Modules\Classified\Hooks; use \Corals\Modules\Classified\Facades\Classified as ClassifiedFacade; class Classified { public function auth_theme($theme) { return rescue(function () use ($theme) { $active_frontend_theme = \Settings::get('active_frontend_theme'); $classified_auth_theme = \Settings::get('classified_auth_theme'); if ($classified_auth_theme == $active_frontend_theme) { return $classified_auth_theme; } return $theme; }, function () use ($theme) { return $theme; }); } public function auth_redirect_to($redirectTo) { if (user()->hasPermissionTo('Administrations::admin.classified')) { return 'dashboard'; } else { return 'classified/user/dashboard'; } } public function before_page_content() { if ($status = ClassifiedFacade::getUserSubscriptionStatus()) { $html = view('Classified::subscription_status')->with(compact('status'))->render(); echo $html; } } }