get('/'); // Set settings to use in Theme $settings = $page->get('template=site-setting'); // determine what the ever important browser tag should be if($page->brower_title) $browserTitle = $page->browser_title; else if($page === $homepage) $browserTitle = $page->headline; else $browserTitle = $page->title . '•' . $homepage->headline; // add our stylesheet #$config->styles->add($config->urls->templates . 'stylesheets/app.css'); $config->styles->add($config->urls->templates.'css/app.css'); #$config->styles->add('https://cdnjs.cloudflare.com/ajax/libs/foundicons/3.0.0/foundation-icons.css'); #$config->styles->add('https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css'); // add our javascripts $config->scripts->add($config->urls->templates.'js/app-dist.js'); /******************************** * Hendle Login *******************************/ if(!wire('user')->isLoggedin()){ if($input->post->user && $input->post->pass) { $u = $sanitizer->username($input->post->user); $pass = $input->post->pass; if($session->login($u, $pass)) { // login successful if($session->redirectUrl){ $session->redirect($session->redirectUrl, false); $session->remove('redirectUrl'); } else { $session->redirect($page->path, false); } } else { $session->login_error = '<strong>Login fehlgeschlagen!</strong> Bitte versuche es noch einmal oder benutze die \'Passwort vergessen\' Funktion.'; } } } ?> <!doctype html> <html class="no-js" lang="de"> <head> <?php if($modules->isInstalled("AllInOneMinify")){ foreach($config->styles as $key => $file) $stylesheets[] = $file; ?> <link rel="stylesheet" href="<?php echo AllInOneMinify::CSS($stylesheets); ?>"> <?php } else { // Include the style Files foreach($config->styles as $key => $file) echo "\n\t<link rel='stylesheet' type='text/css' href='$file'>"; } ?> <title><?php echo $page->get('headline|title') . " · " . $homepage->headline; ?> '> id != 1){ ?>
post->user && $input->post->pass) { echo "
" . $session->login_error . "×
"; } ?> id === 1 || $fullwidth == true ? $content : '
'.$content.'
'); ?>
isInstalled("AllInOneMinify")){ if(false){ foreach($config->scripts as $key => $file) $scriptfiles[] = str_replace($config->urls->templates, "", $file); print_r($scriptfiles);?> scripts as $file) echo "\n\t"; } ?>