added base plugin

This commit is contained in:
jeena 2013-07-10 13:12:17 +02:00
parent fcad3b07f1
commit 193bfd2247
5 changed files with 23 additions and 26 deletions

1
.gitignore vendored
View file

@ -1,3 +1,4 @@
.DS_Store
config/admin.ini
config/database.config.ini
public/img/header

View file

@ -1,3 +1,12 @@
this is my site
<?php if($this->header_image): ?>
<img id="header_image" src="<?php echo $this->base ?>/img/header/<?php echo $this->header_image ?>" alt="">
<?php endif ?>
Title (<?php echo $this->title; ?>)
<h1><?php echo $this->title ?></h1>
<?php if($this->subtitle): ?>
<h2><?php echo $this->subtitle ?></h2>
<?php endif ?>
<div id="content">
<?php echo $this->content ?>
</div>

View file

@ -59,20 +59,7 @@
</header>
<article id="stage">
<?php if($this->headerImage): ?>
<img id="header_image" src="<?php echo $this->headerImage ?>" alt="">
<?php endif ?>
<h1><?php echo Navigation::getTitle(); ?></h1>
<?php if(Navigation::getSubtitle()): ?>
<h2><?php echo Navigation::getSubtitle(); ?></h2>
<?php endif ?>
<div id="content">
<?php echo $this->stageContent ?>
</div>
<?php echo $this->stageContent ?>
</article>
<footer>

View file

@ -0,0 +1,8 @@
<?php
class DidgeridooArtwork_Page_Plugin_Base extends DidgeridooArtwork_Page_Plugin_Abstract
{
public function render($params)
{
return $this->_view->base;
}
}

View file

@ -4,7 +4,6 @@ html, body {
body {
background: white;
font-family: "Trebuchet MS", "Lucida Grande", verdana, arial, georgia;
font-size: 1em;
margin: 0;
@ -38,6 +37,8 @@ h2 + h3 {
font-weight: bold;
}
img { max-width: 100%; }
#container {
min-width: 750px;
max-width: 1100px;
@ -138,15 +139,6 @@ h2 + h3 {
font-size: 1.2em;
}
#stage img {
border: 1px solid #888;
background-color: white;
padding: 5px;
margin: 0 0 1em 1em;
float: right;
border-radius: 2px;
}
#angebote {
float: right;
text-align: right;