PageRenderTime 47ms CodeModel.GetById 19ms RepoModel.GetById 1ms app.codeStats 0ms

/wp-includes/theme-compat/sidebar.php

https://bitbucket.org/channainfo/simple-survey-wordpress-plugin
PHP | 84 lines | 61 code | 15 blank | 8 comment | 13 complexity | 7e9568054fced267e913263807bdd892 MD5 | raw file
Possible License(s): AGPL-1.0, GPL-2.0, LGPL-2.1
  1. <?php
  2. /**
  3. * @package WordPress
  4. * @subpackage Theme_Compat
  5. * @deprecated 3.0
  6. *
  7. * This file is here for Backwards compatibility with old themes and will be removed in a future version
  8. *
  9. */
  10. _deprecated_file( sprintf( __( 'Theme without %1$s' ), basename(__FILE__) ), '3.0', null, sprintf( __('Please include a %1$s template in your theme.'), basename(__FILE__) ) );
  11. ?>
  12. <div id="sidebar" role="complementary">
  13. <ul>
  14. <?php /* Widgetized sidebar, if you have the plugin installed. */
  15. if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>
  16. <li>
  17. <?php get_search_form(); ?>
  18. </li>
  19. <!-- Author information is disabled per default. Uncomment and fill in your details if you want to use it.
  20. <li><h2><?php _e('Author'); ?></h2>
  21. <p>A little something about you, the author. Nothing lengthy, just an overview.</p>
  22. </li>
  23. -->
  24. <?php if ( is_404() || is_category() || is_day() || is_month() ||
  25. is_year() || is_search() || is_paged() ) {
  26. ?> <li>
  27. <?php /* If this is a 404 page */ if (is_404()) { ?>
  28. <?php /* If this is a category archive */ } elseif (is_category()) { ?>
  29. <p><?php printf(__('You are currently browsing the archives for the %s category.'), single_cat_title('', false)); ?></p>
  30. <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
  31. <p><?php printf(__('You are currently browsing the <a href="%1$s/">%2$s</a> blog archives for the day %3$s.'), get_bloginfo('url'), get_bloginfo('name'), get_the_time(__('l, F jS, Y'))); ?></p>
  32. <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
  33. <p><?php printf(__('You are currently browsing the <a href="%1$s/">%2$s</a> blog archives for %3$s.'), get_bloginfo('url'), get_bloginfo('name'), get_the_time(__('F, Y'))); ?></p>
  34. <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
  35. <p><?php printf(__('You are currently browsing the <a href="%1$s/">%2$s</a> blog archives for the year %3$s.'), get_bloginfo('url'), get_bloginfo('name'), get_the_time('Y')); ?></p>
  36. <?php /* If this is a search result */ } elseif (is_search()) { ?>
  37. <p><?php printf(__('You have searched the <a href="%1$s/">%2$s</a> blog archives for <strong>&#8216;%3$s&#8217;</strong>. If you are unable to find anything in these search results, you can try one of these links.'), get_bloginfo('url'), get_bloginfo('name'), esc_html( get_search_query() ) ); ?></p>
  38. <?php /* If this set is paginated */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
  39. <p><?php printf(__('You are currently browsing the <a href="%1$s/">%2$s</a> blog archives.'), get_bloginfo('url'), get_bloginfo('name')); ?></p>
  40. <?php } ?>
  41. </li>
  42. <?php }?>
  43. </ul>
  44. <ul role="navigation">
  45. <?php wp_list_pages('title_li=<h2>' . __('Pages') . '</h2>' ); ?>
  46. <li><h2><?php _e('Archives'); ?></h2>
  47. <ul>
  48. <?php wp_get_archives(array('type' => 'monthly')); ?>
  49. </ul>
  50. </li>
  51. <?php wp_list_categories(array('show_count' => 1, 'title_li' => '<h2>' . __('Categories') . '</h2>')); ?>
  52. </ul>
  53. <ul>
  54. <?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?>
  55. <?php wp_list_bookmarks(); ?>
  56. <li><h2><?php _e('Meta'); ?></h2>
  57. <ul>
  58. <?php wp_register(); ?>
  59. <li><?php wp_loginout(); ?></li>
  60. <li><a href="http://validator.w3.org/check/referer" title="<?php esc_attr_e('This page validates as XHTML 1.0 Transitional'); ?>"><?php _e('Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr>'); ?></a></li>
  61. <li><a href="http://gmpg.org/xfn/"><abbr title="<?php esc_attr_e('XHTML Friends Network'); ?>"><?php _e('XFN'); ?></abbr></a></li>
  62. <li><a href="http://wordpress.org/" title="<?php esc_attr_e('Powered by WordPress, state-of-the-art semantic personal publishing platform.'); ?>">WordPress</a></li>
  63. <?php wp_meta(); ?>
  64. </ul>
  65. </li>
  66. <?php } ?>
  67. <?php endif; ?>
  68. </ul>
  69. </div>