padding-top:0;
margin-top:0;
margin-bottom:30px;
+ font-size
}
h1, h2, h3, h4, h5, h6 {
font-weight:normal;
text-decoration:none;
color:#666;
}
+h1 a {
+ color:#f0a;
+}
h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover {
color:#fff;
}
}
#content {
- position:relative;
- left: 160px;
+ padding-left: 160px;
margin-top:20px;
padding-bottom: 20px;
}
margin-bottom:100px;
}
.entry .metadata {
- visibility:hidden;
+ /*visibility:hidden;*/
}
.entry:hover .metadata{
visibility:visible;
}
.entry h1 {
margin-bottom:5px;
+ position:relative;
+ left:-1.65em;
}
.entry h1 a {
}
display:inline-block;
margin-right:10px;
margin-bottom:40px;
+ width:120px;
+ font-size:12px;
}
.thumb {
width:100px;
-
header("Content-Type: {$m->response_mime_type}; charset=UTF-8");
$v->render( $m->template );
ini_set("display_errors", 1);
# timezone
-putenv('TZ=Asia/Calcutta');
+putenv('TZ=America/Los Angeles');
# include path
ini_set('include_path', ini_get('include_path') . PATH_SEPARATOR . dirname(realpath(__FILE__)));
var $content_request = null;
var $page_request = null;
+ var $template = 'default.html.tpl';
var $response_format = 'html';
var $response_mime_type = 'text/html';
- var $page_title = null;
- var $template = 'default.html.tpl';
+ var $page_title = null;
var $entries = null;
var $config = null;
function __construct( $request )
{
$this->request = $request;
- list($this->response_format, $this->response_mime_type) = parse_format($this->request['extension'], 'html');
+ list($this->response_format, $this->response_mime_type) = parse_format($this->request['extension']);
+ $this->template = 'default.' . $this->response_format . '.tpl';
$this->parse_request( $this->request );
}
$this->content_request = join(array($this->request['dirname'], $this->request['filename']), DIRECTORY_SEPARATOR );
$this->page_request = $this->request['filename'];
+
# if entries (dir in CONTENT dir)
if ($this->is_multiple()) {
# check if config file exists in dir
if ($this->has_config()) {
$this->config = parse_config( $this->content_request );
- if (isset($this->config['config']['template'])) {
+ if (isset($this->config['config']['template']))
$this->template = $this->config['config']['template'] . '.' . $this->response_format . '.tpl' ;
- }
}
$this->entries = get_entries( $this->content_request );
$this->page_title = preg_replace('{^/|/$}', '', $this->request['path']);
* @param format
* @param default format
*/
-function parse_format($format, $default)
+function parse_format($format, $default = 'html')
{
$types = array('html' => 'text/html',
'php' => 'text/html',
$path_info = pathinfo( $path );
$path_info['path'] = preg_match("/\.\.\//", $path) ? '/' : $path;
- $path_info['extension'] = null;
+ $path_info['extension'] = isset($path_info['extension']) ? $path_info['extension'] : 'html';
if ($path_info['dirname'] == '.')
$path_info['dirname'] = '';
{
var $template_dir = 'templates';
// var $template_cache_dir = 'cache';
+ var $default_template = 'default';
var $response_format = 'html';
var $response_mime_type = 'text/html';
public function render( $template )
{
extract( $this->_tpl_vars );
+ if (!is_file($this->template_dir . DIRECTORY_SEPARATOR . $template))
+ $template = $default_template . '.' . $response_format . '.tpl';
include( $this->template_dir . DIRECTORY_SEPARATOR . $template );
}
#about
-quilime is an ongoing collection of projects, sketches, ideas, and process by **gabriel dunne** ([www](http://gabrieldunne.com), [email](mailto:gdunne@quilime.com))
+quilime.com is a place for my experiments, process. My web portfolio.
-quilime.com is built with <a href="http://git.quilime.com/?p=plog.git;a=summary">plog</a>, a static-file `p`roject`log` engine written in PHP.
+this site is built with <a href="http://git.quilime.com/?p=plog.git;a=summary">plog</a>, a static-file `p`roject`log` engine written in PHP.
+<br />
<!--add <a href="http://quilime.com/.rss" class="rss">.rss</a>-->
+## contact
+gabriel dunne
+[www](http://gabrieldunne.com), [email](mailto:gdunne@quilime.com)
+
<br />
## related
[vimeo](http://vimeo.com/quilime/)
[github](http://github.com/quilime/)
[flickr](http://flickr.com/photos/quilime/)
-
-
-
-
-
-<?php
-
- if (!isset($entries)) {
- $entries = get_entries();
- }
-
-?>
<html>
<head>
<? $this->include_template('head-inc.html.tpl') ?>
{
- "entries": <? print json_encode($entries); ?>,
- "count": <?=$total?>,
- "total": <?=$total?>
+ "entries": <? print json_encode($entries); ?>
}
<atom:link rel="hub" href="<?=WEB_ROOT?>" xmlns:atom="http://www.w3.org/2005/Atom"/>
<title><?=SITE_TITLE?></title>
- <link><?=WEB_ROOT?></link>
+ <link><?=$_SERVER['SCRIPT_URI'];?></link>
<description></description>
- <? foreach($data as $entry): ?>
+ <? foreach($entries as $entry): ?>
<item>
<title><?=$entry['title']?></title>
<description><?=htmlentities($entry['content']);?></description>
- <link><?=$entry['url']?></link>
- <guid><?=$entry['url']?></guid>
+ <link>http://<?=get_domain_name() . '/' . $entry['url']?></link>
+ <guid>http://<?=get_domain_name() . '/' . $entry['url']?></guid>
<pubDate><?=date('r', $entry['timestamp'])?></pubDate>
</item>
<? endforeach; ?>
<a href="/<?=$entry['url']?>">#</a>
<br />
<span title="<?=get_relative_time($entry['timestamp']);?>"><?=date("F d, Y", $entry['timestamp'])?></span> in
- <a href="/<?=$entry['cat']['url'];?>">/<?=$entry['cat']['url'];?></a><? if ($entry['tags']) echo '<br/>tags: ' . implode(', ', $entry['tags']); ?>
+ <a href="/<?=$entry['cat']['url'];?>">/<?=$entry['cat']['url'];?></a><? if ($entry['tags']) echo '<br/>' . implode(', ', $entry['tags']); ?>
</div>
<?
<tr>
- <td style="padding-right:100px;" valign="top">
- <h1><a href="/log/">log</a></h1>
- <ul class="archive">
- <? $c=15; foreach(get_entries('log/') as $entry): if ($c--==0) break; ?>
- <li>
- <a href="<?=$entry['url']?>" title="<?=date("m d Y", $entry['timestamp'])?>"><?=$entry['title']?></a>
- </li>
- <? endforeach; ?>
- </ul>
- <br />
- <p><a class="more" href="/log/">more →</a></p>
- </td>
-
- <td style="padding-right:100px;" valign="top">
- <h1><a class="more" href="/code/">code</a></h1>
- <ul class="archive">
- <? $c=15; foreach(get_entries('code/') as $entry): if ($c--==0) break; ?>
- <li>
- <a href="<?=$entry['url']?>" title="<?=date("m d Y", $entry['timestamp'])?>"><?=$entry['title']?></a>
- </li>
- <? endforeach; ?>
- </ul>
-
- <br />
-
- <p><a class="more" href="/code/">more →</a></p>
- </td>
-
- <td valign="top">
- <h1><a href="/projects/">projects</a></h1>
- <ul class="projects">
- <? $c = 0; ?>
- <? foreach(get_entries('projects/') as $entry): $c++; ?>
- <li class="project">
- <a href="<?=$entry['url']?>">
- <div class="thumb">
+ <td valign="top" style="max-width:680px;">
+ <h1><a href="/projects/">projects</a></h1>
+ <ul class="projects">
+ <? $c = 0; ?>
+ <? foreach(get_entries('projects/') as $entry): $c++; ?>
+ <li class="project">
+ <a href="<?=$entry['url']?>">
+ <div class="thumb">
<? if (isset($entry['config']['thumb'])): ?>
<img src="<?= $entry['config']['thumb']?>">
<? else : ?>
-
<canvas id="thumb_<?=$c?>" width="100" height="100"></canvas>
-
<script>
var canvas = document.getElementById('thumb_<?=$c?>');
if(canvas && canvas.getContext) {
</script>
<? endif; ?>
- </div>
- <?=$entry['title']?></a>
+ </div>
+ <?=$entry['title']?></a>
+ </li>
+ <? endforeach; ?>
+ </ul>
+ </td>
+
+ <td style="padding-right:100px;" valign="top">
+ <h1><a href="/log/">log</a></h1>
+ <ul class="archive">
+ <? $c=15; foreach(get_entries('log/') as $entry): if ($c--==0) break; ?>
+ <li>
+ <a href="<?=$entry['url']?>" title="<?=date("m d Y", $entry['timestamp'])?>"><?=$entry['title']?></a>
</li>
<? endforeach; ?>
- </ul>
+ </ul>
+ </td>
+
+ <td style="padding-right:100px;" valign="top">
+ <h1><a class="more" href="/code/">code</a></h1>
+ <ul class="archive">
+ <? $c=15; foreach(get_entries('code/') as $entry): if ($c--==0) break; ?>
+ <li>
+ <a href="<?=$entry['url']?>" title="<?=date("m d Y", $entry['timestamp'])?>"><?=$entry['title']?></a>
+ </li>
+ <? endforeach; ?>
+ </ul>
</td>
</tr>
</table>
-<br /><br/>
-
-<a href="/all">all posts →</a>
</div>
<!-- <li><a href="/agg">aggregate</a></li> -->
<li><a href="/photo">photo</a></li>
<li><a href="/links">links</a></li>
+
+ <br />
<li><a href="/about">about</a></li>
<br />