[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

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

   1  <?php
   2  /**
   3   * 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
  31                          wp_list_categories(
  32                              array(
  33                                  'orderby'    => 'count',
  34                                  'order'      => 'DESC',
  35                                  'show_count' => 1,
  36                                  'title_li'   => '',
  37                                  'number'     => 10,
  38                              )
  39                          );
  40                          ?>
  41                          </ul>
  42                      </div>
  43  
  44                      <?php
  45                      /* translators: %s: Smilie. */
  46                      $archive_content = '<p>' . sprintf( __( 'Try looking in the monthly archives. %s', 'twentyeleven' ), convert_smilies( ':)' ) ) . '</p>';
  47                      the_widget(
  48                          'WP_Widget_Archives',
  49                          array(
  50                              'count'    => 0,
  51                              'dropdown' => 1,
  52                          ),
  53                          array( 'after_title' => '</h2>' . $archive_content )
  54                      );
  55                      ?>
  56  
  57                      <?php the_widget( 'WP_Widget_Tag_Cloud' ); ?>
  58  
  59                  </div><!-- .entry-content -->
  60              </article><!-- #post-0 -->
  61  
  62          </div><!-- #content -->
  63      </div><!-- #primary -->
  64  
  65  <?php get_footer(); ?>


Generated: Sun Dec 22 01:00:02 2024 Cross-referenced by PHPXref 0.7.1