]> git.quilime.com - plog.git/commitdiff
Serious hacking.
authorGabriel Dunne <gdunne@quilime.com>
Sat, 8 Sep 2012 05:25:39 +0000 (22:25 -0700)
committerGabriel Dunne <gdunne@quilime.com>
Sat, 8 Sep 2012 05:25:39 +0000 (22:25 -0700)
16 files changed:
css/style.css
data/content/data.json
data/content/log/data.json
data/content/projects/data.json
lib/config.ini
lib/data.php
lib/model.php
lib/view.php
pages/about
pages/contact
pages/photo [deleted file]
templates/default.html.tpl
templates/edit.html.tpl
templates/entry.html.tpl
templates/page.html.tpl
templates/single.html.tpl

index 091d23cfe420a32f7f7a277d0d3dea8fbcab493c..603543bababc6a51a90833e3216c17f73871f33f 100644 (file)
@@ -89,25 +89,34 @@ table, td, tr {
 
 
 .edit {
-  margin-left: 160px;
-  padding:20px;
   box-sizing: border-box;
-  background:#ccf;
+  background:#005;
+  position:fixed;
+  width:100%;
+  bottom:0;
+  left:0;  
+  padding:20px;  
 }
+  .edit .ctrl {
+      margin-bottom:20px;
+  }
   .edit textarea {
     font-family: monaco, monospace;
-    padding:20px;
+    background:#005;
+    padding:5px;
+    border:0;
     width:100%;
     font-size:12px;
-    background:#005;
     color:#eee;
-    height:400px;
+    height:200px;
   }
-  .edit_button {
-    /*position:fixed;
+.edit_button {
+    /*
+    position:fixed;
     top:5px; right:10px;
-    text-decoration:underline;*/
-  }
+    text-decoration:underline;
+    */
+}
 
 
 #nav {
@@ -141,57 +150,46 @@ table, td, tr {
   visibility:visible !important;
 }
 
-.singlebg {
+.singlebg { }
 
-}
 .entry h1 {
-    margin-bottom:5px;
-    position:relative;
-}
-.entry h1 a {
-}
-.entry h1 a:hover {
-}
+  margin-bottom:5px;
+  position:relative; }
+.entry h1 a { }
+.entry h1 a:hover { }
 .entry h2 {
-    margin-top:40px;
-}
+  margin-top:40px; }
 .entry .metadata {
-    margin-bottom:30px;
-    color:#333;
-}
+  font-style:italic;
+  font-size:12px;
+  line-height:16px;
+  margin-bottom:30px; }
+.entry .metadata, 
 .entry .metadata a {
-    color:#555;
-}
+  font-weight:normal;
+  color:#ccc; }
 .entry .metadata a:hover {
-    color:#999;
-}
+  color:#999; }
 .entry .metadata .tags li {
-    display:inline-block;
-    margin-right:0.3em;
-}
+  display:inline-block;
+  margin-right:0.3em; }
 .entry p {
-     max-width:720px;
-}
+     max-width:720px; }
 
 
 .archive li {
-    padding-bottom:5px;
-    margin-bottom:5px;
-    border-bottom:1px dotted #333;
-}
+  padding-bottom:5px;
+  margin-bottom:5px;
+  border-bottom:1px dotted #333; }
 
 .project {
-    display:inline-block;
-    margin-right:10px;
-    margin-bottom:40px;
-    width:120px;
-    font-size:12px;
-}
-.thumb {
-  width:100px;
-  height:100px;
-  overflow:hidden;
-}
+  display:inline-block;
+  margin-right:10px;
+  margin-bottom:40px;
+  width:120px;
+  font-size:12px; }
+.projects li {
+  margin-bottom:2em; }
 
 
 
