All pastes #707412 Raw Edit

Untitled

public php v1 · immutable
#707412 ·published 2007-09-22 22:01 UTC
rendered paste body
  <hr />  <div id="sidebar">    <ul>      <?php include (TEMPLATEPATH . '/searchform.php'); ?>    </ul>    <?php /* Category Archive */ if (is_category()) { ?>    <p class="intro"> <?php printf(__('You are currently browsing the %1$s weblog archives for the %2$s category.','unnamed'), '<a href="' . get_settings('home') .'">' . get_bloginfo('name') . '</a>', single_cat_title('', false) ) ?> </p>    <?php /* Day Archive */ } elseif (is_day()) { ?>    <p class="intro"> <?php printf(__('You are currently browsing the %1$s weblog archives for the day %2$s.','unnamed'), '<a href="' . get_settings('home') .'">' . get_bloginfo('name') . '</a>', get_the_time(__('l, F jS, Y','unnamed'))) ?> </p>    <?php /* Monthly Archive */ } elseif (is_month()) { ?>    <p class="intro"> <?php printf(__('You are currently browsing the %1$s weblog archives for the month %2$s.','unnamed'), '<a href="'.get_settings('home').'">'.get_bloginfo('name').'</a>', get_the_time(__('F, Y','unnamed'))) ?> </p>    <?php /* Yearly Archive */ } elseif (is_year()) { ?>    <p class="intro"> <?php printf(__('You are currently browsing the %1$s weblog archives for the year %2$s.','unnamed'), '<a href="'.get_settings('home').'">'.get_bloginfo('name').'</a>', get_the_time('Y')) ?> </p>    <?php /* Search */ } elseif (is_search()) { ?>    <p class="intro"> <?php printf(__('You have searched the %1$s weblog archives for \'<strong>%2$s</strong>\'.','unnamed'),'<a href="'.get_settings('home').'">'.get_bloginfo('name').'</a>', wp_specialchars($s)) ?> </p>    <?php /* Paged Archive */ } elseif (is_paged()) { ?>    <p class="intro"> <?php printf(__('You are currently browsing the %s weblog archives.','unnamed'), '<a href="'.get_settings('home').'">'.get_bloginfo('name').'</a>') ?> </p>    <?php } elseif (function_exists('is_tag') && is_tag()) { ?>    <p class="intro"> <?php printf(__('You are currently browsing the %1$s weblog archives for \'%2$s\' tag.','unnamed'), '<a href="'.get_settings('home').'">'.get_bloginfo('name').'</a>', get_query_var('tag') ) ?> </p>    <?php /* Permalink */ } elseif (is_single()) { ?>    <p class="intro"> <?php _e('This entry is filed under ','unnamed')?><?php the_category(', ') ?><?php _e('.','unnamed')?>	  <?php _e('You can follow any responses to this entry through ','unnamed') ?><?php comments_rss_link(__('RSS 2.0','unnamed')) ?><?php _e('.','unnamed')?>      <?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) { /* Both Comments and Pings are open */ ?>      <?php _e('You can <a href="#comment">leave a response</a>, or <a href="<?php trackback_url(true); ?>" rel="trackback">trackback</a> from your own site.','unnamed')?>      <?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) { /* Only Pings are Open */ ?>      <?php _e('Responses are currently closed, but you can <a href="<?php trackback_url(true); ?> " rel="trackback">trackback</a> from your own site.','unnamed') ?>      <?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) { /* Comments are open, Pings are not */ ?>      <?php _e('You can skip to the end and leave a response. Pinging is currently not allowed.','unnamed') ?>      <?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) { /* Neither Comments, nor Pings are open */ ?>      <?php _e('Both comments and pings are currently closed.','unnamed') ?>      <?php } edit_post_link(__('Edit this entry','unnamed')); ?><?php _e('.','unnamed')?>    </p>    <?php } ?>    <?php if (is_search() || (function_exists('is_tag') && is_tag())) { ?>    <p class="intro">      <?php _e('Longer entries are truncated. Click the headline of an entry to read it in its entirety.','unnamed'); ?>    </p>    <?php } ?>    <?php /* Frontpage */ if (is_home() || (is_page() && get_option('unnamed_showsidebarpage') == 1) || (is_archive() && get_option('unnamed_showsidebarcat') == 1) || (is_single() && get_option('unnamed_showsidebarsingle') == 1) ) { ?>    <div class="left-sidecolumn">      <ul>        <?php /* if the Sidebar Widgets plugin is enabled */ if ( function_exists('dynamic_sidebar') && dynamic_sidebar(1) ) : else : ?>        <?php /* Menu for subpages of current page */		global $notfound;		if (is_page() && ($notfound != '1')) {			$current_page = $post->ID;			while($current_page) {				$page_query = $wpdb->get_row("SELECT ID, post_title, post_status, post_parent FROM $wpdb->posts WHERE ID = '$current_page'");				$current_page = $page_query->post_parent;			}			$parent_id = $page_query->ID;			$parent_title = $page_query->post_title;			if ($wpdb->get_results("SELECT * FROM $wpdb->posts WHERE post_parent = '$parent_id' AND post_status != 'attachment'")) {	?>        <li class="sb-pagemenu">          <h2><?php echo $parent_title; ?>            <?php _e('Subpages','unnamed'); ?>          </h2>          <ul>            <?php wp_list_pages('sort_column=menu_order&title_li=&child_of='. $parent_id); ?>            <?php if ($parent_id != $post->ID) { ?>            <li><a href="<?php echo get_permalink($parent_id); ?>"><?php printf(__('Back to %s','unnamed'), $parent_title ) ?></a></li>            <?php } ?>          </ul>        </li>        <?php } } ?>  <ul><h2><?php _e('Status of Serge:'); ?></h2>        <ul>     <object width="200" height="200"><param name="movie" value="http://static.jaiku.com/images/badge-simple.swf?feedURL=http://dustyhawk.jaiku.com/feed/badge&amp;bkgcolor=%23000066&amp;gradientcolor1=%230066CC&amp;hilitegradientcolor1=%23ffffff&amp;gradientcolor2=%23003399&amp;hilitegradientcolor2=%2399CCCC&amp;bordercolor=%230066CC&amp;hilitebordercolor=%2399CCCC&amp;fontcolor=%23ffffff&amp;bubbletexthilite=%23000066&amp;timecolor=%2399CCCC&amp;titlecolor=%2399CCCC&amp;titlehilitecolor=%23ffffff&amp;descriptioncolor=%2399CCCC&amp;descriptionhilitecolor=%23ffffff&amp;arrowcolor1=%23000066&amp;arrowhilitecolor1=%2399CCCC&amp;arrowcolor2=%2399CCCC&amp;arrowhilitecolor2=%23000066&amp;arrowbordercolor=%2399CCCC&amp;arrowhilitebordercolor=%2399CCCC"></param><param name="wmode" value="transparent"></param><embed src="http://static.jaiku.com/images/badge-simple.swf?feedURL=http://dustyhawk.jaiku.com/feed/badge&amp;bkgcolor=%23000066&amp;gradientcolor1=%230066CC&amp;hilitegradientcolor1=%23ffffff&amp;gradientcolor2=%23003399&amp;hilitegradientcolor2=%2399CCCC&amp;bordercolor=%230066CC&amp;hilitebordercolor=%2399CCCC&amp;fontcolor=%23ffffff&amp;bubbletexthilite=%23000066&amp;timecolor=%2399CCCC&amp;titlecolor=%2399CCCC&amp;titlehilitecolor=%23ffffff&amp;descriptioncolor=%2399CCCC&amp;descriptionhilitecolor=%23ffffff&amp;arrowcolor1=%23000066&amp;arrowhilitecolor1=%2399CCCC&amp;arrowcolor2=%2399CCCC&amp;arrowhilitecolor2=%23000066&amp;arrowbordercolor=%2399CCCC&amp;arrowhilitebordercolor=%2399CCCC" type="application/x-shockwave-flash" wmode="transparent" width="200" height="200"></embed></object>        </ul>   </ul> <li><h2><?php _e('Sidenotes'); ?></h2>        <ul>    <?php miniblog_list_entries('', '', '', 'default', 3); ?>                 </ul>   </li>  <li>          <h2>            <?php _e('Wordspew','unnamed'); ?>          </h2>          <ul>            <?php jal_get_shoutbox(); ?>          </ul>        </li>     <li>          <h2>            <?php _e('Precious Jewels','unnamed'); ?>          </h2>          <ul>            <?php wp_get_links(38); ?>          </ul>        </li> <li>          <h2>            <?php _e('Comicfiestans','unnamed'); ?>          </h2>          <ul>            <?php wp_get_links(43); ?>          </ul>        </li> <li>          <h2>            <?php _e('Deviant Artist','unnamed'); ?>          </h2>          <ul>            <?php wp_get_links(41); ?>          </ul>        </li> <li>          <h2>            <?php _e('Weekly Read','unnamed'); ?>          </h2>          <ul>            <?php wp_get_links(37); ?>          </ul>        </li>     <li>          <h2>            <?php _e('Webcomics & Others','unnamed'); ?>          </h2>          <ul>                  <?php wp_get_links(48); ?>          </ul>        </li>  <li>          <h2>            <?php _e('Latest Blogging News','unnamed'); ?>          </h2>          <ul>                 <script src="http://widgets.technorati.com/t.js" type="text/javascript"> </script>                  <a href="http://technorati.com/?sub=tr_top-news_t_js" class="tr_top-news_t_js" >View top news</a><br /><script type="text/javascript"><!--blogrush_feed = "74359386";//--></script><script type="text/javascript"  src="http://widget.blogrush.com/show.js"></script>          </ul>        </li>        <?php /* end for Sidebar Widgets */ endif; ?>      </ul>    </div>    <div class="right-sidecolumn"><br /><script src="http://widgets.technorati.com/t.js" type="text/javascript"> </script><a href="http://technorati.com/blogs/{dustyhawk.com}?sub=tr_authority_t_ns" class="tr_authority_t_js" style="color:#4261DF">View blog authority</a>      <ul>        <?php /* if the Sidebar Widgets plugin is enabled */ if ( function_exists('dynamic_sidebar') && dynamic_sidebar(2) ) : else : ?>  <ul><h2><?php _e('Calender:'); ?></h2>        <ul>        <?php get_calendar(); ?>        </ul>   </ul>        <?php if (function_exists('get_recent_comments')) { ?>   <ul><h2><?php _e('Recent Comments:'); ?></h2>        <ul>        <?php get_recent_comments(); ?>        </ul>   </ul>        <li>          <h2>            <?php _e('Categories','unnamed'); ?>          </h2>          <ul>            <?phpwp_list_categories('orderby=ID&title_li='); ?>          </ul>        </li>  <li>          <h2>            <?php _e('Archives','unnamed'); ?>          </h2>          <ul>           <?php wp_get_archives(); ?>          </ul>        </li>    <?php } ?> <li>          <h2>            <?php the_subscribe_links(); ?><br /><script type="text/javascript">function affiliateLink(str){ str = unescape(str); var r = ''; for(var i = 0; i < str.length; i++) r += String.fromCharCode(9^str.charCodeAt(i)); document.write(r); }affiliateLink('5h%29a%7Blo4+a%7D%7Dy3%26%26%7E%7E%7E%27%7Dlq%7D%24e%60gb%24hmz%27jfd%26yhjbhnlMl%7Dh%60e%27yay6yhjbhnl@M4%3C%3F%3E%3A1+75%60dn%29z%7Bj4+a%7D%7Dy3%26%26%7E%7E%7E%27%7Dlq%7D%24e%60gb%24hmz%27jfd%26%60dhnlz%26%7Bzz%26899V1%3DVke%7Cl%27n%60o+%29kf%7Bml%7B4+9+%29he%7D4+Hm%7Fl%7B%7D%60zl%29fg%29dp%29%5BZZ%29ollm%28+75%26h7');</script>          </h2>          <ul>          <li><a href="<?php bloginfo('comments_rss2_url'); ?>" title="<?php _e('RSS Feed for all Comments','unnamed');?>"><?php _e('Comments RSS','unnamed'); ?></a></li>          </ul>        </li>        <?php /* end for Sidebar Widgets */ endif; ?>      </ul><ul><h2><?php _e('Banners & Others'); ?></h2>        <ul>      <?php tla_ads(); ?><br />      <?php wp_get_links(39); ?><br /><!--nuffnang --><script type='text/javascript'> nuffnang_bid = "438e462e3b732dc698a43681a2cd4b2d";</script><script type="text/javascript" src="http://synad.nuffnang.com.my/adsprovider/lmn.js"></script><!--nuffnang--><br /><script type="text/javascript"><!--amazon_ad_tag="dusbromir-20"; amazon_ad_width="120"; amazon_ad_height="240"; amazon_color_border="206BA2"; amazon_color_logo="FFFFFF"; amazon_color_link="206BA2"; amazon_ad_logo="hide"; amazon_ad_link_target="new"; amazon_ad_title="Serge's Store"; //--></script><script type="text/javascript" src="http://www.assoc-amazon.com/s/asw.js"></script><br /><script type="text/javascript"><!--google_ad_client = "pub-5012233014555899";google_ad_width = 120;google_ad_height = 240;google_ad_format = "120x240_as";google_ad_type = "text_image";google_ad_channel = "";//--></script><script type="text/javascript"  src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></ul>   </ul>    </div>    <?php } ?>  </div>  <div class="clear"></div>