Commits

rgrp  committed e6d3777

[all][m]: complete first pass at conversion with theme now looking like existing witbd.org.

  • Participants
  • Parent commits ef2b225

Comments (0)

Files changed (9)

-<?php
-/**
- * @package WordPress
- * @subpackage Default_Theme
- */
-?>
-
-<hr />
+<hr class="hide" />
 <div id="footer" role="contentinfo">
-<!-- If you'd like to support WordPress, having the "powered by" link somewhere on your blog is the best way; it's our only promotion or advertising. -->
 	<p>
-		<?php bloginfo('name'); ?> is proudly powered by
-		<a href="http://wordpress.org/">WordPress</a>
-		<br /><a href="<?php bloginfo('rss2_url'); ?>">Entries (RSS)</a>
-		and <a href="<?php bloginfo('comments_rss2_url'); ?>">Comments (RSS)</a>.
-		<!-- <?php echo get_num_queries(); ?> queries. <?php timer_stop(1); ?> seconds. -->
-	</p>
+    <a title="Valid XHTML 1.1" href="http://validator.w3.org/check/referer">
+    Valid XHTML 1.1
+    </a> 
+    &ndash; 
+    <a title="Valid CSS 1/2" href="http://jigsaw.w3.org/css-validator/check/referer">
+    Valid CSS
+    </a>
+    &ndash;
+    Licensed under the
+    <a title="CC License" href="http://creativecommons.org/licenses/by-sa/2.0/">
+      CC Attribution - ShareAlike License (v2.0)
+    </a>
+    <br />
+    <a href="<?php bloginfo('rss2_url'); ?>">Entries (RSS)</a>
+    and <a href="<?php bloginfo('comments_rss2_url'); ?>">Comments (RSS)</a>.
+    <!-- <?php echo get_num_queries(); ?> queries. <?php timer_stop(1); ?> seconds. -->
+  </p>
 </div>
 </div>
 
-<!-- Gorgeous design by Michael Heilemann - http://binarybonsai.com/kubrick/ -->
-<?php /* "Just what do you think you're doing Dave?" */ ?>
-
-		<?php wp_footer(); ?>
+    <?php wp_footer(); ?>
 </body>
 </html>

File functions.php

+<?php
+if ( function_exists('register_sidebar') )
+      register_sidebar();
+?>
      </div>
     <hr class="hide" />
     <ul id="menu">
-			<li><a href="/index.htm">Home</a></li>
-			<li><a href="/faq_index.htm">F.A.Q.</a></li>
-			<li><a href="/articles/">Articles</a></li>
-			<li><a href="/forum/">Forum</a></li>
-			<li><a href="/search.htm">Search</a></li>
-			<li><a href="/about.htm">About</a></li>
-			<li><a href="/contact.htm">Contact</a></li>
+    <li><a href="<?php bloginfo('url'); ?>/">Home</a></li>
+    <li><a href="<?php bloginfo('url'); ?>/faq/">F.A.Q.</a></li>
+    <li><a href="<?php bloginfo('url'); ?>/articles/">Articles</a></li>
+    <li><a href="<?php bloginfo('url'); ?>/forum/">Forum</a></li>
+    <li><a href="<?php bloginfo('url'); ?>/search/">Search</a></li>
+    <li><a href="<?php bloginfo('url'); ?>/about/">About</a></li>
+    <li><a href="<?php bloginfo('url'); ?>/contact/">Contact</a></li>
     </ul>
 <?php
-/**
- * @package WordPress
- * @subpackage Default_Theme
- */
+get_header(); ?>
+<?php get_sidebar(); ?>
 
-get_header(); ?>
-
+  <hr class="hide" />
+  <h3 class="hide">Main Content</h3>
 	<div id="content" class="narrowcolumn" role="main">
 
 	<?php if (have_posts()) : ?>
 
 	</div>
 
-<?php get_sidebar(); ?>
-
 <?php get_footer(); ?>
 <?php
-/**
- * @package WordPress
- * @subpackage Default_Theme
- */
-
 get_header(); ?>
 
+<?php get_sidebar(); ?>
+
+  <hr class="hide" />
+  <h3 class="hide">Main Content</h3>
 	<div id="content" class="narrowcolumn" role="main">
 
 		<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
 	
 	</div>
 
-<?php get_sidebar(); ?>
-
 <?php get_footer(); ?>
-<?php
-/**
- * @package WordPress
- * @subpackage Default_Theme
- */
-?>
 	<div id="sidebar" role="complementary">
 		<ul>
 			<?php 	/* Widgetized sidebar, if you have the plugin installed. */
 					if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>