index 783ffad99a2d191d5dcd1c19da8947347d80b2b2..6f073b554453a1c1b76cf6093cdda358ceeeea38 100644 (file)
@@ -1 +1 @@
-{"entries":[{"config":{"date":"feb 20 2012","title":"temple","tags":"photo"},"title":"temple","filename":"temple","path":"\/Users\/gdunne\/_code\/plog\/content\/log\/temple","fileInfo":{},"timestamp":"1329724800","tags":["photo"],"content":"<p><a href=\"http:\/\/www.flickr.com\/photos\/quilime\/6914577153\/sizes\/z\/in\/photostream\/\">\n    <img src=\"http:\/\/farm8.staticflickr.com\/7053\/6914577153_4c2b7d8a1a_z.jpg\">\n<\/a><\/p>\n","comments_enabled":false,"comments":{"comments":[],"comments_loc":"\/Users\/gdunne\/_code\/plogcomments\/\/Users\/gdunne\/_code\/plog\/content\/log\/temple\/","fileInfo":{},"_recaptcha_resp":null,"_recaptcha_error":null,"_comment_error":null},"cat":{"name":"og","url":"log\/"},"media":"media\/\/og\/temple\/","thumb":"media\/\/og\/temple\/thumb.png","url":"\/og\/temple"},{"config":{"title":"Water Is Life","date":"Oct 23 2011 06:04:38 PM","tags":"water photo"},"title":"Water Is Life","filename":"water_is_life","path":"\/Users\/gdunne\/_code\/plog\/content\/log\/water_is_life","fileInfo":{},"timestamp":"1319418278","tags":["water","photo"],"content":"<p><a href=\"http:\/\/www.flickr.com\/photos\/quilime\/6266458764\/sizes\/l\/in\/photostream\/\"><img src=\"http:\/\/farm7.staticflickr.com\/6034\/6266458764_6f71bd0a7e_z.jpg\"><\/a><\/p>\n\n<p>near Quotar Minar in Dadabari.<\/p>\n","comments_enabled":false,"comments":{"comments":[],"comments_loc":"\/Users\/gdunne\/_code\/plogcomments\/\/Users\/gdunne\/_code\/plog\/content\/log\/water_is_life\/","fileInfo":{},"_recaptcha_resp":null,"_recaptcha_error":null,"_comment_error":null},"cat":{"name":"og","url":"log\/"},"media":"media\/\/og\/water_is_life\/","thumb":"media\/\/og\/water_is_life\/thumb.png","url":"\/og\/water_is_life"},{"config":{"title":"islands","date":"Oct 05 2011, 03:53:55 PM","tags":"writing quote"},"title":"islands","filename":"islands","path":"\/Users\/gdunne\/_code\/plog\/content\/log\/islands","fileInfo":{},"timestamp":"1317855235","tags":["writing","quote"],"content":"<blockquote>\n  <p>Imagine that every man's mind is an island, surrounded by ocean. Each seems isolated, yet in reality all are linked by the bedrock from which they spring. If the ocean were to vanish, that would be the end of the islands. They would all be part of one continent, but their individuality would be gone.<\/p>\n  \n  <p>&mdash;\"The Inspector\" Overlord. <u>Childhoods End<\/u>, Arthur C. Clark. p.176<\/p>\n<\/blockquote>\n","comments_enabled":false,"comments":{"comments":[],"comments_loc":"\/Users\/gdunne\/_code\/plogcomments\/\/Users\/gdunne\/_code\/plog\/content\/log\/islands\/","fileInfo":{},"_recaptcha_resp":null,"_recaptcha_error":null,"_comment_error":null},"cat":{"name":"og","url":"log\/"},"media":"media\/\/og\/islands\/","thumb":"media\/\/og\/islands\/thumb.png","url":"\/og\/islands"},{"config":{"title":"childhoods end","date":"Oct 05 2011, 03:17:57 PM","tags":"india quote"},"title":"childhoods end","filename":"overlords","path":"\/Users\/gdunne\/_code\/plog\/content\/log\/overlords","fileInfo":{},"timestamp":"1317853077","tags":["india","quote"],"content":"<blockquote>\n  <p>The case of India is particularly instructive. The main difference between us and the British in India was that they had no real motives for going there\u2014no conscious objectives, that is, except such trivial and temporary ones as trade or hostility to other European powers. They found themselves possessors of an empire before they knew what to do with it, and were never really happy until they had got rid of it again.<\/p>\n  \n  <p>\u2014\"The Inspector\" Overlord. <u>Childhoods End<\/u>, Arthur C. Clark. p.161<\/p>\n<\/blockquote>\n","comments_enabled":false,"comments":{"comments":[],"comments_loc":"\/Users\/gdunne\/_code\/plogcomments\/\/Users\/gdunne\/_code\/plog\/content\/log\/overlords\/","fileInfo":{},"_recaptcha_resp":null,"_recaptcha_error":null,"_comment_error":null},"cat":{"name":"og","url":"log\/"},"media":"media\/\/og\/overlords\/","thumb":"media\/\/og\/overlords\/thumb.png","url":"\/og\/overlords"},{"config":{"title":"prism","date":"2007-08-23","thumb":"http:\/\/portfolio.quilime.com\/2008\/prism\/thumb.png","tags":"prism painting"},"title":"prism","filename":"prism","path":"\/Users\/gdunne\/_code\/plog\/content\/projects\/prism","fileInfo":{},"timestamp":"1187852400","tags":["prism","painting"],"content":"<p><img src=\"http:\/\/portfolio.quilime.com\/2008\/prism\/3.jpg\" \/><\/p>\n\n<p>oil on canvas. 4' x 3'<\/p>\n","comments_enabled":false,"comments":{"comments":[],"comments_loc":"\/Users\/gdunne\/_code\/plogcomments\/\/Users\/gdunne\/_code\/plog\/content\/projects\/prism\/","fileInfo":{},"_recaptcha_resp":null,"_recaptcha_error":null,"_comment_error":null},"cat":{"name":"rojects","url":"projects\/"},"media":"media\/\/rojects\/prism\/","thumb":"http:\/\/portfolio.quilime.com\/2008\/prism\/thumb.png","url":"\/rojects\/prism"},{"config":{"title":"mask","date":"2007-07-02","thumb":"http:\/\/portfolio.quilime.com\/2008\/mask\/thumb.png","tags":"mask painting"},"title":"mask","filename":"mask","path":"\/Users\/gdunne\/_code\/plog\/content\/projects\/mask","fileInfo":{},"timestamp":"1183359600","tags":["mask","painting"],"content":"<p><img src=\"http:\/\/portfolio.quilime.com\/2008\/mask\/mask.jpg\" \/><\/p>\n\n<p>graphite on plywood. 12\" x 12\"<\/p>\n","comments_enabled":false,"comments":{"comments":[],"comments_loc":"\/Users\/gdunne\/_code\/plogcomments\/\/Users\/gdunne\/_code\/plog\/content\/projects\/mask\/","fileInfo":{},"_recaptcha_resp":null,"_recaptcha_error":null,"_comment_error":null},"cat":{"name":"rojects","url":"projects\/"},"media":"media\/\/rojects\/mask\/","thumb":"http:\/\/portfolio.quilime.com\/2008\/mask\/thumb.png","url":"\/rojects\/mask"}]}
\ No newline at end of file
+{"entries":[{"config":{"date":"feb 20 2012","title":"temple","tags":"photo"},"title":"temple","filename":"temple","path":"\/Users\/gdunne\/_code\/plog\/content\/log\/temple","fileInfo":{},"timestamp":"1329724800","tags":["photo"],"content":"<p><a href=\"http:\/\/www.flickr.com\/photos\/quilime\/6914577153\/sizes\/z\/in\/photostream\/\">\n    <img src=\"http:\/\/farm8.staticflickr.com\/7053\/6914577153_4c2b7d8a1a_z.jpg\">\n<\/a><\/p>\n","comments_enabled":false,"comments":{"comments":[],"comments_loc":"\/Users\/gdunne\/_code\/plogcomments\/\/Users\/gdunne\/_code\/plog\/content\/log\/temple\/","fileInfo":{},"_recaptcha_resp":null,"_recaptcha_error":null,"_comment_error":null},"cat":{"name":"og","url":"log\/"},"media":"media\/\/og\/temple\/","thumb":"media\/\/og\/temple\/thumb.png","url":"\/og\/temple","edit_url":"\/edit\/\/og\/temple"},{"config":{"title":"Water Is Life","date":"Oct 23 2011 06:04:38 PM","tags":"water photo"},"title":"Water Is Life","filename":"water_is_life","path":"\/Users\/gdunne\/_code\/plog\/content\/log\/water_is_life","fileInfo":{},"timestamp":"1319418278","tags":["water","photo"],"content":"<p><a href=\"http:\/\/www.flickr.com\/photos\/quilime\/6266458764\/sizes\/l\/in\/photostream\/\"><img src=\"http:\/\/farm7.staticflickr.com\/6034\/6266458764_6f71bd0a7e_z.jpg\"><\/a><\/p>\n\n<p>near Quotar Minar in Dadabari.<\/p>\n","comments_enabled":false,"comments":{"comments":[],"comments_loc":"\/Users\/gdunne\/_code\/plogcomments\/\/Users\/gdunne\/_code\/plog\/content\/log\/water_is_life\/","fileInfo":{},"_recaptcha_resp":null,"_recaptcha_error":null,"_comment_error":null},"cat":{"name":"og","url":"log\/"},"media":"media\/\/og\/water_is_life\/","thumb":"media\/\/og\/water_is_life\/thumb.png","url":"\/og\/water_is_life","edit_url":"\/edit\/\/og\/water_is_life"},{"config":{"title":"islands","date":"Oct 05 2011, 03:53:55 PM","tags":"writing quote"},"title":"islands","filename":"islands","path":"\/Users\/gdunne\/_code\/plog\/content\/log\/islands","fileInfo":{},"timestamp":"1317855235","tags":["writing","quote"],"content":"<blockquote>\n  <p>Imagine that every man's mind is an island, surrounded by ocean. Each seems isolated, yet in reality all are linked by the bedrock from which they spring. If the ocean were to vanish, that would be the end of the islands. They would all be part of one continent, but their individuality would be gone.<\/p>\n  \n  <p>&mdash;\"The Inspector\" Overlord. <u>Childhoods End<\/u>, Arthur C. Clark. p.176<\/p>\n<\/blockquote>\n","comments_enabled":false,"comments":{"comments":[],"comments_loc":"\/Users\/gdunne\/_code\/plogcomments\/\/Users\/gdunne\/_code\/plog\/content\/log\/islands\/","fileInfo":{},"_recaptcha_resp":null,"_recaptcha_error":null,"_comment_error":null},"cat":{"name":"og","url":"log\/"},"media":"media\/\/og\/islands\/","thumb":"media\/\/og\/islands\/thumb.png","url":"\/og\/islands","edit_url":"\/edit\/\/og\/islands"},{"config":{"title":"childhoods end","date":"Oct 05 2011, 03:17:57 PM","tags":"india quote"},"title":"childhoods end","filename":"overlords","path":"\/Users\/gdunne\/_code\/plog\/content\/log\/overlords","fileInfo":{},"timestamp":"1317853077","tags":["india","quote"],"content":"<blockquote>\n  <p>The case of India is particularly instructive. The main difference between us and the British in India was that they had no real motives for going there\u2014no conscious objectives, that is, except such trivial and temporary ones as trade or hostility to other European powers. They found themselves possessors of an empire before they knew what to do with it, and were never really happy until they had got rid of it again.<\/p>\n  \n  <p>\u2014\"The Inspector\" Overlord. <u>Childhoods End<\/u>, Arthur C. Clark. p.161<\/p>\n<\/blockquote>\n","comments_enabled":false,"comments":{"comments":[],"comments_loc":"\/Users\/gdunne\/_code\/plogcomments\/\/Users\/gdunne\/_code\/plog\/content\/log\/overlords\/","fileInfo":{},"_recaptcha_resp":null,"_recaptcha_error":null,"_comment_error":null},"cat":{"name":"og","url":"log\/"},"media":"media\/\/og\/overlords\/","thumb":"media\/\/og\/overlords\/thumb.png","url":"\/og\/overlords","edit_url":"\/edit\/\/og\/overlords"},{"config":{"title":"prism","date":"2007-08-23","thumb":"http:\/\/portfolio.quilime.com\/2008\/prism\/thumb.png","tags":"prism painting"},"title":"prism","filename":"prism","path":"\/Users\/gdunne\/_code\/plog\/content\/projects\/prism","fileInfo":{},"timestamp":"1187852400","tags":["prism","painting"],"content":"<p><img src=\"http:\/\/portfolio.quilime.com\/2008\/prism\/3.jpg\" \/><\/p>\n\n<p>oil on canvas. 4' x 3'<\/p>\n","comments_enabled":false,"comments":{"comments":[],"comments_loc":"\/Users\/gdunne\/_code\/plogcomments\/\/Users\/gdunne\/_code\/plog\/content\/projects\/prism\/","fileInfo":{},"_recaptcha_resp":null,"_recaptcha_error":null,"_comment_error":null},"cat":{"name":"rojects","url":"projects\/"},"media":"media\/\/rojects\/prism\/","thumb":"http:\/\/portfolio.quilime.com\/2008\/prism\/thumb.png","url":"\/rojects\/prism","edit_url":"\/edit\/\/rojects\/prism"},{"config":{"title":"mask","date":"2007-07-02","thumb":"http:\/\/portfolio.quilime.com\/2008\/mask\/thumb.png","tags":"mask painting"},"title":"mask","filename":"mask","path":"\/Users\/gdunne\/_code\/plog\/content\/projects\/mask","fileInfo":{},"timestamp":"1183359600","tags":["mask","painting"],"content":"<p><img src=\"http:\/\/portfolio.quilime.com\/2008\/mask\/mask.jpg\" \/><\/p>\n\n<p>graphite on plywood. 12\" x 12\"<\/p>\n","comments_enabled":false,"comments":{"comments":[],"comments_loc":"\/Users\/gdunne\/_code\/plogcomments\/\/Users\/gdunne\/_code\/plog\/content\/projects\/mask\/","fileInfo":{},"_recaptcha_resp":null,"_recaptcha_error":null,"_comment_error":null},"cat":{"name":"rojects","url":"projects\/"},"media":"media\/\/rojects\/mask\/","thumb":"http:\/\/portfolio.quilime.com\/2008\/mask\/thumb.png","url":"\/rojects\/mask","edit_url":"\/edit\/\/rojects\/mask"}]}
\ No newline at end of file
index 96ae72a42e0e51da4f4fea3140526177c3ba3aa2..1690079466be2c4dbe2fd611559839aab71aa4a8 100644 (file)
@@ -1 +1 @@
-{"entries":[{"config":{"date":"feb 20 2012","title":"temple","tags":"photo"},"title":"temple","filename":"temple","path":"\/Users\/gdunne\/_code\/plog\/content\/log\/temple","fileInfo":{},"timestamp":"1329724800","tags":["photo"],"content":"<p><a href=\"http:\/\/www.flickr.com\/photos\/quilime\/6914577153\/sizes\/z\/in\/photostream\/\">\n    <img src=\"http:\/\/farm8.staticflickr.com\/7053\/6914577153_4c2b7d8a1a_z.jpg\">\n<\/a><\/p>\n","comments_enabled":false,"comments":{"comments":[],"comments_loc":"\/Users\/gdunne\/_code\/plogcomments\/\/Users\/gdunne\/_code\/plog\/content\/log\/temple\/","fileInfo":{},"_recaptcha_resp":null,"_recaptcha_error":null,"_comment_error":null},"cat":{"name":"log","url":"\/log\/"},"media":"media\/\/log\/temple\/","thumb":"media\/\/log\/temple\/thumb.png","url":"\/log\/temple"},{"config":{"title":"Water Is Life","date":"Oct 23 2011 06:04:38 PM","tags":"water photo"},"title":"Water Is Life","filename":"water_is_life","path":"\/Users\/gdunne\/_code\/plog\/content\/log\/water_is_life","fileInfo":{},"timestamp":"1319418278","tags":["water","photo"],"content":"<p><a href=\"http:\/\/www.flickr.com\/photos\/quilime\/6266458764\/sizes\/l\/in\/photostream\/\"><img src=\"http:\/\/farm7.staticflickr.com\/6034\/6266458764_6f71bd0a7e_z.jpg\"><\/a><\/p>\n\n<p>near Quotar Minar in Dadabari.<\/p>\n","comments_enabled":false,"comments":{"comments":[],"comments_loc":"\/Users\/gdunne\/_code\/plogcomments\/\/Users\/gdunne\/_code\/plog\/content\/log\/water_is_life\/","fileInfo":{},"_recaptcha_resp":null,"_recaptcha_error":null,"_comment_error":null},"cat":{"name":"log","url":"\/log\/"},"media":"media\/\/log\/water_is_life\/","thumb":"media\/\/log\/water_is_life\/thumb.png","url":"\/log\/water_is_life"},{"config":{"title":"islands","date":"Oct 05 2011, 03:53:55 PM","tags":"writing quote"},"title":"islands","filename":"islands","path":"\/Users\/gdunne\/_code\/plog\/content\/log\/islands","fileInfo":{},"timestamp":"1317855235","tags":["writing","quote"],"content":"<blockquote>\n  <p>Imagine that every man's mind is an island, surrounded by ocean. Each seems isolated, yet in reality all are linked by the bedrock from which they spring. If the ocean were to vanish, that would be the end of the islands. They would all be part of one continent, but their individuality would be gone.<\/p>\n  \n  <p>&mdash;\"The Inspector\" Overlord. <u>Childhoods End<\/u>, Arthur C. Clark. p.176<\/p>\n<\/blockquote>\n","comments_enabled":false,"comments":{"comments":[],"comments_loc":"\/Users\/gdunne\/_code\/plogcomments\/\/Users\/gdunne\/_code\/plog\/content\/log\/islands\/","fileInfo":{},"_recaptcha_resp":null,"_recaptcha_error":null,"_comment_error":null},"cat":{"name":"log","url":"\/log\/"},"media":"media\/\/log\/islands\/","thumb":"media\/\/log\/islands\/thumb.png","url":"\/log\/islands"},{"config":{"title":"childhoods end","date":"Oct 05 2011, 03:17:57 PM","tags":"india quote"},"title":"childhoods end","filename":"overlords","path":"\/Users\/gdunne\/_code\/plog\/content\/log\/overlords","fileInfo":{},"timestamp":"1317853077","tags":["india","quote"],"content":"<blockquote>\n  <p>The case of India is particularly instructive. The main difference between us and the British in India was that they had no real motives for going there\u2014no conscious objectives, that is, except such trivial and temporary ones as trade or hostility to other European powers. They found themselves possessors of an empire before they knew what to do with it, and were never really happy until they had got rid of it again.<\/p>\n  \n  <p>\u2014\"The Inspector\" Overlord. <u>Childhoods End<\/u>, Arthur C. Clark. p.161<\/p>\n<\/blockquote>\n","comments_enabled":false,"comments":{"comments":[],"comments_loc":"\/Users\/gdunne\/_code\/plogcomments\/\/Users\/gdunne\/_code\/plog\/content\/log\/overlords\/","fileInfo":{},"_recaptcha_resp":null,"_recaptcha_error":null,"_comment_error":null},"cat":{"name":"log","url":"\/log\/"},"media":"media\/\/log\/overlords\/","thumb":"media\/\/log\/overlords\/thumb.png","url":"\/log\/overlords"}]}
\ No newline at end of file
+{"entries":[{"config":{"date":"feb 20 2012","title":"temple","tags":"photo"},"title":"temple","filename":"temple","path":"\/Users\/gdunne\/_code\/plog\/content\/log\/temple","fileInfo":{},"timestamp":"1329724800","tags":["photo"],"content":"<p><a href=\"http:\/\/www.flickr.com\/photos\/quilime\/6914577153\/sizes\/z\/in\/photostream\/\">\n    <img src=\"http:\/\/farm8.staticflickr.com\/7053\/6914577153_4c2b7d8a1a_z.jpg\">\n<\/a><\/p>\n","comments_enabled":false,"comments":{"comments":[],"comments_loc":"\/Users\/gdunne\/_code\/plogcomments\/\/Users\/gdunne\/_code\/plog\/content\/log\/temple\/","fileInfo":{},"_recaptcha_resp":null,"_recaptcha_error":null,"_comment_error":null},"cat":{"name":"log","url":"\/log\/"},"media":"media\/\/log\/temple\/","thumb":"media\/\/log\/temple\/thumb.png","url":"\/log\/temple","edit_url":"\/edit\/\/log\/temple"},{"config":{"title":"Water Is Life","date":"Oct 23 2011 06:04:38 PM","tags":"water photo"},"title":"Water Is Life","filename":"water_is_life","path":"\/Users\/gdunne\/_code\/plog\/content\/log\/water_is_life","fileInfo":{},"timestamp":"1319418278","tags":["water","photo"],"content":"<p><a href=\"http:\/\/www.flickr.com\/photos\/quilime\/6266458764\/sizes\/l\/in\/photostream\/\"><img src=\"http:\/\/farm7.staticflickr.com\/6034\/6266458764_6f71bd0a7e_z.jpg\"><\/a><\/p>\n\n<p>near Quotar Minar in Dadabari.<\/p>\n","comments_enabled":false,"comments":{"comments":[],"comments_loc":"\/Users\/gdunne\/_code\/plogcomments\/\/Users\/gdunne\/_code\/plog\/content\/log\/water_is_life\/","fileInfo":{},"_recaptcha_resp":null,"_recaptcha_error":null,"_comment_error":null},"cat":{"name":"log","url":"\/log\/"},"media":"media\/\/log\/water_is_life\/","thumb":"media\/\/log\/water_is_life\/thumb.png","url":"\/log\/water_is_life","edit_url":"\/edit\/\/log\/water_is_life"},{"config":{"title":"islands","date":"Oct 05 2011, 03:53:55 PM","tags":"writing quote"},"title":"islands","filename":"islands","path":"\/Users\/gdunne\/_code\/plog\/content\/log\/islands","fileInfo":{},"timestamp":"1317855235","tags":["writing","quote"],"content":"<blockquote>\n  <p>Imagine that every man's mind is an island, surrounded by ocean. Each seems isolated, yet in reality all are linked by the bedrock from which they spring. If the ocean were to vanish, that would be the end of the islands. They would all be part of one continent, but their individuality would be gone.<\/p>\n  \n  <p>&mdash;\"The Inspector\" Overlord. <u>Childhoods End<\/u>, Arthur C. Clark. p.176<\/p>\n<\/blockquote>\n","comments_enabled":false,"comments":{"comments":[],"comments_loc":"\/Users\/gdunne\/_code\/plogcomments\/\/Users\/gdunne\/_code\/plog\/content\/log\/islands\/","fileInfo":{},"_recaptcha_resp":null,"_recaptcha_error":null,"_comment_error":null},"cat":{"name":"log","url":"\/log\/"},"media":"media\/\/log\/islands\/","thumb":"media\/\/log\/islands\/thumb.png","url":"\/log\/islands","edit_url":"\/edit\/\/log\/islands"},{"config":{"title":"childhoods end","date":"Oct 05 2011, 03:17:57 PM","tags":"india quote"},"title":"childhoods end","filename":"overlords","path":"\/Users\/gdunne\/_code\/plog\/content\/log\/overlords","fileInfo":{},"timestamp":"1317853077","tags":["india","quote"],"content":"<blockquote>\n  <p>The case of India is particularly instructive. The main difference between us and the British in India was that they had no real motives for going there\u2014no conscious objectives, that is, except such trivial and temporary ones as trade or hostility to other European powers. They found themselves possessors of an empire before they knew what to do with it, and were never really happy until they had got rid of it again.<\/p>\n  \n  <p>\u2014\"The Inspector\" Overlord. <u>Childhoods End<\/u>, Arthur C. Clark. p.161<\/p>\n<\/blockquote>\n","comments_enabled":false,"comments":{"comments":[],"comments_loc":"\/Users\/gdunne\/_code\/plogcomments\/\/Users\/gdunne\/_code\/plog\/content\/log\/overlords\/","fileInfo":{},"_recaptcha_resp":null,"_recaptcha_error":null,"_comment_error":null},"cat":{"name":"log","url":"\/log\/"},"media":"media\/\/log\/overlords\/","thumb":"media\/\/log\/overlords\/thumb.png","url":"\/log\/overlords","edit_url":"\/edit\/\/log\/overlords"}]}
\ No newline at end of file
index acde96c697ec957a044a581033374ce4811008c9..b475989031509a0edb0adaa5c244def3065d0b62 100644 (file)
@@ -1 +1 @@
-{"entries":[{"config":{"title":"prism","date":"2007-08-23","thumb":"http:\/\/portfolio.quilime.com\/2008\/prism\/thumb.png","tags":"prism painting"},"title":"prism","filename":"prism","path":"\/Users\/gdunne\/_code\/plog\/content\/projects\/prism","fileInfo":{},"timestamp":"1187852400","tags":["prism","painting"],"content":"<p><img src=\"http:\/\/portfolio.quilime.com\/2008\/prism\/3.jpg\" \/><\/p>\n\n<p>oil on canvas. 4' x 3'<\/p>\n","comments_enabled":false,"comments":{"comments":[],"comments_loc":"\/Users\/gdunne\/_code\/plogcomments\/\/Users\/gdunne\/_code\/plog\/content\/projects\/prism\/","fileInfo":{},"_recaptcha_resp":null,"_recaptcha_error":null,"_comment_error":null},"cat":{"name":"projects","url":"\/projects\/"},"media":"media\/\/projects\/prism\/","thumb":"http:\/\/portfolio.quilime.com\/2008\/prism\/thumb.png","url":"\/projects\/prism"},{"config":{"title":"mask","date":"2007-07-02","thumb":"http:\/\/portfolio.quilime.com\/2008\/mask\/thumb.png","tags":"mask painting"},"title":"mask","filename":"mask","path":"\/Users\/gdunne\/_code\/plog\/content\/projects\/mask","fileInfo":{},"timestamp":"1183359600","tags":["mask","painting"],"content":"<p><img src=\"http:\/\/portfolio.quilime.com\/2008\/mask\/mask.jpg\" \/><\/p>\n\n<p>graphite on plywood. 12\" x 12\"<\/p>\n","comments_enabled":false,"comments":{"comments":[],"comments_loc":"\/Users\/gdunne\/_code\/plogcomments\/\/Users\/gdunne\/_code\/plog\/content\/projects\/mask\/","fileInfo":{},"_recaptcha_resp":null,"_recaptcha_error":null,"_comment_error":null},"cat":{"name":"projects","url":"\/projects\/"},"media":"media\/\/projects\/mask\/","thumb":"http:\/\/portfolio.quilime.com\/2008\/mask\/thumb.png","url":"\/projects\/mask"}]}
\ No newline at end of file
+{"entries":[{"config":{"title":"prism","date":"2007-08-23","thumb":"http:\/\/portfolio.quilime.com\/2008\/prism\/thumb.png","tags":"prism painting"},"title":"prism","filename":"prism","path":"\/Users\/gdunne\/_code\/plog\/content\/projects\/prism","fileInfo":{},"timestamp":"1187852400","tags":["prism","painting"],"content":"<p><img src=\"http:\/\/portfolio.quilime.com\/2008\/prism\/3.jpg\" \/><\/p>\n\n<p>oil on canvas. 4' x 3'<\/p>\n","comments_enabled":false,"comments":{"comments":[],"comments_loc":"\/Users\/gdunne\/_code\/plogcomments\/\/Users\/gdunne\/_code\/plog\/content\/projects\/prism\/","fileInfo":{},"_recaptcha_resp":null,"_recaptcha_error":null,"_comment_error":null},"cat":{"name":"projects","url":"\/projects\/"},"media":"media\/\/projects\/prism\/","thumb":"http:\/\/portfolio.quilime.com\/2008\/prism\/thumb.png","url":"\/projects\/prism","edit_url":"\/edit\/\/projects\/prism"},{"config":{"title":"mask","date":"2007-07-02","thumb":"http:\/\/portfolio.quilime.com\/2008\/mask\/thumb.png","tags":"mask painting"},"title":"mask","filename":"mask","path":"\/Users\/gdunne\/_code\/plog\/content\/projects\/mask","fileInfo":{},"timestamp":"1183359600","tags":["mask","painting"],"content":"<p><img src=\"http:\/\/portfolio.quilime.com\/2008\/mask\/mask.jpg\" \/><\/p>\n\n<p>graphite on plywood. 12\" x 12\"<\/p>\n","comments_enabled":false,"comments":{"comments":[],"comments_loc":"\/Users\/gdunne\/_code\/plogcomments\/\/Users\/gdunne\/_code\/plog\/content\/projects\/mask\/","fileInfo":{},"_recaptcha_resp":null,"_recaptcha_error":null,"_comment_error":null},"cat":{"name":"projects","url":"\/projects\/"},"media":"media\/\/projects\/mask\/","thumb":"http:\/\/portfolio.quilime.com\/2008\/mask\/thumb.png","url":"\/projects\/mask","edit_url":"\/edit\/\/projects\/mask"}]}
\ No newline at end of file
index fba828c2f5dcfd25b9488da24ec752715ec97c5a..1faac9f9015afe758bedafcbea96d0abc13aba9b 100644 (file)
@@ -11,6 +11,7 @@ limit       = 15
 ; http://php.net/manual/en/function.date.php
 date_format = M d Y, h:i:s A T
 
