1. Doug Stewart
  2. elbee-elgee

Commits

Doug Stewart  committed cef1d2b

Made some additions to use the bundled MagpieRSS instead of SimplePie so as to assure that everyone can use the Development tracker, etc.

Also cleaned up the theme admin page a bit.

  • Participants
  • Parent commits 2affaf8
  • Branches default

Comments (0)

Files changed (3)

File footer.php

View file
 	<div id="footerright">
 		<ul>
 		<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Bottom Right') ) : ?>
+		<?php if(function_exists(fetch_rss)) { ?>
+			<li><h2>Elbee Elgee Development</h2>
+				<ul>
+			<?php	
+				$url = 'http://trac.zamoose.org/timeline?milestone=on&ticket=on&changeset=on&wiki=on&max=50&daysback=90&format=rss';
+				$lblgrss = fetch_rss($url);
+				$rss_c = 0;
+				
+				foreach($lblgrss->items as $item){
+					if($rss_c <=4){
+						$title = $item['title'];
+						$link = $item['link'];
+						$description = $item['description'];
+						echo "<li><a href=\"$link\">$title</a></li>\n";
+					}
+					$rss_c++;
+				}
+			?>
+				</ul>
+			</li>
+		<?php } ?>
 	        <?php if (function_exists(SimplePieWP)) { ?>
 		        <li><h2>Elbee Elgee Development</h2>                <?php echo SimplePieWP('http://trac.zamoose.org/timeline?milestone=on&ticket=on&changeset=on&wiki=on&max=50&daysback=90&format=rss','items:5, showtitle:false, shortdesc:200, showdate:j M Y'); ?>
 			</li>

File functions.php

View file
 						"id" => $shortname."_use_custom_header",
 						"std" => "false",
 						"type" => "checkbox"),
+
+				array(	"name" => "Display \"About\" Text",
+						"id" => $shortname."_display_about",
+						"std" => "false",
+						"type" => "checkbox"),
 						
 				array(	"name" => "\"About\" Text",
 						"id" => $shortname."_about_text",
 				array(	"name" => "Del.icio.us Username",
 					    "id" => $shortname."_delicious_username",
 					    "std" => "zamoose",
-					    "type" => "text"),			
-					
-				array(	"name" => "Archives Page Style",
-						"id" => $shortname."_archives_style",
-						"std" => "clean",
-						"type" => "radio",
-						"options" => array("clean" => "Clean Archives","subtraction" => "Subtraction Style"))
+					    "type" => "text")
 		  );
 
 function mytheme_add_admin() {

File header.php

View file
 <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>
 
+	<?php 
+	//Include Magpie RSS for make benefit glorious nation America.
+	if ( file_exists(ABSPATH . WPINC . '/rss.php') )
+		require_once(ABSPATH . WPINC . '/rss.php');
+	else
+		require_once(ABSPATH . WPINC . '/rss-functions.php');
+	?>
+
 	<meta http-equiv="Content-Type" content="text/html; charset=<?php bloginfo('charset'); ?>" />
 	<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" />
 	<meta name="description" content="<?php bloginfo('description'); ?>" />