rendered paste body<?php /* If this is a category archive */ if (is_category()) { ?> <h2>Currently Browsing</h2><ul><li><p>You are currently browsing the archives for the <?php single_cat_title(''); ?> category.</p></li></ul> <?php /* If this is a yearly archive */ } elseif (is_day()) { ?> <h2>Currently Browsing</h2><ul><li><p>You are currently browsing the <a href="<?php echo get_settings('siteurl'); ?>"><?php echo bloginfo('name'); ?></a> weblog archives for the day <?php the_time('l, F jS, Y'); ?> .</p></li></ul> <div id="calendar"> <?php get_calendar(); ?> </div> <?php /* If this is a monthly archive */ } elseif (is_month()) { ?> <h2>Currently Browsing</h2><ul><li><p>You are currently browsing the <a href="<?php echo get_settings('siteurl'); ?>"><?php echo bloginfo('name'); ?></a> weblog archives for <?php the_time('F, Y'); ?> .</p></li></ul> <div id="calendar"> <?php get_calendar(); ?> </div> <?php /* If this is a yearly archive */ } elseif (is_year()) { ?> <h2>Currently Browsing</h2><ul><li><p>You are currently browsing the <a href="<?php echo get_settings('siteurl'); ?>"><?php echo bloginfo('name'); ?></a> weblog archives for the year <?php the_time('Y'); ?> .</p></li></ul> <div id="calendar"> <?php get_calendar(); ?> </div> <?php /* If this is a search */ } elseif (is_search()) { ?> <h2>Currently Browsing</h2><ul><li><p>You have searched <?php echo bloginfo('name'); ?> for "<?php echo wp_specialchars($s); ?>".</p></li></ul> <?php /* If this is a monthly archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?> <h2>Currently Browsing</h2><ul><li><p>You are currently browsing the <a href="<?php echo get_settings('siteurl'); ?>"><?php echo bloginfo('name'); ?></a> weblog archives.</p></li></ul> <?php /* If this homepage */ } elseif (is_home()) { ?><h2><?php _e('Get Connected'); ?></h2> <ul> <li><a href="http://feeds.feedburner.com/HajjFlemingsBlog" rel="alternate" type="application/rss+xml"><img src="http://www.feedburner.com/fb/images/pub/feed-icon16x16.png" alt="Hajj Fleming's RSS Feed" style="vertical-align:middle;border:0"/></a> <a href="http://feeds.feedburner.com/HajjFlemingsBlog" rel="alternate" type="application/rss+xml">RSS & iTunes Feedburner</a></li> <li><a href="http://digg.com/submit" title="Digg It!" target="subscriptions"><img src="<?php bloginfo('template_directory'); ?>/img/digg.gif" alt="Digg It!" width="80" height="15" /></a></li><!-- BEGIN: Constant Contact Basic Opt-in Email List Form --><li><div align="center"><table border="0" cellspacing="0" cellpadding="3" style="border:none"><tr><td align="left" style="border-top:1px solid #ffffff; padding: 0.7em 0 0 0; font-weight: normal; font-family:Verdana,Arial,Helvetica,sans-serif; font-size:11px; color:#29303B;">Sign up for "The Brand YU Life" Newsletter</td></tr><tr><td align="left" style="padding: 0 0 0.8em 0;"><form name="ccoptin" action="http://ui.constantcontact.com/d.jsp" target="_blank" method="post" style="margin-bottom:2;"><input type="hidden" name="m" value="1101505739371"><input type="hidden" name="p" value="oi"><font style="font-weight: normal; font-family:Verdana,Geneva,Arial,Helvetica,sans-serif; font-size:.9em; color:#29303B;">Email:</font> <input type="text" name="ea" size="20" value="" style="font-size:.9em; border:1px solid #999999;"><input type="submit" name="go" value="Go" class="submit" style="font-family:Verdana,Geneva,Arial,Helvetica,sans-serif; font-size:.9em;"></form></td></tr><tr><td align="left" style="border-top:1px solid #ffffff; padding: 0.7em 0 0.8em 0; font-weight: normal; font-family:Verdana,Arial,Helvetica,sans-serif; font-size:11px; color:#29303B;">Drop me a line at speak[at]hajjflemings.com</td></tr><tr><td align="left" style="border-top:1px solid #ffffff; padding: 0.7em 0 0 0; font-weight: normal; font-family:Verdana,Arial,Helvetica,sans-serif; font-size:11px; color:#29303B;"><a href="http://www.linkedin.com/in/hajjflemings" style="text-decoration:none;"><img src="http://www.linkedin.com/img/webpromo/btn_in_20x15.gif" width="20" height="15" alt="View Hajj Flemings' LinkedIn profile" style="vertical-align:middle" border="0">View my LinkedIn profile</span></a></td></tr></table></div><!-- END: Constant Contact Basic Opt-in Email List Form --></li></ul><h2><?php _e('About Me'); ?></h2> <ul><li><?php bloginfo('description'); ?><a href="http://www.hajjflemings.com/blog/about-me/"><strong> READ MORE »</strong></a></li></ul> <div id="calendar"> <?php get_calendar(); ?> </div> <?php } ?><h2><?php _e('My Book'); ?></h2> <ul><li><a href="http://www.hajjflemings.com/products.html" target="_parent"><img src="<?php bloginfo('template_directory'); ?>/img/bookcover.gif" alt="The Brand YU Life Book" width="175" height="300" style="vertical-align:left;border:0" /></a></li><li><a href="http://www.amazon.com/Brand-YU-Life-Re-thinking-management/dp/0977138801/ref=sr_1_1/102-6392788-1685718?ie=UTF8&s=books&qid=1182668481&sr=8-1"><img src="<?php bloginfo('template_directory'); ?>/img/amazonbutton.gif" width="90" height="28" style="align:center;border:0" alt="Buy it on Amazon.com" /></a></li><!--<li><iframe src="http://rcm.amazon.com/e/cm?t=blank04-20&o=1&p=8&l=as1&asins=0977138801&fc1=000000&IS2=1<1=_blank&lc1=29303B&bc1=FFFFFF&bg1=CCCCCC&f=ifr&nou=1" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe></li><li><a href="http://www.hajjflemings.com/blog/?page_id=11" target="_parent"><img src="<?php bloginfo('template_directory'); ?>/img/tshirt.gif" alt="The Brand YU Life T-shirt" width="175" height="220" style="vertical-align:left;border:0" /></a></li>--></ul><h2><?php _e('Blog Categories'); ?></h2> <ul><?php wp_list_cats('sort_column=name&optioncount=1'); ?></ul> <?php /* If this homepage */ if (is_home()) { ?><h2><label for="s"><?php _e('Search Brand YU'); ?></label></h2> <ul> <li> <form id="searchform" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>"> <div style="text-align:center"> <p><input type="text" name="s" id="s" size="15" /></p> <p><input type="submit" name="submit" value="<?php _e('Search'); ?>" /></p> </div> </form> </li> </ul><h2><?php _e('Blogroll'); ?></h2><ul> <li><a href="http://www.drawingonthepromises.com/blogs/blank/blankblogindex.html">B-L-A-N-K</a></li><li><a href="http://sethgodin.typepad.com/">Seth Godin</a></li><li><a href="http://www.tuaw.com">Unofficial Apple Blog</a></li><li><a href="http://www.800ceoread.com">800 CEO Read</a></li><li><a href="http://www.kevincarrollkatalyst.com">Kevin Carroll</a></li> </ul><h2>Reader Community</h2><ul><li><script type="text/javascript" src="http://pub.mybloglog.com/comm2.php?mblID=2007051820490736&c_width=173&c_sn_opt=n&c_rows=5&c_img_size=f&c_color_heading_bg=cccccc&c_color_heading=000000&c_color_link_bg=E3E3E3&c_color_link=005A94&c_color_bottom_bg=cccccc"></script></li></ul><h2>Tag Cloud</h2><ul><li><?php UTW_ShowWeightedTagSet("sizedtagcloud") ?></li></ul><h2>On the Tube</h2><ul><li><script type="text/javascript" src="http://widgetserver.com/syndication/subscriber/InsertPanel.js?panelId=500c02f4-d47f-4af9-86bb-dd9e3ca6b139"></script></li><li><a href="http://www.hajjflemings.com/blog/youtube-gallery/"><strong> SEE THE GALLERY »</strong></a></li></ul><h2>Recent Posts</h2><?phpfunction get_recent_posts ($num_posts = 5){global $wpdb, $tableposts, $post, $tablepost2cat;if (!isset($tablepost2cat)) $tablepost2cat = $wpdb->post2cat;if (!isset($tableposts)) $tableposts = $wpdb->posts;$orderby = "$tableposts.post_$orderby";$now = current_time('mysql');$sql = "SELECT DISTINCT * FROM $tableposts ";$sql .= "WHERE $tableposts.post_date <= '$now' AND ( $tableposts.post_status = 'publish' ";$sql .= "OR $tableposts.post_status = 'sticky' ";$sql .= ") ";$sql .= "GROUP BY $tableposts.ID ORDER BY $tableposts.post_date DESC";$sql .= " LIMIT 0, $num_posts";$posts = array();$posts = $wpdb->get_results($sql);if (empty($posts)) return;echo '<ul>';foreach ($posts as $post) {$title = the_title('', '', false);echo '<li>';echo '<a href="'.get_permalink().'" title="View Post '.htmlspecialchars(strip_tags($title)).'">'.$title.'</a>';echo '</li>';}echo '</ul>';} //end function get_recent_posts()get_recent_posts();?><!--<h2>Recent Posts 2</h2><ul><li><?php echo dd_last_from_each(); ?></ul></li>--><?php } ?>