Merge branch 'master' of github.com:jeena/seinheit.ch
This commit is contained in:
commit
e075de1fd0
4 changed files with 15 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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/>
|
||||
|
|
4
config/defaults.config.ini
Normal file
4
config/defaults.config.ini
Normal file
|
@ -0,0 +1,4 @@
|
|||
title = Seinheit.
|
||||
subtitle = Praxis für Traditionelle Europäische Medizin
|
||||
email = info@seinheit.ch
|
||||
#sites = index, event, news
|
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue