[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-content/themes/twentytwentyfive/patterns/ -> template-home-with-sidebar-news-blog.php (source)

   1  <?php
   2  /**
   3   * Title: News blog with sidebar
   4   * Slug: twentytwentyfive/template-home-with-sidebar-news-blog
   5   * Template Types: front-page, index, home
   6   * Viewport width: 1400
   7   * Inserter: no
   8   *
   9   * @package WordPress
  10   * @subpackage Twenty_Twenty_Five
  11   * @since Twenty Twenty-Five 1.0
  12   */
  13  
  14  ?>
  15  <!-- wp:template-part {"slug":"header-large-title"} /-->
  16  
  17  <!-- wp:group {"tagName":"main","style":{"spacing":{"padding":{"top":"var:preset|spacing|50","bottom":"var:preset|spacing|50"},"margin":{"top":"0","bottom":"0"}}},"layout":{"type":"constrained"}} -->
  18  <main class="wp-block-group" style="margin-top:0;margin-bottom:0;padding-top:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--50)">
  19      <!-- wp:columns {"align":"wide","style":{"spacing":{"blockGap":{"left":"var:preset|spacing|50"}}}} -->
  20      <div class="wp-block-columns alignwide">
  21          <!-- wp:column {"width":"75%"} -->
  22          <div class="wp-block-column" style="flex-basis:75%">
  23              <!-- wp:query {"query":{"perPage":1,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":false}} -->
  24              <div class="wp-block-query">
  25                  <!-- wp:post-template -->
  26                      <!-- wp:post-featured-image {"isLink":true,"aspectRatio":"3/2","align":"wide"} /-->
  27                      <!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|20","padding":{"top":"var:preset|spacing|40","bottom":"var:preset|spacing|40"}}},"layout":{"type":"flex","orientation":"vertical","justifyContent":"stretch"}} -->
  28                      <div class="wp-block-group" style="padding-top:var(--wp--preset--spacing--40);padding-bottom:var(--wp--preset--spacing--40)">
  29                          <!-- wp:post-title {"level":1,"isLink":true} /-->
  30                          <!-- wp:post-terms {"term":"category","style":{"typography":{"textTransform":"uppercase","letterSpacing":"1.4px"}}} /-->
  31                          <!-- wp:post-date {"isLink":true} /-->
  32                      </div>
  33                      <!-- /wp:group -->
  34                  <!-- /wp:post-template -->
  35              </div>
  36              <!-- /wp:query -->
  37          </div>
  38          <!-- /wp:column -->
  39          <!-- wp:column {"width":"25%"} -->
  40          <div class="wp-block-column" style="flex-basis:25%">
  41              <!-- wp:heading {"style":{"typography":{"fontStyle":"normal","fontWeight":"600","textTransform":"uppercase","letterSpacing":"1.6px"}},"fontSize":"small"} -->
  42              <h2 class="wp-block-heading has-small-font-size" style="font-style:normal;font-weight:600;letter-spacing:1.6px;text-transform:uppercase"><?php esc_html_e( 'The Latest', 'twentytwentyfive' ); ?></h2>
  43              <!-- /wp:heading -->
  44              <!-- wp:spacer {"height":"var:preset|spacing|20"} -->
  45              <div style="height:var(--wp--preset--spacing--20)" aria-hidden="true" class="wp-block-spacer"></div>
  46              <!-- /wp:spacer -->
  47              <!-- wp:query {"query":{"perPage":6,"pages":0,"offset":"1","postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":false,"taxQuery":null,"parents":[]}} -->
  48              <div class="wp-block-query">
  49                  <!-- wp:post-template -->
  50                      <!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|20"}},"layout":{"type":"flex","orientation":"vertical"}} -->
  51                      <div class="wp-block-group">
  52                          <!-- wp:post-title {"level":3,"isLink":true,"fontSize":"large"} /-->
  53                          <!-- wp:post-date {"fontSize":"small","isLink":true} /-->
  54                      </div>
  55                      <!-- /wp:group -->
  56                      <!-- wp:spacer {"height":"var:preset|spacing|20"} -->
  57                      <div style="height:var(--wp--preset--spacing--20)" aria-hidden="true" class="wp-block-spacer"></div>
  58                      <!-- /wp:spacer -->
  59                  <!-- /wp:post-template -->
  60                  <!-- wp:query-no-results -->
  61                      <!-- wp:paragraph {"placeholder":"<?php esc_attr_e( 'Add text or blocks that will display when a query returns no results.', 'twentytwentyfive' ); ?>","fontSize":"medium"} -->
  62                      <p class="has-medium-font-size"><?php echo esc_html_x( 'Sorry, but nothing was found. Please try a search with different keywords.', 'Message explaining that there are no results returned from a search.', 'twentytwentyfive' ); ?></p>
  63                      <!-- /wp:paragraph -->
  64                  <!-- /wp:query-no-results -->
  65              </div>
  66              <!-- /wp:query -->
  67          </div>
  68          <!-- /wp:column -->
  69      </div>
  70      <!-- /wp:columns -->
  71      <!-- wp:spacer {"height":"var:preset|spacing|50"} -->
  72      <div style="height:var(--wp--preset--spacing--50)" aria-hidden="true" class="wp-block-spacer"></div>
  73      <!-- /wp:spacer -->
  74      <!-- wp:query {"query":{"perPage":4,"pages":0,"offset":"7","postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":false,"taxQuery":null,"parents":[]},"align":"wide"} -->
  75      <div class="wp-block-query alignwide">
  76          <!-- wp:post-template -->
  77              <!-- wp:columns {"style":{"spacing":{"blockGap":{"left":"var:preset|spacing|50"},"margin":{"top":"var:preset|spacing|30","bottom":"var:preset|spacing|30"},"padding":{"top":"var:preset|spacing|30","bottom":"var:preset|spacing|30"}},"border":{"bottom":{"color":"var:preset|color|accent-6","width":"1px"}}}} -->
  78              <div class="wp-block-columns" style="border-bottom-color:var(--wp--preset--color--accent-6);border-bottom-width:1px;margin-top:var(--wp--preset--spacing--30);margin-bottom:var(--wp--preset--spacing--30);padding-top:var(--wp--preset--spacing--30);padding-bottom:var(--wp--preset--spacing--30)">
  79                  <!-- wp:column {"verticalAlignment":"center","width":"60%"} -->
  80                  <div class="wp-block-column is-vertically-aligned-center" style="flex-basis:60%">
  81                      <!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|30"}},"layout":{"type":"flex","orientation":"vertical","justifyContent":"stretch"}} -->
  82                      <div class="wp-block-group">
  83                          <!-- wp:post-title {"fontSize":"x-large"} /-->
  84                          <!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|20"}},"fontSize":"small","layout":{"type":"flex","flexWrap":"wrap"}} -->
  85                          <div class="wp-block-group has-small-font-size">
  86                              <!-- wp:post-terms {"term":"category","style":{"typography":{"textTransform":"uppercase","letterSpacing":"1.4px"}}} /-->
  87                              <!-- wp:paragraph -->
  88                              <p><?php echo esc_html_x( 'ยท', 'Separator between date and categories.', 'twentytwentyfive' ); ?></p>
  89                              <!-- /wp:paragraph -->
  90                              <!-- wp:post-date {"isLink":true} /-->
  91                          </div>
  92                          <!-- /wp:group -->
  93                      </div>
  94                      <!-- /wp:group -->
  95                  </div>
  96                  <!-- /wp:column -->
  97                  <!-- wp:column {"width":"20%"} -->
  98                  <div class="wp-block-column" style="flex-basis:20%"></div>
  99                  <!-- /wp:column -->
 100                  <!-- wp:column {"width":"13.33%"} -->
 101                  <div class="wp-block-column" style="flex-basis:13.33%">
 102                      <!-- wp:post-featured-image {"isLink":true,"aspectRatio":"1","style":{"layout":{"selfStretch":"fixed","flexSize":"180px"}}} /-->
 103                  </div>
 104                  <!-- /wp:column -->
 105              </div>
 106              <!-- /wp:columns -->
 107          <!-- /wp:post-template -->
 108          <!-- wp:group {"style":{"spacing":{"padding":{"top":"var:preset|spacing|30","bottom":"var:preset|spacing|30"}}},"layout":{"type":"constrained"}} -->
 109          <div class="wp-block-group" style="padding-top:var(--wp--preset--spacing--30);padding-bottom:var(--wp--preset--spacing--30)">
 110              <!-- wp:query-pagination {"fontSize":"medium","layout":{"type":"flex","justifyContent":"space-between"}} -->
 111                  <!-- wp:query-pagination-previous /-->
 112                  <!-- wp:query-pagination-numbers /-->
 113                  <!-- wp:query-pagination-next /-->
 114              <!-- /wp:query-pagination -->
 115          </div>
 116          <!-- /wp:group -->
 117          <!-- wp:query-no-results -->
 118              <!-- wp:paragraph -->
 119              <p><?php echo esc_html_x( 'Sorry, but nothing was found. Please try a search with different keywords.', 'Message explaining that there are no results returned from a search.', 'twentytwentyfive' ); ?></p>
 120              <!-- /wp:paragraph -->
 121          <!-- /wp:query-no-results -->
 122      </div>
 123      <!-- /wp:query -->
 124  </main>
 125  <!-- /wp:group -->
 126  
 127  <!-- wp:template-part {"slug":"footer-columns"} /-->


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