[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

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

   1  <?php
   2  /**
   3   * Title: Offset post without featured image
   4   * Slug: twentytwentyfive/template-single-offset
   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"} /-->
  16  
  17  <!-- wp:group {"tagName":"main","align":"wide","layout":{"type":"default"}} -->
  18  <main class="wp-block-group alignwide">
  19      <!-- wp:group {"style":{"spacing":{"padding":{"top":"var:preset|spacing|80","bottom":"var:preset|spacing|40"},"margin":{"top":"0","bottom":"0"}}},"layout":{"type":"constrained"}} -->
  20      <div class="wp-block-group" style="margin-top:0;margin-bottom:0;padding-top:var(--wp--preset--spacing--80);padding-bottom:var(--wp--preset--spacing--40)">
  21          <!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"bottom":"var:preset|spacing|50"}},"border":{"bottom":{"color":"var:preset|color|accent-6","width":"1px"},"top":[],"right":[],"left":[]}},"layout":{"type":"default"}} -->
  22          <div class="wp-block-group alignwide" style="border-bottom-color:var(--wp--preset--color--accent-6);border-bottom-width:1px;padding-bottom:var(--wp--preset--spacing--50)">
  23              <!-- wp:post-title {"level":1,"align":"wide","fontSize":"xx-large"} /-->
  24              <!-- wp:post-terms {"term":"category","style":{"typography":{"textTransform":"uppercase","letterSpacing":"1.4px"}}} /-->
  25          </div>
  26          <!-- /wp:group -->
  27      </div>
  28      <!-- /wp:group -->
  29  
  30      <!-- wp:group {"style":{"spacing":{"padding":{"top":"var:preset|spacing|30","bottom":"var:preset|spacing|50"},"margin":{"top":"0","bottom":"0"}}},"layout":{"type":"constrained"}} -->
  31      <div class="wp-block-group" style="margin-top:0;margin-bottom:0;padding-top:var(--wp--preset--spacing--30);padding-bottom:var(--wp--preset--spacing--50)">
  32          <!-- wp:group {"align":"wide","layout":{"type":"default"}} -->
  33          <div class="wp-block-group alignwide">
  34              <!-- wp:columns {"style":{"spacing":{"blockGap":{"top":"var:preset|spacing|50","left":"var:preset|spacing|50"}}}} -->
  35              <div class="wp-block-columns">
  36                  <!-- wp:column {"width":"30%"} -->
  37                  <div class="wp-block-column" style="flex-basis:30%">
  38                      <!-- wp:group {"style":{"spacing":{"blockGap":"4px"}},"fontSize":"small","layout":{"type":"flex","flexWrap":"nowrap"}} -->
  39                      <div class="wp-block-group has-small-font-size">
  40                          <!-- wp:paragraph --><p><?php echo esc_html_x( 'Published on', 'Prefix before the post date block.', 'twentytwentyfive' ); ?></p><!-- /wp:paragraph -->
  41                          <!-- wp:post-date {"style":{"elements":{"link":{"color":{"text":"var:preset|color|contrast"}}}},"textColor":"contrast"} /-->
  42                      </div>
  43                      <!-- /wp:group -->
  44                  </div>
  45                  <!-- /wp:column -->
  46  
  47                  <!-- wp:column {"width":"70%"} -->
  48                  <div class="wp-block-column" style="flex-basis:70%">
  49                      <!-- wp:post-content {"layout":{"type":"default"}} /-->
  50                  </div>
  51                  <!-- /wp:column -->
  52              </div>
  53              <!-- /wp:columns -->
  54          </div>
  55          <!-- /wp:group -->
  56      </div>
  57      <!-- /wp:group -->
  58  
  59      <!-- wp:group {"align":"wide","style":{"spacing":{"margin":{"top":"0","bottom":"0"}}},"layout":{"type":"constrained"}} -->
  60      <div class="wp-block-group alignwide" style="margin-top:0;margin-bottom:0">
  61          <!-- 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"}},"border":{"top":{"color":"var:preset|color|accent-6","width":"1px"},"right":{},"bottom":{},"left":{}}},"layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"space-between"}} -->
  62          <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)">
  63              <!-- wp:post-navigation-link {"type":"previous","showTitle":true,"arrow":"arrow"} /-->
  64              <!-- wp:post-navigation-link {"showTitle":true,"arrow":"arrow"} /-->
  65          </nav>
  66          <!-- /wp:group -->
  67      </div>
  68      <!-- /wp:group -->
  69  
  70      <!-- wp:group {"style":{"spacing":{"padding":{"top":"var:preset|spacing|50","bottom":"var:preset|spacing|50"},"margin":{"top":"0","bottom":"0"}}},"layout":{"type":"constrained"}} -->
  71      <div 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)">
  72          <!-- wp:columns {"align":"wide","style":{"spacing":{"blockGap":{"left":"var:preset|spacing|50"}}}} -->
  73          <div class="wp-block-columns alignwide">
  74              <!-- wp:column {"width":"30%"} -->
  75              <div class="wp-block-column" style="flex-basis:30%">
  76                  <!-- wp:spacer {"height":"var:preset|spacing|20"} -->
  77                  <div style="height:var(--wp--preset--spacing--20)" aria-hidden="true" class="wp-block-spacer"></div>
  78                  <!-- /wp:spacer -->
  79              </div>
  80              <!-- /wp:column -->
  81              <!-- wp:column {"width":"70%","style":{"spacing":{"padding":{"top":"0","bottom":"0"}}}} -->
  82              <div class="wp-block-column" style="padding-top:0;padding-bottom:0;flex-basis:70%">
  83                  <!-- wp:pattern {"slug":"twentytwentyfive/comments"} /-->
  84              </div>
  85              <!-- /wp:column -->
  86          </div>
  87          <!-- /wp:columns -->
  88      </div>
  89      <!-- /wp:group -->
  90  </main>
  91  <!-- /wp:group -->
  92  
  93  <!-- wp:template-part {"slug":"footer"} /-->


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