notes = this might need to be split up into a few posts
--
-# video
+[video1]
-[video]
+[video2]
+
+two audiovisual performances, done July 29 2010 during the [Biennial of the Americas](http://biennialoftheamericas.org), Denver, Colorado.
<!--more-->
$recursive = isset($args['recursive']) ? $args['recursive'] : 1;
$order_by = empty($args['order_by']) ? null : $args['order_by'];
$order = empty($args['order']) ? SORT_DESC : $args['order'];
-
+
$path = LOCAL_ROOT . CONTENT_DIR . $path;
if ($recursive) {
$iterator = new RecursiveDirectoryIterator($path, RecursiveDirectoryIterator::KEY_AS_PATHNAME);
{
$config = "";
$content = "";
+ $content_short = "";
$passed_config = false;
$file_contents = file($fileInfo->getRealPath(), FILE_USE_INCLUDE_PATH);
foreach ( $file_contents as $line ) {
$config .= $line;
continue;
}
+ if (trim($line) == MORE_DELIM) {
+ $passed_more = true;
+ }
+ if (!$passed_more) {
+ $content_short .= $line;
+ }
$content .= $line;
}
$file['timestamp'] = $file['config']['date'] ? date('U', strtotime( $file['config']['date'])) : $fileInfo->getCTime();
$file['tags'] = $file['config']['tags'] ? explode(" ", $file['config']['tags']) : null;
$file['content'] = Markdown($content);
+ if ($passed_more)
+ $file['content_short'] = Markdown($content_short);
$cat = clean_slashes(str_replace(LOCAL_ROOT . CONTENT_DIR, "", $fileInfo->getPath()));
$file['cat'] = $page ? null : array('name' => substr($cat,1), 'url' => $cat.'/' );
$file['path'] = $fileInfo->getRealPath();
define ('CONTENT_DIR', 'content');
define ('TEMPLATE_DIR', 'templates');
define ('PAGE_DIR', 'pages');
- define ('CONFIG_DELIMITER', '--');
+ define ('CONFIG_DELIMITER', '--');
+ define ('MORE_DELIM', '<!--more-->');
define ('TITLE_DELIMITER', ': ');
define ('CONFIG_FILE', 'config');
public function page_title($delim)
{
- return isset($this->_tpl_vars['page_title']) ? $delim . $this->_tpl_vars['page_title'] : "";
+ return $this->_tpl_vars['page_title'] ? $delim . $this->_tpl_vars['page_title'] : "";
}
}
<?php
+
+
require_once '../lib/init.php';
$url = get_url();
<? $this->include_template('head-inc.html.tpl') ?>
- <title><?=SITE_TITLE?>: <?=$page_title?></title>
+ <title><?=SITE_TITLE?><?=$this->page_title(TITLE_DELIMITER);?></title>
</head>
<body>
<div id="content">
<? foreach($data as $entry): ?>
- <? $this->include_template('entry.html.tpl', array('data' => $entry)); ?>
+ <?
+ if ($entry['content_short'])
+ $entry['content'] = $entry['content_short'] . '<br /><a class="more" href="'.$entry['url'].'">more →</a><br /><br />';
+ $this->include_template('entry.html.tpl', array('data' => $entry));
+ ?>
<? endforeach; ?>
</div>
-title : <?=SITE_TITLE?><?=$this->title()."\n"; ?>
+title : <?=SITE_TITLE?>, <?=$page_title . "\n"; ?>
author : gabriel dunne
email : gdunne at quilime dot com
copyright : 1997 - <?=date('Y');?>