worked a bit on diplomarbeit

This commit is contained in:
Logsol 2013-07-19 17:31:11 +02:00
parent d02ad40d6a
commit 241c4863ec
6 changed files with 17 additions and 7 deletions

View file

@ -1,8 +1,8 @@
<?php <?php
class DidgeridooArtwork_Page_Plugin_Base extends DidgeridooArtwork_Page_Plugin_Abstract class DidgeridooArtwork_Page_Plugin_Base extends DidgeridooArtwork_Page_Plugin_Abstract
{ {
public function render($pageName) public function render($after)
{ {
return $this->_view->base; return $this->_view->base . '/' . $after;
} }
} }

View file

@ -3,9 +3,13 @@ class Local_Controller_Plugin_PageRewrite extends Katharsis_Controller_Plugin_Ab
{ {
public function preController() public function preController()
{ {
$page = Katharsis_Request::getControllerName(); $controller = Katharsis_Request::getControllerName();
if(substr($page, 0, 5) === 'admin') { if($controller === 'page') {
return;
}
if(substr($controller, 0, 5) === 'admin') {
return; return;
} }
@ -14,11 +18,11 @@ class Local_Controller_Plugin_PageRewrite extends Katharsis_Controller_Plugin_Ab
$defaultSites = explode(", ", Katharsis_Registry::getInstance()->defaults['sites']); $defaultSites = explode(", ", Katharsis_Registry::getInstance()->defaults['sites']);
} }
if(in_array($page, $defaultSites)) { if(in_array($controller, $defaultSites)) {
return; return;
} }
Katharsis_Request::setControllerName('page'); Katharsis_Request::setControllerName('page');
Katharsis_Request::setActionName($page); Katharsis_Request::setActionName($controller);
} }
} }

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

View file

@ -266,3 +266,9 @@ div .col:last-child { margin-right: 0; }
.box.cite h2 { .box.cite h2 {
background: #216f85; background: #216f85;
} }
.border {
border: 1px solid #ccc;
padding: 10px;
background: white;
}