Permalink
Browse files

Finally widgetized the Elixir theme

  • Loading branch information...
1 parent a001acb commit 0382be8bf06d4bf23a54ee2741cadf69cf076a0c @whalesalad committed Jun 10, 2009
Showing with 91 additions and 26 deletions.
  1. +7 −1 404.php
  2. +1 −0 README.textile
  3. +6 −1 comments.php
  4. +6 −0 footer.php
  5. +14 −0 functions.php
  6. +6 −0 header.php
  7. +7 −1 index.php
  8. +7 −1 page.php
  9. +19 −19 sidebar.php
  10. +7 −1 single.php
  11. +11 −2 style.css
View
@@ -1,4 +1,10 @@
-<?php get_header(); ?>
+<?php
+/**
+ * @package WordPress
+ * @subpackage Elixir
+ */
+
+get_header(); ?>
<div id="content" class="page">
<div class="post" id="post-<?php the_ID(); ?>">
<h2>Sorry!</h2>
View
@@ -5,6 +5,7 @@ By Michael Whalen
Elixir is a simple dark/neon Wordpress theme that was once in full operation on "personal website":http://whalesalad.com. I've since stopped blogging, and now it's yours to enjoy!
h2. Updates / Changelog
+
* *v1.1 (9/27/07)* - The theme now works inside a sub-directory (haha) and will not explode if timesince.php is not enabled.
* *v1.2 (10/14/07)* - Removed the need for timesince plugin, all timesince functionality is now built into the theme using functions.php
* *v1.3 (1/14/08)* - Solved the bug regarding line 8 in header.php having invalid syntax.
View
@@ -1,4 +1,9 @@
-<?php // Do not delete these lines
+<?php
+/**
+ * @package WordPress
+ * @subpackage Elixir
+ */
+
if ('comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
die ('Please do not load this page directly. Thanks!');
View
@@ -1,3 +1,9 @@
+<?php
+/**
+ * @package WordPress
+ * @subpackage Elixir
+ */
+?>
</div>
</body>
</html>
View
@@ -1,4 +1,18 @@
<?php
+/**
+ * @package WordPress
+ * @subpackage Elixir
+ */
+
+if (function_exists('register_sidebar')) {
+ register_sidebar(array(
+ 'before_widget' => '<div class="widget">',
+ 'after_widget' => '</div>',
+ 'before_title' => '<h2>',
+ 'after_title' => '</h2>',
+ ));
+}
+
class Elixir {
function timesince(){
View
@@ -1,3 +1,9 @@
+<?php
+/**
+ * @package WordPress
+ * @subpackage Elixir
+ */
+?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
View
@@ -1,4 +1,10 @@
-<?php get_header(); ?>
+<?php
+/**
+ * @package WordPress
+ * @subpackage Elixir
+ */
+
+get_header(); ?>
<div id="content">
<h1><?php $themecolor = $elixir->option['color']; echo $themecolor; ?></h1>
View
@@ -1,4 +1,10 @@
-<?php get_header(); ?>
+<?php
+/**
+ * @package WordPress
+ * @subpackage Elixir
+ */
+
+get_header(); ?>
<div id="content" class="page">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
View
@@ -1,3 +1,9 @@
+<?php
+/**
+ * @package WordPress
+ * @subpackage Elixir
+ */
+?>
<div id="sidebar">
<div id="upperBox">
<h1><a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a></h1>
@@ -16,6 +22,8 @@
<li><a <?php if (is_page('contact')) { echo 'class="active" '; } ?>href="/contact/">Contact</a></li>
</ul>
+ <?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar()) : ?>
+
<?php if (is_page('about')) { ?>
<h2>Feeds</h2>
<ul class="feeds">
@@ -27,26 +35,18 @@
</ul>
<?php } ?>
- <h2>Latest Entries</h2>
- <ul>
- <?php rewind_posts(); ?>
- <?php query_posts("cat=-36&showposts=6"); ?>
- <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
- <li> <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
- <?php endwhile; endif; ?>
- </ul>
-
- <?php if (is_single()) { ?>
- <h2>Related Entries</h2>
- <ul>
- <?php UTW_ShowRelatedPostsForCurrentPost("posthtmllist") ?>
- </ul>
- <?php } ?>
+ <div class="widget">
+ <h2>Latest Entries</h2>
+ <ul>
+ <?php rewind_posts(); ?>
+ <?php query_posts("cat=-36&showposts=6"); ?>
+ <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
+ <li> <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
+ <?php endwhile; endif; ?>
+ </ul>
+ </div>
- <h2>My Homeboys (And Girls)</h2>
- <ul>
- <?php get_links('-1', '<li>', '</span></li>', '<span>', FALSE, 'id', TRUE, FALSE, 10, FALSE, TRUE); ?>
- </ul>
+ <?php endif; ?>
<div id="footer">
<p>Powered by <a href="http://wordpress.org/">Wordpress <?php bloginfo('version'); ?></a></p>
View
@@ -1,4 +1,10 @@
-<?php get_header(); ?>
+<?php
+/**
+ * @package WordPress
+ * @subpackage Elixir
+ */
+
+get_header(); ?>
<div id="content">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
View
@@ -2,7 +2,7 @@
Theme Name: Elixir Classic
Theme URI: http://www.whalesalad.com
Description: A temporary theme to exist between Moscow and Fusion.
-Version: 1.2
+Version: 1.3
Author: Michael Whalen
Author URI: http://www.whalesalad.com/
*/
@@ -239,7 +239,7 @@ body {
border-top: 1px solid #af003e;
border-bottom: 1px solid #f6709f;
}
-
+
#sidebar #upperBox p {
margin: 5px 0;
font-size: 10px;
@@ -271,6 +271,15 @@ body {
border: none;
}
+ #sidebar .widget {
+ margin-bottom: 20px;
+ }
+
+ #sidebar .widget p {
+ font-size: 11px;
+ line-height: 18px;
+ }
+
#sidebar ul {
margin-bottom: 20px;
}

0 comments on commit 0382be8

Please sign in to comment.