Theme

 1
<?php global $intl, $lang; ?>
 2

 3

 4

 5
    <div id="sidebar">
 6

 7

 8

 9
<?php if(is_page()){
 10

 11

 12

 13
echo
'<div class="d3-directory">';
 14

 15

 16

 17
 echo
'<font style="font-size:1.2em; line-height:1.3">';
 18

 19

 20

 21
 global
$sidebar_special_pages_directory;
 22

 23

 24

 25
 if(!
$sidebar_special_pages_directory)
 26

 27
 {
 28

 29
  
$out = ddlsp_generate();
 30

 31

 32

 33
  if(
$out!='<ul></ul>'&&
 34

 35
     
$out!='<ul><li class="pagenav"><div></div><ul></ul></li></ul>') //hack: empty listing
 36

 37

 38

 39
   
echo '<h2>',I18N_X('Further Reading'),'</h2>', $out;
 40

 41

 42

 43
  
//hacks...
 44

 45
//Why was eval used here???
 46
/*
 47
eval('?>'.str_replace('<h2>Features</h2>','<h2>'.I18N_X('Features').'</h2>',get_post_meta($post->ID,'features',true)).'<?');
 48
eval('?>'.str_replace('<h2>Archives</h2>','<h2>'.I18N_X('Archives').'</h2>',get_post_meta($post->ID,'archives',true)).'<?');
 49
*/
 50

 51
  
echo str_replace('<h2>Features</h2>','<h2>'.I18N_X('Features').'</h2>',get_post_meta($post->ID,'features',true));
 52
  echo
str_replace('<h2>Archives</h2>','<h2>'.I18N_X('Archives').'</h2>',get_post_meta($post->ID,'archives',true));
 53

 54
 }
 55
 else echo
$sidebar_special_pages_directory;
 56

 57

 58
 echo
'</font>';
 59
echo
'</div>';
 60

 61
}
?>
 62

 63

 64

 65
<?php if(is_page()&&$post->post_parent){
 66

 67
$back_to_parent = get_post($post->post_parent);
 68

 69
?><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 }?>
 70

 71

 72

 73
<ul><li>
 74

 75
<?php
 76

 77
global $paged;
 78

 79

 80

 81
if(!
is_home()||$paged)
 82

 83
{
?>
 84

 85
 <h2><a href="/<?php echo $lang; ?>">« <?php echo I18N_X('Back to Front Page');?></a></h2>
 86

 87
<?
 88

 89
}
 90

 91
else
 92

 93
{
 94

 95
 
$new_post = 1697; //Newest Additions Page
 96

 97
$hack = get_post($new_post); //swordofmoonlight.com??
 98

 99
 
$mod_time = explode(' ',$hack->post_modified);
 100

 101
 
$mod_date = explode('-',$mod_time[0]);
 102

 103

 104
 switch(
$mod_date[1])
 105

 106
 {
 107
 case
1: $mod_date[1] = 'January'; break; case 2: $mod_date[1] = 'February'; break;
 108

 109
 case
3: $mod_date[1] = 'March'; break; case 4: $mod_date[1] = 'April'; break;
 110

 111
 case
5: $mod_date[1] = 'May'; break; case 6: $mod_date[1] = 'June'; break;
 112

 113
 case
7: $mod_date[1] = 'July'; break; case 8: $mod_date[1] = 'August'; break;
 114

 115
 case
9: $mod_date[1] = 'September'; break; case 10: $mod_date[1] = 'October'; break;
 116

 117
 case
11: $mod_date[1] = 'November'; break; case 12: $mod_date[1] = 'December'; break;
 118
 }
 119

 120

 121

 122
 if(
$mod_date[2][0]=='0') $mod_date[2] = $mod_date[2][1];
 123

 124
 
 125

 126
 switch(
$lang)
 127

 128
 {
 129

 130
 case
'es/': //Spanish
 131

 132
  
 133

 134
  
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>';
 135

 136

 137

 138
  break;
 139

 140

 141

 142
 default:
//English
 143

 144

 145

 146
  
switch($mod_date[2]%10)
 147

 148
  {
 149

 150
  case
1: $mod_date[2].='st'; break;
 151

 152
  case
2: $mod_date[2].='nd'; break;
 153

 154
  case
3: $mod_date[2].='rd'; break;
 155

 156
 
 157

 158
  default:
$mod_date[2].='th';
 159

 160
  }
 161

 162
 
 163

 164
  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>';
 165

 166
 }
 167

 168

 169

 170
}
?>
 171

 172

 173

 174
</li>
 175

 176

 177

 178
