[ XREF Home ] [ Index ]

PHP Cross Reference of WordPress Trunk

Provided by Yoast

title

Body

[close]

/wp-content/themes/twentyeleven/ -> 404.php (source)

   1  <?php
   2  /**
   3   * The template for displaying 404 pages (Not Found).
   4   *
   5   * @package WordPress
   6   * @subpackage Twenty_Eleven
   7   * @since Twenty Eleven 1.0
   8   */
   9  
  10  get_header(); ?>
  11  
  12      <div id="primary">
  13          <div id="content" role="main">
  14  
  15              <article id="post-0" class="post error404 not-found">
  16                  <header class="entry-header">
  17                      <h1 class="entry-title"><?php _e( 'This is somewhat embarrassing, isn&rsquo;t it?', 'twentyeleven' ); ?></h1>
  18                  </header>
  19  
  20                  <div class="entry-content">
  21                      <p><?php _e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching, or one of the links below, can help.', 'twentyeleven' ); ?></p>
  22  
  23                      <?php get_search_form(); ?>
  24  
  25                      <?php the_widget( 'WP_Widget_Recent_Posts', array( 'number' => 10 ), array( 'widget_id' => '404' ) ); ?>
  26  
  27                      <div class="widget">
  28                          <h2 class="widgettitle"><?php _e( 'Most Used Categories', 'twentyeleven' ); ?></h2>
  29                          <ul>
  30                          <?php wp_list_categories( array( 'orderby' => 'count', 'order' => 'DESC', 'show_count' => 1, 'title_li' => '', 'number' => 10 ) ); ?>
  31                          </ul>
  32                      </div>
  33  
  34                      <?php
  35                      $archive_content = '<p>' . sprintf( __( 'Try looking in the monthly archives. %1$s', 'twentyeleven' ), convert_smilies( ':)' ) ) . '</p>';
  36                      the_widget( 'WP_Widget_Archives', array('count' => 0 , 'dropdown' => 1 ), "after_title=</h2>$archive_content" );
  37                      ?>
  38  
  39                      <?php the_widget( 'WP_Widget_Tag_Cloud' ); ?>
  40  
  41                  </div><!-- .entry-content -->
  42              </article><!-- #post-0 -->
  43  
  44          </div><!-- #content -->
  45      </div><!-- #primary -->
  46  
  47  <?php get_footer(); ?>


Generated: Wed Jun 1 08:30:02 2011 Cross-referenced by PHPXref 0.7
Provided by Yoast and awesome WordPress Hosting