Tema

 1
<?php
 2
 
global $query_string;
 3
 
query_posts($query_string."&cat=-47"); //Pagetree
 4
?>
 5

 6
<?php get_header(); ?>
 7

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

 10
      <?php if (have_posts()) : ?>
 11

 12
       <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
 13
<?php /* If this is a category archive */ if (is_category()) { ?>
 14
<h2 class="pagetitle"><?php printf(I18N_X('Archive for the &#8216;%s&#8217; Category'), single_cat_title('', false)); ?></h2>
 15
       <?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
 16
<h2 class="pagetitle"><?php printf(I18N_X('Posts Tagged &#8216;%s&#8217;'), single_tag_title('', false) ); ?></h2>
 17
       <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
 18
<h2 class="pagetitle"><?php printf(I18N_X('Archive for %s<!--Daily archive page-->'), get_the_time(I18N_X('F jS, Y'))); ?></h2>
 19
       <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
 20
<h2 class="pagetitle"><?php printf(I18N_X('Archive for %s<!--Monthly archive page-->'), get_the_time(I18N_X('F, Y'))); ?></h2>
 21
       <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
 22
<h2 class="pagetitle"><?php printf(I18N_X('Archive for %s<!--Yearly archive page-->'), get_the_time(I18N_X('Y'))); ?></h2>
 23
      <?php /* If this is an author archive */ } elseif (is_author()) { ?>
 24
<h2 class="pagetitle"><?php echo I18N_X('Author Archive'); ?></h2>
 25
       <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
 26
<h2 class="pagetitle"><?php echo I18N_X('Blog Archives'); ?></h2>
 27
       <?php } ?>
 28

 29
        <div class="navigation">
 30
<?php
 31
global $paged, $wp_query;
 32

 33
global
$lang, $clean_uri; //defined in header.php
 34

 35
$nav_older = ''; $nav_newer = ''; $naked_uri = explode('page/',$clean_uri[0]);
 36

 37
if(
$wp_query->max_num_pages>1)
 38
if(
$paged<$wp_query->max_num_pages) $nav_older = '<div class="alignleft"><a href='.$naked_uri[0].'page/'.($paged+1+!$paged).'/'.$lang.$clean_uri[1].'>'.I18N_X('&laquo; Older Entries').'</a></div>';
 39

 40
if(
$paged) $nav_newer = '<div class="alignright"><a href='.$naked_uri[0].($paged>2?('page/'.($paged-1).'/'):''
 41
).$lang.$clean_uri[1].'>'.I18N_X('Newer Entries &raquo;').'</a></div>';
 42

 43
echo
$nav_older, $nav_newer;
 44
?>
 45

 46
<br /><!-- solid margins -->
 47

 48
        </div>
 49

 50
<?php $sticky = 1; $ads = 0; ?>
 51

 52
        <?php while (have_posts()) : the_post(); ?>
 53

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

 56
        <div class="post">
 57
<?php
 58
global $lang; $xlat = 0;
 59

 60
if(
$lang!='')
 61
{
 62
 
$xlat = get_post_meta($post->ID,substr($lang,0,2),true);
 63

 64
 if(
$xlat) $xlat = explode("\n",$xlat);
 65
}
 66
$author_link = get_the_author_url();
 67

 68
if(
$author_link)
 69
 
$author_link = '<a href="'.$author_link.'">'.get_the_author().'</a>';
 70
  else
$author_link = get_the_author();
 71

 72
$syndicate = get_post_meta($post->ID,'syndicate',true);
 73

 74
if(
$syndicate&&substr($syndicate,0,7)=='http://')
 75
{
 76
 
$siteuri = strpos($syndicate,'/',7);
 77

 78
 
$website = is_bool($siteuri)?substr($syndicate,7):substr($syndicate,7,$siteuri-7);
 79

 80
 
$syndicate = '<a target="_blank" href="'.$syndicate.'">'.$website.'</a>';
 81
}
 82
else
$syndicate = '<a href="'.$lang.'">www.digitaldevildb.com</a>';
 83

 84
?>
 85
<h3 class="d3-post-title">
 86
<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(I18N_X('Permanent Link to %s'), the_title_attribute('echo=0')); ?>"><?php if($xlat) echo $xlat[0]; else the_title(); ?></a></h3>
 87
                <small><?php printf(I18N_X('%1$s by %2$s at %3$s'),get_the_time(I18N_X('l, F jS, Y')),$author_link,$syndicate); ?></small>
 88

 89

 90
                <div class="entry">
 91

 92
<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^">
 93
<img src="/UN.png" />
 94
<?php if(get_post_meta($post->ID,'es')) echo '<br /><img src="/ES.png" style="margin-top:-2px"/>'; ?>
 95
<?php
if(get_post_meta($post->ID,'zh')) echo '<br /><img src="/ZH.png" style="margin-top:-2px"/>'; ?>
 96
<?php
if(get_post_meta($post->ID,'it')) echo '<br /><img src="/IT.png" style="margin-top:-2px"/>'; ?>
 97
<?php
if(get_post_meta($post->ID,'fr')) echo '<br /><img src="/FR.png" style="margin-top:-2px"/>'; ?>
 98
</div>
 99
                    <?php the_content('<nobr>. . . .</nobr><br><br>'.I18N_X('Read the rest of this post').' &raquo;'); ?>
 100

 101

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

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

 106
                </div>
 107

 108
<?php if($xlat)
 109
{
 110
 if(
$xcred=get_userdata(intval($xlat[1])))
 111
 {
 112
  
$xurl = $xcred->user_url; if($xurl==''||$xurl=='http://') $xurl = 0; //defaults
 113

 114
  
$xurl = $xurl?('<a href="'.$xurl.'" title="'.sprintf(__('Visit %s\'s website'),$xcred->display_name).'" rel="external">'.$xcred->display_name.'</a>'):$xcred->display_name;
 115
 }
 116
 else
$xurl = substr($xlat[1],strpos($xlat[1],' ')); //fallback credits
 117

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

 120
}
?>
 121

 122

 123
<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">
 124
                        
 125
    <textarea name="search">"NEWS: <?php echo str_replace(array("&amp;nbsp;","&"),array(" ","&amp;"),htmlspecialchars(strip_tags($post->post_title))); ?>"</textarea>
 126
</form>
 127

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

 130
                <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>
 131

 132
            </div>
 133

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

 136
<script type="text/javascript"><!--
 137
goooooooooooooogle_ad_client = "pub-4203437078642917";
 138
/* 468x60, created 11/17/08 */
 139

 140
goooooooooooooogle_ad_slot = "3892510295"; //"6692656179";
 141

 142
goooooooooooooogle_ad_width = 468;
 143
goooooooooooooogle_ad_height = 60;
 144
//-->
 145
</script>
 146
<script type="text/javascript"
 147
src="http://pagead2.gooooooooooooooglesyndication.com/pagead/show_ads.js">
 148
</script>
 149
        <?php endwhile; ?>
 150

 151
        <div class="navigation">
 152
<?php
 153
echo $nav_older, $nav_newer;
 154
?>
 155
</div>
 156

 157
    <?php else : ?>
 158

 159
        <h2 class="center">Not Found</h2>
 160
        <?php include (TEMPLATEPATH . '/searchform.php'); ?>
 161

 162
    <?php endif; ?>
 163

 164
    </div>
 165

 166
<?php get_sidebar(); ?>
 167

 168
<?php get_footer(); ?>


© Digital Devil Database

Leave a Reply

You must be logged in to post a comment.


Página Frontal | Mapa del Sitio | D3 Archivos

© 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