]> git.quilime.com - plog.git/commitdiff
created linked-archive template
authorGabriel Dunne <gdunne@quilime.com>
Fri, 6 Jan 2012 11:53:23 +0000 (03:53 -0800)
committerGabriel Dunne <gdunne@quilime.com>
Fri, 6 Jan 2012 11:53:23 +0000 (03:53 -0800)
templates/linked-archive.html.tpl [new file with mode: 0644]

diff --git a/templates/linked-archive.html.tpl b/templates/linked-archive.html.tpl
new file mode 100644 (file)
index 0000000..3423992
--- /dev/null
@@ -0,0 +1,49 @@
+<html>
+<head>
+    
+    <? $this->include_template('head-inc.html.tpl') ?>
+    
+    <title><?=SITE_TITLE?><?=$this->page_title(TITLE_DELIMITER);?></title>
+    
+</head>
+<body>
+    
+    
+<div id="content">
+
+    <ul class="archive">
+    <? foreach($entries as $entry): ?>
+    <li>
+        &bull; <a class="more" href="#<?= $entry['url']; ?>"><?= $entry['title']; ?></a>
+    </li>
+    <? endforeach; ?>   
+    </ul>
+
+    <br />
+    <br />
+    <br />
+    <br />
+
+
+    <div class="inline">
+       <? foreach($entries as $entry): ?>
+       <?  
+        if (isset($entry['content_short'])) 
+            $entry['content'] = $entry['content_short'] . '<br /><a class="more" href="'.$entry['url'].'">more &rarr;</a><br /><br />';
+
+        ?>
+        <a name="<?= $entry['url'] ?>">
+        <?
+
+        $this->include_template('entry.html.tpl', array('entry' => $entry)); 
+    ?>
+       <? endforeach; ?>       
+    </div>
+       
+</div>
+
+       <? $this->include_template('footer.html.tpl') ?>
+    <? $this->include_template('nav.html.tpl') ?>
+
+</body>
+</html>