]> git.quilime.com - plog_bk.git/commitdiff
refreshed with new css
authorGabriel Dunne <quilime@monkey.dreamhost.com>
Mon, 14 Dec 2009 06:05:34 +0000 (22:05 -0800)
committerGabriel Dunne <quilime@monkey.dreamhost.com>
Mon, 14 Dec 2009 06:05:34 +0000 (22:05 -0800)
lib/config
templates/agg.html [new file with mode: 0644]
templates/code.html [new file with mode: 0644]
templates/contact.html [new file with mode: 0644]
templates/img.html [new file with mode: 0644]
templates/links.html
templates/log.html [new file with mode: 0644]
templates/nav.html
templates/projects.html

index 90ff57209b3ecbb80705aebe644f1e62dff09694..01cbcf461ad6bdb97dc27c56838325a0b81a4ccd 100644 (file)
@@ -1,4 +1,4 @@
-LOCAL_ROOT      = /home/quilime/dev.gabrieldunne.com/
+LOCAL_ROOT      = /home/quilime/quilime.com/
 CONTENT_DIR     = content/
 TEMPLATE_DIR    = templates/
-SITE_TITLE      = plog
+SITE_TITLE      = quilime
diff --git a/templates/agg.html b/templates/agg.html
new file mode 100644 (file)
index 0000000..b02d1a4
--- /dev/null
@@ -0,0 +1,136 @@
+<html>
+
+<head>
+    
+    <?php include_template('header-src.html'); ?>
+    
+    <title><?php echo SITE_TITLE; ?> - aggregate</title>
+    
+    <link rel="alternate" type="application/rss+xml" title="aggregate" href="http://media.quilime.com/aggregate/?return=rss" />
+
+    
+</head>
+
+<body>
+    
+    <?php include_template('nav.html'); ?>
+
+    <div id="content">
+
+       <h1>aggregate</h1>
+       
+       <p>
+        visual content and links
+    </p>
+    
+    <table border="0" id="agg"><tr>
+        
+
+        <td valign="top" class="column">
+        <?php $agg = get_rss_feed('http://media.quilime.com/aggregate/index.php?return=rss'); ?>
+        <h2><a href="http://quilime.com/aggregate/">images</a></h2>
+        <ul class="image">
+
+        <?php 
+        $count = 8;
+        foreach($agg->channel->item as $item) :  
+        if ($count-- == 0) break;
+        ?>    
+        <li title="<?php echo $item->title; ?>">
+            <a href="<?php echo $item->link; ?>">
+                <img src="<?php echo $item->thumb; ?>">
+            </a>
+        </li>
+        <? endforeach; ?>  
+        </ul>
+        <p>
+            <a class="more" href="http://quilime.com/aggregate" title="via quilime.com/aggregate">more &rarr;</a>            
+        </p>
+
+        </td>
+
+
+<?php /*        
+        <td valign="top" class="column">
+        <?php $tube = get_rss_feed('http://gdata.youtube.com/feeds/base/users/kabr/favorites?alt=rss&v=2&orderby=published&client=ytapi-youtube-profile'); ?>
+        <h2><a href="http://www.youtube.com/profile?user=kabr&view=favorites">video </a></h2>
+        <ul class="video">
+        <?php 
+        $count = 11;
+        foreach($tube->channel->item as $tube) :  
+        if ($count-- == 0) break;
+        ?>    
+        <li title="<?php echo str_replace('"', '\'', $tube->title); ?>">
+            <? 
+            $url = $tube->link;
+            $pattern = '/v=(.+?)&/';
+            preg_match($pattern, $url, $matches);
+            $id = $matches[1];
+            ?>
+            <a href="<?php echo $tube->link; ?>">
+
+            <img src="http://i3.ytimg.com/vi/<?=$id?>/default.jpg" />
+            </a>
+        </li>
+        <? endforeach; ?>  
+        </ul>
+        <p>
+            <a class="more" href="http://www.youtube.com/profile?user=kabr&view=favorites" title="via youtube">more &rarr;</a>            
+        </p>
+        </td>
+*/ ?>
+        
+
+        
+
+
+        <td valign="top" class="column">
+        <?php  $feed = get_rss_feed('http://feeds.delicious.com/v2/rss/quilime?count=20'); ?>
+        <h2><a href="http://delicious.com/quilime/">bookmarks </a></h2>
+        <ul class="bookmarks">
+        <?php foreach($feed->channel->item as $item) : ?>
+        <li>
+            <a href="<?=$item->link?>"><?=$item->title?></a>
+            <br/>
+
+            <span class="desc"><?=$item->description;?></span>
+        </li>
+        <? endforeach; ?>       
+        </ul>
+        <p>
+            <a class="more" href="http://delicious.com/quilime/" title="via delicious">more &rarr;</a>            
+        </p>
+        </td>
+        
+        <? /*
+
+        <td valign="top" class="column">
+        <?php $read = get_rss_feed('http://www.google.com/reader/public/atom/user%2F10925293898931913532%2Fstate%2Fcom.google%2Fbroadcast'); ?>
+        <h2><a href="http://www.google.com/reader/shared/10925293898931913532">reader </a></h2>
+        <ul class="reader">
+        <?php foreach($read->entry as $item) :  ?>    
+        <li>
+            <a href="<?php echo $item->link['href']; ?>"><?php echo $item->title; ?></a>
+        </li>
+
+        <? endforeach; ?>  
+        </ul>
+        <p>
+            <a class="more" href="http://www.google.com/reader/shared/10925293898931913532" title="via google reader">more &rarr;</a>            
+        </p>
+        </td>
+        
+        */ 
+        ?>
+
+
+        
+
+        </tr></table>
+        
+    </div>
+
+    
+</body>
+
+</html>
\ No newline at end of file
diff --git a/templates/code.html b/templates/code.html
new file mode 100644 (file)
index 0000000..a2b495a
--- /dev/null
@@ -0,0 +1,110 @@
+<?php
+
+    $items = array();
+    $single = false;
+    
+    if (is_dir(CONTENT_DIR . $url_string) && !is_file(CONTENT_DIR . $url_string . '/config') ) {
+        list($items_list, $total) = get_content(basename($url_string));
+    }
+    else {
+        $config = parse_config(CONTENT_DIR . $url_string . '/config');
+        $items = $config;
+        $single = true;
+    }
+
+       $inline = isset($_GET['inline']) ? true : false;
+
+
+?>
+<html>
+
+<head>
+    <?php include_template('header-src.html'); ?>
+    <script src="/js/jquery-1.3.2.min.js"></script>
+    
+    <title><?php echo SITE_TITLE; ?> - code<?php if (sizeof($items) > 0 ) : ?>: <?echo strtolower($items['title']); ?> [<?php echo $items['medium']; ?>]<?php endif; ?></title>
+        
+</head>
+
+<body>
+    
+    <?php 
+        include_template('nav.html');         
+    ?>
+
+    <div id="content">
+
+        <?php if ($single) : ?>
+
+                   <h1><a href="/code/">code</a> / <?php echo $items['title']; ?>   <small class="medium">[<?php echo $items['medium']; ?>]</small></h1>
+
+               
+            <div class="content">
+                <?php 
+                    $base_dir = $items['base_dir'];
+                    include_once($items['content']); 
+                ?>
+            </div>
+                   
+       
+        <?php elseif ($inline): ?>
+
+            <h1>code (view <a class="func" href="/code/">list</a>)</h1>         
+            
+            <ul class="inline_content">
+            <?php foreach($items_list as $items): ?>
+                   <li>
+                       <h3>
+                           <a href="<?php echo $items['href']?>"><?php echo $items['title']; ?></a>
+                    <small class="medium">[<?php echo $items['medium']; ?>]</small>
+                    </h3>
+                    <div class="content">
+                    <?php 
+                        $base_dir = $items['base_dir'];
+                        include( $items['content'] ); 
+                    ?>
+                    </div>
+                </li>
+            <?  endforeach; ?>
+            </ul>        
+            
+            
+            
+
+        <?php else: ?>
+
+    
+
+            
+            <h1>code (view <a href="/code/?inline=1">inline</a>)</h1>    
+            
+           
+            <table class="archive" cellspacing="0" cellpadding="0">
+                <?php
+                $c = 1; 
+                foreach($items_list as $items): ?>
+                       <tr>
+                    <td style="text-align:right; padding-right:1em;">
+                        <small class="medium"><?php echo $items['medium']; ?></small>
+                    </td>
+                    <td>
+                                   <a onmouseout="$('.c_pop').hide();" onmouseover="$('.c_pop').hide(); $('#c_<?php echo $c; ?>').show();" href="<?php echo $items['href']?>"><?php echo $items['title']; ?></a>
+                        
+                        <div id="c_<?php echo $c; ?>" class="c_pop">
+                        <?php 
+                            $base_dir = $items['base_dir'];
+                            include( $items['content'] ); 
+                        ?>
+                        </div>
+                    </td>
+                    </tr>
+                <? $c++;  endforeach; ?>
+            </table>          
+
+        <?php endif; ?>
+        
+    </div>
+    
+</body>
+
+</html>
\ No newline at end of file
diff --git a/templates/contact.html b/templates/contact.html
new file mode 100644 (file)
index 0000000..c6ba9fe
--- /dev/null
@@ -0,0 +1,25 @@
+<html>
+
+<head>
+
+    <?php include_template('header-src.html'); ?>
+        
+    <title><?php echo SITE_TITLE ?> :contact</title>
+    
+</head>
+
+<body>
+    
+    <?php include_template('nav.html'); ?>
+
+    <div id="content">
+
+       <h1>contact</h1>
+        
+        email: <a href="mailto:gdunne@quilime.com">gdunne@quilime.com</a>
+        
+    </div>
+    
+</body>
+
+</html>
\ No newline at end of file
diff --git a/templates/img.html b/templates/img.html
new file mode 100644 (file)
index 0000000..c068eb5
--- /dev/null
@@ -0,0 +1,51 @@
+<?php 
+
+$img = get_rss_feed('http://api.flickr.com/services/feeds/photos_public.gne?id=28394478@N00&lang=en-us&format=rss_200'); 
+
+?>
+
+<html>
+
+<head>
+    
+    <?php include_template('header-src.html'); ?>
+        
+    <title><?php echo SITE_TITLE; ?> - img</title>
+    
+    <style>
+    
+        ul.image li { float:left; width:240px; height:240px; text-align:center; margin:0 50px 50px 0;}    
+        
+    </style>
+    
+</head>
+
+<body>
+    
+    <?php include_template('nav.html'); ?>
+
+    <div id="content">
+
+       <h1>img</h1>
+    
+        <ul class="image">
+        <?php foreach($img->channel->item as $item) : ?>
+        <li>
+            <?
+                $subject = $item->description;
+                $pattern = '/<a href="http:\/\/www\.flickr\.com\/photos\/quilime\/(.*) \/><\/a><\/p>/';
+                preg_match($pattern, substr($subject, 3), $matches, PREG_OFFSET_CAPTURE);
+                echo $matches[0][0];
+            ?>
+        </li>
+        <?endforeach; ?> 
+        
+        <div style="clear:both;"></div>
+        
+        <a href="http://www.flickr.com/photos/quilime/" title="via flickr" >via flickr &rarr;</a>            
+    </div>
+    
+</body>
+
+</html>
\ No newline at end of file
index 8a5151898da50bd88c18b7b18c7fc13ee32eb79a..63235adaa1b2db253bec72ddf4957fe38bf40158 100644 (file)
@@ -4,7 +4,7 @@
 
     <?php include_template('header-src.html'); ?>
     
