Commits

Doug Stewart  committed 61b1711

Mad changes, baby. Placeholders all over the place, but things are
improving nicely.

  • Participants
  • Parent commits f0faf99

Comments (0)

Files changed (6)

 <div id="footer">
-<p>This is the footer.</p>
+	<div id="footerleft">
+		<p>This is the footer.</p>
+	</div>
+	<div id="footerright">
+		<ul>
+			<li><a href="<?php get_bloginfo('rss2_url'); ?>">RSS Entries</a></li>
+			<li><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>
+		</ul>
+		<p>This is the footer.</p>
+	</div>
+	<div id="footercredits">
+	<!--WEBBOT bot="HTMLMarkup" startspan ALT="Site Meter" -->
+	<script type="text/javascript" language="JavaScript">var site="s19literal"</script>
+	<script type="text/javascript" language="JavaScript1.2" src="http://s19.sitemeter.com/js/counter.js?site=s19literal">
+	</script>
+	<noscript>
+	<a href="http://s19.sitemeter.com/stats.asp?site=s19literal" border="0" target="_top">
+	<img src="http://s19.sitemeter.com/meter.asp?site=s19literal" alt="Site Meter" border="0"/></a>
+	</noscript>
+	<!-- Copyright (c)2005 Site Meter -->
+	<!--WEBBOT bot="HTMLMarkup" Endspan -->
+
+<?php /* Try. to understand */ ?>
+
+        <?php do_action('wp_footer'); ?>
+	<script type="text/javascript">
+	<?php
+	global $userdata;
+	if ($userdata) {
+	 echo "z_user_name=\"" . $userdata->display_name . "\";\n";
+	 echo "z_user_email=\"" . $userdata->user_email . "\";\n";
+	}
+	?>
+	z_post_title="<?php the_title();?>";
+	z_post_category="<?php $c=get_the_category();echo $c[0]->cat_name;?>";
+	</script>
+	<script id="stats_script" type="text/javascript" src="http://metrics.performancing.com/wp.js"></script>
+	<br />
+	<a href="http://performancing.com"><img src="http://metrics.performancing.com/logo_small.png" height="14" width="125" border="0" alt="Performancing"></a>
+	</div>
 </div>
 </div>
 </body>

File functions.php

-<?php
+<?php
+$themename = "Elbee Elgee";
+$shortname = "lblg";
 
-$layout_path = TEMPLATEPATH . '/layouts/' . $lblg_layout;
+$layout_path = TEMPLATEPATH . '/layouts/'; // . $lblg_layout;
 $layouts = array("-------");
 
 if ( is_dir($layout_path) ) {
 		}	
 	}
 }	
-
 
-    array(    "name" => "Body font color",
            "id" => $shortname."_body_color",
            "std" => "#000000",
            "type" => "text"),
-                
    array(    "name" => "Layout Stylesheet",
            "id" => $shortname."_layout_stylesheet",
            "std" => "-------",
            "type" => "select",
-            "options" => $layouts)
-);
    global $themename, $shortname, $options;
    if ( $_GET['page'] == basename(__FILE__) ) {
    
        if ( 'save' == $_REQUEST['action'] ) {
                foreach ($options as $value) {
                    update_option( $value['id'], $_REQUEST[ $value['id'] ] ); }
                foreach ($options as $value) {
                    if( isset( $_REQUEST[ $value['id'] ] ) ) { update_option( $value['id'], $_REQUEST[ $value['id'] ]  ); } else { delete_option( $value['id'] ); } }
                header("Location: themes.php?page=functions.php&saved=true");
                die;
        } else if( 'reset' == $_REQUEST['action'] ) {
            foreach ($options as $value) {
                delete_option( $value['id'] ); }
            header("Location: themes.php?page=functions.php&reset=true");
            die;
        }
    }
    add_theme_page($themename." Options", "Current Theme Options", 'edit_themes', basename(__FILE__), 'mytheme_admin');
    global $themename, $shortname, $options;
    if ( $_REQUEST['saved'] ) echo '<div id="message" class="updated fade"><p><strong>'.$themename.' settings saved.</strong></p></div>';
    if ( $_REQUEST['reset'] ) echo '<div id="message" class="updated fade"><p><strong>'.$themename.' settings reset.</strong></p></div>';
    
    
        
    <th scope="row"><?php echo $value['name']; ?>:</th>
    <td>
        <input name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>" type="<?php echo $value['type']; ?>" value="<?php if ( get_settings( $value['id'] ) != "") { echo get_settings( $value['id'] ); } else { echo $value['std']; } ?>" />
    </td>
    <tr valign="top"> 
        <th scope="row"><?php echo $value['name']; ?>:</th>
        <td>
            <select name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>">
                <?php foreach ($value['options'] as $option) { ?>
                <option<?php if ( get_settings( $value['id'] ) == $option) { echo ' selected="selected"'; } elseif ($option == $value['std']) { echo ' selected="selected"'; } ?>><?php echo $option; ?></option>
                <?php } ?>
            </select>
        </td>
    </tr>
