}
a {
border: 0pt none;
- color:#444;
+ color:#111;
/*font-weight:bold;*/ }
a img {
list-style-type:decimal;
}
blockquote {
- /*font-family:serif;*/
+ font-family:serif;
font-style:italic;
- font-size:1.2em;
- color:#999;
+ font-size:1.75em;
+ color:#333;
line-height:1.3em;
margin:0;
padding:1em;
- background:#ddd;
max-width:600px;
}
pre {
$d['url'] = WEB_ROOT . '?p=' . clean_slashes($d['url'], true);
$d['name'] = str_replace($path, "", $info->getRealPath());
+ $cfg = $info->getRealPath() . DIRECTORY_SEPARATOR . CONFIG_FILE;
+
+ $d['entry'] = parse_entry(new SplFileInfo($cfg));
//echo $info->pathName;
//if (file_exists($info->getPathName() . DIRECTORY_SEPARATOR . CONFIG_FILE)) {
//print_r($e);
//}
- $d['title'] = ltrim($d['name'],"/");
+ $d['title'] = isset($d['entry']->title) ? $d['entry']->title : ltrim($d['name'],"/");
$dirs[] = (object) $d;
}
}
$file['path'] = $fileInfo->getRealPath();
+ $file['hide'] = isset($file['config']['hide']) ? $file['config']['hide'] : null;
$web_accessable_root = str_replace(CONTENT_DIR, "", $file['dirname']);
--- /dev/null
+template = all
+title = all work
+--
+all work
+++ /dev/null
-template = all
-title = all projects
---
-projects
<? $this->include_template('nav.html.tpl', array('index' => true)) ?>
<?
- $m = new Model(get_request(''), 1);
+ $m = new Model(get_request('archive/'), 1);
$entries = $m->entries;
$this->assign('pagination', $m->pagination);
$tag = "";
?>
-
<div id="content">
<ul class="entries projects <?=isset($tag)&&$tag!==""?'tagged':''; ?>">
<? foreach($entries as $entry): ?>
<li class="<?=$entry->cat->name?>">
<!-- style="<?=$entry->config->style?>" -->
-
<a href="<?=$entry->url;?>">
<img src="<?=$entry->thumb?>" class="thumb" />
<br />
) ); ?>
<? $dirs = get_dirs('', array('recursive'=>0)); ?>
<? foreach($dirs as $e) : ?>
- <li><a href="<?=$e->url?>"><?=$e->title?></a></li>
+ <? if ($e->entry->hide) continue; ?>
+ <li><a href="<?=$e->url?>"><?=$e->title?></a>
+ </li>
<? endforeach; ?>
<? foreach($en as $e) : ?>
<li>
<a <?=$request['basename'] == $e->title ? 'class="selected"' : ''?> href="<?=$e->url?>"><?=$e->title?></a>
-
<? if ($e->title == 'tag' && isset($tag)): ?> <span class="tag"><?=$tag;?></span><? endif; ?>
-
</li>
<? endforeach; ?>
<? //} ?>
--- /dev/null
+<html>
+<head>
+ <? $this->include_template('head-inc.html.tpl') ?>
+ <title><?=SITE_TITLE?><?=$this->page_title(TITLE_DELIMITER);?></title>
+</head>
+<body>
+
+<? $this->include_template('nav.html.tpl') ?>
+
+<? if (EDIT) $this->include_template('edit.html.tpl'); ?>
+
+<div id="content">
+
+ <? if (isset($entry->content)): ?>
+ <? eval('?>' . $entry->content); ?>
+ <? endif; ?>
+
+ <? $this->include_template('projectlist.html.tpl') ?>
+
+</div>
+
+<? $this->include_template('footer.html.tpl') ?>
+
+</body>
+</html>
<?
-$m = new Model(get_request('projects/'), 0);
+$r = $this->_tpl_vars['request']['dirname'] ? $this->_tpl_vars['request']['dirname'] : $this->_tpl_vars['request']['basename'];
+$m = new Model(get_request($r . '/'), 0);
$projects = $m->entries;
+
?>
<ul class="projectlist">
<? foreach($projects as $entry): ?>
</li>
<? endforeach; ?>
</ul>
+
<? if (EDIT) $this->include_template('edit.html.tpl'); ?>
-<? $this->include_template('projectlist.html.tpl') ?>
-
<div id="content">
<? if (isset($entry->content)): ?>
<? eval('?>' . $entry->content); ?>
<? endif; ?>
- <!--
- <ul>
+
+<? if (!isset($_GET['s'])): ?>
+
+ <div class="sort">
+ view by list <a href="?s">images</a>
+ <br />
+ <br />
+ </div>
+
+ <? $this->include_template('projectlist.html.tpl') ?>
+
+<? else: ?>
+
+ <div class="sort">
+ view by <a href="?">list</a> images
+ <br />
+ <br />
+ <br />
+ </div>
+
+
+ <ul class="entries projects">
<? foreach($entries as $entry): ?>
<li class="entry <?=$entry->cat->name?>">
- <a href="<?=$entry->url;?>"><?=$entry->title;?></a>
+ <a href="<?=$entry->url;?>">
+ <img src="<?=$entry->thumb?>" class="thumb" />
+ <br />
+ <strong><?=$entry->title;?></strong>
+ </a>
+ <!--
<br />
—
<br />
<li class="tag"><a href="<?=WEB_ROOT.'tag/'.$tag?>"><?=$tag?></a></li>
<? endfor; ?>
</ul>
+ -->
</li>
<? endforeach; ?>
</ul>
- -->
+
+ <? endif; ?>
+
</div>
<? if (EDIT) $this->include_template('edit.html.tpl'); ?>
+
<? $this->include_template('projectlist.html.tpl') ?>
<div id="content" class="single entry">