+
 [local]
 ; server locations and file names
 web_root    = /
@@ -27,33 +28,16 @@ data_file   = data.json
 tags_file   = tags.json
 
 
-
 [delimiters]
 ; various delimiters
 config_delim = --
 more_delim   = "<!--more-->"
 title_delim  = " &mdash; "
 
+
 [ignores]
 ; file ignore patterns
 file_ignores[] = config
 file_ignores[] = .DS_Store
 
 
-
-
-; define ('SITE_TITLE',        'quilime');
-
-; define ('LOCAL_ROOT',        '/home/quilime/quilime.com/');
-; define ('WEB_ROOT',          '/');
-; define ('CONTENT_DIR',       'content/');
-; define ('COMMENTS_DIR',      'comments/');
-; define ('TEMPLATE_DIR',      'templates/');
-; define ('PAGE_DIR',          'pages/');
-; define ('CONFIG_DELIMITER',  '--');
-; define ('CONFIG_FILE',       'config');
-; define ('MORE_DELIM',        '<!--more-->');
-; define ('TITLE_DELIMITER',   ' &mdash; ');
-; define ('ENTRY_DATE_FORMAT', 'M d Y, h:i:s A T');
-
-; $_FILE_IGNORES = array(CONFIG_FILE, '.DS_Store');
index 4d8a90dcbaa8abd2dfe5a92fac4a6001f1ce46fa..24ec42f146de6ee907afac45d65190e8e2a1e51e 100644 (file)
@@ -249,48 +249,12 @@ function parse_entry($fileInfo, $page = false)
     $file['path'] = $fileInfo->getRealPath();
     $file['media'] = MEDIA_DIR . '/' . ($page ? '' : substr($file['cat']['url'],1)) . $fileInfo->getFilename() . '/';
     $file['thumb'] = isset($file['config']['thumb']) ? $file['config']['thumb'] : MEDIA_DIR . '/' . substr($file['cat']['url'],1) . $fileInfo->getFilename() . '/thumb.png';
