[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

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

   1  <?php
   2  /**
   3   * Title: News blog home
   4   * Slug: twentytwentyfive/template-home-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":{"blockGap":"0"}},"layout":{"type":"constrained"}} -->
  18  <main class="wp-block-group">
  19      <!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"var:preset|spacing|50","bottom":"var:preset|spacing|50"}}},"layout":{"type":"constrained"}} -->
  20      <div class="wp-block-group alignfull" style="padding-top:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--50)">
  21          <!-- wp:columns {"align":"wide","style":{"spacing":{"blockGap":{"left":"var:preset|spacing|50"}}}} -->
  22          <div class="wp-block-columns alignwide">
  23              <!-- wp:column {"width":"25%"} -->
  24              <div class="wp-block-column" style="flex-basis:25%">
  25                  <!-- wp:group {"style":{"layout":{"columnSpan":1,"rowSpan":1}},"layout":{"type":"flex","orientation":"vertical","justifyContent":"stretch"}} -->
  26                  <div class="wp-block-group">
  27                      <!-- wp:query {"query":{"perPage":1,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":false,"taxQuery":null,"parents":[]}} -->
  28                      <div class="wp-block-query">
  29                          <!-- wp:post-template -->
  30                              <!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|20"}},"layout":{"type":"default"}} -->
  31                              <div class="wp-block-group">
  32                                  <!-- wp:post-featured-image {"isLink":true,"aspectRatio":"3/2"} /-->
  33                                  <!-- wp:post-title {"isLink":true,"fontSize":"large"} /-->
  34                                  <!-- wp:post-terms {"term":"category","style":{"typography":{"textTransform":"uppercase","letterSpacing":"1.4px"}}} /-->
  35                              </div>
  36                              <!-- /wp:group -->
  37                          <!-- /wp:post-template -->
  38                          <!-- wp:query-no-results -->
  39                              <!-- wp:paragraph -->
  40                              <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>
  41                              <!-- /wp:paragraph -->
  42                          <!-- /wp:query-no-results -->
  43                      </div>
  44                      <!-- /wp:query -->
  45                      <!-- wp:query {"query":{"perPage":1,"pages":0,"offset":"3","postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":false,"taxQuery":null,"parents":[]}} -->
  46                      <div class="wp-block-query">
  47                          <!-- wp:post-template -->
  48                              <!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|20"}},"layout":{"type":"default"}} -->
  49                              <div class="wp-block-group">
  50                                  <!-- wp:post-featured-image {"isLink":true,"aspectRatio":"3/2"} /-->
  51                                  <!-- wp:post-title {"isLink":true,"fontSize":"large"} /-->
  52                                  <!-- wp:post-terms {"term":"category","style":{"typography":{"textTransform":"uppercase","letterSpacing":"1.4px"}}} /-->
  53                              </div>
  54                              <!-- /wp:group -->
  55                          <!-- /wp:post-template -->
  56                      </div>
  57                      <!-- /wp:query -->
  58                  </div>
  59                  <!-- /wp:group -->
  60              </div>
  61              <!-- /wp:column -->
  62              <!-- wp:column {"width":"50%"} -->
  63              <div class="wp-block-column" style="flex-basis:50%">
  64                  <!-- wp:query {"query":{"perPage":1,"pages":0,"offset":"1","postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":false,"taxQuery":null,"parents":[]}} -->
  65                  <div class="wp-block-query">
  66                      <!-- wp:post-template -->
  67                          <!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|30"}},"layout":{"type":"default"}} -->
  68                          <div class="wp-block-group">
  69                              <!-- wp:post-featured-image {"isLink":true,"aspectRatio":"4/3"} /-->
  70                              <!-- wp:post-title {"level":1,"isLink":true} /-->
  71                              <!-- wp:post-terms {"term":"category","style":{"typography":{"textTransform":"uppercase","letterSpacing":"1.4px"}}} /-->
  72                              <!-- wp:post-excerpt {"fontSize":"medium"} /-->
  73                          </div>
  74                          <!-- /wp:group -->
  75                      <!-- /wp:post-template -->
  76                  </div>
  77                  <!-- /wp:query -->
  78              </div>
  79              <!-- /wp:column -->
  80              <!-- wp:column {"width":"25%"} -->
  81              <div class="wp-block-column" style="flex-basis:25%">
  82                  <!-- wp:group {"style":{"layout":{"columnSpan":1,"rowSpan":1}},"layout":{"type":"flex","orientation":"vertical","justifyContent":"stretch"}} -->
  83                  <div class="wp-block-group">
  84                      <!-- wp:query {"query":{"perPage":1,"pages":0,"offset":"2","postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":false,"taxQuery":null,"parents":[]}} -->
  85                      <div class="wp-block-query">
  86                          <!-- wp:post-template -->
  87                              <!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|20"}},"layout":{"type":"default"}} -->
  88                              <div class="wp-block-group">
  89                                  <!-- wp:post-featured-image {"isLink":true,"aspectRatio":"3/2"} /-->
  90                                  <!-- wp:post-title {"isLink":true,"fontSize":"large"} /-->
  91                                  <!-- wp:post-terms {"term":"category","style":{"typography":{"textTransform":"uppercase","letterSpacing":"1.4px"}}} /-->
  92                              </div>
  93                              <!-- /wp:group -->
  94                          <!-- /wp:post-template -->
  95                      </div>
  96                      <!-- /wp:query -->
  97                      <!-- wp:query {"query":{"perPage":1,"pages":0,"offset":"4","postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":false,"taxQuery":null,"parents":[]}} -->
  98                      <div class="wp-block-query">
  99                          <!-- wp:post-template -->
 100                              <!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|20"}},"layout":{"type":"default"}} -->
 101                              <div class="wp-block-group">
 102                                  <!-- wp:post-featured-image {"isLink":true,"aspectRatio":"3/2"} /-->
 103                                  <!-- wp:post-title {"isLink":true,"fontSize":"large"} /-->
 104                                  <!-- wp:post-terms {"term":"category","style":{"typography":{"textTransform":"uppercase","letterSpacing":"1.4px"}}} /-->
 105                              </div>
 106                              <!-- /wp:group -->
 107                          <!-- /wp:post-template -->
 108                      </div>
 109                      <!-- /wp:query -->
 110                  </div>
 111                  <!-- /wp:group -->
 112              </div>
 113              <!-- /wp:column -->
 114          </div>
 115          <!-- /wp:columns -->
 116      </div>
 117      <!-- /wp:group -->
 118  
 119      <!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"var:preset|spacing|50","bottom":"var:preset|spacing|50"},"blockGap":"var:preset|spacing|50"}},"layout":{"type":"constrained"}} -->
 120      <div class="wp-block-group alignfull" style="padding-top:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--50)">
 121          <!-- wp:query {"query":{"perPage":2,"pages":0,"offset":"5","postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":false,"taxQuery":null,"parents":[]},"align":"wide"} -->
 122          <div class="wp-block-query alignwide">
 123              <!-- wp:post-template {"style":{"spacing":{"blockGap":"var:preset|spacing|50"}},"layout":{"type":"grid","columnCount":2}} -->
 124                  <!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|20"}},"layout":{"type":"default"}} -->
 125                  <div class="wp-block-group">
 126                      <!-- wp:post-featured-image {"isLink":true,"aspectRatio":"3/2"} /-->
 127                      <!-- wp:post-title {"isLink":true,"fontSize":"x-large"} /-->
 128                      <!-- wp:post-terms {"term":"category","style":{"typography":{"textTransform":"uppercase","letterSpacing":"1.4px"}}} /-->
 129                  </div>
 130                  <!-- /wp:group -->
 131              <!-- /wp:post-template -->
 132          </div>
 133          <!-- /wp:query -->
 134      </div>
 135      <!-- /wp:group -->
 136  
 137      <!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"var:preset|spacing|50","bottom":"var:preset|spacing|50"}}},"layout":{"type":"constrained"}} -->
 138      <div class="wp-block-group alignfull" style="padding-top:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--50)">
 139          <!-- wp:query {"query":{"perPage":6,"pages":0,"offset":"7","postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":false,"taxQuery":null,"parents":[]},"align":"wide"} -->
 140          <div class="wp-block-query alignwide">
 141              <!-- wp:post-template {"style":{"spacing":{"blockGap":"var:preset|spacing|50"}},"layout":{"type":"grid","columnCount":3}} -->
 142                  <!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|20"}},"layout":{"type":"default"}} -->
 143                  <div class="wp-block-group">
 144                      <!-- wp:post-featured-image {"isLink":true,"aspectRatio":"4/3"} /-->
 145                      <!-- wp:post-title {"isLink":true,"fontSize":"large"} /-->
 146                      <!-- wp:post-terms {"term":"category","style":{"typography":{"textTransform":"uppercase","letterSpacing":"1.4px"}}} /-->
 147                  </div>
 148                  <!-- /wp:group -->
 149              <!-- /wp:post-template -->
 150              <!-- wp:group {"style":{"spacing":{"padding":{"top":"var:preset|spacing|40","bottom":"var:preset|spacing|40"}}},"layout":{"type":"constrained"}} -->
 151              <div class="wp-block-group" style="padding-top:var(--wp--preset--spacing--40);padding-bottom:var(--wp--preset--spacing--40)">
 152                  <!-- wp:query-pagination {"align":"wide","layout":{"type":"flex","justifyContent":"space-between"}} -->
 153                      <!-- wp:query-pagination-previous /-->
 154                      <!-- wp:query-pagination-numbers /-->
 155                      <!-- wp:query-pagination-next /-->
 156                  <!-- /wp:query-pagination -->
 157              </div>
 158              <!-- /wp:group -->
 159          </div>
 160          <!-- /wp:query -->
 161      </div>
 162      <!-- /wp:group -->
 163  </main>
 164  <!-- /wp:group -->
 165  
 166  <!-- wp:template-part {"slug":"footer-newsletter"} /-->


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