-    <title><?php echo SITE_TITLE ?> :links</title>
+    <title><?php echo SITE_TITLE ?> links</title>
     
 </head>
 
             <?php 
             }
         
-           $links = array(
-                    array('http://quilime.com', 'quilime'),
-                    array('http://gabrieldunne.com', 'gabriel dunne')
-                    );    
+            $people = array(
+//                    array('http://aaronkoblin.com', 'aaron koblin'),
+                    array('http://universaloscillation.com', 'aaron meyers'),
+//                    array('http://ripevessel.com', 'adam roth'),
+//                    array('http://reas.com/', 'casey reas'),
+//                    array('http://cenizal.com', 'cj cenizal'),
+                    array('http://www.oddsympathy.com/', 'daniel massey'),
+                    array('http://davidrager.org', 'david rager'),
+                    array('http://fredericeyl.de', 'frédéric eyl'),
+                    array('http://dabkitsch.com/jml', 'jeff lubow'),
+                    array('http://jtnimoy.net', 'joshua nimoy'),
+                    array('http://keithpasko.com', 'keith pasko'),
+                    array('http://digitanalog.net', 'marc nimoy'),
+//                    array('http://makaga.com', 'matthew gale'),
+                    array('http://davidmichaeldunne.com', 'michael dunne'),                    
+                    array('http://mike.teczno.com', 'michal migurski'),
+                    array('http://mylinhtrieu.com', 'mylinh trieu'),
+//                    array('http://renataraksha.com', 'renata raksha'),
+                    array('http://onecm.com', 'ryan alexander'),
+                    array('http://pohflepp.com', 'sascha pohflepp'),
+                    array('http://ssherriff.com', 'stephanie sherriff'),
+//                    array('http://www.thegreeneyl.com/', 'the green eyl'),
+                    array('http://tom-carden.co.uk', 'tom carden')
+                    );
         ?>
     
