Initial import of old legacy Zynapse Framework,

untouched since early 2008.
This commit is contained in:
2010-02-25 00:16:53 +02:00
commit 45aceab6b5
100 changed files with 7685 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
<div style="comment">
<?php echo $comment['body']; ?><br />
<h6 style="margin: 0px;">&nbsp;&nbsp;&nbsp;<?php echo $comment['name']?> <?php if (!empty($comment['email'])) echo '('.$comment['email'].')'; ?></h6>
</div>
<hr />

View File

@@ -0,0 +1,9 @@
<tr>
<?php foreach ($page_list_item as $key => $value): ?>
<?php if ($key == 'title'): ?>
<td><a href="/page/<?php echo $page_list_item['id']?>"><?php echo $value; ?></td>
<?php else: ?>
<td><?php echo $value; ?></td>
<?php endif; ?>
<?php endforeach; ?>
</tr>

View File

@@ -0,0 +1,16 @@
hello world!<br />
<br />
you've seen this page <?php echo $views ?> time<?php if ($views > 1) echo 's'; ?>. <a href="?kill=yes">reset</a>
<?php if ( isset($pages) && count($pages) ): ?>
<table border="1" cellspacing="0" cellpadding="2">
<tr>
<?php foreach ($columns as $column => $col_info): ?>
<th><?php echo $col_info['HumanName']; ?></th>
<?php endforeach; ?>
</tr>
<?php render_partial('page_list_item', $pages); ?>
</table>
<?php endif; ?>

28
app/views/page/view.phtml Normal file
View File

@@ -0,0 +1,28 @@
<?php if (isset($page)): ?>
<?php foreach ($page as $key => $value): if (array_key_exists($key, $columns)): ?>
<b><?php echo $key; ?>:</b> <?php echo $value; ?><br />
<?php endif; endforeach; ?>
<?php if ( $page->categories ): ?>
<b>Categories:</b> <?php
$cats = array();
foreach ($page->categories as $category) {
$cats[] = $category['name'];
}
echo implode(', ', $cats);
?>
<?php endif; ?>
<br />
<br />
<b>Comments:</b><br />
<hr />
<?php if ( $page->comments ): ?>
<?php render_partial('comment', $page->comments); ?>
<?php else: ?>
- No Comments -<br />
<hr />
<?php endif; ?>
<?php else: ?>
The page you're trying to view doesn't exist.
<?php endif; ?>