Commits

Doug Stewart committed 971007b

Styling changes and added functionality for radio inputs on theme options screen.

  • Participants
  • Parent commits 4f56ea5

Comments (0)

Files changed (4)

+<?php get_header(); ?>
+
+<div id="wrapper">
+	<div id="content">
+		<?php include( TEMPLATEPATH . '/theloop.php' ); ?>
+	</div>
+</div>
+
+<?php get_sidebar(); ?>
+
+<?php get_footer(); ?>

File functions.php

 					    "options" => $alt_stylesheets),
 					
 				array(	"name" => "Number of Previous Posts",
-			    		"id" => $shortname."previous_posts",
+			    		"id" => $shortname."_previous_posts",
 			    		"std" => "5",
 			    		"type" => "text"),
 				array(	"name" => "Del.icio.us Username",
-					    "id" => $shortname."delicious_username",
+					    "id" => $shortname."_delicious_username",
 					    "std" => "zamoose",
-					    "type" => "text")			
+					    "type" => "text"),			
+				array(	"name" => "Archives Page Style",
+					"id" => $shortname."_archives_style",
+					"std" => "clean",
+					"type" => "radio",
+					"options" => array("clean" => "Clean Archives","subtraction" => "Subtraction Style"))
 		  );
 
 function mytheme_add_admin() {
 	    </tr>
 		<?php
 		break;
-				
+
+		case "radio":
+		?>
+		<tr valign="top"> 
+	        <th scope="row"><?php echo $value['name']; ?>:</th>
+	        <td>
+	            <?php foreach ($value['options'] as $key=>$option) { 
+		    	if ($key == $value['id'] ) {
+				$checked = "checked";
+			} else {
+				$checked = "";
+			}?>
+	            <input type="radio" name="<?php echo $value['id']; ?>" value="<?php echo $key; ?>" <?php echo $checked; ?> /><?php echo $option; ?><br />
+	            <?php } ?>
+	        </td>
+	    </tr>
+		<?php
+
+		break;
+
 		default:
 
 		break;
 
 	if ( is_single() ) { ?>
 	<li><h2>Post Info</h2>
-		You are reading "<a href="<?php the_permalink(); ?>"> <?php the_title(); ?></a>". It was posted on <?php the_date('l, F jw, Y','',''); ?> in <?php the_category(', '); ?>.
+		You are reading "<a href="<?php the_permalink(); ?>"> <?php the_title(); ?></a>". It was posted on <?php the_date('l, F jS, Y','',''); ?> in <?php the_category(', '); ?>.
 	</li>
 	<?php 
 	}
         display: block;
         /*margin-left: auto;
         margin-right: auto;*/
-		margin: 0 auto;
+	margin: 0 auto !important;
 }
 
 img.alignright, img[align="right"] {