-
-        <ul style="list-style-type:none;";>
-            <?php linklist($links); ?>
+    
+        <h2>me</h2>
+        <ul>
+            <li><a href="http://gabrieldunne.com">gabrieldunne.com</a></li>
+            <li><a href="http://delicious.com/quilime/">delicious</a></li>
+            <li><a href="http://flickr.com/photos/quilime/">flickr</a></li>
+            <li><a href="http://vimeo.com/quilime/">vimeo</a></li>
+        </ul>
+        
+    
+        <h2>people</h2>
+        <ul>
+            <?php linklist($people); ?>
         </ul>
 
     </div>
diff --git a/templates/log.html b/templates/log.html
new file mode 100644 (file)
index 0000000..ed6e569
--- /dev/null
@@ -0,0 +1,117 @@
+<?php
+
+    $single = false;
+    
+    if (is_dir(CONTENT_DIR . $url_string) && !is_file(CONTENT_DIR . $url_string . '/config') ) {
+        list($log_list, $total) = get_content(basename($url_string), "type=flat");
+    }
+    else {
+        $config = parse_config(CONTENT_DIR . $url_string);
+        $log = $config;
+        $base_dir = $log['base_dir'];        
+        $single = true;        
+    }
+    
+    $list = isset($_GET['list']) ? $_GET['list'] : false;
+    
+?>
+<html>
+
+<head>
+
+    <?php include_template('header-src.html'); ?>
+        
+    <title>
+        <?php echo SITE_TITLE; ?><?php if ($single) : ?> - log: <?echo strtolower($log['title']); ?> [<?php echo date("Y M d", strtotime($log['date']));?>]<? else: ?> - log<? endif; ?></title>
+
+    <script src="/js/jquery-1.3.2.min.js"></script>
+
+</head>
+
+<body>
+    
+    <?php include_template('nav.html'); ?>
+
+    <div id="content">
+
+        <?php if ($single) : ?>
+
+               <h1><a href="/log/">log</a> / <?php echo $log['title']; ?> <small class="date"><?php echo date("M d Y", $log['timestamp']); ?></small></h1>    
+            
+            <div class="content">
+            <?php echo $log['inline_content']; ?>
+            </div>
+                                
+        <?php elseif ($list): ?>
+
+            <h1>log</h1>
+        
+           <table class="archive" cellspacing="0" cellpadding="0">
+                <tr>
+                <td style="text-align:right; padding-right:1em;">
+             
+                </td>
+                <td>
+                </td>
+                <?php 
+                    $c = 1; 
+                    foreach($log_list as $log): 
+                ?>
+                <tr>
+                <td style="text-align:right; padding-right:1em;">
+                <small class="medium"><?php echo date("M d Y", $log['timestamp']); ?></small>
+                </td>
+                <td>
+                                   <a onmouseout="$('.c_pop').hide();" onmouseover="$('.c_pop').hide(); $('#c_<?php echo $c; ?>').show();" href="<?php echo $log['href']?>"><?php echo $log['title']; ?></a>
+                    <div id="c_<?php echo $c; ?>" class="c_pop">
+                    <?php 
+                        $base_dir = $log['base_dir'];
+                        echo $log['inline_content']; 
+                        ?>
+                    </div>
+                </td>
+                </tr>
+            <?  $c++;  endforeach; ?>
+            </table> 
+            
+            <br/>
+            <p class="func">
+                <a href="/log/">view inline</a>
+            </p>            
+            
+
+
+            
+        <?php else: ?>
+            
+                        <h1>log</h1>
+            
+            <ul class="inline_content log">
+            <?php foreach($log_list as $log): ?>
+                   <li>
+                       <h3>
+                           <a title="<?php echo get_relative_time($log['timestamp']); ?>" href="<?php echo $log['href'];?>">
+                               <?php echo $log['title']; ?></a>  <span class="date"><?php echo date("M d Y", $log['timestamp']); ?></span>     
+                       </h3>
+                       
+                                       
+                       
+                    <br/>
+                    
+                    <?php echo $log['inline_content']; ?>
+                </li>
+            <? endforeach; ?>
+            </ul>
+            
+            <br/>            
+            <p class="func">
+                <a class="func" href="/log/?list=1">archive</a>
+            </p>
+            
+        <?php endif; ?>
+                
+    </div>
+    
+</body>
+
+</html>
\ No newline at end of file
index d285cc451ba4c0f5d6382f2678d4698e1e729bcc..b578819bdda4f2dea281c23759d4b50204adfb6e 100644 (file)
@@ -6,16 +6,25 @@
         <strong><a href="/"><? echo SITE_TITLE; ?></a></strong>
     </h3>
     
