Configuration & Layout architecture updates

Fixed production bug
Fixed styles
Updated Action Controller

Signed-off-by: Gregory PLANCHAT <g.planchat@gmail.com>
This commit is contained in:
Gregory PLANCHAT 2012-01-13 23:36:03 +01:00
commit 66805034a6
815 changed files with 4020 additions and 1138 deletions

View file

@ -0,0 +1,26 @@
<title><?php echo $this->escape($this->getTitle())?></title>
<link rel="shortcut icon" href="<?php echo $this->getUrl('favicon.ico')?>">
<?php foreach ($this->getCss() as $css):?>
<link rel="stylesheet" type="<?php echo $css['type']?>" href="<?php echo $this->getSkinUrl($css['path'])?>" />
<?php endforeach?>
<?php foreach ($this->getInlineCss() as $css):?>
<style type="<?php echo $css['type']?>">
/*<![CDATA[*/
<?php echo $css['content']?>
/*]]>*/
</style>
<?php endforeach?>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<?php foreach ($this->getJs() as $js):?>
<script type="<?php echo $js['type']?>" src="<?php echo $this->getUrl($js['path'])?>"></script>
<?php endforeach?>
<?php foreach ($this->getSkinJs() as $js):?>
<script type="<?php echo $js['type']?>" src="<?php echo $this->getSkinUrl($js['path'])?>"></script>
<?php endforeach?>
<?php foreach ($this->getInlineJs() as $js):?>
<script type="<?php echo $js['type']?>">
/*<![CDATA[*/
<?php echo $js['content']?>
/*]]>*/
</script>
<?php endforeach?>

View file

@ -0,0 +1,4 @@
<div class="message">
<h1><?php echo $this->escape($this->getData('title'))?></h1>
<p><?php echo $this->escape($this->getData('message'))?></p>
</div>

View file

@ -0,0 +1,18 @@
<div class="navigation">
<?php foreach ($this->getAllPartials() as $partial):?>
<?php echo $partial->render()?>
<?php endforeach?>
<span class="last"></span>
</div>
<script type="text/javascript">
//<![CDATA[
(function($){
var navigation = $('.navigation');
$('.navigation-node', navigation).hover(function(e){
$('.navigation-link,.last', $(this)).show();
}, function(e){
$('.navigation-link,.last', $(this)).hide();
});
})(jQuery);
//]]>
</script>

View file

@ -0,0 +1,3 @@
<span class="<?php echo $this->escape($this->renderClasses())?> navigation-link">
<a href="<?php echo $this->escape($this->getLinkUrl())?>"<?php foreach ($this->getAttributes() as $attributeName => $attributeValue):?> <?php echo $attributeName?>="<?php echo $attributeValue ?>"<?php endforeach?>><?php echo $this->escape($this->getLabel())?></a>
</span>

View file

@ -0,0 +1,7 @@
<div class="navigation-node">
<p class="title"><?php echo $this->escape($this->getTitle())?></p>
<?php foreach ($this->getAllPartials() as $name => $partial):?>
<?php echo $partial->render()?>
<?php endforeach?>
<span class="last"></span>
</div>