From a514b8e77071560425ebcea86e6da67a934dc6cf Mon Sep 17 00:00:00 2001 From: Gabriel Dunne Date: Sat, 8 Sep 2012 18:39:42 -0700 Subject: [PATCH] Editing working, Tags working, Templates working. --- content/links | 2 +- content/log/temple | 14 +++++----- content/log/water_is_life | 16 ++++++------ content/tag | 18 +++++-------- content/test | 1 - data/content/data.json | 2 +- data/content/log/data.json | 2 +- data/content/tags.json | 2 +- index.php | 3 --- js/js.js | 44 -------------------------------- lib/config.ini | 4 +-- lib/data.php | 4 +-- lib/model.php | 5 +--- templates/edit.html.tpl | 17 ++++++++++--- templates/footer.html.tpl | 6 ++--- templates/head-inc.html.tpl | 35 ++----------------------- templates/nav.html.tpl | 11 ++++++-- templates/nextprev.html.tpl | 51 ++++++++++--------------------------- templates/projects.html.tpl | 5 +--- templates/single.html.tpl | 2 +- test.php | 1 + 21 files changed, 75 insertions(+), 170 deletions(-) diff --git a/content/links b/content/links index 9c38dae..06dc8fb 100755 --- a/content/links +++ b/content/links @@ -15,7 +15,7 @@ template = page + [flight404.com](http://flight404.com) robert hodgin + [pohflepp.com](http://pohflepp.com) sascha pohflep + [mylinhtrieu.com](http://mylinhtrieu.com) mylinh ttieu nguyen -+ [fredericeyl.de](http://fredericeyl.de) frédéric eyl ++ [fredericeyl.de](http://fredericeyl.de) frederic eyl + [thegreeneyl.com](http://thegreeneyl.com) the green eyl + [universaloscillation.com](http://universaloscillation.com) aaron meyers + [aaronkoblin.com](http://aaronkoblin.com) aaron koblin diff --git a/content/log/temple b/content/log/temple index e56d25a..1ad83bf 100755 --- a/content/log/temple +++ b/content/log/temple @@ -1,7 +1,7 @@ -date = feb 20 2012 -title = temple -tags = photo --- - - - +date = feb 20 2012 +title = temple +tags = photo india +-- + + + diff --git a/content/log/water_is_life b/content/log/water_is_life index b04bcc7..656d70f 100755 --- a/content/log/water_is_life +++ b/content/log/water_is_life @@ -1,8 +1,8 @@ -title = Water Is Life -date = Oct 23 2011 06:04:38 PM -tags = water photo --- - - - -near Quotar Minar in Dadabari. +title = Water Is Life +date = Oct 23 2011 06:04:38 PM +tags = india photo +-- + + + +near Quotar Minar in Dadabari. diff --git a/content/tag b/content/tag index 946308d..0c8fe71 100755 --- a/content/tag +++ b/content/tag @@ -5,21 +5,17 @@ template = page $tag)); ?> -content_short)) -$entry->content = $entry->content_short . -'
more →

'; -?> - -
-include_template('entry.html.tpl', array('entry' => $entry)); ?> -
- + content_short)) + $entry->content = $entry->content_short . + '
more →

'; + ?> +
+ include_template('entry.html.tpl', array('entry' => $entry)); ?> +
- diff --git a/templates/nextprev.html.tpl b/templates/nextprev.html.tpl index f7fccfc..dc91cc5 100644 --- a/templates/nextprev.html.tpl +++ b/templates/nextprev.html.tpl @@ -1,43 +1,18 @@ - - - - - - - - - - - - -

- - - - - - +cat->url) && $entry->cat->url != '/' ) : ?> + +

- - - - - +is_single)) : ?> + next_entry)) : ?> + + + +

+ prev_entry)) : ?> + + + - -
- - diff --git a/templates/projects.html.tpl b/templates/projects.html.tpl index ff149e3..f22a400 100644 --- a/templates/projects.html.tpl +++ b/templates/projects.html.tpl @@ -11,8 +11,6 @@ include_template('nav.html.tpl') ?>
- - - +
include_template('footer.html.tpl') ?> diff --git a/templates/single.html.tpl b/templates/single.html.tpl index 67308e8..b322ae1 100644 --- a/templates/single.html.tpl +++ b/templates/single.html.tpl @@ -3,7 +3,7 @@ include_template('head-inc.html.tpl') ?> - <?=$entry->title;?> + <?=SITE_TITLE?><?=$this->page_title(TITLE_DELIMITER);?> diff --git a/test.php b/test.php index 9bab046..c66d0f7 100644 --- a/test.php +++ b/test.php @@ -15,3 +15,4 @@ class AllTests extends TestSuite { } exit; + -- 2.34.1