+    <li>
+    (process<br/>and<br/>projects)
+    </li>
+    
+    
     <br/>
 
-    <h3><a href="/projects/">projects</a></h3>
-    <ul>
-        <?php echo list_content('projects', array()); ?>
-    </ul>
+    <li><a href="/log/">log</a></li>
+    <li><a href="/projects/">projects</a></li>
+    <li><a href="/code/">code</a></li>
+    <li><a href="/img/">img</a></li>    
+
+    <br/>
+    
+    <li><a href="/agg/">aggregate</a></li>
+    <li><a href="/links/">links</a></li>
+    <li><a href="/contact/">contact</a></li>    
     
-    <br/>    
+    <br/>
     
-    <li><a href="/about/">about</a></li>
-    <li><a href="/links/">links</a></li> 
     
 </ul>  
index 054f6413c8e5be3931bbdcd13e0fb7c3ff7d5f9d..a70ed43a5fb8eaf57192c51143dd6fe598698b48 100644 (file)
 
     <div id="content">
         
+        
         <?php if ($single) : ?>
 
            <h1><a href="<?php echo get_base_dir(); ?>/projects">projects</a> / <?php echo $project['title']; ?></h1>    
-            <?php 
-                $base_dir = $project['base_dir']; 
-                include_once($project['content']); 
+            <?php
+                $base_dir = $project['base_dir'];
+                include_once($project['content']);
             ?>
                     
         <?php elseif ($list): ?>
-        
+
         <?php else: ?>
         
              <h1>projects</h1>
-
+             
+             <p>slightly borked. bbl.</p>
+             
+             <p>
+                 in the meantime, go here:<br/>
+                 <a href="http://gabrieldunne.com/projects/">gabrieldunne.com/projects/</a><br/>
+                 <a href="http://portfolio.quilime.com/2008/">2008</a><br/>
+                 <a href="http://portfolio.quilime.com/new/port.php">2007</a><br/>            
+                 <a href="http://portfolio.quilime.com/recent.html">2004 - 2006</a>
+             </p>
+             
+             <!--
             <ul class="thumbnails">
             <?php foreach($projects_list as $project): ?>
                    <li>
@@ -56,7 +68,8 @@
                        </a>
                 </li>
             <? endforeach; ?>
-            </ul>     
+            </ul>
+            -->     
             
         <?php endif; ?>