yinghe

Untitled

Jan 18th, 2024
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. <?php
  2. /**
  3. * The template for displaying all pages.
  4. *
  5. * This is the template that displays all pages by default.
  6. * Please note that this is the WordPress construct of pages
  7. * and that other 'pages' on your WordPress site will use a
  8. * different template.
  9. *
  10. * @package GeneratePress
  11. */
  12.  
  13. if ( ! defined( 'ABSPATH' ) ) {
  14. exit; // Exit if accessed directly.
  15. }
  16.  
  17. get_header();
  18. generate_construct_sidebars();?>
  19.  
  20. <div <?php generate_do_attr( 'content' ); ?>>
  21. <main <?php generate_do_attr( 'main' ); ?>>
  22. <?php
  23. /**
  24. * generate_before_main_content hook.
  25. *
  26. * @since 0.1
  27. */
  28. do_action( 'generate_before_main_content' );
  29.  
  30. if ( generate_has_default_loop() ) {
  31. while ( have_posts() ) :
  32.  
  33. the_post();
  34.  
  35. generate_do_template_part( 'page' );
  36.  
  37. endwhile;
  38. }
  39.  
  40. /**
  41. * generate_after_main_content hook.
  42. *
  43. * @since 0.1
  44. */
  45. do_action( 'generate_after_main_content' );
  46. ?>
  47. </main>
  48. </div>
  49.  
  50. <?php
  51. /**
  52. * generate_after_primary_content_area hook.
  53. *
  54. * @since 2.0
  55. */
  56. do_action( 'generate_after_primary_content_area' );
  57.  
  58.  
  59.  
  60. get_footer();
  61.  
Advertisement
Add Comment
Please, Sign In to add comment