Doug Stewart avatar Doug Stewart committed 8c10630

Bigtime cleanups of the layout CSS, plus full widgetizing of the four
major supplementary sidebars/bottombars.

Comments (0)

Files changed (10)

 <div id="footer">
 	<div id="footerleft">
+		<ul>
+		<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Bottom Left') ) : ?>
 		<?php if ( function_exists('the_recent_posts') ) {
 			the_recent_posts();
 		} ?>
+		<?php endif; ?>
+		</ul>
 	</div>
 	<div id="footerright">
 		<ul>
+		<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Bottom Right') ) : ?>
+
 			<?php if ( function_exists('blc_latest_comments') ) { ?>
 				<li><h2>Recent Comments</h2>
 				<?php blc_latest_comments(); ?>
 			<li><img src="<?php bloginfo('template_directory'); ?>/images/feed.png" /><a href="<?php get_bloginfo('rss2_url'); ?>">RSS Entries</a></li>
 			<li><img src="<?php bloginfo('template_directory'); ?>/images/feed.png" /><a href="<?php get_bloginfo('comments_rss2_url'); ?>">RSS Comments</a></li>
 			<li><a href="http://feeds.feedburner.com/literalbarrage"><img src="http://feeds.feedburner.com/~fc/literalbarrage?bg=CA1919&amp;fg=FFFFFF&amp;anim=0" height="26" width="88" style="border:0" alt="" /></a></li>
+		<?php endif; ?>
 		</ul>
 	</div>
 	<div id="footercredits">
 	}
 }	
 
