public function map(Request $request) { $uri = $request->getRequestUri(); $uri = trim($uri, '/'); $page = $this->r_page->findWhere(['uri' => $uri])->first(); if (is_null($page)) { abort(404); } return cmsview('pages::pages.pages.page', ['header' => ['title' => '', 'description' => ''], 'page' => ['title' => $page->title, 'content' => $page->content]]); }
/** * @param $token * * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View */ public function emailToResetPassword($token) { if (is_null($token)) { throw new NotFoundHttpException(); } return cmsview('users.frontend.passwords.reset', ['token' => $token, 'is_registration_allowed' => \Settings::get('users.is_registration_allowed')], 'users::'); }
/** * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View */ public function indexSettingsBackEnd() { return cmsview('themes.backend.index', ['themes' => $this->all()], 'themes::'); }
/** * @param $input_id * * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View */ public function showPopup($input_id) { return cmsview('files.ajax.elfinder.standalonepopup', ['input_id' => $input_id, 'locale' => Session::get('lang')], 'files::'); }
public function index() { return cmsview('posts::index', ['header' => ['title' => '', 'description' => '']]); }
/** * Installer form * * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View */ public function index() { $core_url = (isset($_SERVER['HTTPS']) && !empty($_SERVER['HTTPS']) ? 'https://' : 'http://') . $_SERVER['SERVER_NAME']; return cmsview('index', ['header' => ['title' => 'installer::installer.meta_title', 'description' => 'installer::installer.meta_description'], 'breadcrumbs' => null, 'footer' => ['version' => config('cms.version'), 'title' => config('cms.site.name'), 'url' => config('app.url')], 'core_url' => $core_url, 'civilities' => $this->r_installer->getCivilitiesList()], 'installer::', 'installer::'); }