-    $file['url']   = WEB_ROOT . ($page ? '' : substr($file['cat']['url'],1)) . $fileInfo->getFilename();
-    $file['cat']    = (object) $file['cat'];
+    $file['url'] = WEB_ROOT . ($page ? '' : substr($file['cat']['url'],1)) . $fileInfo->getFilename();
+    $file['edit_url'] = WEB_ROOT . 'edit/' . $file['url'];
+    $file['cat'] = (object) $file['cat'];
     $file['config'] = (object) $file['config'];
 
-    return (object) $file;  
-
-
-      /*
-    $f['title'] = isset($f['config']['title']) ? $f['config']['title'] : $fileInfo->getFilename() ;
-    $f['config']['date'] = isset($f['config']['date']) ? $f['config']['date'] : null;
-    $f['timestamp'] = $f['config']['date'] ? date('U', strtotime( $f['config']['date'])) : $fileInfo->getCTime();
-    $f['tags'] = isset($f['config']['tags']) ? explode(" ", $f['config']['tags']) : null;
-    $f['content'] = Markdown($content);
-
-    $f['comments_enabled'] = isset($f['config']['comments']) && $f['config']['comments'];
-    $f['comments'] = new Comments($fileInfo);
-
-    if ($passed_more)
-      $f['content_short'] = Markdown($content_short);
-
-    $cat = clean_slashes(str_replace(LOCAL_ROOT . CONTENT_DIR, "", $fileInfo->getPath()));
-    $clean_path = str_replace(LOCAL_ROOT . CONTENT_DIR, "", clean_slashes($fileInfo->getPath()));
-
-    //$f['cat'] = $page ? null : array('name' => $clean_path, 'url' => $clean_path );
-    $f['cat'] = clean_slashes(str_replace(LOCAL_ROOT . CONTENT_DIR, "", $fileInfo->getPath()));
-
-    $f['path'] = $fileInfo->getRealPath();
-    $f['url'] = ($page ? WEB_ROOT : WEB_ROOT . $f['cat']['url'] . '/' ) . $fileInfo->getFilename();
-
-    echo $f['url'];
-    echo '<br/>';
-
-    if (!CLEAN_URLS) {
-        $f['cat']['url'] = WEB_ROOT . '?p=' . $f['cat']['url'];
-        $f['url'] = WEB_ROOT . '?p=' . $f['url'];
-    }
-
-    $f['cat']    = (object) $f['cat'];
-    $f['config'] = (object) $f['config'];    
-
-    return (object) $f;
-    */
+    return (object) $file;
 }
 
 function get_comments_location ( &$fileInfo ) {
index d2ced5b2add0b8a71d62325632b3f3e50aa27bcf..d9524417b03872ba381f675d225bc955d5a45b00 100644 (file)
@@ -40,8 +40,6 @@ class Model
 
        function parse_request( $request )
        {
-
-
            # if multiple (multiple files in CONTENT dir)
            if ($this->is_multiple()) {
                        # check if config file exists in dir
@@ -66,7 +64,6 @@ class Model
                        if ($_SERVER['REQUEST_METHOD'] == 'POST') 
                                $this->process_post_request( $this->entry );
 
-
                        // prev/next
                        /*
                        $entries = get_entries( $request['dirname'] );
@@ -93,7 +90,9 @@ class Model
 
                # not found
                else {
+
                $this->template = '404.html.tpl';
+
                }
        }
 
index 9de6c646988053910979d7550cd633c531cc7c4d..44361d7f2dc7c9946982d422cb57305a0fcabec3 100644 (file)
@@ -44,8 +44,10 @@ class View
        public function render( $template, $response_format = 'html' )
        {
                extract( $this->_tpl_vars );
+
         if (!is_file($this->template_dir.'/'.$template))
             $template = $this->default_template.'.'.$response_format.'.tpl';
+
                include( $this->template_dir.'/'.$template );
        }
 
index bf03865164d9e53d05dc44ef52309ed794aee9b1..6a53e6c6fbc9eb7d335162dd62dd7d564bfb7f53 100755 (executable)
@@ -1,3 +1,6 @@
 title = about\r
+ee = \r
 --\r
-Born, lives, and works in the San Francisco Bay Area
\ No newline at end of file
+\r
+This website is a portfolio and archive of my work.\r
+\r
index 5b77e3c65dcf8a95ee1bec7442f54890cfb2339f..3997433c6367d27f885d6fd093d153f8d83dd764 100755 (executable)
@@ -1,9 +1,12 @@
 --
 
-
-1242 Market St, FL 2  
+Gabriel Dunne  
+1242 Market St
+Floor 2  
 San Francisco, CA USA 94102  
-studio@gabrieldunne.com   
+
+studio at gabrieldunne dot com   
+
 \+ 1 415 493 8496
 
 <br />
diff --git a/pages/photo b/pages/photo
deleted file mode 100755 (executable)
index f1894c0..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-title = photo
-template = photo
---
index 516adaf8077c6f8006fa73ce32b02ef17ea2027c..7281930a0e130b506f374a8ba30e810494160b05 100644 (file)
 
     <? $this->include_template('nav.html.tpl') ?>
 
-<? if ($is_edit) $this->include_template('edit.html.tpl'); ?>
+<? if (EDIT) $this->include_template('edit.html.tpl'); ?>
 
 <div id="content">
-    
+
     <? if (isset($entry->content)): ?>
         <? eval('?>' . $entry->content); ?>
-        <? if (EDIT) : ?>
-        <a class="edit_button" href="<?=WEB_ROOT?>edit/<?=$entry->url?>">edit</a>
+
+        <? if (EDIT): ?>
+            <?=$this->edit_button;?>
         <? endif; ?>
+
     <? endif; ?>
 
     <? $entry = 0; foreach($entries as $entry): ?>
@@ -28,6 +30,7 @@
         $entry->content = $entry->content_short . '<br /><a class="more" href="' . $entry->url . '">more &rarr;</a><br /><br />';
 
     $this->include_template('entry.html.tpl', array('entry' => $entry));
+    
     ?>
     </div>
     <? endforeach; ?>
index 0a53e14c6f4cea65eaa03a462f2708822ab6e261..751ccde304f27e594c7902a803bb38a5ce46fce0 100644 (file)
@@ -1,10 +1,9 @@
 <div class="edit">
-    <? if ($entry): ?>
-    <? $fileContents = file_get_contents($entry->fileInfo); ?>
     <form action="" method="POST">
-    <textarea name="edited_file_contents"><?=$fileContents?></textarea>
-    <input type="button" onClick="window.location = '<?=$entry->url?>'"value="cancel">
-    <input type="submit" value="save">
+        <div class="ctrl">
+            <input type="button" onClick="window.location = '<?=$entry->url?>'"value="cancel">
+            <input type="submit" value="save">
+        </div>
+        <textarea name="edited_file_contents"><?=file_get_contents($entry->fileInfo);?></textarea>
     </form>
-    <? endif; ?>
 </div>
index 2e7323e5b1320943365329ef77b4fdd4df2761cb..d21b21055b83d5a135ccf22cb863a17e4de18795 100644 (file)
 <div class="metadata">
        <div class="date" title="<?=get_relative_time($entry->timestamp);?>"><?=date("Y/m/d", $entry->timestamp)?></div>
        <? if ($entry->tags) : ?>
-               tagged <span class="tags">
+               <span class="tags">
                <?
                for($i = 0; $i < sizeof($entry->tags); $i++) :
                        $tag = $entry->tags[$i];
-                       $li = '<a href="'.WEB_ROOT . 'tag/' . $tag . '">' . $tag . '</a>';
-                       if ($i !== 0)
-                               $li = ', ' . $li;
-                       echo $li;
+                       echo '<a href="' . WEB_ROOT . 'tag/' . $tag . '">#' . $tag . '</a>&nbsp;&nbsp;';
                endfor;
                ?>
                </span>
        <? endif; ?>
 </div>
 
-<? /*
+<? 
+/*
 
        <div class="metadata">
                <a href="/<?=$entry['url']?>">#</a>
@@ -34,7 +32,7 @@
                <a href="/<?=$entry['cat']['url'];?>">/<?=$entry['cat']['url'];?></a><? if ($entry['tags']) echo '<br/>' . implode(', ', $entry['tags']); ?>
        </div> 
 */
-       ?>
+?>
 
 <? if (isset($single) && $single) : ?>
        <div class="arrow" title="<?=$entry->cat->name?>">
@@ -56,4 +54,6 @@ if (isset($entry->is_single) && $entry->is_single && $entry->comments_enabled)
 <a class="edit_button" href="<?=WEB_ROOT?>edit<?=$entry->cat->url.$entry->filename?>">edit</a>
 <? endif; ?>
 
+
 </div>
+
index 3c75579cb9c9e19cce64052b80b6857a2944158c..58ce24d2d53007b2d7063311808f0261393931f1 100644 (file)
@@ -8,21 +8,17 @@
 </head>
 <body>
 
-    <? $this->include_template('nav.html.tpl') ?>
+<? $this->include_template('nav.html.tpl') ?>
 
-<? if ($is_edit) $this->include_template('edit.html.tpl'); ?>
+<? if (EDIT) $this->include_template('edit.html.tpl'); ?>
 
 <div id="content" class="page">
     
     <? eval('?>' . $entry->content); ?>
 
-    <? if (EDIT) : ?>
-    <a class="edit_button" href="<?=WEB_ROOT?>edit/<?=$entry->filename?>">edit</a>
-    <? endif; ?>
-
 </div>
 
-    <? $this->include_template('footer.html.tpl') ?>
+<? $this->include_template('footer.html.tpl') ?>
 
 </body>
 </html>
index e8f9dd832317dfc2db2448dfa32b8f33828e45bf..67308e853efba80f1788b65a6e513bad074f8afd 100644 (file)
@@ -10,7 +10,7 @@
 
     <? $this->include_template('nav.html.tpl') ?>
 
-    <? if ($is_edit) $this->include_template('edit.html.tpl'); ?>
+    <? if (EDIT) $this->include_template('edit.html.tpl'); ?>
 
        <div id="content" class="single entry">
            <div class="entry">