[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-content/themes/twentytwentytwo/inc/patterns/ -> header-large-dark.php (source)

   1  <?php
   2  /**
   3   * Large header with dark background block pattern
   4   */
   5  return array(
   6      'title'      => __( 'Large header with dark background', 'twentytwentytwo' ),
   7      'categories' => array( 'header' ),
   8      'blockTypes' => array( 'core/template-part/header' ),
   9      'content'    => '<!-- wp:group {"align":"full","style":{"elements":{"link":{"color":{"text":"var:preset|color|background"}}},"spacing":{"padding":{"top":"0px","bottom":"var(--wp--custom--spacing--large, 8rem)"}}},"backgroundColor":"foreground","textColor":"background","layout":{"inherit":true}} -->
  10                      <div class="wp-block-group alignfull has-background-color has-foreground-background-color has-text-color has-background has-link-color" style="padding-top:0px;padding-bottom:var(--wp--custom--spacing--large, 8rem);"><!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"0px","bottom":"0px"}}},"layout":{"inherit":true}} -->
  11                      <div class="wp-block-group alignfull" style="padding-top:0px;padding-bottom:0px;"><!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"top":"var(--wp--custom--spacing--small, 1.25rem)","bottom":"var(--wp--custom--spacing--large, 8rem)"}}},"layout":{"type":"flex","justifyContent":"space-between"}} -->
  12                      <div class="wp-block-group alignwide" style="padding-top:var(--wp--custom--spacing--small, 1.25rem);padding-bottom:var(--wp--custom--spacing--large, 8rem)"><!-- wp:group {"layout":{"type":"flex"}} -->
  13                      <div class="wp-block-group"><!-- wp:site-logo {"width":64} /-->
  14  
  15                      <!-- wp:site-title {"style":{"typography":{"fontStyle":"italic","fontWeight":"400"}}} /--></div>
  16                      <!-- /wp:group -->
  17  
  18                      <!-- wp:navigation {"layout":{"type":"flex","setCascadingProperties":true,"justifyContent":"right"}} -->
  19                      <!-- wp:page-list /-->
  20                      <!-- /wp:navigation --></div>
  21                      <!-- /wp:group -->
  22  
  23                      <!-- wp:heading {"align":"wide","style":{"typography":{"fontSize":"clamp(3.25rem, 8vw, 6.25rem)","lineHeight":"1.15"}}} -->
  24                      <h2 class="alignwide" style="font-size:clamp(3.25rem, 8vw, 6.25rem);line-height:1.15">' . wp_kses_post( __( '<em>The Hatchery</em>: a blog about my adventures in bird watching', 'twentytwentytwo' ) ) . '</h2>
  25                      <!-- /wp:heading --></div>
  26                      <!-- /wp:group -->
  27  
  28                      <!-- wp:image {"align":"full","sizeSlug":"full","linkDestination":"none"} -->
  29                      <figure class="wp-block-image alignfull size-full"><img src="' . esc_url( get_template_directory_uri() ) . '/assets/images/flight-path-on-transparent-c.png" alt="' . esc_attr__( 'Illustration of a bird flying.', 'twentytwentytwo' ) . '"/></figure>
  30                      <!-- /wp:image --></div>
  31                      <!-- /wp:group --><!-- wp:spacer {"height":66} -->
  32                      <div style="height:66px" aria-hidden="true" class="wp-block-spacer"></div>
  33                      <!-- /wp:spacer -->',
  34  );


Generated: Thu Nov 21 01:00:03 2024 Cross-referenced by PHPXref 0.7.1