Theme

 1
<?php get_header(); ?>
 2

 3
<?php global $lang; ?>
 4

 5
<?php $avatar = get_post_meta($post->ID,'avatar',true); ?>
 6

 7
<div style="position: relative; z-index: 99; font-size: 2.0em; margin: -7px 21px -0px 21px; height:0; overflow: visible">
 8

 9
<?php
 10
if(get_post_meta($post->ID,'unlisted',true)!='yes')
 11
{
 12
 global
$wpdb;
 13

 14
 
$unlisted = "
 15
    SELECT wpostmeta.post_id
 16
    FROM
$wpdb->posts wposts, $wpdb->postmeta wpostmeta
 17
    WHERE wposts.ID = wpostmeta.post_id
 18
    AND (wpostmeta.meta_key = 'unlisted' OR wpostmeta.meta_key = 'blank')
 19
    AND wpostmeta.meta_value = 'yes'
 20
    AND wposts.post_type = 'page'
 21
    "
;
 22

 23
 
$unlisted = implode(",",$wpdb->get_col($unlisted));
 24

 25
 
$sibs = get_pages('exclude='.$unlisted.'&hierarchical=1&depth=1&child_of='.$post->post_parent);
 26

 27
 
$prev = 0;
 28

 29
 foreach(
$sibs as $ptr)
 30
 {
 31
  if(
$ptr->ID==$post->ID)
 32
  {
 33
   
$next = current($sibs); if(!$next||$next->ID==$post->ID) break; $next = $next->ID;
 34

 35
   echo
'<a class="alignright" style="color: #88A6C0; margin-left:-6ex;"'; //hack: make zero width
 36

 37
$hack = get_post($next); //PHP4...
 38

 39
   
echo ' href="', get_page_link($next), '" title="', strip_tags($hack->post_title), '">»</a>';
 40

 41
$hack = end($sibs); //PHP4...
 42

 43
   
if(!$prev) $prev = $hack->ID;
 44

 45
$hack = get_post($prev); //PHP4...
 46

 47
   
echo '<a style="color: #88A6C0;" href="', get_page_link($prev), '"
 48

 49
    title="'
, strip_tags($hack->post_title), '">«</a>'; //should always exist to prop up div
 50

 51
   
break;
 52
  }
 53
  else
$prev = $ptr->ID;
 54
 }
 55
}
 56
else echo
'&nbsp;';
 57
?>
 58

 59
<br style="clear:both">
 60
</div>
 61

 62
  <?php if(have_posts()) : while (have_posts()) : the_post(); ?>
 63

 64
<?php if($avatar)
 65
{
 66
 echo
'<div style="position:relative; top:-25px; margin-bottom:-32px">';
 67

 68
 include (
TEMPLATEPATH . '/' . $avatar . '.php');
 69

 70
 echo
'</div>';
 71
}
?>
 72

 73
    <div id="content" class="narrowcolumn">
 74
<?php
 75
if($avatar) include (TEMPLATEPATH . '/' . 'adbubble.php');
 76
?>
 77
<div class="post" id="post-<?php the_ID(); ?>">
 78
        <h2 class="d3-page-title"><?php the_title(); ?></h2>
 79
            <div class="entry">
 80
<?php
 81
switch($lang)
 82
{
 83
default:
//FALL THRU
 84
{
 85
 
$xx = substr($lang,0,2); $xurl = '';
 86

 87
 
$xxid = $wpdb->get_var("SELECT ID FROM $wpdb->posts WHERE post_name = '" . $post->post_name . "-page-$xx" . "'");
 88

 89
 if(
$xxid)
 90
 {
 91
  
$xpost = get_post($xxid); $xcred = get_userdata($xpost->post_author);
 92

 93
$hack = get_post($xxid); //PHP4...
 94

 95
  
echo '<p>', $hack->post_content, '</p>';
 96

 97
  
$xurl = $xcred->user_url; if($xurl==''||$xurl=='http://') $xurl = 0; //defaults
 98

 99
  
$xurl = $xurl?('<a href="'.$xurl.'" title="'.sprintf(__('Visit %s\'s website'),$xcred->display_name).'" rel="external">'.$xcred->display_name.'</a>'):$xcred->display_name;
 100

 101
  echo
'<small>',sprintf(I18N_X('Translated thanks to %s'),$xurl),'<br /></small>';
 102

 103
  break;
 104
 }
 105
 else;
//FALL THRU
 106
}
 107
case
'': global $no_autop; $no_autop = 1;
 108

 109
  
the_content('<p class="serif">Read the rest of this page &raquo;</p>');
 110

 111
  
$no_autop = 0;
 112
}
 113
?>
 114
<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
 115

 116
<br /><em><small>© <?php the_author_link() ?> </small></em><br />
 117

 118

 119

 120
                <p class="postmetadata alt" style="margin: 30px 0 -8px 0">
 121

 122
                    <small>
 123
                        This page was published
 124
                        <?php /* This is commented, because it requires a little adjusting sometimes.
 125
                            You'll need to download this plugin, and follow the instructions:
 126
                            http://binarybonsai.com/archives/2004/08/17/time-since-plugin/ */
 127
                            /* $entry_datetime = abs(strtotime($post->post_date) - (60*120)); echo time_since($entry_datetime); echo ' ago'; */
?>
 128
on <?php the_time('l, F jS, Y') ?> at <?php the_time() ?>.
 129
                        You can follow any responses to this page through the <?php post_comments_feed_link('RSS 2.0'); ?> feed.
 130

 131
                        <?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
 132
                            
// Both Comments and Pings are open ?>
 133
You can <a href="#respond">leave a response</a>, or <a href="<?php trackback_url(); ?>" rel="trackback">trackback</a> from your own site.
 134

 135
                        <?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
 136
                            
// Only Pings are Open ?>
 137
Responses are currently closed, but you can <a href="<?php trackback_url(); ?> " rel="trackback">trackback</a> from your own site.
 138

 139
                        <?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
 140
                            
// Comments are open, Pings are not ?>
 141
You can skip to the end and leave a response. Pinging is currently not allowed.
 142

 143
                        <?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
 144
                            
// Neither Comments, nor Pings are open ?>
 145
Both comments and pings are currently closed.
 146

 147
                        <?php } edit_post_link('Edit this page','','.'); ?>
 148

 149
                    </small>
 150
                </p>
 151

 152

 153

 154

 155

 156

 157
<?php if(wp_list_pages('child_of=' . $post->ID . '&depth=1&echo=0&title_li=0')){ ?>
 158
<h2>Further Reading<br></h2><big style="line-height:1.2em"><?php txfx_wp_subpages(); ?></big>
 159
<?php }?>
 160

 161
            </div>
 162

 163
<?php $archives = get_post_meta($post->ID,'archives',true);
 164

 165
if(
$archives) echo '<br><a name="archives"></a><center><small style="width:80%;">the following archival materials may not reflect the present policies of www.digitaldevildb.com and are not subject to change</small></center><div id="d3-archives">', $archives, '</div>';
 166
?>
 167

 168

 169
        <?php comments_template(); ?>
 170

 171
        </div>
 172
        
 173
    </div>
 174

 175
  <?php endwhile; endif; ?>
 176

 177
<?php get_sidebar(); ?>
 178

<?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