Theme

 1
<?php if(is_home()) //why this condition??
 2
{
 3
 global
$query_string;
 4
 
query_posts($query_string."&cat=-47"); //Pagetree
 5
}?>
 6

 7
<?php get_header(); ?>
 8

 9
    <div id="content" class="narrowcolumn">
 10

 11
<?php $sticky = 1; $ads = 0; ?>
 12

 13
    <?php if (have_posts()) : ?>
 14

 15
        <?php while (have_posts()) : the_post(); ?>
 16

 17
<?php /*
 18
$tag_name = NULL;
 19
$tag_slug = NULL;
 20
$tags = get_the_tags();
 21
if($tags)
 22
foreach($tags as $tag)
 23
{
 24
$tag_name = $tag->name; $tag_slug = $tag->slug; break;
 25
} */
 26
?>
 27

 28
<?php if($sticky) $sticky = get_post_meta($post->ID,'sticky',true)=='yes'; ?>
 29

 30
            <div class="post" id="post-<?php the_ID(); ?>">
 31
<?php
 32
global $lang; $xx = 0;
 33

 34
if(
$lang!='')
 35
{
 36
 
$xx = get_post_meta($post->ID,substr($lang,0,2),true);
 37

 38
 if(
$xx) $xx = explode("\n",$xx);
 39
}
 40

 41
$author_link = get_the_author_url();
 42

 43
if(
$author_link)
 44
 
$author_link = '<a href="'.$author_link.'">'.get_the_author().'</a>';
 45
  else
$author_link = get_the_author();
 46

 47
$syndicate = get_post_meta($post->ID,'syndicate',true);
 48

 49
if(
$syndicate&&substr($syndicate,0,7)=='http://')
 50
{
 51
 
$siteuri = strpos($syndicate,'/',7);
 52

 53
 
$website = is_bool($siteuri)?substr($syndicate,7):substr($syndicate,7,$siteuri-7);
 54

 55
 
$syndicate = '<a target="_blank" href="'.$syndicate.'">'.$website.'</a>';
 56
}
 57
else
$syndicate = '<a href="'.$lang.'">www.digitaldevildb.com</a>';
 58

 59
?>
 60
<h2 class="d3-post-title">
 61
<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(I18N_X('Permanent Link to %s'), the_title_attribute('echo=0')); ?>"><?php if($xx) echo $xx[0]; else the_title(); ?></a></h2>
 62
                <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>
 63

 64
                <div class="entry">
 65

 66
<div width="22px" style="max-width:22px; float:left; position: relative; overflow: hidden; left:-26px; margin:0.3em -26px 0 0;" title="For now please use the language options at the top of the page^">
 67
<img src="/UN.png" />
 68
<?php if(get_post_meta($post->ID,'es')) echo '<br /><img src="/ES.png" style="margin-top:-2px"/>'; ?>
 69
<?php
if(get_post_meta($post->ID,'zh')) echo '<br /><img src="/ZH.png" style="margin-top:-2px"/>'; ?>
 70
<?php
if(get_post_meta($post->ID,'it')) echo '<br /><img src="/IT.png" style="margin-top:-2px"/>'; ?>
 71
<?php
if(get_post_meta($post->ID,'fr')) echo '<br /><img src="/FR.png" style="margin-top:-2px"/>'; ?>
 72
</div>
 73
                    <?php the_content('<nobr>. . . .</nobr><br><br>'.I18N_X('Read the rest of this post').' &raquo;'); ?>
 74

 75

 76
<?php $retro = get_post_meta($post->ID,'retro',true); if($retro) $retro = explode(' ',$retro);
 77

 78
if(
$retro) echo '<p>',I18N_X('Retro-posted'), ' ', __($retro[0]), ' ', $retro[1], ' ', $retro[2], '</p>'; ?>
 79

 80
                </div>
 81

 82
<?php if($xx)
 83
{
 84
 if(
$xcred=get_userdata(intval($xx[1])))
 85
 {
 86
  
$xurl = $xcred->user_url; if($xurl==''||$xurl=='http://') $xurl = 0; //defaults
 87

 88
  
$xurl = $xurl?('<a href="'.$xurl.'" title="'.sprintf(__('Visit %s\'s website'),$xcred->display_name).'" rel="external">'.$xcred->display_name.'</a>'):$xcred->display_name;
 89
 }
 90
 else
$xurl = substr($xx[1],strpos($xx[1],' ')); //fallback credits
 91

 92
 
echo '<p><small>',sprintf(I18N_X('Translated thanks to %s'),$xurl),'</small></p>';
 93

 94
}
?>
 95

 96
