Advertisement
Guest User

Untitled

a guest
Nov 13th, 2024
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.55 KB | None | 0 0
  1. <?php
  2. if( ! defined( 'ABSPATH' ) ) { die(); }
  3.  
  4. global $avia_config;
  5.  
  6. if ( is_product_category() && ! have_posts() ) {
  7. echo '<p>No products found in this category.</p>';
  8. return;
  9. }
  10.  
  11. get_header();
  12.  
  13. echo avia_title( array( 'title' => __( 'Error 404 - page not found', 'avia_framework' ) ) );
  14.  
  15. do_action( 'ava_after_main_title' );
  16.  
  17. /**
  18. * @since 5.6.7
  19. * @param string $main_class
  20. * @param string $context file name
  21. * @return string
  22. */
  23. $main_class = apply_filters( 'avf_custom_main_classes', 'av-main-' . basename( __FILE__, '.php' ), basename( __FILE__ ) );
  24. ?>
  25. <div class='container_wrap container_wrap_first main_color <?php avia_layout_class( 'main' ); ?>'>
  26.  
  27. <?php
  28. do_action( 'avia_404_extra' ); // allows user to hook into 404 page for extra functionality. eg: send mail that page is missing, output additional information
  29. ?>
  30.  
  31. <div class='container'>
  32.  
  33. <main class='template-page content <?php avia_layout_class( 'content' ); ?> units <?php echo $main_class; ?>' <?php avia_markup_helper( array( 'context' => 'content' ) );?>>
  34.  
  35. <div class="entry entry-content-wrapper clearfix" id='search-fail'>
  36. <?php
  37. // Displaying the standard 404 template for other cases
  38. get_template_part( 'includes/error404' );
  39. ?>
  40. </div>
  41.  
  42. </main>
  43.  
  44. </div><!--end container-->
  45.  
  46. </div><!-- close default .container_wrap element -->
  47.  
  48. <?php
  49. get_footer();
  50.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement