Merge branch 'master' of github.com:jeena/seinheit.ch

This commit is contained in:
jeena 2013-07-19 12:23:56 +02:00
commit e075de1fd0
4 changed files with 15 additions and 2 deletions

View file

@ -202,10 +202,15 @@ class Navigation extends Katharsis_Model_Abstract
$site = 'page/' . $site['url'];
}
$sites = array(
'defaults' => explode(", ", Katharsis_Registry::getInstance()->defaults['sites']),
'defaults' => array(),
'pages' => $sites
);
if(isset(Katharsis_Registry::getInstance()->defaults['sites'])){
$sites['defaults'] = explode(", ", Katharsis_Registry::getInstance()->defaults['sites']);
}
return $sites;
}

View file

@ -30,13 +30,16 @@
<dt>Url</dt>
<dd>
<table>
<?php
// Wenn hier echte Controller hinzukommen sollen, einfach in der defaults.config.ini unter sites eintragen
if(!empty($this->sites['defaults'])): ?>
<tr>
<td>
<?php foreach($this->sites['defaults'] as $key => $site): ?>
<input type="radio" checked="checked" name="url" id="sitedefault_<?php echo $key ?>" value="<?php echo $site ?>"/><label for="sitedefault_<?php echo $key ?>"><?php echo $site ?></label><br/>
<?php endforeach ?>
</td>
<?php endif; ?>
<td>
<?php foreach($this->sites['pages'] as $key => $site): ?>
<input type="radio" name="url" id="sitepage_<?php echo $key ?>" value="<?php echo $site ?>"/><label for="sitepage_<?php echo $key ?>"><?php echo $site ?></label><br/>

View file

@ -0,0 +1,4 @@
title = Seinheit.
subtitle = Praxis für Traditionelle Europäische Medizin
email = info@seinheit.ch
#sites = index, event, news

View file

@ -12,6 +12,7 @@ chdir('..');
require_once('library/Katharsis/Bootstrap.php');
Katharsis_Autoload::init();
Katharsis_Controller_Plugin::registerPlugin(new DidgeridooArtwork_Controller_Plugin_Defaults());
Katharsis_Controller_Plugin::registerPlugin(new DidgeridooArtwork_Controller_Plugin_SetNames());
Katharsis_Controller_Plugin::registerPlugin(new Katharsis_Controller_Plugin_StartSession());
Katharsis_Controller_Plugin::registerPlugin(new DidgeridooArtwork_Controller_Plugin_Notice());