Archived
1
0
Fork 0

Changes to blog

This commit is contained in:
Fredric N 2010-10-02 14:12:54 +02:00
parent 135fde1f87
commit 7a850823bd
6 changed files with 40 additions and 3 deletions

View file

@ -0,0 +1,9 @@
<?php
class Blog_ArchiveController extends Fiktiv_Controller_Action
{
public function indexAction()
{
}
}

View file

@ -12,7 +12,7 @@ class Blog_IndexController extends Fiktiv_Controller_Action
$this->view->posts = $this->dataService->BlogPost->findAll();
}
public function archiveAction()
public function readableAction()
{
}

View file

@ -0,0 +1,10 @@
<h1><?=$this->translate('u:archive') ?></h1>
<p><?=$this->translate('BLOG_ARCHIVE_INTRO') ?></p>
<ul class="custom">
<li><a href="#">September 2010</a></li>
<li><a href="#">Augusti 2010</a></li>
<li><a href="#">Juli 2010</a></li>
<li><a href="#">Juni 2010</a></li>
</ul>

View file

@ -10,7 +10,7 @@ $post = $this->posts[$i];
?>
<div class="blogpost">
<h3><a href="<?=$this->url(array('action' => 'read','id' => $post->getId()),'blog') ?>"><?=$post->getTitle() ?></a></h3>
<h3><a href="<?=$this->url(array('action' => 'read','id' => $post->getId()),'blog-default') ?>"><?=$post->getTitle() ?></a></h3>
<div class="publish"><?=$post->getPubDate()->toString('yyyy-MM-dd').' at '.$post->getPubDate()->toString('HH:mm').' '.$post->getAuthor()->getFirstName() ?></div>
<div class="content"><?=$post->getContent() ?></div>
</div>

View file

@ -2,7 +2,7 @@
<?php if (isset($this->post)): ?>
<a href="<?=$this->url(array('action' => 'latest', 'id' => ''), 'blog') ?>">« <?=$this->translate('u:back') ?></a>
<a href="<?=$this->url(array('action' => 'latest', 'id' => ''), 'blog-default') ?>">« <?=$this->translate('u:back') ?></a>
<div class="blogpost">
<h1><?=$this->post->getTitle() ?></h1>

View file

@ -0,0 +1,18 @@
<h1 class="leap"><?=$this->translate('u:readable') ?></h1>
<p>Lite text</p>
<p>
<ul class="custom">
<li>
<div class="item">
<h3>Chris Shiflett</h3>
<p>php guru and security expert. Blogs about ... </p>
</div>
</li>
<li>
<h3>Chris Shiflett</h3>
<p>php guru and security expert. Blogs about ... </p>
</li>
</ul>
</p>