typo
This commit is contained in:
parent
85598a0d85
commit
e43fde0d7d
7 changed files with 44 additions and 29 deletions
|
@ -3,7 +3,7 @@ class AdminController extends Katharsis_Controller_Abstract
|
||||||
{
|
{
|
||||||
public function indexAction()
|
public function indexAction()
|
||||||
{
|
{
|
||||||
if(!Access::isLogged()) $this->_location('gate');
|
if(!Access::isLoggedIn()) $this->_location('gate');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function gateAction()
|
public function gateAction()
|
||||||
|
|
|
@ -11,7 +11,7 @@ class PageController extends Katharsis_Controller_Abstract
|
||||||
public function __call($method, $args)
|
public function __call($method, $args)
|
||||||
{
|
{
|
||||||
$preview = false;
|
$preview = false;
|
||||||
if(array_key_exists('preview', $this->_getAllParams()) && Access::isLogged())
|
if(array_key_exists('preview', $this->_getAllParams()) && Access::isLoggedIn())
|
||||||
{
|
{
|
||||||
$preview = true;
|
$preview = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,7 +5,7 @@ class Access extends Katharsis_Model_Abstract
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function isLogged()
|
public static function isLoggedIn()
|
||||||
{
|
{
|
||||||
if(isset($_SESSION['logged']) && $_SESSION['logged'] == 1)
|
if(isset($_SESSION['logged']) && $_SESSION['logged'] == 1)
|
||||||
{
|
{
|
||||||
|
@ -14,4 +14,3 @@ class Access extends Katharsis_Model_Abstract
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
|
|
@ -10,7 +10,7 @@
|
||||||
</title>
|
</title>
|
||||||
<link href='http://fonts.googleapis.com/css?family=Amaranth' rel='stylesheet' type='text/css'>
|
<link href='http://fonts.googleapis.com/css?family=Amaranth' rel='stylesheet' type='text/css'>
|
||||||
<link rel="stylesheet" type="text/css" href="<?php echo $this->base ?>/style/main.css" />
|
<link rel="stylesheet" type="text/css" href="<?php echo $this->base ?>/style/main.css" />
|
||||||
<?php if(Access::isLogged()) { ?>
|
<?php if(Access::isLoggedIn()) { ?>
|
||||||
<link rel="stylesheet" type="text/css" href="<?php echo $this->base ?>/style/admin.css" />
|
<link rel="stylesheet" type="text/css" href="<?php echo $this->base ?>/style/admin.css" />
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<link rel="shortcut icon" href="<?php echo $this->base ?>/img/favicon.ico" type="image/x-icon" />
|
<link rel="shortcut icon" href="<?php echo $this->base ?>/img/favicon.ico" type="image/x-icon" />
|
||||||
|
@ -18,12 +18,12 @@
|
||||||
<meta name="Description" content="" />
|
<meta name="Description" content="" />
|
||||||
<meta name="keywords" content="" />
|
<meta name="keywords" content="" />
|
||||||
</head>
|
</head>
|
||||||
<body<?php if(Access::isLogged()): ?> class="admin"<?php endif ?>>
|
<body<?php if(Access::isLoggedIn()): ?> class="admin"<?php endif ?>>
|
||||||
|
|
||||||
<div id="container">
|
<div id="container">
|
||||||
<header>
|
<header>
|
||||||
|
|
||||||
<?php if(Access::isLogged()): ?>
|
<?php if(Access::isLoggedIn()): ?>
|
||||||
<ul id="adminNavigation">
|
<ul id="adminNavigation">
|
||||||
<li>Admin Bereich</li>
|
<li>Admin Bereich</li>
|
||||||
<li><a href="<?php echo $this->base ?>/adminNavigation">Navigationen</a></li>
|
<li><a href="<?php echo $this->base ?>/adminNavigation">Navigationen</a></li>
|
||||||
|
@ -34,9 +34,9 @@
|
||||||
|
|
||||||
<?php if($this->notices): ?>
|
<?php if($this->notices): ?>
|
||||||
<ul class="notices">
|
<ul class="notices">
|
||||||
<?php foreach($this->notices as $notice): ?>
|
<?php foreach($this->notices as $notice): ?>
|
||||||
<li><?php echo $notice ?></li>
|
<li><?php echo $notice ?></li>
|
||||||
<?php endforeach ?>
|
<?php endforeach ?>
|
||||||
</ul>
|
</ul>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
|
||||||
|
@ -45,22 +45,26 @@
|
||||||
|
|
||||||
<ul id="navi">
|
<ul id="navi">
|
||||||
<?php foreach($this->mainNavigationItems as $item): ?>
|
<?php foreach($this->mainNavigationItems as $item): ?>
|
||||||
<li <?php if($item['id'] == $this->activeMenuItem) echo 'class="active"'?>>
|
<li<?php if($item['id'] == $this->activeMenuItem) echo ' class="active"'?>>
|
||||||
<?php if($item['link']): ?>
|
<?php if($item['link']): ?>
|
||||||
<a href="<?php echo $item['link'] ?>"><?php echo $item['name'] ?></a>
|
<a href="<?php echo $item['link'] ?>"><?php echo $item['name'] ?></a>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<a href="<?php echo $this->base ?>/<?php echo $item['controller'] ?>/<?php echo $item['action'] ?>"><?php echo $item['name'] ?></a>
|
<a href="<?php echo $this->base ?>/<?php echo $item['controller'] ?>/<?php echo $item['action'] ?>"><?php echo $item['name'] ?></a>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
|
||||||
<?php foreach($item['children'] as $child): ?>
|
<?php if(count($item['children']) > 0): ?>
|
||||||
<li <?php if($child['id'] == $this->activeMenuItem) echo 'class="active"'?>>
|
<ul>
|
||||||
<?php if($child['link']): ?>
|
<?php foreach($item['children'] as $child): ?>
|
||||||
<a href="<?php echo $child['link'] ?>"><?php echo $child['name'] ?></a>
|
<li<?php if($child['id'] == $this->activeSubMenuItem) echo ' class="active"'?>>
|
||||||
<?php else: ?>
|
<?php if($child['link']): ?>
|
||||||
<a href="<?php echo $this->base ?>/<?php echo $child['controller'] ?>/<?php echo $child['action'] ?>"><?php echo $child['name'] ?></a>
|
<a href="<?php echo $child['link'] ?>"><?php echo $child['name'] ?></a>
|
||||||
<?php endif ?>
|
<?php else: ?>
|
||||||
</li>
|
<a href="<?php echo $this->base ?>/<?php echo $child['controller'] ?>/<?php echo $child['action'] ?>"><?php echo $child['name'] ?></a>
|
||||||
<?php endforeach ?>
|
<?php endif ?>
|
||||||
|
</li>
|
||||||
|
<?php endforeach ?>
|
||||||
|
</ul>
|
||||||
|
<?php endif ?>
|
||||||
</li>
|
</li>
|
||||||
<?php endforeach ?>
|
<?php endforeach ?>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
@ -7,7 +7,7 @@ class DidgeridooArtwork_Controller_Plugin_Access extends Katharsis_Controller_Pl
|
||||||
{
|
{
|
||||||
$firstFive = substr(Katharsis_Request::getControllerName(), 0, 5);
|
$firstFive = substr(Katharsis_Request::getControllerName(), 0, 5);
|
||||||
|
|
||||||
if($firstFive == 'admin' && !Access::isLogged())
|
if($firstFive == 'admin' && !Access::isLoggedIn())
|
||||||
{
|
{
|
||||||
Katharsis_Request::setControllerName('admin');
|
Katharsis_Request::setControllerName('admin');
|
||||||
Katharsis_Request::setActionName('index');
|
Katharsis_Request::setActionName('index');
|
||||||
|
|
|
@ -3,7 +3,6 @@ body.admin footer {
|
||||||
}
|
}
|
||||||
|
|
||||||
#adminNavigation {
|
#adminNavigation {
|
||||||
font-family: verdana;
|
|
||||||
background: #90CB93;
|
background: #90CB93;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
|
|
|
@ -51,8 +51,7 @@ img { max-width: 100%; }
|
||||||
}
|
}
|
||||||
|
|
||||||
#logo {
|
#logo {
|
||||||
padding-top: 70px;
|
float: left;
|
||||||
display: block;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#logo img {
|
#logo img {
|
||||||
|
@ -60,27 +59,41 @@ img { max-width: 100%; }
|
||||||
}
|
}
|
||||||
|
|
||||||
#navi {
|
#navi {
|
||||||
|
margin-top: 70px;
|
||||||
float: right;
|
float: right;
|
||||||
right: 0px ;
|
|
||||||
list-style-type: none;
|
list-style-type: none;
|
||||||
margin: -47px 0;
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding: 12px 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#navi li {
|
#navi > li {
|
||||||
display: inline;
|
display: inline-block;
|
||||||
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
#navi li a {
|
#navi li a {
|
||||||
color: black;
|
color: black;
|
||||||
padding: 10px 12px;
|
padding: 10px 12px;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
background-color: #90cb93;
|
background: #90cb93;
|
||||||
color: white;
|
color: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#navi a:hover {
|
||||||
|
background: #84c684;
|
||||||
|
}
|
||||||
|
|
||||||
|
#navi ul {
|
||||||
|
display: none;
|
||||||
|
position: absolute;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
#navi > li:hover ul {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
#stage {
|
#stage {
|
||||||
|
clear: both;
|
||||||
border-top: 5px solid #90cb93;
|
border-top: 5px solid #90cb93;
|
||||||
padding: 50px 0px;
|
padding: 50px 0px;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue