[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

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

   1  <?php
   2  /**
   3   * Dark footer with title and citation
   4   *
   5   * @package WordPress
   6   * @subpackage Twenty_Twenty_Two
   7   * @since Twenty Twenty-Two 1.0
   8   */
   9  
  10  return array(
  11      'title'      => __( 'Dark footer with title and citation', 'twentytwentytwo' ),
  12      'categories' => array( 'footer' ),
  13      'blockTypes' => array( 'core/template-part/footer' ),
  14      'content'    => '<!-- wp:group {"align":"full","style":{"elements":{"link":{"color":{"text":"var:preset|color|background"}}},"spacing":{"padding":{"top":"var(--wp--custom--spacing--small, 1.25rem)","bottom":"var(--wp--custom--spacing--small, 1.25rem)"}}},"backgroundColor":"foreground","textColor":"background","layout":{"inherit":true}} -->
  15                      <div class="wp-block-group alignfull has-background-color has-foreground-background-color has-text-color has-background has-link-color" style="padding-top:var(--wp--custom--spacing--small, 1.25rem);padding-bottom:var(--wp--custom--spacing--small, 1.25rem)"><!-- wp:group {"align":"wide","layout":{"type":"flex","justifyContent":"space-between"}} -->
  16                      <div class="wp-block-group alignwide"><!-- wp:site-title {"level":0} /-->
  17  
  18                      <!-- wp:paragraph {"align":"right"} -->
  19                      <p class="has-text-align-right">' .
  20                      sprintf(
  21                          /* Translators: WordPress link. */
  22                          esc_html__( 'Proudly powered by %s', 'twentytwentytwo' ),
  23                          '<a href="' . esc_url( __( 'https://wordpress.org', 'twentytwentytwo' ) ) . '" rel="nofollow">WordPress</a>'
  24                      ) . '</p>
  25                      <!-- /wp:paragraph --></div>
  26                      <!-- /wp:group --></div>
  27                      <!-- /wp:group -->',
  28  );


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