[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-content/themes/twentytwentyfour/patterns/ -> page-home-blogging.php (source)

   1  <?php
   2  /**
   3   * Title: Blogging home
   4   * Slug: twentytwentyfour/page-home-blogging
   5   * Categories: twentytwentyfour_page
   6   * Keywords: page, starter
   7   * Post Types: page, wp_template
   8   * Viewport width: 1400
   9   * Description: A blogging home page with a hero section, a text section, a blog section, and a CTA section.
  10   */
  11  ?>
  12  
  13  <!-- wp:pattern {"slug":"twentytwentyfour/text-centered-statement-small"}    /-->
  14  
  15  <!-- wp:group {"align":"wide","style":{"spacing":{"margin":{"top":"0","bottom":"0"},"padding":{"top":"var:preset|spacing|40","bottom":"var:preset|spacing|40"}}},"layout":{"type":"constrained"}} -->
  16  <div class="wp-block-group alignwide" style="margin-top:0;margin-bottom:0;padding-top:var(--wp--preset--spacing--40);padding-bottom:var(--wp--preset--spacing--40)">
  17      <!-- wp:columns {"align":"wide","style":{"spacing":{"blockGap":{"top":"1rem","left":"1rem"}}}} -->
  18      <div class="wp-block-columns alignwide">
  19          <!-- wp:column {"width":"10%"} -->
  20          <div class="wp-block-column" style="flex-basis:10%">
  21          </div>
  22          <!-- /wp:column -->
  23  
  24          <!-- wp:column {"width":"60%"} -->
  25          <div class="wp-block-column" style="flex-basis:60%">
  26              <!-- wp:query {"query":{"perPage":3,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true}} -->
  27              <div class="wp-block-query">
  28                  <!-- wp:post-template -->
  29                  <!-- wp:group {"tagName":"article","layout":{"type":"flex","orientation":"vertical","justifyContent":"stretch"}} -->
  30                  <article class="wp-block-group">
  31                      <!-- wp:post-featured-image /-->
  32  
  33                      <!-- wp:post-title {"isLink":true,"fontSize":"large"} /-->
  34  
  35                      <!-- wp:template-part {"slug":"post-meta"} /-->
  36  
  37                  </article>
  38                  <!-- /wp:group -->
  39  
  40                  <!-- wp:post-excerpt {"moreText":"","excerptLength":40} /-->
  41  
  42                  <!-- wp:spacer -->
  43                  <div style="height:100px" aria-hidden="true" class="wp-block-spacer">
  44                  </div>
  45                  <!-- /wp:spacer -->
  46                  <!-- /wp:post-template -->
  47  
  48                  <!-- wp:query-pagination {"paginationArrow":"arrow","layout":{"type":"flex","justifyContent":"space-between"}} -->
  49                  <!-- wp:query-pagination-previous /-->
  50  
  51                  <!-- wp:query-pagination-numbers /-->
  52  
  53                  <!-- wp:query-pagination-next /-->
  54                  <!-- /wp:query-pagination -->
  55  
  56                  <!-- wp:query-no-results -->
  57                  <!-- wp:pattern {"slug":"twentytwentyfour/hidden-no-results"} /-->
  58                  <!-- /wp:query-no-results -->
  59              </div>
  60              <!-- /wp:query -->
  61          </div>
  62          <!-- /wp:column -->
  63  
  64          <!-- wp:column {"width":"10%"} -->
  65          <div class="wp-block-column" style="flex-basis:10%">
  66          </div>
  67          <!-- /wp:column -->
  68  
  69          <!-- wp:column {"width":"30%"} -->
  70          <div class="wp-block-column" style="flex-basis:30%">
  71              <!-- wp:template-part {"slug":"sidebar","tagName":"aside"} /-->
  72          </div>
  73          <!-- /wp:column -->
  74  
  75          <!-- wp:column {"width":"10%"} -->
  76          <div class="wp-block-column" style="flex-basis:10%">
  77          </div>
  78          <!-- /wp:column -->
  79      </div>
  80      <!-- /wp:columns -->
  81  </div>
  82  <!-- /wp:group -->
  83  
  84  <!-- wp:pattern {"slug":"twentytwentyfour/cta-subscribe-centered"}    /-->


Generated : Sun Dec 22 08:20:01 2024 Cross-referenced by PHPXref