[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

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

   1  <?php
   2  /**
   3   * Logo and navigation header block pattern
   4   */
   5  return array(
   6      'title'      => __( 'Logo and navigation header', 'twentytwentytwo' ),
   7      'categories' => array( 'header' ),
   8      'blockTypes' => array( 'core/template-part/header' ),
   9      'content'    => '<!-- wp:group {"align":"full","layout":{"inherit":true}} -->
  10                      <div class="wp-block-group alignfull"><!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"bottom":"var(--wp--custom--spacing--large, 8rem)","top":"var(--wp--custom--spacing--small, 1.25rem)"}}}} -->
  11                      <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:site-logo {"align":"center","width":128} /-->
  12  
  13                      <!-- wp:spacer {"height":10} -->
  14                      <div style="height:10px" aria-hidden="true" class="wp-block-spacer"></div>
  15                      <!-- /wp:spacer -->
  16  
  17                      <!-- wp:site-title {"textAlign":"center","style":{"typography":{"fontStyle":"normal","fontWeight":"400","textTransform":"uppercase"}}} /-->
  18  
  19                      <!-- wp:spacer {"height":10} -->
  20                      <div style="height:10px" aria-hidden="true" class="wp-block-spacer"></div>
  21                      <!-- /wp:spacer -->
  22  
  23                      <!-- wp:navigation {"layout":{"type":"flex","setCascadingProperties":true,"justifyContent":"center"}} -->
  24                      <!-- wp:page-list {"isNavigationChild":true,"showSubmenuIcon":true,"openSubmenusOnClick":false} /-->
  25                      <!-- /wp:navigation --></div>
  26                      <!-- /wp:group --></div>
  27                      <!-- /wp:group -->',
  28  );


Generated: Thu Mar 28 01:00:02 2024 Cross-referenced by PHPXref 0.7.1