[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-content/themes/twentytwentytwo/inc/patterns/ -> header-logo-navigation-offset-tagline.php (source)

   1  <?php
   2  /**
   3   * Logo, navigation, and offset tagline Header block pattern
   4   */
   5  return array(
   6      'title'      => __( 'Logo, navigation, and offset tagline 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)"}}}} -->
  11                      <div class="wp-block-group alignwide" style="padding-bottom:var(--wp--custom--spacing--large, 8rem)"><!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"top":"var(--wp--custom--spacing--small, 1.25rem)"}}},"layout":{"type":"flex","justifyContent":"space-between"}} -->
  12                      <div class="wp-block-group alignwide" style="padding-top:var(--wp--custom--spacing--small, 1.25rem)"><!-- wp:site-logo {"width":64} /-->
  13  
  14                      <!-- wp:navigation {"layout":{"type":"flex","setCascadingProperties":true,"justifyContent":"right"}} -->
  15                      <!-- wp:page-list {"isNavigationChild":true,"showSubmenuIcon":true,"openSubmenusOnClick":false} /-->
  16                      <!-- /wp:navigation --></div>
  17                      <!-- /wp:group -->
  18  
  19                      <!-- wp:columns {"isStackedOnMobile":false,"align":"wide"} -->
  20                      <div class="wp-block-columns alignwide is-not-stacked-on-mobile"><!-- wp:column {"width":"64px"} -->
  21                      <div class="wp-block-column" style="flex-basis:64px"></div>
  22                      <!-- /wp:column -->
  23  
  24                      <!-- wp:column {"width":"380px"} -->
  25                      <div class="wp-block-column" style="flex-basis:380px"><!-- wp:site-tagline {"fontSize":"small"} /--></div>
  26                      <!-- /wp:column --></div>
  27                      <!-- /wp:columns --></div>
  28                      <!-- /wp:group --></div>
  29                      <!-- /wp:group -->',
  30  );


Generated: Sun Nov 24 01:00:02 2024 Cross-referenced by PHPXref 0.7.1