From 6bc42f72abcc0bb0efe88798d2ab72e2d0284813 Mon Sep 17 00:00:00 2001 From: Gabriel Dunne Date: Wed, 3 Jul 2013 21:44:43 -0700 Subject: [PATCH] trying commercial out --- css/style.css | 9 ++++---- lib/data.php | 6 +++++- pages/.all | 4 ++++ pages/.projects | 4 ---- templates/archive.html.tpl | 3 +-- templates/index.html.tpl | 1 - templates/nav.html.tpl | 6 +++--- templates/project.list.html.tpl | 25 ++++++++++++++++++++++ templates/projectlist.html.tpl | 5 ++++- templates/projects.html.tpl | 38 +++++++++++++++++++++++++++------ templates/single.html.tpl | 1 + 11 files changed, 79 insertions(+), 23 deletions(-) create mode 100644 pages/.all delete mode 100644 pages/.projects create mode 100644 templates/project.list.html.tpl diff --git a/css/style.css b/css/style.css index a5ec907..7208763 100644 --- a/css/style.css +++ b/css/style.css @@ -13,7 +13,7 @@ body { } a { border: 0pt none; - color:#444; + color:#111; /*font-weight:bold;*/ } a img { @@ -80,14 +80,13 @@ ol li { 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 { diff --git a/lib/data.php b/lib/data.php index 7034b83..300eb1f 100644 --- a/lib/data.php +++ b/lib/data.php @@ -171,6 +171,9 @@ function get_dirs( $path = "", $args = array()) $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)) { @@ -178,7 +181,7 @@ function get_dirs( $path = "", $args = array()) //print_r($e); //} - $d['title'] = ltrim($d['name'],"/"); + $d['title'] = isset($d['entry']->title) ? $d['entry']->title : ltrim($d['name'],"/"); $dirs[] = (object) $d; } } @@ -325,6 +328,7 @@ function parse_entry($fileInfo, $page = false) $file['path'] = $fileInfo->getRealPath(); + $file['hide'] = isset($file['config']['hide']) ? $file['config']['hide'] : null; $web_accessable_root = str_replace(CONTENT_DIR, "", $file['dirname']); diff --git a/pages/.all b/pages/.all new file mode 100644 index 0000000..b085807 --- /dev/null +++ b/pages/.all @@ -0,0 +1,4 @@ +template = all +title = all work +-- +all work diff --git a/pages/.projects b/pages/.projects deleted file mode 100644 index 35838e8..0000000 --- a/pages/.projects +++ /dev/null @@ -1,4 +0,0 @@ -template = all -title = all projects --- -projects diff --git a/templates/archive.html.tpl b/templates/archive.html.tpl index c4a3320..3b72476 100644 --- a/templates/archive.html.tpl +++ b/templates/archive.html.tpl @@ -8,13 +8,12 @@ include_template('nav.html.tpl', array('index' => true)) ?> entries; $this->assign('pagination', $m->pagination); $tag = ""; ?> -
- --> + + +
diff --git a/templates/single.html.tpl b/templates/single.html.tpl index 4a08f96..59c9d8d 100644 --- a/templates/single.html.tpl +++ b/templates/single.html.tpl @@ -12,6 +12,7 @@ include_template('edit.html.tpl'); ?> + include_template('projectlist.html.tpl') ?>
-- 2.34.1