[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-content/themes/twentytwentyfive/patterns/ -> template-single-left-aligned-content.php (source)

   1  <?php
   2  /**
   3   * Title: Post with left-aligned content
   4   * Slug: twentytwentyfive/post-with-left-aligned-content
   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","align":"wide","style":{"spacing":{"blockGap":"0"}},"layout":{"type":"default"}} -->
  18      <main class="wp-block-group alignwide">
  19          <!-- wp:group {"style":{"spacing":{"padding":{"top":"var:preset|spacing|50","bottom":"var:preset|spacing|50"}}},"layout":{"type":"constrained"}} -->
  20          <div class="wp-block-group" 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":"40%"} -->
  24                  <div class="wp-block-column" style="flex-basis:40%">
  25                      <!-- wp:group {"align":"wide","style":{"spacing":{"blockGap":"var:preset|spacing|20"}},"layout":{"type":"flex","orientation":"vertical","justifyContent":"stretch"}} -->
  26                      <div class="wp-block-group alignwide">
  27                          <!-- wp:post-title {"level":1,"align":"wide","fontSize":"x-large"} /-->
  28                          <!-- wp:group {"style":{"spacing":{"blockGap":"4px"}},"fontSize":"small","layout":{"type":"flex","flexWrap":"nowrap"}} -->
  29                          <div class="wp-block-group has-small-font-size">
  30                              <!-- wp:paragraph -->
  31                              <p><?php echo esc_html_x( 'by', 'Prefix before the author name. The post author name is displayed in a separate block.', 'twentytwentyfive' ); ?></p>
  32                              <!-- /wp:paragraph -->
  33                              <!-- wp:post-author-name {"isLink":true,"fontSize":"small"} /-->
  34                          </div>
  35                          <!-- /wp:group -->
  36                      </div>
  37                      <!-- /wp:group -->
  38                  </div>
  39                  <!-- /wp:column -->
  40                  <!-- wp:column {"width":"60%"} -->
  41                  <div class="wp-block-column" style="flex-basis:60%">
  42                      <!-- wp:post-featured-image /-->
  43                  </div>
  44                  <!-- /wp:column -->
  45              </div>
  46              <!-- /wp:columns -->
  47  
  48              <!-- wp:columns {"align":"wide","style":{"spacing":{"blockGap":{"left":"var:preset|spacing|50"}}}} -->
  49              <div class="wp-block-columns alignwide">
  50                  <!-- wp:column {"width":"100%"} -->
  51                  <div class="wp-block-column" style="flex-basis:100%">
  52                      <!-- wp:group {"align":"wide","style":{"spacing":{"blockGap":"4px"}},"fontSize":"small","layout":{"type":"flex","flexWrap":"nowrap"}} -->
  53                      <div class="wp-block-group alignwide has-small-font-size">
  54                          <!-- wp:post-date /-->
  55                          <!-- wp:paragraph -->
  56                          <p><?php echo esc_html_x( 'ยท', 'Separator between date and categories.', 'twentytwentyfive' ); ?></p>
  57                          <!-- /wp:paragraph -->
  58                          <!-- wp:post-terms {"term":"category"} /-->
  59                      </div>
  60                      <!-- /wp:group -->
  61                  </div>
  62                  <!-- /wp:column -->
  63              </div>
  64              <!-- /wp:columns -->
  65          </div>
  66          <!-- /wp:group -->
  67  
  68          <!-- wp:group {"style":{"spacing":{"padding":{"top":"var:preset|spacing|50","bottom":"var:preset|spacing|50"}}},"layout":{"type":"constrained"}} -->
  69          <div class="wp-block-group" style="padding-top:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--50)">
  70              <!-- wp:post-content {"align":"wide","layout":{"type":"constrained","justifyContent":"left","contentSize":"800px"}} /-->
  71          </div>
  72          <!-- /wp:group -->
  73  
  74          <!-- wp:group {"align":"wide","style":{"spacing":{"margin":{"top":"var:preset|spacing|60","bottom":"var:preset|spacing|60"}}},"layout":{"type":"default"}} -->
  75          <div class="wp-block-group alignwide" style="margin-top:var(--wp--preset--spacing--60);margin-bottom:var(--wp--preset--spacing--60)">
  76              <!-- wp:group {"align":"wide","style":{"border":{"top":{"color":"var:preset|color|accent-6","width":"1px"},"right":[],"bottom":[],"left":[]}},"layout":{"type":"constrained"}} -->
  77              <div class="wp-block-group alignwide" style="border-top-color:var(--wp--preset--color--accent-6);border-top-width:1px">
  78                  <!-- wp:group {"ariaLabel":"<?php esc_attr_e( 'Post navigation', 'twentytwentyfive' ); ?>","tagName":"nav","align":"wide","style":{"spacing":{"padding":{"top":"var:preset|spacing|40","bottom":"var:preset|spacing|40"}}},"layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"space-between"}} -->
  79                  <nav class="wp-block-group alignwide" aria-label="<?php esc_attr_e( 'Post navigation', 'twentytwentyfive' ); ?>" style="padding-top:var(--wp--preset--spacing--40);padding-bottom:var(--wp--preset--spacing--40)">
  80                      <!-- wp:post-navigation-link {"type":"previous","showTitle":true,"arrow":"arrow"} /-->
  81                      <!-- wp:post-navigation-link {"showTitle":true,"arrow":"arrow"} /-->
  82                  </nav>
  83                  <!-- /wp:group -->
  84              </div>
  85              <!-- /wp:group -->
  86          </div>
  87          <!-- /wp:group -->
  88  
  89          <!-- wp:group {"style":{"spacing":{"padding":{"top":"var:preset|spacing|50","bottom":"var:preset|spacing|50"}}},"layout":{"type":"constrained"}} -->
  90          <div class="wp-block-group" style="padding-top:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--50)">
  91              <!-- wp:columns {"align":"wide","style":{"spacing":{"blockGap":{"left":"var:preset|spacing|50"}}}} -->
  92              <div class="wp-block-columns alignwide">
  93                  <!-- wp:column {"width":"40%"} -->
  94                  <div class="wp-block-column" style="flex-basis:40%">
  95                      <!-- wp:spacer {"height":"var:preset|spacing|20"} -->
  96                      <div style="height:var(--wp--preset--spacing--20)" aria-hidden="true" class="wp-block-spacer"></div>
  97                      <!-- /wp:spacer -->
  98                  </div>
  99                  <!-- /wp:column -->
 100                  <!-- wp:column {"width":"60%","style":{"spacing":{"padding":{"top":"0","bottom":"0"}}}} -->
 101                  <div class="wp-block-column" style="padding-top:0;padding-bottom:0;flex-basis:60%">
 102                      <!-- wp:pattern {"slug":"twentytwentyfive/comments"} /-->
 103                  </div>
 104                  <!-- /wp:column -->
 105              </div>
 106              <!-- /wp:columns -->
 107          </div>
 108          <!-- /wp:group -->
 109      </main>
 110      <!-- /wp:group -->
 111  
 112  <!-- wp:template-part {"slug":"footer-columns"} /-->


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