]> git.quilime.com - plog.git/commitdiff
Yeup
authorGabriel Dunne <gdunne@quilime.com>
Tue, 18 Jun 2013 02:30:46 +0000 (19:30 -0700)
committerGabriel Dunne <gdunne@quilime.com>
Tue, 18 Jun 2013 02:30:46 +0000 (19:30 -0700)
css/style.css
lib/model.php
pages/cv [moved from pages/bio with 96% similarity]
pages/projects [new file with mode: 0644]
templates/all.html.tpl
templates/index.html.tpl

index 4c65d3b1714fc2b7c3bde04a0d0900b101e57d73..7f41147b168db7e9772861804a9aa4c3ac88f454 100644 (file)
@@ -235,13 +235,24 @@ table, td, tr {
   margin-bottom:0.25em;
   /*margin-bottom:0.3em;*/
 }
+.entries.projects.index li strong {
+  display:none;
+}
+.entries.projects.index li:hover strong {
+  display:inherit;
+}
 .entries.projects.tagged li {
   padding-bottom:3em;
   height:350px;
 }
+.entries.projects.tagged li strong {
+  display:inherit;
+}
 .entries.projects.featured li {
   height:200px;
 }
+
+
 .entries.projects ul.tags li {
   height:1.5em;
   margin:0;
index e897ff842324bd2492770a263afc47e9095f2a44..5094d2e575e88b4063ff11b94ca2799ec257f5b5 100644 (file)
@@ -21,9 +21,8 @@ class Model
        {
                $this->request = $req;
 
-               if (EDIT) {
-                       if ($_SERVER['REQUEST_METHOD'] == 'POST') 
-                               $this->process_edit_post_request();
+               if (EDIT && $_SERVER['REQUEST_METHOD'] == 'POST') {
+                       $this->process_edit_post_request();
                }
 
                // // tags
@@ -167,7 +166,7 @@ class Model
                        if (!is_writable( $this->get_filename() )) {
                            throw new Exception('Error editing file. Permissions?');
                        }                       
-                       $fp = fopen( $this->get_filename(), 'w');
+                       $fp = fopen( $this->get_filename() . '/_config', 'w');
                        if ($fp) {
                            fwrite($fp, $_POST['edited_file_contents']);
                            fclose($fp);
similarity index 96%
rename from pages/bio
rename to pages/cv
index ca95c626f4de54947b7bc59e357ad977b704582f..0fde03233e0cb8b8c3949096bc9f49c97583547d 100755 (executable)
--- a/pages/bio
+++ b/pages/cv
@@ -1,5 +1,5 @@
 template = page\r
-title = bio\r
+title = c/v\r
 --\r
 <div style="float:right;display:none;">\r
 <img src="http://media.quilime.com/files/img/IMG_1881.jpg" />\r
diff --git a/pages/projects b/pages/projects
new file mode 100644 (file)
index 0000000..35838e8
--- /dev/null
@@ -0,0 +1,4 @@
+template = all
+title = all projects
+--
+projects
index 4a1948687351d2a06840c55fe52696300a45eb89..c4a3320dcc3e364b919c3004bd9b0d6f21787b3b 100644 (file)
                 <br />
                 <strong><?=$entry->title;?></strong>
                 </a>
-                <br />
+<!--                 <br />
                 &mdash;
                 <br />
                 <ul class="tags">
                     <? for($i = 0; $i < sizeof($entry->tags); $i++) : $tag = $entry->tags[$i]; ?>
                         <li class="tag"><a href="<?=WEB_ROOT.'tag/'.$tag?>"><?=$tag?></a></li>
                     <? endfor; ?>
-                </ul>                
+                </ul>     -->            
         </li>
     <? endforeach; ?>
     </ul>
index e8ea1c0c51890e7e1a8a784f8d5a9cb514d2f2e0..49668d453ebf9c7d62820c3fef840bbabaf82de7 100644 (file)
@@ -8,7 +8,7 @@
 <? $this->include_template('nav.html.tpl', array('index' => true)) ?>
 
 <div id="content">
-    <ul class="entries projects <?=isset($tag)&&$tag!==""?'tagged':''; ?> <? if ($entry->config->show_featured && !isset($tag)): ?>featured<? endif;?>">
+    <ul class="entries index projects <?=isset($tag)&&$tag!==""?'tagged':''; ?> <? if ($entry->config->show_featured && !isset($tag)): ?>featured<? endif;?>">
     <? foreach($entries as $entry): ?>
         <li class="<?=$entry->cat->name?>">
             <a href="<?=$entry->url;?>">