yinghe

page-29.php

Aug 19th, 2022
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.96 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. ?><!DOCTYPE html>
  18. <html <?php language_attributes(); ?>>
  19. <head>
  20. <meta charset="<?php bloginfo( 'charset' ); ?>">
  21. <link rel="profile" href="https://gmpg.org/xfn/11">
  22. <?php wp_head(); ?>
  23. </head>
  24.  
  25. <body <?php body_class(); ?> <?php generate_do_microdata( 'body' ); ?>>
  26. <?php
  27. /**
  28. * wp_body_open hook.
  29. *
  30. * @since 2.3
  31. */
  32. do_action( 'wp_body_open' ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- core WP ho
  33.  
  34. ?>
  35.  
  36. <div <?php generate_do_attr( 'page' ); ?>>
  37. <?php
  38. /**
  39. * generate_inside_site_container hook.
  40. *
  41. * @since 2.4
  42. */
  43. do_action( 'generate_inside_site_container' );
  44. ?>
  45. <div <?php generate_do_attr( 'site-content' ); ?>>
  46. <?php
  47. /**
  48. * generate_inside_container hook.
  49. *
  50. * @since 0.1
  51. */
  52. do_action( 'generate_inside_container' );?>
  53.  
  54.  
  55. <div <?php generate_do_attr( 'content' ); ?>>
  56. <main <?php generate_do_attr( 'main' ); ?>>
  57. <?php
  58. /**
  59. * generate_before_main_content hook.
  60. *
  61. * @since 0.1
  62. */
  63. do_action( 'generate_before_main_content' );
  64.  
  65. if ( generate_has_default_loop() ) {
  66. while ( have_posts() ) :
  67.  
  68. the_post();
  69.  
  70. generate_do_template_part( 'page' );
  71.  
  72. endwhile;
  73. }
  74.  
  75. /**
  76. * generate_after_main_content hook.
  77. *
  78. * @since 0.1
  79. */
  80. do_action( 'generate_after_main_content' );
  81. ?>
  82. </main>
  83. </div>
  84.  
  85. <?php
  86. /**
  87. * generate_after_primary_content_area hook.
  88. *
  89. * @since 2.0
  90. */
  91. do_action( 'generate_after_primary_content_area' );
  92.  
  93. generate_construct_sidebars();
  94.  
  95. get_footer();
  96.  
Advertisement
Add Comment
Please, Sign In to add comment