+$layouts_tmp = asort($layouts);
+
 $options = array (
 
 		  array(    "name" => "Body font color",
 <link href="<?php bloginfo('template_directory'); ?>/style.php" rel="stylesheet" type="text/css" />
 <?php }
 
+if ( function_exists('register_sidebar') ) {
+	register_sidebar(array('name'=>'Navigation'));
+	register_sidebar(array('name'=>'Extra'));
+	register_sidebar(array('name'=>'Bottom-Left'));
+	register_sidebar(array('name'=>'Bottom-Right'));
+}
+
 add_action('wp_head', 'mytheme_wp_head');
 add_action('admin_menu', 'mytheme_add_admin'); ?> 

layouts/1-column-fixed-2-halves-1.css

 html,body{margin:0;padding:0}
 body{font: 76% arial,sans-serif;text-align:center}
 p{margin:0 10px 10px}
-/*a{display:block;color: #981793;padding:10px}
-div#header h1{height:80px;line-height:80px;margin:0;
-  padding-left:10px;background: #EEE;color: #79B30B}*/
 div#container{text-align:left}
 div#content p{line-height:1.4}
-/*div#navigation{background:#B9CAFF}
-div#extra{background:#FF8539}*/
-div#footer{background: #333;color: #FFF}
-div#footer p{margin:0;padding:5px 10px}
 
 div#container{width:700px;margin:0 auto}
 div#navigation{float:left;width:350px}
 div#extra{float:right;width:350px}
-div#footer{clear:both;width:100%}
+div#footer{clear:both;width:100%}

layouts/1-column-fixed-2-halves-2.css

 html,body{margin:0;padding:0}
 body{font: 76% arial,sans-serif;text-align:center}
 p{margin:0 10px 10px}
-a{display:block;color: #981793;padding:10px}
-/*div#header h1{height:80px;line-height:80px;margin:0;
-  padding-left:10px;background: #EEE;color: #79B30B}*/
 div#container{text-align:left}
 div#content p{line-height:1.4}
-/*div#navigation{background:#B9CAFF}
-div#extra{background:#FF8539}*/
-div#footer{background: #333;color: #FFF}
-div#footer p{margin:0;padding:5px 10px}
 
 div#container{width:700px;margin:0 auto}
 div#navigation{float:right;width:350px}
 div#extra{float:left;width:350px}
-div#footer{clear:both;width:100%}
+div#footer{clear:both;width:100%}

layouts/1-column-liquid-2-halves-1.css

 html,body{margin:0;padding:0}
 body{font: 76% arial,sans-serif}
 p{margin:0 10px 10px}
-a{display:block;color: #981793;padding:10px}
-div#header h1{height:80px;line-height:80px;margin:0;
-  padding-left:10px;background: #EEE;color: #79B30B}
 div#content p{line-height:1.4}
-div#navigation{background:#B9CAFF}
-div#extra{background:#FF8539}
-div#footer{background: #333;color: #FFF}
-div#footer p{margin:0;padding:5px 10px}
 
 div#navigation{float:left;width:50%}
 div#extra{float:left;width:49.9%}
-div#footer{clear:left;width:100%}
+div#footer{clear:left;width:100%}

layouts/1-column-liquid-2-halves-2.css

 html,body{margin:0;padding:0}
 body{font: 76% arial,sans-serif}
 p{margin:0 10px 10px}
-a{display:block;color: #981793;padding:10px}
-div#header h1{height:80px;line-height:80px;margin:0;
-  padding-left:10px;background: #EEE;color: #79B30B}
 div#content p{line-height:1.4}
-div#navigation{background:#B9CAFF}
-div#extra{background:#FF8539}
-div#footer{background: #333;color: #FFF}
-div#footer p{margin:0;padding:5px 10px}
 
 div#navigation{float:right;width:50%}
 div#extra{float:right;width:49.9%}
-div#footer{clear:right;width:100%}
+div#footer{clear:right;width:100%}

layouts/2-columns-fixed-1.css

 html,body{margin:0;padding:0}
 body{font: 76% arial,sans-serif;text-align:center}
 p{margin:0 10px 10px}
-div#header h1{height:80px;line-height:80px;margin:0;
-  padding-left:10px; background: transparent; }
 div#container{text-align:left}
 div#content p{line-height:1.4}
-div#footer{background: #333;color: #FFF}
-div#footer p{margin:0;padding:5px 10px}
 
 div#container{width:700px;margin:0 auto}
 div#content{float:left;width:500px}

layouts/2-columns-fixed-3.css

 html,body{margin:0;padding:0}
 body{font: 76% arial,sans-serif;text-align:center}
 p{margin:0 10px 10px}
-a{display:block;color: #981793;padding:10px}
-div#header h1{height:80px;line-height:80px;margin:0;
-  padding-left:10px;background: #EEE;color: #79B30B}
 div#container{text-align:left}
 div#content p{line-height:1.4}
-div#navigation{background:#B9CAFF}
-div#extra{background:#FF8539}
-div#footer{background: #333;color: #FFF}
-div#footer p{margin:0;padding:5px 10px}
 
 div#container{width:700px;margin:0 auto}
 div#content{float:left;width:500px}
 div#navigation{float:right;width:200px}
 div#extra{float:left;width:500px}
-div#footer{clear:both;width:100%}
+div#footer{clear:both;width:100%}
+	<?php /*
+		This navigation is used on most pages to move back and forth in your archives.
+		It has been placed in its own file so it's easier to change across all of K2
+	*/ ?>
+
+	<!--hr /-->
+
+	<?php if (is_single()) { ?>
+
+	<div class="navigation">
+		<div class="left"><?php previous_post('<span>&laquo;</span> %','','yes') ?></div>
+		<div class="right"><?php next_post(' % <span>&raquo;</span>','','yes') ?></div>
+		<div class="clear"></div>
+	</div>
+
+	<?php } else { ?>
+		
+	<div class="navigation">
+		<div class="left"><?php next_posts_link('<span>&laquo;</span> '.__('Previous Entries','k2_domain').'') ?></div>
+		<div class="right"><?php previous_posts_link(''.__('Next Entries','k2_domain').' <span>&raquo;</span>') ?></div>
+		<div class="clear"></div>
+	</div>
+
+	<?php } ?>
+
+	<!--hr /-->
 <div id="navigation">
 <ul>
-	<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>
+	<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Navigation') ) : ?>
 	<li><h2>Search</h2>
 		<?php include (TEMPLATEPATH . '/searchform.php'); ?>
 	</li>
 </div>
 <div id="extra">
 <ul>
+	<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Extra') ) : ?>
+        <?php if (function_exists(ttlb_ecosystem_details)) { ?>
+        <li><h2>TTLB Info</h2>
+		<?php ttlb_ecosystem_details('http://literalbarrage.org/blog'); ?>
+	</li>
+	<?php } ?>
+	<li><h2>Server Load</h2>
+		<ul>
+		        <li>
+			        <a href="http://jesse.bur.st/" title="Current server load"><img src="/blog/wp-images/serverload.php" alt="Server Load" border="0"></a>
+			</li>
+		</ul>
+	</li>
 	<li><h2>Meta</h2>
 		<ul>
 		 <li><img src="<?php bloginfo('template_directory'); ?>/images/feed.png" /><a href="<?php get_bloginfo('rss2_url'); ?>">RSS Entries</a></li>
 		<li><a href="http://www.dreamhost.com/donate.cgi?id=5283"><img border="0" alt="Donate towards my web hosting bill!" src="https://secure.newdream.net/donate1.gif" /></a></li>
 		</ul>
 	</li>
+	<?php endif; ?>
 </ul>
 </div>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.