Theme
<?php global $intl, $lang; ?>
<div id="sidebar">
<?php if(is_page()){
echo '<div class="d3-directory">';
echo '<font style="font-size:1.2em; line-height:1.3">';
global $sidebar_special_pages_directory;
if(!$sidebar_special_pages_directory)
{
$out = ddlsp_generate();
if($out!='<ul></ul>'&&
$out!='<ul><li class="pagenav"><div></div><ul></ul></li></ul>') //hack: empty listing
echo '<h2>',I18N_X('Further Reading'),'</h2>', $out;
//hacks...
//Why was eval used here???
/*
eval('?>'.str_replace('<h2>Features</h2>','<h2>'.I18N_X('Features').'</h2>',get_post_meta($post->ID,'features',true)).'<?');
eval('?>'.str_replace('<h2>Archives</h2>','<h2>'.I18N_X('Archives').'</h2>',get_post_meta($post->ID,'archives',true)).'<?');
*/
echo str_replace('<h2>Features</h2>','<h2>'.I18N_X('Features').'</h2>',get_post_meta($post->ID,'features',true));
echo str_replace('<h2>Archives</h2>','<h2>'.I18N_X('Archives').'</h2>',get_post_meta($post->ID,'archives',true));
}
else echo $sidebar_special_pages_directory;
echo '</font>';
echo '</div>';
}?>
<?php if(is_page()&&$post->post_parent){
$back_to_parent = get_post($post->post_parent);
?><h2 style="margin-left:2.7ex"><a href="<?php echo get_page_link($post->post_parent); ?>"><span style="margin-left:-2.7ex">« <?php echo I18N_X('Back to'), ' ', I18N_($back_to_parent->post_title); ?></span></a></h2><?php }?>
<ul><li>
<?php
global $paged;
if(!is_home()||$paged)
{?>
<h2><a href="/<?php echo $lang; ?>">« <?php echo I18N_X('Back to Front Page');?></a></h2>
<?
}
else
{
$new_post = 1697; //Newest Additions Page
$hack = get_post($new_post); //swordofmoonlight.com??
$mod_time = explode(' ',$hack->post_modified);
$mod_date = explode('-',$mod_time[0]);
switch($mod_date[1])
{
case 1: $mod_date[1] = 'January'; break; case 2: $mod_date[1] = 'February'; break;
case 3: $mod_date[1] = 'March'; break; case 4: $mod_date[1] = 'April'; break;
case 5: $mod_date[1] = 'May'; break; case 6: $mod_date[1] = 'June'; break;
case 7: $mod_date[1] = 'July'; break; case 8: $mod_date[1] = 'August'; break;
case 9: $mod_date[1] = 'September'; break; case 10: $mod_date[1] = 'October'; break;
case 11: $mod_date[1] = 'November'; break; case 12: $mod_date[1] = 'December'; break;
}
if($mod_date[2][0]=='0') $mod_date[2] = $mod_date[2][1];
switch($lang)
{
case 'es/': //Spanish
echo '<h2><a class="new_page_link" href="/new/', $lang, '?modified=', $mod_time[0], '-', $mod_time[1], '">', I18N_X('New on'), ' ', $mod_date[2], ' de ', __($mod_date[1]), ' »</a></h2>';
break;
default: //English
switch($mod_date[2]%10)
{
case 1: $mod_date[2].='st'; break;
case 2: $mod_date[2].='nd'; break;
case 3: $mod_date[2].='rd'; break;
default: $mod_date[2].='th';
}
echo '<h2><a class="new_page_link" href="/new/', $lang, '?modified=', $mod_time[0], '-', $mod_time[1], '">', I18N_X('New on'), ' ', __($mod_date[1]), ' ', $mod_date[2], ' »</a></h2>';
}
}?>
</li>
<li>
<div class="textwidget"><form onsubmit="document.getElementById('q').value = document.getElementById('s').value;
document.getElementById('sa').click();
return false;" action="" id="searchform">
<div><input value="" name="s" id="s" type="text">
<input id="searchsubmit" value="Search" onclick="document.getElementById('q').value = document.getElementById('s').value;
document.getElementById('sa').click();
return false;" type="button">
<div style="margin: -1px 2ex -1.1em 0pt; text-align: right; color: rgb(166, 201, 219); font-size: 1em; letter-spacing: -0.1ex;"><b><?php echo I18N_X('Now powered by'); ?><font style="font-family: 'Times New Roman'; font-size: 1.2em;"> YaCy*</font></b></div>
</div></form>
<div style="display: none;">
<form target="_top" action="http://www.digitaldevildb.com/search/<?php echo $lang; ?>" id="cse-search-box" style="margin: 10px auto; padding: 5px 3px; text-align: right;">
<div>
<nobr><input name="q" id="q" style="border: 1px solid rgb(126, 157, 185); padding: 2px; background: rgb(255, 255, 255) url(http://www.google.com/coop/intl/en/images/google_custom_search_watermark.gif) no-repeat scroll left center; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" size="15" type="text">
<input name="sa" id="sa" value="Search" style="margin: 2px 0px; padding: 1px;" type="submit"></nobr>
</div>
</form>
</div></div>
</li>
<!-- <ul> -->
<?php /* Widgetized sidebar, if you have the plugin installed. */
if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>
<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 this is a 404 page */ if (is_404()) { ?>
<?php /* If this is a category archive */ } elseif (is_category()) { ?>
<p>You are currently browsing the archives for the <?php single_cat_title(''); ?> category.</p>
<?php /* If this is a yearly archive */ } elseif (is_day()) { ?>
<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 /* If this is a monthly archive */ } elseif (is_month()) { ?>
<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 /* If this is a yearly archive */ } elseif (is_year()) { ?>
<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 /* If this is a monthly archive */ } elseif (is_search()) { ?>
<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 /* If this is a monthly archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
<p>You are currently browsing the <a href="<?php echo bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives.</p>
<?php } ?>
</li> <?php }?>
<?php wp_list_pages('title_li=<h2>Pages</h2>' ); ?>
<li><h2>Archives</h2>
<ul>
<?php wp_get_archives('type=monthly'); ?>
</ul>
</li>
<?php wp_list_categories('show_count=1&title_li=<h2>Categories</h2>'); ?>
<?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?>
<?php wp_list_bookmarks(); ?>
<li><h2>Meta</h2>
<ul>
<?php wp_register(); ?>
<li><?php wp_loginout(); ?></li>
<li><a href="http://validator.w3.org/check/referer" title="This page validates as XHTML 1.0 Transitional">Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr></a></li>
<li><a href="http://gmpg.org/xfn/"><abbr title="XHTML Friends Network">XFN</abbr></a></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 } ?>
<?php endif; ?>
</ul>
</div>
© Digital Devil Database
Leave a Reply
You must be logged in to post a comment.
Megami Ibunroku Persona “Be Your True Mind”