dbxapp 4.1.3
CMS, Shop, Workflows und modulare Geschäftsanwendungen
Loading...
Searching...
No Matches
dbxHome.class.php
Go to the documentation of this file.
1<?php
2namespace dbx\dbxHome;
3
4Class dbxHome {
5
6
7
8 public function run() {
9 $content='';
10 $page = (string) dbx()->get_system_var('dbx_page', 'home');
11
12 if ($page === 'intro') {
13 dbx()->load_content_cache_classes();
15 dbx()->set_system_var('dbx_title', 'Willkommen');
16 $oTPL = dbx()->get_system_obj('dbxTPL');
17 return $oTPL->get_tpl('dbxHome', 'intro', array(
18 'continue_url' => dbx()->get_base_url() . '?dbx_modul=dbxHome&dbx_page=home',
19 ));
20 }
21
22 dbx()->load_content_cache_classes();
24
25 if ($cid <= 0) {
27 }
28
29 dbx()->set_system_var('dbx_title','dbxApp Home');
30
31 if ($cid > 0) {
32 if (\dbx\dbxContent\dbxContentLng::isCmsPermalinkMode()) {
33 $root = dbx()->get_config('dbxContent', 'root');
34 if ($root === 'undef' || $root === '') {
35 $root = 0;
36 }
37
38 $content='[modul=dbxContent]dbx_run1=cms&dbx_run2=show&root=' . (int)$root . '&cid=' . $cid . '[/modul]';
39 } else {
40 $content='[modul=dbxContent]dbx_run1=show&cid=' . $cid . '[/modul]';
41 }
42 }
43
44 //dbx()->debug("dbxHome #SESSION#",$_SESSION);
45
46 return $content;
47 }
48}
49
50?>
static resolveCid(string $lng='')
Startseiten-CID fuer die aktive (oder uebergebene) Sprache.
get_base_url()
Liefert die Basis-URL des aktuellen Requests.
Definition dbxApi.php:1488
DBX schema administration.
if($cinematic===''||!str_contains($cinematic, 'data-dbx-cinema')) $page