[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-content/themes/twentytwentytwo/inc/patterns/ -> header-title-navigation-social.php (source)

   1  <?php
   2  /**
   3   * Title, navigation, and social links header block pattern
   4   *
   5   * @package WordPress
   6   * @subpackage Twenty_Twenty_Two
   7   * @since Twenty Twenty-Two 1.0
   8   */
   9  
  10  return array(
  11      'title'      => __( 'Title, navigation, and social links header', 'twentytwentytwo' ),
  12      'categories' => array( 'header' ),
  13      'blockTypes' => array( 'core/template-part/header' ),
  14      'content'    => '<!-- wp:group {"align":"full","layout":{"inherit":true}} -->
  15                      <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)"}}},"layout":{"type":"flex","justifyContent":"space-between"}} -->
  16                      <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-title {"style":{"typography":{"fontStyle":"italic","fontWeight":"400"}}} /-->
  17  
  18                      <!-- wp:navigation {"layout":{"type":"flex","setCascadingProperties":true,"justifyContent":"right"}} -->
  19                      <!-- wp:page-list {"isNavigationChild":true,"showSubmenuIcon":true,"openSubmenusOnClick":false} /-->
  20  
  21                      <!-- wp:social-links {"iconColor":"foreground","iconColorValue":"var(--wp--preset--color--foreground)","className":"is-style-logos-only"} -->
  22                      <ul class="wp-block-social-links has-icon-color is-style-logos-only"><!-- wp:social-link {"url":"#","service":"instagram"} /-->
  23  
  24                      <!-- wp:social-link {"url":"#","service":"twitter"} /--></ul>
  25                      <!-- /wp:social-links -->
  26                      <!-- /wp:navigation --></div>
  27                      <!-- /wp:group --></div>
  28                      <!-- /wp:group -->',
  29  );


Generated : Sat Aug 8 08:20:21 2026 Cross-referenced by PHPXref