<li>
 179

 180
<div class="textwidget"><form onsubmit="document.getElementById('q').value = document.getElementById('s').value;
 181

 182
document.getElementById('sa').click();
 183

 184
return false;" action="" id="searchform">
 185

 186
<div><input value="" name="s" id="s" type="text">
 187

 188
<input id="searchsubmit" value="Search" onclick="document.getElementById('q').value = document.getElementById('s').value;
 189

 190
document.getElementById('sa').click();
 191

 192
return false;" type="button">
 193

 194
<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>
 195

 196
</div></form>
 197

 198

 199

 200
<div style="display: none;">
 201

 202

 203

 204
<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;">
 205

 206
  <div>
 207

 208
    <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">
 209

 210
    <input name="sa" id="sa" value="Search" style="margin: 2px 0px; padding: 1px;" type="submit"></nobr>
 211

 212
  </div>
 213

 214

 215

 216
</form>
 217

 218

 219

 220

 221
</div></div>
 222

 223
        </li>
 224

 225

 226

 227

 228

 229
<!-- <ul> -->
 230

 231
            <?php /* Widgetized sidebar, if you have the plugin installed. */
 232

 233
                    
if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>
 234

 235
            <li>
 236

 237
                <?php include (TEMPLATEPATH . '/searchform.php'); ?>
 238

 239
            </li>
 240

 241

 242

 243
            <!-- Author information is disabled per default. Uncomment and fill in your details if you want to use it.
 244

 245
            <li><h2>Author</h2>
 246

 247
            <p>A little something about you, the author. Nothing lengthy, just an overview.</p>
 248

 249
            </li>
 250

 251
            -->
 252

 253

 254

 255
            <?php if ( is_404() || is_category() || is_day() || is_month() ||
 256

 257
                        
is_year() || is_search() || is_paged() ) {
 258

 259
            
?> <li>
 260

 261

 262

 263
            <?php /* If this is a 404 page */ if (is_404()) { ?>
 264

 265
            <?php /* If this is a category archive */ } elseif (is_category()) { ?>
 266

 267
            <p>You are currently browsing the archives for the <?php single_cat_title(''); ?> category.</p>
 268

 269

 270

 271
            <?php /* If this is a yearly archive */ } elseif (is_day()) { ?>
 272

 273
            <p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives
 274

 275
            for the day <?php the_time('l, F jS, Y'); ?>.</p>
 276

 277

 278

 279
            <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
 280

 281
            <p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives
 282

 283
            for <?php the_time('F, Y'); ?>.</p>
 284

 285

 286

 287
            <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
 288

 289
            <p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives
 290

 291
            for the year <?php the_time('Y'); ?>.</p>
 292

 293

 294

 295
            <?php /* If this is a monthly archive */ } elseif (is_search()) { ?>
 296

 297
            <p>You have searched the <a href="<?php echo bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives
 298

 299
            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>
 300

 301

 302

 303
            <?php /* If this is a monthly archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
 304

 305
            <p>You are currently browsing the <a href="<?php echo bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives.</p>
 306

 307

 308

 309
            <?php } ?>
 310

 311

 312

 313

 314

 315
            </li> <?php }?>
 316

 317

 318

 319

 320

 321
            <?php wp_list_pages('title_li=<h2>Pages</h2>' ); ?>
 322

 323

 324

 325
            <li><h2>Archives</h2>
 326

 327
                <ul>
 328

 329
                <?php wp_get_archives('type=monthly'); ?>
 330

 331
                </ul>
 332

 333
            </li>
 334

 335

 336

 337
            <?php wp_list_categories('show_count=1&title_li=<h2>Categories</h2>'); ?>
 338

 339

 340

 341
            <?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?>
 342

 343
                <?php wp_list_bookmarks(); ?>
 344

 345

 346

 347
                <li><h2>Meta</h2>
 348

 349
                <ul>
 350

 351
                    <?php wp_register(); ?>
 352

 353
                    <li><?php wp_loginout(); ?></li>
 354

 355
                    <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>
 356

 357
                    <li><a href="http://gmpg.org/xfn/"><abbr title="XHTML Friends Network">XFN</abbr></a></li>
 358

 359
                    <li><a href="http://wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform.">WordPress</a></li>
 360

 361
                    <?php wp_meta(); ?>
 362

 363
                </ul>
 364

 365
                </li>
 366

 367
            <?php } ?>
 368

 369

 370

 371
            <?php endif; ?>
 372

 373
        </ul>
 374

 375
    </div>
 376

 377

 378



© 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