[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-content/themes/twentytwentyfive/patterns/ -> hero-overlapped-book-cover-with-links.php (source)

   1  <?php
   2  /**
   3   * Title: Hero, overlapped book cover with links
   4   * Slug: twentytwentyfive/hero-overlapped-book-cover-with-links
   5   * Categories: banner
   6   * Description: A hero with an overlapped book cover and links.
   7   *
   8   * @package WordPress
   9   * @subpackage Twenty_Twenty_Five
  10   * @since Twenty Twenty-Five 1.0
  11   */
  12  
  13  ?>
  14  <!-- wp:group {"align":"full","className":"is-style-section-1","style":{"spacing":{"padding":{"top":"var:preset|spacing|80","bottom":"var:preset|spacing|80","left":"var:preset|spacing|50","right":"var:preset|spacing|50"}}},"layout":{"type":"constrained"}} -->
  15  <div class="wp-block-group alignfull is-style-section-1" style="padding-top:var(--wp--preset--spacing--80);padding-right:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--80);padding-left:var(--wp--preset--spacing--50)">
  16      <!-- wp:group {"align":"wide","layout":{"type":"default"}} -->
  17      <div class="wp-block-group alignwide">
  18          <!-- wp:columns {"verticalAlignment":null,"align":"wide","style":{"spacing":{"blockGap":{"top":"var:preset|spacing|80","left":"var:preset|spacing|80"}}}} -->
  19          <div class="wp-block-columns alignwide">
  20              <!-- wp:column {"verticalAlignment":"center","width":"55%"} -->
  21              <div class="wp-block-column is-vertically-aligned-center" style="flex-basis:55%">
  22                  <!-- wp:group {"style":{"dimensions":{"minHeight":"100%"}},"layout":{"type":"flex","orientation":"vertical","justifyContent":"left","flexWrap":"nowrap","verticalAlignment":"top"}} -->
  23                  <div class="wp-block-group" style="min-height:100%">
  24                      <!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|30"}},"layout":{"type":"constrained"}} -->
  25                      <div class="wp-block-group">
  26                          <!-- wp:heading {"fontSize":"xx-large"} -->
  27                          <h2 class="wp-block-heading has-xx-large-font-size">
  28                              <?php echo esc_html_x( 'The Stories Book', 'Hero - Overlapped book cover pattern headline text', 'twentytwentyfive' ); ?>
  29                          </h2>
  30                          <!-- /wp:heading -->
  31  
  32                          <!-- wp:paragraph {"className":"is-style-text-subtitle"} -->
  33                          <p class="is-style-text-subtitle">
  34                              <?php echo esc_html_x( 'A fine collection of moments in time featuring photographs from Louis Fleckenstein, Paul Strand and Asahachi Kōno.', 'Hero - Overlapped book cover pattern subline text', 'twentytwentyfive' ); ?>
  35                          </p>
  36                          <!-- /wp:paragraph -->
  37                      </div>
  38                      <!-- /wp:group -->
  39  
  40                      <!-- wp:group {"layout":{"type":"flex","orientation":"vertical","justifyContent":"stretch"}} -->
  41                      <div class="wp-block-group">
  42                          <!-- wp:spacer {"style":{"layout":{"selfStretch":"fit","flexSize":null},"spacing":{"margin":{"top":"var:preset|spacing|20","bottom":"var:preset|spacing|20"}}}} -->
  43                          <div style="margin-top:var(--wp--preset--spacing--20);margin-bottom:var(--wp--preset--spacing--20)" aria-hidden="true" class="wp-block-spacer"></div>
  44                          <!-- /wp:spacer -->
  45  
  46                          <!-- wp:columns {"style":{"spacing":{"blockGap":{"top":"var:preset|spacing|20","left":"var:preset|spacing|20"}}}} -->
  47                          <div class="wp-block-columns">
  48                              <!-- wp:column {"verticalAlignment":"stretch"} -->
  49                              <div class="wp-block-column is-vertically-aligned-stretch">
  50                                  <!-- wp:buttons {"style":{"spacing":{"blockGap":"var:preset|spacing|20"}},"layout":{"type":"flex","orientation":"horizontal","flexWrap":"wrap","justifyContent":"space-between"}} -->
  51                                  <div class="wp-block-buttons">
  52                                      <!-- wp:button {"width":100,"className":"is-style-fill"} -->
  53                                      <div class="wp-block-button has-custom-width wp-block-button__width-100 is-style-fill">
  54                                          <a class="wp-block-button__link wp-element-button" href="#">
  55                                              <?php echo esc_html_x( 'Amazon', 'Example brand name.', 'twentytwentyfive' ); ?>
  56                                          </a>
  57                                      </div>
  58                                      <!-- /wp:button -->
  59                                      <!-- wp:button {"width":100,"className":"is-style-fill"} -->
  60                                      <div class="wp-block-button has-custom-width wp-block-button__width-100 is-style-fill">
  61                                          <a class="wp-block-button__link wp-element-button" href="#">
  62                                              <?php echo esc_html_x( 'Apple Books', 'Example brand name.', 'twentytwentyfive' ); ?>
  63                                          </a>
  64                                      </div>
  65                                      <!-- /wp:button -->
  66                                  </div>
  67                                  <!-- /wp:buttons -->
  68                              </div>
  69                              <!-- /wp:column -->
  70                              <!-- wp:column {"verticalAlignment":"stretch"} -->
  71                              <div class="wp-block-column is-vertically-aligned-stretch">
  72                                  <!-- wp:buttons {"style":{"spacing":{"blockGap":"var:preset|spacing|20"}},"layout":{"type":"flex","orientation":"horizontal","flexWrap":"wrap","justifyContent":"space-between"}} -->
  73                                  <div class="wp-block-buttons">
  74                                      <!-- wp:button {"width":100,"className":"is-style-fill"} -->
  75                                      <div class="wp-block-button has-custom-width wp-block-button__width-100 is-style-fill">
  76                                          <a class="wp-block-button__link wp-element-button" href="#">
  77                                              <?php echo esc_html_x( 'Audible', 'Example brand name.', 'twentytwentyfive' ); ?>
  78                                          </a>
  79                                      </div>
  80                                      <!-- /wp:button -->
  81                                      <!-- wp:button {"width":100,"className":"is-style-fill"} -->
  82                                      <div class="wp-block-button has-custom-width wp-block-button__width-100 is-style-fill">
  83                                          <a class="wp-block-button__link wp-element-button" href="#">
  84                                              <?php echo esc_html_x( 'Barnes &amp; Noble', 'Example brand name.', 'twentytwentyfive' ); ?>
  85                                          </a>
  86                                      </div>
  87                                      <!-- /wp:button -->
  88                                  </div>
  89                                  <!-- /wp:buttons -->
  90                              </div>
  91                              <!-- /wp:column -->
  92                          </div>
  93                          <!-- /wp:columns -->
  94  
  95                          <!-- wp:spacer {"style":{"layout":{"selfStretch":"fit","flexSize":null},"spacing":{"margin":{"top":"var:preset|spacing|20","bottom":"var:preset|spacing|20"}}}} -->
  96                          <div style="margin-top:var(--wp--preset--spacing--20);margin-bottom:var(--wp--preset--spacing--20)" aria-hidden="true" class="wp-block-spacer"></div>
  97                          <!-- /wp:spacer -->
  98  
  99                          <!-- wp:paragraph {"fontSize":"medium"} -->
 100                          <p class="has-medium-font-size"><?php echo wp_kses_post( _x( 'Outside Europe? View <a href="#" rel="nofollow">international editions</a>.', 'Pattern placeholder text with link.', 'twentytwentyfive' ) ); ?></p>
 101                          <!-- /wp:paragraph -->
 102                      </div>
 103                      <!-- /wp:group -->
 104                  </div>
 105                  <!-- /wp:group -->
 106              </div>
 107              <!-- /wp:column -->
 108  
 109              <!-- wp:column {"verticalAlignment":"top","width":"45%"} -->
 110              <div class="wp-block-column is-vertically-aligned-top" style="flex-basis:45%">
 111                  <!-- wp:image {"aspectRatio":"3/4","scale":"cover","sizeSlug":"full","linkDestination":"none"} -->
 112                  <figure class="wp-block-image size-full">
 113                      <img src="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/images/book-image.webp" alt="<?php echo esc_attr__( 'Book Image', 'twentytwentyfive' ); ?>" style="aspect-ratio:3/4;object-fit:cover"/>
 114                  </figure>
 115                  <!-- /wp:image -->
 116              </div>
 117              <!-- /wp:column -->
 118          </div>
 119          <!-- /wp:columns -->
 120      </div>
 121      <!-- /wp:group -->
 122  </div>
 123  <!-- /wp:group -->


Generated : Thu Oct 24 08:20:01 2024 Cross-referenced by PHPXref