-			<li>
-				<?php get_search_form(); ?>
-			</li>
-
-			<!-- Author information is disabled per default. Uncomment and fill in your details if you want to use it.
-			<li><h2>Author</h2>
-			<p>A little something about you, the author. Nothing lengthy, just an overview.</p>
-			</li>
-			-->
 
 			<?php if ( is_404() || is_category() || is_day() || is_month() ||
 						is_year() || is_search() || is_paged() ) {
 					<li><?php wp_loginout(); ?></li>
 					<li><a href="http://validator.w3.org/check/referer" title="This page validates as XHTML 1.0 Transitional">Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr></a></li>
 					<li><a href="http://gmpg.org/xfn/"><abbr title="XHTML Friends Network">XFN</abbr></a></li>
-					<li><a href="http://wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform.">WordPress</a></li>
-					<?php wp_meta(); ?>
 				</ul>
 				</li>
 			<?php } ?>

File single.php

-<?php
-/**
- * @package WordPress
- * @subpackage Default_Theme
- */
-
-get_header();
-?>
-
-	<div id="content" class="widecolumn" role="main">
-
-	<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
-
-		<div class="navigation">
-			<div class="alignleft"><?php previous_post_link('&laquo; %link') ?></div>
-			<div class="alignright"><?php next_post_link('%link &raquo;') ?></div>
-		</div>
-
-		<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
-			<h2><?php the_title(); ?></h2>
-
-			<div class="entry">
-				<?php the_content('<p class="serif">Read the rest of this entry &raquo;</p>'); ?>
-
-				<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
-				<?php the_tags( '<p>Tags: ', ', ', '</p>'); ?>
-
-				<p class="postmetadata alt">
-					<small>
-						This entry was posted
-						<?php /* This is commented, because it requires a little adjusting sometimes.
-							You'll need to download this plugin, and follow the instructions:
-							http://binarybonsai.com/wordpress/time-since/ */
-							/* $entry_datetime = abs(strtotime($post->post_date) - (60*120)); echo time_since($entry_datetime); echo ' ago'; */ ?>
-						on <?php the_time('l, F jS, Y') ?> at <?php the_time() ?>
-						and is filed under <?php the_category(', ') ?>.
-						You can follow any responses to this entry through the <?php post_comments_feed_link('RSS 2.0'); ?> feed.
-
-						<?php if ( comments_open() && pings_open() ) {
-							// Both Comments and Pings are open ?>
-							You can <a href="#respond">leave a response</a>, or <a href="<?php trackback_url(); ?>" rel="trackback">trackback</a> from your own site.
-
-						<?php } elseif ( !comments_open() && pings_open() ) {
-							// Only Pings are Open ?>
-							Responses are currently closed, but you can <a href="<?php trackback_url(); ?> " rel="trackback">trackback</a> from your own site.
-
-						<?php } elseif ( comments_open() && !pings_open() ) {
-							// Comments are open, Pings are not ?>
-							You can skip to the end and leave a response. Pinging is currently not allowed.
-
-						<?php } elseif ( !comments_open() && !pings_open() ) {
-							// Neither Comments, nor Pings are open ?>
-							Both comments and pings are currently closed.
-
-						<?php } edit_post_link('Edit this entry','','.'); ?>
-
-					</small>
-				</p>
-
-			</div>
-		</div>
-
-	<?php comments_template(); ?>
-
-	<?php endwhile; else: ?>
-
-		<p>Sorry, no posts matched your criteria.</p>
-
-<?php endif; ?>
-
-	</div>
-
-<?php get_footer(); ?>

File structure.css

 }
 
 #main {
-    background: #fff url( "../images/page-bg.gif" ) top left repeat-y;
+    background: #fff url( "images/page-bg.gif" ) top left repeat-y;
     width: 85%;
     min-width: 650px;
     max-width: 750px;
 */
 
 #logo_banner h1 {
-    background: #eee url( "../images/logo.png" ) top no-repeat;
+    background: #eee url( "images/logo.png" ) top no-repeat;
     font-size: 20px;
     padding: 0 0 3px 0;
     margin: 0px auto;
 
 /*
 // ===================================================================
-// NEWS
+// SIDEBAR
 // ===================================================================
 */
 
 
-#news {
+#sidebar {
     float: left;
     position: relative; /* This is needed for some non s/c browsers */
     width:140px;
     background: transparent;
 }
 
-#news h2
+#sidebar h2
 {
 	border-bottom: 2px dotted #d72b27;
 }
 
-#news h3 {
+#sidebar h3 {
     border-bottom: 2px dotted #d72b27;
 }
 
-#news ul {
+#sidebar ul {
     list-style-type: none;
     margin: 0 0 0 0;
     padding: 0 0 0 0;
 }
 
-#news ul ul
+#sidebar ul ul
 {
 	margin-left: 8px;
 	color: #d72b27;
 Author: Nick Stenning and Rufus Pollock
 Author URI: http://www.okfn.org/
 Version: 1.1
+Template: default
 .
 Licensed under CC by-sa v2.0
 .
 */
+/* Think about inheriting later ... */
+/* @import url('../default/style.css'); */
 @import url("typography.css");
 @import url("structure.css");