[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

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

   1  <?php
   2  /**
   3   * Title: News blog single post with sidebar
   4   * Slug: twentytwentyfive/template-single-news-blog
   5   * Template Types: posts, single
   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","layout":{"type":"constrained"}} -->
  18  <main class="wp-block-group">
  19  
  20      <!-- wp:group {"align":"wide","layout":{"type":"constrained"}} -->
  21      <div class="wp-block-group alignwide">
  22          <!-- wp:group {"align":"wide","layout":{"type":"default"}} -->
  23          <div class="wp-block-group alignwide">
  24              <!-- wp:spacer {"height":"var:preset|spacing|80"} -->
  25              <div style="height:var(--wp--preset--spacing--80)" aria-hidden="true" class="wp-block-spacer"></div>
  26              <!-- /wp:spacer -->
  27              <!-- wp:post-title {"level":1,"align":"wide","fontSize":"xx-large"} /-->
  28              <!-- wp:spacer {"height":"var:preset|spacing|40"} -->
  29              <div style="height:var(--wp--preset--spacing--40)" aria-hidden="true" class="wp-block-spacer"></div>
  30              <!-- /wp:spacer -->
  31              <!-- wp:group {"layout":{"type":"default"}} -->
  32              <div class="wp-block-group">
  33                  <!-- wp:group {"style":{"spacing":{"padding":{"top":"var:preset|spacing|20","bottom":"var:preset|spacing|20"}}},"layout":{"type":"flex","flexWrap":"wrap","justifyContent":"space-between"}} -->
  34                  <div class="wp-block-group" style="padding-top:var(--wp--preset--spacing--20);padding-bottom:var(--wp--preset--spacing--20)">
  35                      <!-- wp:group {"style":{"spacing":{"blockGap":"4px"}},"fontSize":"small","layout":{"type":"flex","flexWrap":"nowrap"}} -->
  36                      <div class="wp-block-group has-small-font-size">
  37                          <!-- wp:post-date /-->
  38                          <!-- wp:paragraph -->
  39                          <p><?php echo esc_html_x( 'ยท', 'Separator between date and categories.', 'twentytwentyfive' ); ?></p>
  40                          <!-- /wp:paragraph -->
  41                          <!-- wp:post-terms {"term":"category","style":{"typography":{"textTransform":"uppercase","letterSpacing":"1.4px"}}} /-->
  42                      </div>
  43                      <!-- /wp:group -->
  44                      <!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|20"}},"layout":{"type":"flex","flexWrap":"nowrap"}} -->
  45                      <div class="wp-block-group">
  46                          <!-- wp:avatar {"size":30,"isLink":true,"style":{"border":{"radius":"100px"}}} /-->
  47                          <!-- wp:post-author-name {"isLink":true,"fontSize":"small"} /-->
  48                      </div>
  49                      <!-- /wp:group -->
  50                  </div>
  51                  <!-- /wp:group -->
  52              </div>
  53              <!-- /wp:group -->
  54          </div>
  55          <!-- /wp:group -->
  56      </div>
  57      <!-- /wp:group -->
  58  
  59      <!-- wp:group {"align":"wide","layout":{"type":"constrained"}} -->
  60      <div class="wp-block-group alignwide"><!-- wp:post-featured-image {"align":"wide"} /--></div>
  61      <!-- /wp:group -->
  62  
  63      <!-- wp:group {"align":"wide","layout":{"type":"constrained"}} -->
  64      <div class="wp-block-group alignwide">
  65          <!-- wp:columns {"align":"wide","style":{"spacing":{"blockGap":{"left":"var:preset|spacing|40"},"padding":{"top":"var:preset|spacing|60","bottom":"var:preset|spacing|60"}}}} -->
  66          <div class="wp-block-columns alignwide" style="padding-top:var(--wp--preset--spacing--60);padding-bottom:var(--wp--preset--spacing--60)">
  67              <!-- wp:column {"width":"5%"} -->
  68              <div class="wp-block-column" style="flex-basis:5%"></div>
  69              <!-- /wp:column -->
  70              <!-- wp:column {"width":"65%","style":{"spacing":{"padding":{"bottom":"var:preset|spacing|60"}}}} -->
  71              <div class="wp-block-column" style="padding-bottom:var(--wp--preset--spacing--60);flex-basis:65%">
  72                  <!-- wp:post-content {"layout":{"type":"default"}} /-->
  73                  <!-- wp:spacer {"height":"var:preset|spacing|40"} -->
  74                  <div style="height:var(--wp--preset--spacing--40)" aria-hidden="true" class="wp-block-spacer"></div>
  75                  <!-- /wp:spacer -->
  76                  <!-- wp:post-terms {"term":"post_tag","separator":"  ","className":"is-style-post-terms-1","style":{"typography":{"fontStyle":"normal","fontWeight":"400"}}} /-->
  77              </div>
  78              <!-- /wp:column -->
  79              <!-- wp:column {"width":"5%"} -->
  80              <div class="wp-block-column" style="flex-basis:5%"></div>
  81              <!-- /wp:column -->
  82              <!-- wp:column {"width":"25%"} -->
  83              <div class="wp-block-column" style="flex-basis:25%"><!-- wp:template-part {"slug":"sidebar"} /--></div>
  84              <!-- /wp:column -->
  85              <!-- wp:column {"width":"5%"} -->
  86              <div class="wp-block-column" style="flex-basis:5%"></div>
  87              <!-- /wp:column -->
  88          </div>
  89          <!-- /wp:columns -->
  90      </div>
  91      <!-- /wp:group -->
  92  
  93      <!-- wp:group {"align":"wide","style":{"spacing":{"margin":{"top":"var:preset|spacing|60","bottom":"var:preset|spacing|60"}}},"layout":{"type":"constrained"}} -->
  94      <div class="wp-block-group alignwide" style="margin-top:var(--wp--preset--spacing--60);margin-bottom:var(--wp--preset--spacing--60)">
  95          <!-- wp:group {"ariaLabel":"<?php esc_attr_e( 'Post navigation', 'twentytwentyfive' ); ?>","tagName":"nav","align":"wide","style":{"border":{"top":{"color":"var:preset|color|accent-6","width":"1px"}},"spacing":{"padding":{"top":"var:preset|spacing|40","bottom":"var:preset|spacing|40"}}},"layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"space-between"}} -->
  96          <nav class="wp-block-group alignwide" aria-label="<?php esc_attr_e( 'Post navigation', 'twentytwentyfive' ); ?>" style="border-top-color:var(--wp--preset--color--accent-6);border-top-width:1px;padding-top:var(--wp--preset--spacing--40);padding-bottom:var(--wp--preset--spacing--40)">
  97              <!-- wp:post-navigation-link {"type":"previous","showTitle":true,"arrow":"arrow"} /-->
  98              <!-- wp:post-navigation-link {"showTitle":true,"arrow":"arrow"} /-->
  99          </nav>
 100          <!-- /wp:group -->
 101      </div>
 102      <!-- /wp:group -->
 103  
 104      <!-- wp:group {"align":"wide","layout":{"type":"constrained","justifyContent":"center"}} -->
 105      <div class="wp-block-group alignwide">
 106          <!-- wp:columns {"align":"wide","style":{"spacing":{"blockGap":{"left":"var:preset|spacing|40"},"margin":{"top":"0","bottom":"0"}}}} -->
 107          <div class="wp-block-columns alignwide" style="margin-top:0;margin-bottom:0">
 108              <!-- wp:column {"width":"5%"} -->
 109              <div class="wp-block-column" style="flex-basis:5%"></div>
 110              <!-- /wp:column -->
 111  
 112              <!-- wp:column {"width":"65%","style":{"spacing":{"padding":{"top":"0","bottom":"0"}}}} -->
 113              <div class="wp-block-column" style="padding-top:0;padding-bottom:0;flex-basis:65%">
 114                  <!-- wp:group {"style":{"spacing":{"padding":{"top":"0","bottom":"0","left":"0","right":"0"}}},"layout":{"type":"default"}} -->
 115                  <div class="wp-block-group" style="padding-top:0;padding-right:0;padding-bottom:0;padding-left:0">
 116                      <!-- wp:pattern {"slug":"twentytwentyfive/comments"} /-->
 117                  </div>
 118                  <!-- /wp:group -->
 119              </div>
 120              <!-- /wp:column -->
 121  
 122              <!-- wp:column {"width":"5%"} -->
 123              <div class="wp-block-column" style="flex-basis:5%"></div>
 124              <!-- /wp:column -->
 125  
 126              <!-- wp:column {"width":"25%"} -->
 127              <div class="wp-block-column" style="flex-basis:25%"></div>
 128              <!-- /wp:column -->
 129  
 130              <!-- wp:column {"width":"5%"} -->
 131              <div class="wp-block-column" style="flex-basis:5%"></div>
 132              <!-- /wp:column -->
 133  
 134          </div>
 135          <!-- /wp:columns -->
 136      </div>
 137      <!-- /wp:group -->
 138  </main>
 139  <!-- /wp:group -->
 140  
 141  <!-- wp:template-part {"slug":"footer-newsletter"} /-->


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