404.php 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <?php
  2. if ( !defined('ABSPATH') ){ die(); }
  3. global $avia_config;
  4. /*
  5. * get_header is a basic wordpress function, used to retrieve the header.php file in your theme directory.
  6. */
  7. get_header();
  8. echo avia_title(array('title' => __('Error 404 - page not found', 'avia_framework')));
  9. do_action( 'ava_after_main_title' );
  10. ?>
  11. <div class='container_wrap container_wrap_first main_color <?php avia_layout_class( 'main' ); ?>'>
  12. <?php
  13. do_action('avia_404_extra'); // allows user to hook into 404 page fr extra functionallity. eg: send mail that page is missing, output additional information
  14. ?>
  15. <div class='container'>
  16. <main class='template-page content <?php avia_layout_class( 'content' ); ?> units' <?php avia_markup_helper(array('context' => 'content'));?>>
  17. <div class="entry entry-content-wrapper clearfix" id='search-fail'>
  18. <p class='entry-content'><strong><?php _e('Nothing Found', 'avia_framework'); ?></strong><br/>
  19. <?php _e('Sorry, what you are looking for is not available. Maybe you want to perform a search?', 'avia_framework'); ?>
  20. </p>
  21. <?php
  22. if(isset($_GET['post_type']) && $_GET['post_type'] == 'product' && function_exists('get_product_search_form'))
  23. {
  24. get_product_search_form();
  25. }
  26. else
  27. {
  28. get_search_form();
  29. }
  30. ?>
  31. <div class='hr_invisible'></div>
  32. <section class="404_recommendation">
  33. <p><?php _e('For best search results, mind the following suggestions:', 'avia_framework'); ?></p>
  34. <ul class='borderlist-not'>
  35. <li><?php _e('Always double check your spelling.', 'avia_framework'); ?></li>
  36. <li><?php _e('Try similar keywords, for example: tablet instead of laptop.', 'avia_framework'); ?></li>
  37. <li><?php _e('Try using more than one keyword.', 'avia_framework'); ?></li>
  38. </ul>
  39. <div class='hr_invisible'></div>
  40. </section>
  41. </div>
  42. <!--end content-->
  43. </main>
  44. <?php
  45. //get the sidebar
  46. $avia_config['currently_viewing'] = 'page';
  47. get_sidebar();
  48. ?>
  49. </div><!--end container-->
  50. </div><!-- close default .container_wrap element -->
  51. <?php get_footer(); ?>