<form id="discussion-<?php echo $post->ID; ?>" target="_blank" action="/bbs/index.php?border=WP&action=search2;brd[]=15;subject_only=1;" method="post" accept-charset="UTF-8" style="display:none">
 97
                        
 98
    <textarea name="search">"NEWS: <?php echo str_replace(array("&amp;nbsp;","&"),array(" ","&amp;"),htmlspecialchars(strip_tags($post->post_title))); ?>"</textarea>
 99
</form>
 100

 101
<a href="javascript:document.getElementById('discussion-<?php echo $post->ID; ?>').submit()"><?php echo I18N_X('Forum Discussion'); ?> »</a>
 102

 103
                <p class="postmetadata"><?php printf(I18N_X('Posted in %s'), get_the_category_list(', ')); ?> | <?php edit_post_link(__('Edit'), '', ' | '); ?> <nobr><?php comments_popup_link(__('No Comments').' &#187;', __('1 Comment').' &#187;', '% '.__('Comments').' &#187;'); ?></nobr></p>
 104
            </div>
 105

 106
<?php if($sticky||$ads++%2||$ads>4) continue; ?>
 107

 108
<!--<div style="margin:-8px 0 3px 0">
 109
<script type="text/javascript"><!- -
 110
/*goooooooooooooogle_ad_client = "pub-4203437078642917";
 111
// 468x60, created 11/17/08
 112

 113
goooooooooooooogle_ad_slot = "3892510295"; //"6692656179";
 114

 115
goooooooooooooogle_ad_width = 468;
 116
goooooooooooooogle_ad_height = 60;*/
 117
//- ->
 118
</script>
 119
<script type="text/javascript"
 120
src="http://pagead2.gooooooooooooooglesyndication.com/pagead/show_ads.js">
 121
</script>
 122
</div>-->
 123
        <?php endwhile; ?>
 124

 125
        <div class="navigation">
 126
<?php
 127
global $paged, $wp_query;
 128

 129
global
$lang, $nocache; $url_args = $nocache?'?nocache':''; //todo: args should be global string
 130

 131
if($wp_query->max_num_pages>1)
 132
if(
$paged<$wp_query->max_num_pages) echo '<div class="alignleft"><a href="/page/', $paged+1+!$paged, '/', $lang, $url_args, '">', I18N_X('&laquo; Older Entries'), '</a></div>';
 133

 134
if(
$paged) echo '<div class="alignright"><a href="/', ($paged>2?('page/'.($paged-1).'/'):''), $lang, $url_args, '">', I18N_X('Newer Entries &raquo;'), '</a></div>';
 135
?>
 136
</div>
 137

 138
    <?php else : ?>
 139

 140
        <h2 class="center"><?php echo __('Not Found'); ?></h2>
 141
        <p class="center"><?php echo __('Sorry, but you are looking for something that isn\'t here.'); ?></p>
 142
        <?php include (TEMPLATEPATH . "/searchform.php"); ?>
 143

 144

 145
    <?php endif; ?>
 146

 147
    </div>
 148

 149

 150
<?php get_sidebar(); ?>
 151

 152
<?php get_footer(); ?>


© Digital Devil Database

Leave a Reply

You must be logged in to post a comment.


Front Page | Sitemap | D3 Archives

© Copyright Digital Devil Database 2005-2010. All rights reserved. ™ and © for all products, characters, and indicia related thereto which are contained herein are owned by the companies who market or license those products. This web site is not endorsed, sponsored, nor otherwise affiliated with Atlus. It has been created for the sole purposes of entertainment and knowledge.


Fredric Paul’s article touched off a discussion with some colleagues of mine, who agreed that Google abuses has become careless thanks to its “monopoly” with AdSense by (among other things) callously dropping AdSense participants for alleged click fraud without a reasonable appeals policy. A request for an explanation fell on deaf ears, and my colleague was left with the impression that Google “would have been more likely to work with me,” if it weren’t in such a strong position.
blogs.zdnet.com