mirror of
https://github.com/jimeh/zynapse.git
synced 2026-02-19 07:06:39 +00:00
Initial import of old legacy Zynapse Framework,
untouched since early 2008.
This commit is contained in:
3
app/views/__layouts/_navpane.phtml
Normal file
3
app/views/__layouts/_navpane.phtml
Normal file
@@ -0,0 +1,3 @@
|
||||
<div id="navpane" style="border: 1px solid">
|
||||
navpane here
|
||||
</div>
|
||||
31
app/views/__layouts/application.phtml
Normal file
31
app/views/__layouts/application.phtml
Normal file
@@ -0,0 +1,31 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo App::$strings['_ZNAP_LANG']; ?>" lang="<?php echo App::$strings['_ZNAP_LANG']; ?>">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo App::$strings['_ZNAP_ENCODING']; ?>"/>
|
||||
|
||||
<title>application</title>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<?php render_partial('navpane'); ?>
|
||||
|
||||
<?php if(Session::isset_flash('error')): ?>
|
||||
<div style="color: red;"><?php echo Session::flash('error') ?></div>
|
||||
<?php elseif(Session::isset_flash('notice')): ?>
|
||||
<div style="color: green;"><?php echo Session::flash('notice') ?></div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php echo $content_for_layout; ?>
|
||||
|
||||
<?php if (Timer::$started): ?>
|
||||
<div id="timer">
|
||||
<?php echo Timer::end(5);?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
34
app/views/__layouts/page.phtml
Normal file
34
app/views/__layouts/page.phtml
Normal file
@@ -0,0 +1,34 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo App::$strings['_ZNAP_LANG']; ?>" lang="<?php echo App::$strings['_ZNAP_LANG']; ?>">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo App::$strings['_ZNAP_ENCODING']; ?>"/>
|
||||
|
||||
<title>page</title>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<?php render_partial('navpane'); ?>
|
||||
|
||||
<?php if(Session::isset_flash('error')): ?>
|
||||
<div style="color: red;"><?php echo Session::flash('error') ?></div>
|
||||
<?php elseif(Session::isset_flash('notice')): ?>
|
||||
<div style="color: green;"><?php echo Session::flash('notice') ?></div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php echo $content_for_layout; ?>
|
||||
|
||||
<br />
|
||||
<br />
|
||||
<?php if (Timer::$started): ?>
|
||||
<?php echo Timer::end(5); ?>
|
||||
<?php endif; ?>
|
||||
<pre>
|
||||
<?php print_r(ActiveRecord::$query_log); ?>
|
||||
</pre>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
1
app/views/__snippets/__layouts/snippets.phtml
Normal file
1
app/views/__snippets/__layouts/snippets.phtml
Normal file
@@ -0,0 +1 @@
|
||||
<?php echo $content_for_layout; ?>
|
||||
1
app/views/__snippets/test/index.phtml
Normal file
1
app/views/__snippets/test/index.phtml
Normal file
@@ -0,0 +1 @@
|
||||
<?php echo $message ?> :)
|
||||
0
app/views/_admin/admin/index.phtml
Normal file
0
app/views/_admin/admin/index.phtml
Normal file
0
app/views/_admin/admin/view.phtml
Normal file
0
app/views/_admin/admin/view.phtml
Normal file
5
app/views/page/_comment.phtml
Normal file
5
app/views/page/_comment.phtml
Normal file
@@ -0,0 +1,5 @@
|
||||
<div style="comment">
|
||||
<?php echo $comment['body']; ?><br />
|
||||
<h6 style="margin: 0px;"> — <?php echo $comment['name']?> <?php if (!empty($comment['email'])) echo '('.$comment['email'].')'; ?></h6>
|
||||
</div>
|
||||
<hr />
|
||||
9
app/views/page/_page_list_item.phtml
Normal file
9
app/views/page/_page_list_item.phtml
Normal 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>
|
||||
16
app/views/page/index.phtml
Normal file
16
app/views/page/index.phtml
Normal 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
28
app/views/page/view.phtml
Normal 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; ?>
|
||||
4
app/views/snippet_testing/index.phtml
Normal file
4
app/views/snippet_testing/index.phtml
Normal file
@@ -0,0 +1,4 @@
|
||||
testing a snippet here:
|
||||
<div id="snippet">
|
||||
<?php render_snippet('test') ?>
|
||||
</div>
|
||||
Reference in New Issue
Block a user