Theme
<?php
global $is_gallery; $is_gallery = 1; ?>
<?php get_header(); ?>
<div style="height:4px"></div>
<div style="float:left; margin:9px 0 -9px 25px; height:0px; overflow:visible;">
<h2 style="margin:0px; color:#b85b5a; font-size:1.2em; font-family: Verdana, 'Arial Unicode MS', 'Lucida Grande';"><nobr><a style="color:#b85b5a;" href="/wp-login.php?action=register"><?php echo __('Register'); ?></a> | <a style="color:#b85b5a;" href="<?php
global $user_ID; get_currentuserinfo();
if($user_ID!='') echo '/wp-login.php?action=logout">', __('Logout');
else echo '/wp-login.php">', __('Login');
?></a> »</nobr></h2>
</div>
<div id="sidebar" style="float:right; padding:4px 25px 0 0; margin-bottom:-3.0em; width:120px; overflow: visible">
<div style="position: relative; right:70px; width:190px">
<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="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>
</div>
<div style="height:3px"></div>
<br style="clear:right" />
<div id="content" class="widecolumn">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="navigation">
<div style="float:left; position: relative; left:-130px; margin-right:-130px; height:300px;">
<script type="text/javascript"><!--
/* 120x600, created 11/23/08 */
//goooooooooooooogle_ad_width = 120;
//goooooooooooooogle_ad_height = 600;
//-->
</script>
</div>
<div align="left"><?php
global $lang; if($lang=='||') previous_post_link('« %link'); //...
else if($prev_post = get_previous_post(0,'47')) //Pagetree
{
$xlat = get_post_meta($prev_post->ID,substr($lang,0,2),1);
if($xlat) $xlat = explode("\n",$xlat);
echo '<a href="', get_permalink($prev_post->ID), '">« ',
($xlat?$xlat[0]:$prev_post->post_title), '</a>';
}
?> </div>
<div style="float:right; position: relative; left:130px; margin-left:-130px; height:0px;">
<script type="text/javascript"><!--
/* 120x600, created 11/23/08 */
//goooooooooooooogle_ad_width = 120;
//goooooooooooooogle_ad_height = 600;
//-->
</script>
</div>
<div align="right"> <?php
global $lang; if($lang=='||') next_post_link('%link »'); //...
else if($next_post = get_next_post(0,'47')) //Pagetree
{
$xlat = get_post_meta($next_post->ID,substr($lang,0,2),1);
if($xlat) $xlat = explode("\n",$xlat);
echo '<a href="', get_permalink($next_post->ID), '">',
($xlat?$xlat[0]:$next_post->post_title), ' »</a>';
}
?></div>
</div>
<div class="post" id="post-<?php the_ID(); ?>">
<?php
global $lang; $xlat = 0;
if($lang!='')
{
$xlat = get_post_meta($post->ID,substr($lang,0,2),true);
if($xlat) $xlat = explode("\n",$xlat);
}
$author_link = get_the_author_url();
if($author_link)
$author_link = '<a href="'.$author_link.'">'.get_the_author().'</a>';
else $author_link = get_the_author();
$syndicate = get_post_meta($post->ID,'syndicate',true);
if($syndicate&&substr($syndicate,0,7)=='http://')
{
$siteuri = strpos($syndicate,'/',7);
$website = is_bool($siteuri)?substr($syndicate,7):substr($syndicate,7,$siteuri-7);
$syndicate = '<a target="_blank" href="'.$syndicate.'">'.$website.'</a>';
}
else $syndicate = '<a href="'.$lang.'">www.digitaldevildb.com</a>';
?>
<h2 class="d3-post-title"><?php if($xlat) echo $xlat[0]; else the_title(); ?></h2>
<div style="margin:0; text-align:left"><small><?php printf(I18N_X('%1$s by %2$s at %3$s'),get_the_time(I18N_X('F jS, Y')),$author_link,$syndicate); ?></small></div>
<div class="entry">
<?php the_content('<p class="serif">Read the rest of this entry »</p>'); ?>
<?php $retro = get_post_meta($post->ID,'retro',true); if($retro) $retro = explode(' ',$retro);
if($retro) echo '<p>',__('Retro-posted'), ' ', __($retro[0]), ' ', $retro[1], ' ', $retro[2], '</p>'; ?>
<?php if($xlat)
{
if($xcred=get_userdata(intval($xlat[1])))
{
$xurl = $xurl?('<a href="'.$xurl.'" title="'.sprintf(__('Visit %s\'s website'),$xcred->display_name).'" rel="external">'.$xcred->display_name.'</a>'):$xcred->display_name;
}
else $xurl = substr($xlat[1],strpos($xlat[1],' ')); //fallback credits
echo '<p><small>',sprintf(__('Translated thanks to %s'),$xurl),'</small></p>';
}?>
<form id="discussion" target="_blank" action="/bbs/index.php?border=WP&action=search2;brd[]=15;subject_only=1;" method="post" accept-charset="UTF-8" style="display:none">
<textarea name="search">"NEWS: <?php echo str_replace("&","&",htmlspecialchars(strip_tags($post->post_title))); ?>"</textarea>
</form>
<a href="javascript:document.getElementById('discussion').submit()">Forum Discussion »</a>
<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
<?php the_tags( '<p>Tags: ', ', ', '</p>'); ?>
<p class="postmetadata alt">
<small>
This entry was posted
<?php /* This is commented, because it requires a little adjusting sometimes.
You'll need to download this plugin, and follow the instructions:
http://binarybonsai.com/archives/2004/08/17/time-since-plugin/ */
/* $entry_datetime = abs(strtotime($post->post_date) - (60*120)); echo time_since($entry_datetime); echo ' ago'; */ ?>
on <?php the_time('l, F jS, Y') ?> at <?php the_time() ?>
and is filed under <?php the_category(', ') ?>.
You can follow any responses to this entry through the <?php post_comments_feed_link('RSS 2.0'); ?> feed.
<?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
// Both Comments and Pings are open ?>
You can <a href="#respond">leave a response</a>, or <a href="<?php trackback_url(); ?>" rel="trackback">trackback</a> from your own site.
<?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
// Only Pings are Open ?>
Responses are currently closed, but you can <a href="<?php trackback_url(); ?> " rel="trackback">trackback</a> from your own site.
<?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
// Comments are open, Pings are not ?>
You can skip to the end and leave a response. Pinging is currently not allowed.
<?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
// Neither Comments, nor Pings are open ?>
Both comments and pings are currently closed.
<?php } edit_post_link('Edit this entry','','.'); ?>
</small>
</p>
</div>
</div>
<?php comments_template(); ?>
<?php endwhile; else: ?>
<p>Sorry, no posts matched your criteria.</p>
<?php endif; ?>
</div>
<?php get_footer(); ?>
© Digital Devil Database
Leave a Reply
You must be logged in to post a comment.
Megami Ibunroku Persona “Be Your True Mind”