+$options = array (
+
+		  array(    "name" => "Body font color",
+			    "id" => $shortname."_body_color",
+			    "std" => "#000000",
+			    "type" => "text"),
+		  array(    "name" => "Layout Stylesheet",
+			    "id" => $shortname."_layout_stylesheet",
+			    "std" => "-------",
+			    "type" => "select",
+			    "options" => $layouts)
+
+		  );
+
+function mytheme_add_admin() {
+
+    global $themename, $shortname, $options;
+
+    if ( $_GET['page'] == basename(__FILE__) ) {
+    
+        if ( 'save' == $_REQUEST['action'] ) {
+
+                foreach ($options as $value) {
+                    update_option( $value['id'], $_REQUEST[ $value['id'] ] ); }
+
+                foreach ($options as $value) {
+                    if( isset( $_REQUEST[ $value['id'] ] ) ) { update_option( $value['id'], $_REQUEST[ $value['id'] ]  ); } else { delete_option( $value['id'] ); } }
+
+                header("Location: themes.php?page=functions.php&saved=true");
+                die;
+
+        } else if( 'reset' == $_REQUEST['action'] ) {
+
+            foreach ($options as $value) {
+                delete_option( $value['id'] ); }
+
+            header("Location: themes.php?page=functions.php&reset=true");
+            die;
+
+        }
+    }
+
+    add_theme_page($themename." Options", "Current Theme Options", 'edit_themes', basename(__FILE__), 'mytheme_admin');
+
+}
+
+function mytheme_admin() {
+
+    global $themename, $shortname, $options;
+
+    if ( $_REQUEST['saved'] ) echo '<div id="message" class="updated fade"><p><strong>'.$themename.' settings saved.</strong></p></div>';
+    if ( $_REQUEST['reset'] ) echo '<div id="message" class="updated fade"><p><strong>'.$themename.' settings reset.</strong></p></div>';
+    
+?>
+<div class="wrap">
+<h2><?php echo $themename; ?> settings</h2>
+
+<form method="post">
+
+<table class="optiontable">
+
+<?php foreach ($options as $value) { 
+    
+if ($value['type'] == "text") { ?>
+        
+<tr valign="top"> 
+    <th scope="row"><?php echo $value['name']; ?>:</th>
+    <td>
+        <input name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>" type="<?php echo $value['type']; ?>" value="<?php if ( get_settings( $value['id'] ) != "") { echo get_settings( $value['id'] ); } else { echo $value['std']; } ?>" />
+    </td>
+</tr>
+
+<?php } elseif ($value['type'] == "select") { ?>
+
+    <tr valign="top"> 
+        <th scope="row"><?php echo $value['name']; ?>:</th>
+        <td>
+            <select name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>">
+                <?php foreach ($value['options'] as $option) { ?>
+                <option<?php if ( get_settings( $value['id'] ) == $option) { echo ' selected="selected"'; } elseif ($option == $value['std']) { echo ' selected="selected"'; } ?>><?php echo $option; ?></option>
+                <?php } ?>
+            </select>
+        </td>
+    </tr>
+
+<?php 
+} 
+}
+?>
+
+</table>
+
+<p class="submit">
+<input name="save" type="submit" value="Save changes" />    
+<input type="hidden" name="action" value="save" />
+</p>
+</form>
+<form method="post">
+<p class="submit">
+<input name="reset" type="submit" value="Reset" />
+<input type="hidden" name="action" value="reset" />
+</p>
+</form>
+
+<?php
+}
+
+function mytheme_wp_head() { ?>
+<link href="<?php bloginfo('template_directory'); ?>/style.php" rel="stylesheet" type="text/css" />
+<?php }
+
+add_action('wp_head', 'mytheme_wp_head');
+add_action('admin_menu', 'mytheme_add_admin'); ?> 
 
 <head profile="http://gmpg.org/xfn/11">
 	<title><?php wp_title(''); ?> <?php if( !(is_404()) && (is_single()) or (is_page()) or (is_archive()) ) { ?> at <?php } ?> <?php bloginfo('name');?></title>
