[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-content/themes/ipsum/patterns/ -> hero-epigraph.php (source)

   1  <?php
   2  /**
   3   * Title: Hero Epigraph
   4   * Slug: ipsum/hero-epigraph
   5   * Categories: banner, header
   6   * Keywords: intro, welcome, statement, landing
   7   * Block Types: core/template-part/header
   8   * Viewport width: 1280
   9   * Description: A full-height opening statement. The site title and menu sit on top, over one oversized line about the blog and an invitation to read.
  10   *
  11   * @package Ipsum
  12   * @since Ipsum 1.0
  13   */
  14  
  15  ?>
  16  <!-- wp:group {"metadata":{"name":"<?php echo esc_html_x( 'Hero Epigraph', 'Name of the hero epigraph group', 'ipsum' ); ?>"},"style":{"spacing":{"margin":{"top":"0","bottom":"0"}}},"layout":{"type":"default"}} -->
  17  <div class="wp-block-group" style="margin-top:0;margin-bottom:0"><!-- wp:cover {"overlayColor":"base","isUserOverlayColor":true,"minHeight":400,"contentPosition":"top center","isDark":false,"textColor":"contrast","style":{"spacing":{"padding":{"right":"var:preset|spacing|40","left":"var:preset|spacing|40"},"blockGap":"var:preset|spacing|60"}},"layout":{"type":"default"}} -->
  18  <div class="wp-block-cover is-light has-contrast-color has-text-color has-custom-content-position is-position-top-center" style="padding-right:var(--wp--preset--spacing--40);padding-left:var(--wp--preset--spacing--40);min-height:400px"><span aria-hidden="true" class="wp-block-cover__background has-base-background-color has-background-dim-100 has-background-dim"></span><div class="wp-block-cover__inner-container"><!-- wp:group {"metadata":{"name":"<?php echo esc_html_x( 'Header Wrapper', 'Name of the group wrapping the header', 'ipsum' ); ?>"},"align":"full","style":{"spacing":{"padding":{"top":"var:preset|spacing|40"}}},"layout":{"type":"default"}} -->
  19  <div class="wp-block-group alignfull" style="padding-top:var(--wp--preset--spacing--40)"><!-- wp:group {"metadata":{"name":"<?php echo esc_html_x( 'Header Row', 'Name of the header row group', 'ipsum' ); ?>"},"align":"full","layout":{"type":"flex","flexWrap":"nowrap"}} -->
  20  <div class="wp-block-group alignfull"><!-- wp:group {"metadata":{"name":"<?php echo esc_html_x( 'Title and Tagline', 'Name of the group holding the site title and tagline', 'ipsum' ); ?>"},"style":{"spacing":{"blockGap":"var:preset|spacing|20"},"layout":{"selfStretch":"fill","flexSize":null}},"layout":{"type":"flex","flexWrap":"nowrap"}} -->
  21  <div class="wp-block-group"><!-- wp:site-title {"level":0} /-->
  22  
  23  <!-- wp:site-tagline {"style":{"layout":{"selfStretch":"fill","flexSize":null}}} /--></div>
  24  <!-- /wp:group -->
  25  
  26  <!-- wp:navigation {"overlay":"navigation-overlay","icon":"menu","overlayBackgroundColor":"base","overlayTextColor":"contrast","fontSize":"small","layout":{"type":"flex","justifyContent":"right"},"ariaLabel":"<?php esc_attr_e( 'Primary', 'ipsum' ); ?>"} /--></div>
  27  <!-- /wp:group --></div>
  28  <!-- /wp:group -->
  29  
  30  <!-- wp:heading {"align":"wide","style":{"spacing":{"margin":{"top":"var:preset|spacing|80","bottom":"var:preset|spacing|70"}}},"fitText":true} -->
  31  <h2 class="wp-block-heading alignwide has-fit-text" style="margin-top:var(--wp--preset--spacing--80);margin-bottom:var(--wp--preset--spacing--70)">
  32  <?php
  33  /* Translators: %1$s is a line break HTML element */
  34  printf( esc_html__( 'I cook, I run, and I write about both%1$s—usually in that order.', 'ipsum' ), '<br>' );
  35  ?>
  36  </h2>
  37  <!-- /wp:heading -->
  38  
  39  <!-- wp:group {"metadata":{"name":"<?php echo esc_html_x( 'Read the blog line', 'Name of the group holding the read the blog line', 'ipsum' ); ?>"},"layout":{"type":"constrained"}} -->
  40  <div class="wp-block-group"><!-- wp:paragraph {"style":{"typography":{"fontStyle":"normal","fontWeight":"600"}},"fontSize":"small","fontFamily":"manrope"} -->
  41  <p class="has-manrope-font-family has-small-font-size" style="font-style:normal;font-weight:600"><?php echo esc_html__( 'Read the blog.', 'ipsum' ); ?></p>
  42  <!-- /wp:paragraph --></div>
  43  <!-- /wp:group --></div></div>
  44  <!-- /wp:cover --></div>
  45  <!-- /wp:group -->


Generated : Wed Nov 11 08:20:02 2026 Cross-referenced by PHPXref