[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-content/themes/ipsum/patterns/ -> cta-search.php (source)

   1  <?php
   2  /**
   3   * Title: Search Call to Action
   4   * Slug: ipsum/cta-search
   5   * Categories: call-to-action
   6   * Viewport width: 1280
   7   * Description: A search invitation, with a display heading over the search field.
   8   *
   9   * @package Ipsum
  10   * @since Ipsum 1.0
  11   */
  12  
  13  ?>
  14  <!-- wp:group {"metadata":{"name":"<?php echo esc_html_x( 'CTA Search', 'Name of the search call to action group', 'ipsum' ); ?>"},"style":{"spacing":{"blockGap":"var:preset|spacing|50","padding":{"top":"var:preset|spacing|80","bottom":"var:preset|spacing|80"}}},"layout":{"type":"constrained"}} -->
  15  <div class="wp-block-group" style="padding-top:var(--wp--preset--spacing--80);padding-bottom:var(--wp--preset--spacing--80)"><!-- wp:group {"metadata":{"name":"<?php echo esc_html_x( 'CTA Search Wrapper', 'Name of the group holding the search call to action heading and field', 'ipsum' ); ?>"},"layout":{"type":"default"}} -->
  16  <div class="wp-block-group"><!-- wp:heading {"fontSize":"2-x-large"} -->
  17  <h2 class="wp-block-heading has-2-x-large-font-size"><?php esc_html_e( 'Find the post you half-remember.', 'ipsum' ); ?></h2>
  18  <!-- /wp:heading -->
  19  
  20  <!-- wp:search {"label":"<?php esc_attr_e( 'Search', 'ipsum' ); ?>","showLabel":false,"placeholder":"<?php esc_attr_e( 'A word you remember…', 'ipsum' ); ?>","buttonText":"<?php esc_attr_e( 'Search', 'ipsum' ); ?>","ariaLabel":"<?php echo esc_attr_x( 'Posts', 'Accessible name of the search form', 'ipsum' ); ?>"} /--></div>
  21  <!-- /wp:group --></div>
  22  <!-- /wp:group -->


Generated : Wed Nov 11 08:20:02 2026 Cross-referenced by PHPXref