-	<!--link rel="stylesheet" type="text/css" media="screen" href="<?php bloginfo('template_directory'); ?>/layouts/1-column-fixed-2-halves-2.css" /-->
-	<link rel="stylesheet" type="text/css" media="screen" href="<?php bloginfo('template_directory'); ?>/layouts/3-fixed-columns-3.css" />
+	<link rel="stylesheet" type="text/css" media="screen" href="<?php bloginfo('template_directory'); ?>/layouts/<?php echo get_option('lblg_layout_stylesheet'); ?>" />
 	<link rel="stylesheet" type="text/css" media="screen" href="<?php bloginfo('stylesheet_url'); ?>" />
 
 	<?php wp_head(); ?>

File searchform.php

+<?php if (!is_search()) {
+	$search_text = __('search blog archives','k2_domain');
+} else {
+	$search_text = "$s";
+}
+?>
+
+<form method="get" id="searchform" action="<?php echo $_SERVER['PHP_SELF']; ?>">        <input type="text" id="s" name="s" value="<?php echo wp_specialchars($search_text, 1); ?>" />
+        <input type="submit" id="searchsubmit" value="<?php _e('go','k2_domain'); ?>" />
+</form>
+
 <div id="navigation">
 <ul>
 	<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>
+	<li><h2>Search</h2>
+		<?php include (TEMPLATEPATH . '/searchform.php'); ?>
+	</li>
+
+	<?php if(function_exists(sparkStats_imgURI)){?>
+        	<li><h2><?php _e('Recent Activity'); ?></h2>
+	    		<img src="<?php sparkStats_imgURI(); ?>" alt="SparkStats"/><br /><br />
+	    		<img src="<?php sparkStats_legendURI(); ?>" alt="SparkStats Legend"/>
+		</li>	
+	<?php } ?>
+	<?php if ( function_exists('deepthoughts') ) { ?>
+		<li><h2>Deep Thoughts</h2>
+		<?php deepthoughts(); ?>
+		</li>
+	<?php } ?>
 	<?php get_links_list(); ?>
 	<?php endif; ?>
 </ul>
 </div>
 <div id="extra">
 <p>This is extra.</p>
-</div>
+</div>
 body {
 	/*background-color: #0e0d13;*/
 	background-color: #0e1223;
+	/*background-color: #474f57;*/
 	color: #cfcfd0;
 	margin: 0;
 	padding: 0;
 	color: #ca1919;
 }
 
-#navigation ul li, #extra ul li {
+#navigation ul li, #extra ul li, #footer ul li {
 	list-style-type: none;
 	list-style-image: none;
 }
 	text-decoration: underline;
 }
 
-#content a, #content a:visited {
+/*#content a, #content a:visited {
 	color: #ca1919;
 	text-decoration: none;
 }
 
 #content a:active, #content a:hover {
 	text-decoration: underline;
+}*/
+
+#footer {
+	border-top: 1px solid #ca1919;	
 }
 
+#footerleft {
+	width: 45%;
+	margin: 0 auto;
+	float: left;	
+}
+
+#footerright {
+	width: 45%;
+	margin: 0 auto;
+	float: right;	
+}
+
+#footercredits {
+	width: 50%;
+	margin: 0 auto;
+	clear: both;
+	text-align: center;
+}
 
 .wppost {
 	width: 95%;
 	/*margin-left: 3em;
 	border-left: 1px solid;
-	margin: 0 auto;
-	border: 1px solid #fff;*/
+	margin: 0 auto;*/
+	border: 1px solid #fff;
+	margin-bottom: 10px;
 }
 
-.published {
+.published {
+	display:block;
+	text-align: center;
+	float:left;
+	font-family: Arial, Helvetica, sans-serif; 
+	border: 1px solid #ccc;
 	padding: 0px;
 	margin-right: 20px;
-	margin-bottom: 20px;
+	margin-bottom: 20px;
+}
+
+.pub-month {
+	display:block;
+	font-size: 1.2em;
+	margin:0; 
+	padding: 0 3px 0 3px;
 	background: #f3f3dc;
-	color: #000;
+	color: #000;
+}
+
+.pub-date { 
+	display:block; 
+	font-size:1.6em;
+	margin:0; 
+	padding:0;  
+}
 
 .wppost h3 {
 	font: 180% "Times New Roman", Times, serif;
 }
 
-.wppost h3 a, .wppost h3 a:visited { 
+.wppost h3 a, .wppost h3 a:visited, .wppost h3 a:hover, .wppost h3 a:active { 
 	color: #ccc;
 	text-decoration: none;
 }