- <?php
- $__reinAdCode = array(); //just prepping the array.
- //this defines the google adWords javascript for later use
- $__reinAdCode['adWords'] =
- '<script type="text/javascript">
- <!--
- google_ad_client = "[number]";
- google_ad_width = 160;
- google_ad_height = 600;
- google_ad_format = "160x600_as";
- google_ad_type = "text_image";
- //2007-03-18: Blog
- google_ad_channel = "[number]";
- google_color_border = "36414d";
- google_color_bg = "FFFFFF";
- google_color_link = "0000FF";
- google_color_text = "000000";
- google_color_url = "008000";
- //-->
- </script>
- <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>';
- //project wonderful code for later use
- $__reinAdCode['project_wonderful'] =
- '<!-- Begin Project Wonderful ad code: -->
- <!-- IMPORTANT: All lines, including these comments, must be included. -->
- <!-- Removing or altering them could result in your ads being automatically shut down! -->
- <!-- Ad box ID: [number] -->
- <script language=\'JavaScript\' type=\'text/javascript\'>
- // <![CDATA[
- r = new String (Math.random()*1000);
- r = r.substr(0, 5);
- s = new String ("<script language=\'JavaScript\' type=\'text/javascript\'");
- s += "src = http://www.projectwonderful.com/gen.php";
- s += "?id=[number]&type=4";
- s += "&r=" + r;
- if (document.referrer){
- s += "&referer=" + escape(document.referrer);
- }
- s += "><\/scr";
- s += "ipt>";
- document.write(s);
- // ]]>
- </script>
- <noscript><map name="admap[number]" id="admap[number]"><area href="http://www.projectwonderful.com/out_nojs.php?r=0&c=0&id=[number]&type=4" shape="rect" coords="0,0,125,125" title="" alt="" target="_blank" /></map>
- <table cellpadding="0" border="0" cellspacing="0" width="125" bgcolor=""><tr><td><img src="http://www.projectwonderful.com/nojs.php?id=[number]&type=4" width="125" height="125" usemap="#admap[number]" border="0" alt="" /></td></tr><tr><td bgcolor="" colspan="1"><center><a style="font-size:10px;color:#0000ff;text-decoration:none;line-height:1.2;font-weight:bold;font-family:Tahoma, verdana,arial,helvetica,sans-serif;" href="http://www.projectwonderful.com/advertisehere.php?id=[number]&type=4" target="_blank">Project Wonderful - Your ad here, right now, for as low as $0</a></center></td></tr><tr><td colspan="1" valign="top" width="125" height="3" bgcolor="#000000"><center><img src="http://www.projectwonderful.com/black.png" width="125" height="3" border="0" alt="" /></center></td></tr></table>
- </noscript>
- <!-- End Project Wonderful ad code. -->';
- ?>
- <div id="sidebar">
- <?php
- /* Widgetized sidebar, if you have the plugin installed. */
- if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) :
- ?>
- <ul>
- <li>
- <?php include (TEMPLATEPATH . '/searchform.php'); ?>
- </li>
- <!-- Author information is disabled per default. Uncomment and fill in your details if you want to use it.
- <li><h2>Author</h2>
- <p>A little something about you, the author. Nothing lengthy, just an overview.</p>
- </li>
- -->
- <?php
- if ( is_404() || is_category() || is_day() || is_month()
- || is_year() || is_search() || is_paged() ) :
- ?>
- <li>
- <?php
- if (is_404()) {/* If this is a 404 page (currently empty) */
- } elseif (is_category()) { /* If this is a category archive */
- ?>
- <p>You are currently browsing the archives for the <?php single_cat_title(''); ?> category.</p>
- <?php } elseif (is_day()) {/* If this is a daily archive */ ?>
- <p>
- You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives for the day <?php the_time('l, F jS, Y'); ?>.
- </p>
- <?php } elseif (is_month()) { /* If this is a monthly archive */ ?>
- <p>
- You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a>
- blog archives for <?php the_time('F, Y'); ?>.
- </p>
- <?php } elseif (is_year()) { /* If this is a yearly archive */ ?>
- <p>
- You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a>
- blog archives for the year <?php the_time('Y'); ?>.
- </p>
- <?php } elseif (is_search()) { /* If this is a search page */ ?>
- <p>
- You have searched the <a href="<?php echo bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a>
- blog archives for <strong>'<?php the_search_query(); ?>'</strong>. If you are unable to find anything in these search results, you can try one of these links.
- </p>
- <?php } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { /* this is paged browsing view */ ?>
- <p>You are currently browsing the <a href="<?php echo bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives.</p>
- <?php } /* this ends the paged browsing output and the chain of elseif's */ ?>
- </li>
- <?php
- /* this ends the if( is_404() || is_category() || is_day() ||..blah blah blah crap above */
- endif;
- ?>
- <li>
- <div style="margin:20px auto;padding:10px 3px 10px 25px;text-align:center;">
- <?php echo $__reinAdCode['project_wonderful']; ?>
- </div>
- </li>
- <?php wp_list_pages('title_li=<h2>Pages</h2>' ); ?>
- <li>
- <h2>Archives</h2>
- <ul>
- <?php wp_get_archives('type=monthly'); ?>
- </ul>
- </li>
- <!-- rein I think the below needs to be wrapped in an <li></li> -->
- <?php wp_list_categories('show_count=1&title_li=<h2>Categories</h2>'); ?>
- <?php
- /* If this is the frontpage or a normal page? */
- if ( is_home() || is_page() ) :
- ?>
- <li>
- <?php wp_list_bookmarks(); ?>
- </li>
- <li>
- <?php echo $__reinAdCode['adWords']; ?>
- </li>
- <li>
- <h2>Meta</h2>
- <ul>
- <?php wp_register(); ?>
- <li><?php wp_loginout(); ?></li>
- <li><a href="http://wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform.">WordPress</a></li>
- <?php wp_meta(); ?>
- </ul>
- </li>
- <?php else : ?>
- <li>
- <?php echo $__reinAdCode['adWords']; ?>
- </li>
- <?php endif; /* end of the homepage/normal page check */ ?>
- </ul>
- <?php endif; /* this is the end of the dynamic sidebar if */ ?>
- </div>