]> git.quilime.com - plog_bk.git/commitdiff
template organizing
authorGabriel Dunne <gdunne@quilime.com>
Wed, 7 Jul 2010 08:09:26 +0000 (01:09 -0700)
committerGabriel Dunne <gdunne@quilime.com>
Wed, 7 Jul 2010 08:09:26 +0000 (01:09 -0700)
13 files changed:
templates/404.html.tpl
templates/agg.html.tpl
templates/backup/code copy 2.html [moved from templates/code copy 2.html with 100% similarity]
templates/backup/code copy.html [moved from templates/code copy.html with 100% similarity]
templates/backup/code.html.tpl [moved from templates/code.html.tpl with 100% similarity]
templates/default.html.tpl
templates/header-src.html [deleted file]
templates/links.html.tpl [deleted file]
templates/nav.html.tpl [moved from templates/nav.html with 100% similarity]
templates/page.html.tpl
templates/photo.html [deleted file]
templates/projects.html [deleted file]
templates/single.html.tpl

index ac9a892237b3d3193a2da6d6a39de7038be0277a..821811c3cbfce1ada2bc61d6fc98d491614c2a53 100644 (file)
@@ -8,7 +8,7 @@
 </head>
 <body>
     
-    <? $this->include_template('nav.html'); ?>
+    <? $this->include_template('nav.html.tpl') ?>
     
 <div id="content">
 
index ddb10c1c03bd9c05eec7ebd340204062147377ee..90f7462b354038c093b810e47a8f7094187b6e3e 100644 (file)
@@ -8,7 +8,7 @@
 </head>
 <body>
     
-    <? $this->include_template('nav.html'); ?>
+    <? $this->include_template('nav.html.tpl') ?>
     
 <div id="content">
        
index eaab793eba72dd5b1b2b074d21d51df5795a974f..699de36fcbc2c705a21f6f36753020f224a002db 100644 (file)
@@ -8,7 +8,7 @@
 </head>
 <body>
     
-    <? $this->include_template('nav.html') ?>
+    <? $this->include_template('nav.html.tpl') ?>
     
 <div id="content">
 
diff --git a/templates/header-src.html b/templates/header-src.html
deleted file mode 100644 (file)
index 8be2bce..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-
-<meta http-equiv="Content-Type" content="text/html; charset=utf-8">    
-
-<link rel="stylesheet" href="<?= get_base_dir(); ?>/css/style.css" type="text/css">
-
-<script type="text/javascript" src="<?= get_base_dir(); ?>/js/jquery-1.3.2.min.js"></script>
-
-<!-- code prettifyier -->
-<link href="<?= get_base_dir(); ?>/js/prettify/prettify.css" type="text/css" rel="stylesheet" />
-<script type="text/javascript" src="<?= get_base_dir(); ?>/js/prettify/prettify.js"></script>
-<meta name="google-site-verification" content="1OBSuW_Qc3OFWC8whRGv2DJxQUUZkjcaY_cdd6PpdR8" />
-
-
-<script>
-
- $(document).ready(function() {
-     prettyPrint();
- });
-
- $(document).mousemove(function(e){
-    $('.c_pop').css({'left':(e.pageX-170)+"px", 'top':e.pageY+"px"});
- }); 
-
-</script>
\ No newline at end of file
diff --git a/templates/links.html.tpl b/templates/links.html.tpl
deleted file mode 100644 (file)
index 7b4e1ee..0000000
+++ /dev/null
@@ -1,69 +0,0 @@
-<?
-       $page = 'links';
-?>
-
-<html>
-
-<head>
-
-    <?php $this->include_template('header-src.html'); ?>
-
-    <title><?php echo SITE_TITLE ?> - links</title>
-
-</head>
-
-<body>
-
-    <?php include('nav.html'); ?>
-
-    <div id="content">
-       
-
-
-        <?php
-
-            function linklist($links)
-            { ?>
-                <?php foreach($links as $l) : ?>
-                <li><a href="http://<?php echo $l[0];?>"><?php echo $l[1];?></a> &rarr;</li>
-                <?php endforeach; ?>
-            <?php
-            }
-
-            $people = array
-            (
-                    array('ssherriff.com', 'stephanie sherriff'),
-                    array('dabkitsch.com/jml/', 'jeff lubow'),
-                    array('onecm.com', 'ryan alexander'),
-                    array('oddsympathy.com', 'daniel massey'),
-                    array('jtnimoy.net', 'joshua nimoy'),
-                    array('keithpasko.com', 'keith pasko'),
-                                       array('carbonworkshop.com', 'carbon workshop'),
-                    array('pohflepp.com', 'sascha pohflepp'),
-                    array('mylinhtrieu.com', 'mylinh trieu'),
-                    array('universaloscillation.com', 'aaron meyers'),
-                    array('tom-carden.co.uk', 'tom carden'),
-                    array('mike.teczno.com', 'michal migurski'),
-                    array('ripevessel.com', 'adam roth'),
-                    array('davidrager.org', 'david rager'),
-                    array('digitanalog.net', 'marc nimoy'),
-                    array('makaga.com', 'matthew gale'),
-                    array('fredericeyl.de', 'frédéric eyl'),
-                    array('thegreeneyl.com', 'the green eyl')
-//                                     array('local.wasp.uwa.edu.au/~pbourke/', '')
-                    );
-        ?>
-
-
-
-        <ul>
-            <?php linklist($people); ?>
-        </ul>
-
-
-
-    </div>
-
-</body>
-
-</html>
\ No newline at end of file
similarity index 100%
rename from templates/nav.html
rename to templates/nav.html.tpl
index 84d6e841b4bf1b1e0b65aa25be29b308a918d6b1..f4bebe7ddd63c23e9f52da3610078ef1155378d0 100644 (file)
@@ -8,7 +8,7 @@
 </head>
 <body>
     
