PageRenderTime 50ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 0ms

/wp-content/themes/ifeature/no-results.php

https://github.com/Bochet/festival_lgbt
PHP | 42 lines | 21 code | 8 blank | 13 comment | 2 complexity | 5cb6beedbf7c26422e791551f59263ff MD5 | raw file
Possible License(s): GPL-2.0, AGPL-1.0, LGPL-2.1
  1. <?php
  2. /**
  3. * No Search Results Template
  4. *
  5. * Please do not edit this file. This file is part of the Cyber Chimps Framework and all modifications
  6. * should be made in a child theme.
  7. *
  8. * @category CyberChimps Framework
  9. * @package Framework
  10. * @since 1.0
  11. * @author CyberChimps
  12. * @license http://www.opensource.org/licenses/gpl-license.php GPL v2.0 (or later)
  13. * @link http://www.cyberchimps.com/
  14. */
  15. ?>
  16. <article id="post-0" class="post no-results not-found">
  17. <header class="entry-header">
  18. <h1 class="entry-title"><?php _e( 'Nothing Found', 'cyberchimps' ); ?></h1>
  19. </header><!-- .entry-header -->
  20. <div class="entry-content">
  21. <?php if ( is_home() ) { ?>
  22. <p><?php printf( '%1$s <a href="%2$s">%3$s</a>.',
  23. __( 'Ready to publish your first post?', 'cyberchimps' ),
  24. admin_url( 'post-new.php' ),
  25. __( 'Get started here', 'cyberchimps' ) ); ?></p>
  26. <?php } elseif ( is_search() ) { ?>
  27. <p><?php _e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'cyberchimps' ); ?></p>
  28. <?php get_search_form(); ?>
  29. <?php } else { ?>
  30. <p><?php _e( 'It seems we cannot find what you are looking for. Perhaps searching can help.', 'cyberchimps' ); ?></p>
  31. <?php get_search_form(); ?>
  32. <?php } ?>
  33. </div><!-- .entry-content -->
  34. </article><!-- #post-0 -->