[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-includes/block-patterns/ -> query-large-title-posts.php (source)

   1  <?php
   2  /**
   3   * Query: Large title.
   4   *
   5   * @package WordPress
   6   */
   7  
   8  return array(
   9      'title'      => _x( 'Large title', 'Block pattern title' ),
  10      'blockTypes' => array( 'core/query' ),
  11      'categories' => array( 'query' ),
  12      'content'    => '<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"100px","right":"100px","bottom":"100px","left":"100px"}},"color":{"text":"#ffffff","background":"#000000"}}} -->
  13                      <div class="wp-block-group alignfull has-text-color has-background" style="background-color:#000000;color:#ffffff;padding-top:100px;padding-right:100px;padding-bottom:100px;padding-left:100px"><!-- wp:query {"query":{"perPage":3,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":false}} -->
  14                      <div class="wp-block-query"><!-- wp:post-template -->
  15                      <!-- wp:separator {"customColor":"#ffffff","align":"wide","className":"is-style-wide"} -->
  16                      <hr class="wp-block-separator alignwide has-text-color has-background is-style-wide" style="background-color:#ffffff;color:#ffffff"/>
  17                      <!-- /wp:separator -->
  18  
  19                      <!-- wp:columns {"verticalAlignment":"center","align":"wide"} -->
  20                      <div class="wp-block-columns alignwide are-vertically-aligned-center"><!-- wp:column {"verticalAlignment":"center","width":"20%"} -->
  21                      <div class="wp-block-column is-vertically-aligned-center" style="flex-basis:20%"><!-- wp:post-date {"style":{"color":{"text":"#ffffff"}},"fontSize":"extra-small"} /--></div>
  22                      <!-- /wp:column -->
  23  
  24                      <!-- wp:column {"verticalAlignment":"center","width":"80%"} -->
  25                      <div class="wp-block-column is-vertically-aligned-center" style="flex-basis:80%"><!-- wp:post-title {"isLink":true,"style":{"typography":{"fontSize":"72px","lineHeight":"1.1"},"color":{"text":"#ffffff","link":"#ffffff"}}} /--></div>
  26                      <!-- /wp:column --></div>
  27                      <!-- /wp:columns -->
  28                      <!-- /wp:post-template --></div>
  29                      <!-- /wp:query --></div>
  30                      <!-- /wp:group -->',
  31  );


Generated: Sat Nov 23 01:00:02 2024 Cross-referenced by PHPXref 0.7.1