-    <? $this->include_template('nav.html') ?>
+    <? $this->include_template('nav.html.tpl') ?>
     
 <div id="content">
 
diff --git a/templates/photo.html b/templates/photo.html
deleted file mode 100644 (file)
index e74efc5..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-<?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; ?> :photo</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>images</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" class="more">more via flickr &rarr;</a>            
-    </div>
-    
-</body>
-
-</html>
\ No newline at end of file
diff --git a/templates/projects.html b/templates/projects.html
deleted file mode 100644 (file)
index 4386816..0000000
+++ /dev/null
@@ -1,79 +0,0 @@
-<?php
-
-    $projects = array();
-    $single = false;
-    
-    if (is_dir(CONTENT_DIR . $url_string) && !is_file(CONTENT_DIR . $url_string . '/config') ) {
-        list($projects_list, $total) = get_content(basename($url_string));
-    }
-    else {
-        $config = parse_config(CONTENT_DIR . $url_string . '/config');
-        $project = $config;
-        $single = true;
-    }
-
-$parent_page = "/projects";
-$page = '<a href="/projects">projects</a>';
-
-?>
-<html>
-
-<head>
-
-    <?php include_template('header-src.html'); ?>
-    
-    <title><?php echo SITE_TITLE; ?> - projects<?php if (sizeof($projects) > 0 ) : ?>: <?echo strtolower($project['title']); ?> [<?php echo $project['medium']; ?>]<?php endif; ?></title>
-    
-</head>
-
-<body>
-    
-    <?php include('nav.html'); ?>
-
-    <div id="content">
-        
-        <?php if ($single) : ?>
-
-           <h1><?php echo $project['title']; ?></h1>    
-            <?php
-                $base_dir = $project['base_dir'];
-                include_once($project['content']);
-            ?>
-                    
-        <?php elseif ($list): ?>
-
-
-
-
-        <?php else: ?>
-             <p>
-                 <a href="http://gabrieldunne.com/projects/">current</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><br/>
-                 <a href="http://portfolio.quilime.com/archive/">1999 - 2004</a>
-             </p>
-
-<!--
-            <ul>
-            <?php foreach($projects_list as $project): ?>
-                   <li>
-                       <a href="<?php echo $project['href']?>">
-                           <div class="thumbnail" title="<? echo $project['title'] ?>">
-                               <?php if(isset($project['thumb'])) :?>
-                               <img src="<?php echo $project['thumb']; ?>" />
-                               <?php endif; ?>
-                               </div>
-                           <div class="title"><? echo $project['title']; ?></div>
-                       </a>
-                </li>
-            <? endforeach; ?>
-            </ul>
-    -->                     
-        <?php endif; ?>
-        
-    </div>
-    
-</body>
-
-</html>
\ No newline at end of file
index 4f0d526a26ef9934948ae39242dae7a830896144..ccb8623b9a115685f90500066ad3c18867f6bbcc 100644 (file)
@@ -8,7 +8,7 @@
 </head>
 <body>
     
-    <? $this->include_template('nav.html') ?>
+    <? $this->include_template('nav.html.tpl') ?>
     
        <div id="content">
                <? $this->include_template('entry.html.tpl', array('data' => $data)); ?>