[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-content/themes/twentytwentytwo/inc/patterns/ -> query-irregular-grid.php (source)

   1  <?php
   2  /**
   3   * Irregular grid of posts block pattern
   4   */
   5  return array(
   6      'title'      => __( 'Irregular grid of posts', 'twentytwentytwo' ),
   7      'categories' => array( 'query' ),
   8      'blockTypes' => array( 'core/query' ),
   9      'content'    => '<!-- wp:group {"align":"wide"} -->
  10                      <div class="wp-block-group alignwide"><!-- wp:columns {"align":"wide"} -->
  11                      <div class="wp-block-columns alignwide"><!-- wp:column -->
  12                      <div class="wp-block-column"><!-- wp:query {"query":{"offset":0,"postType":"post","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","sticky":"","perPage":"1"},"displayLayout":{"type":"list","columns":3},"align":"wide","layout":{"inherit":true}} -->
  13                      <div class="wp-block-query alignwide"><!-- wp:post-template {"align":"wide"} -->
  14                      <!-- wp:post-featured-image {"isLink":true,"width":"100%","height":"318px"} /-->
  15  
  16                      <!-- wp:post-title {"isLink":true,"fontSize":"x-large"} /-->
  17  
  18                      <!-- wp:post-excerpt /-->
  19  
  20                      <!-- wp:post-date {"format":"F j, Y","isLink":true,"fontSize":"small"} /-->
  21                      <!-- /wp:post-template --></div>
  22                      <!-- /wp:query --></div>
  23                      <!-- /wp:column -->
  24  
  25                      <!-- wp:column -->
  26                      <div class="wp-block-column"><!-- wp:query {"query":{"offset":"1","postType":"post","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","sticky":"","perPage":"1"},"displayLayout":{"type":"list","columns":3},"align":"wide","layout":{"inherit":true}} -->
  27                      <div class="wp-block-query alignwide"><!-- wp:post-template {"align":"wide"} -->
  28                      <!-- wp:spacer {"height":64} -->
  29                      <div style="height:64px" aria-hidden="true" class="wp-block-spacer"></div>
  30                      <!-- /wp:spacer -->
  31  
  32                      <!-- wp:post-featured-image {"isLink":true,"width":"100%","height":"318px"} /-->
  33  
  34                      <!-- wp:post-title {"isLink":true,"fontSize":"x-large"} /-->
  35  
  36                      <!-- wp:post-excerpt /-->
  37  
  38                      <!-- wp:post-date {"format":"F j, Y","isLink":true,"fontSize":"small"} /-->
  39                      <!-- /wp:post-template --></div>
  40                      <!-- /wp:query --></div>
  41                      <!-- /wp:column -->
  42  
  43                      <!-- wp:column -->
  44                      <div class="wp-block-column"><!-- wp:query {"query":{"offset":"2","postType":"post","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","sticky":"","perPage":"1"},"displayLayout":{"type":"list","columns":3},"align":"wide","layout":{"inherit":true}} -->
  45                      <div class="wp-block-query alignwide"><!-- wp:post-template {"align":"wide"} -->
  46                      <!-- wp:spacer {"height":128} -->
  47                      <div style="height:128px" aria-hidden="true" class="wp-block-spacer"></div>
  48                      <!-- /wp:spacer -->
  49  
  50                      <!-- wp:post-featured-image {"isLink":true,"width":"100%","height":"318px"} /-->
  51  
  52                      <!-- wp:post-title {"isLink":true,"fontSize":"x-large"} /-->
  53  
  54                      <!-- wp:post-excerpt /-->
  55  
  56                      <!-- wp:post-date {"format":"F j, Y","isLink":true,"fontSize":"small"} /-->
  57                      <!-- /wp:post-template --></div>
  58                      <!-- /wp:query --></div>
  59                      <!-- /wp:column --></div>
  60                      <!-- /wp:columns -->
  61  
  62                      <!-- wp:columns {"align":"wide"} -->
  63                      <div class="wp-block-columns alignwide"><!-- wp:column -->
  64                      <div class="wp-block-column"><!-- wp:query {"query":{"offset":"3","postType":"post","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","sticky":"","perPage":"1"},"displayLayout":{"type":"list","columns":3},"align":"wide","layout":{"inherit":true}} -->
  65                      <div class="wp-block-query alignwide"><!-- wp:post-template {"align":"wide"} -->
  66                      <!-- wp:post-featured-image {"isLink":true,"width":"100%","height":"318px"} /-->
  67  
  68                      <!-- wp:post-title {"isLink":true,"fontSize":"x-large"} /-->
  69  
  70                      <!-- wp:post-excerpt /-->
  71  
  72                      <!-- wp:post-date {"format":"F j, Y","isLink":true,"fontSize":"small"} /-->
  73                      <!-- /wp:post-template --></div>
  74                      <!-- /wp:query --></div>
  75                      <!-- /wp:column -->
  76  
  77                      <!-- wp:column -->
  78                      <div class="wp-block-column"><!-- wp:query {"query":{"offset":"4","postType":"post","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","sticky":"","perPage":"1"},"displayLayout":{"type":"list","columns":3},"align":"wide","layout":{"inherit":true}} -->
  79                      <div class="wp-block-query alignwide"><!-- wp:post-template {"align":"wide"} -->
  80                      <!-- wp:spacer {"height":96} -->
  81                      <div style="height:96px" aria-hidden="true" class="wp-block-spacer"></div>
  82                      <!-- /wp:spacer -->
  83  
  84                      <!-- wp:post-featured-image {"isLink":true,"width":"100%","height":"318px"} /-->
  85  
  86                      <!-- wp:post-title {"isLink":true,"fontSize":"x-large"} /-->
  87  
  88                      <!-- wp:post-excerpt /-->
  89  
  90                      <!-- wp:post-date {"format":"F j, Y","isLink":true,"fontSize":"small"} /-->
  91                      <!-- /wp:post-template --></div>
  92                      <!-- /wp:query --></div>
  93                      <!-- /wp:column -->
  94  
  95                      <!-- wp:column -->
  96                      <div class="wp-block-column"><!-- wp:query {"query":{"offset":"5","postType":"post","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","sticky":"","perPage":"1"},"displayLayout":{"type":"list","columns":3},"align":"wide","layout":{"inherit":true}} -->
  97                      <div class="wp-block-query alignwide"><!-- wp:post-template {"align":"wide"} -->
  98                      <!-- wp:spacer {"height":160} -->
  99                      <div style="height:160px" aria-hidden="true" class="wp-block-spacer"></div>
 100                      <!-- /wp:spacer -->
 101  
 102                      <!-- wp:post-featured-image {"isLink":true,"width":"100%","height":"318px"} /-->
 103  
 104                      <!-- wp:post-title {"isLink":true,"fontSize":"x-large"} /-->
 105  
 106                      <!-- wp:post-excerpt /-->
 107  
 108                      <!-- wp:post-date {"format":"F j, Y","isLink":true,"fontSize":"small"} /-->
 109                      <!-- /wp:post-template --></div>
 110                      <!-- /wp:query --></div>
 111                      <!-- /wp:column --></div>
 112                      <!-- /wp:columns -->
 113  
 114                      <!-- wp:columns {"align":"wide"} -->
 115                      <div class="wp-block-columns alignwide"><!-- wp:column -->
 116                      <div class="wp-block-column"><!-- wp:query {"query":{"offset":"6","postType":"post","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","sticky":"","perPage":"1"},"displayLayout":{"type":"list","columns":3},"align":"wide","layout":{"inherit":true}} -->
 117                      <div class="wp-block-query alignwide"><!-- wp:post-template {"align":"wide"} -->
 118                      <!-- wp:spacer {"height":32} -->
 119                      <div style="height:32px" aria-hidden="true" class="wp-block-spacer"></div>
 120                      <!-- /wp:spacer -->
 121  
 122                      <!-- wp:post-featured-image {"isLink":true,"width":"100%","height":"318px"} /-->
 123  
 124                      <!-- wp:post-title {"isLink":true,"fontSize":"x-large"} /-->
 125  
 126                      <!-- wp:post-excerpt /-->
 127  
 128                      <!-- wp:post-date {"format":"F j, Y","isLink":true,"fontSize":"small"} /-->
 129                      <!-- /wp:post-template --></div>
 130                      <!-- /wp:query --></div>
 131                      <!-- /wp:column -->
 132  
 133                      <!-- wp:column -->
 134                      <div class="wp-block-column"><!-- wp:query {"query":{"offset":"7","postType":"post","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","sticky":"","perPage":"1"},"displayLayout":{"type":"list","columns":3},"align":"wide","layout":{"inherit":true}} -->
 135                      <div class="wp-block-query alignwide"><!-- wp:post-template {"align":"wide"} -->
 136                      <!-- wp:spacer {"height":160} -->
 137                      <div style="height:160px" aria-hidden="true" class="wp-block-spacer"></div>
 138                      <!-- /wp:spacer -->
 139  
 140                      <!-- wp:post-featured-image {"isLink":true,"width":"100%","height":"318px"} /-->
 141  
 142                      <!-- wp:post-title {"isLink":true,"fontSize":"x-large"} /-->
 143  
 144                      <!-- wp:post-excerpt /-->
 145  
 146                      <!-- wp:post-date {"format":"F j, Y","isLink":true,"fontSize":"small"} /-->
 147                      <!-- /wp:post-template --></div>
 148                      <!-- /wp:query --></div>
 149                      <!-- /wp:column -->
 150  
 151                      <!-- wp:column -->
 152                      <div class="wp-block-column"><!-- wp:query {"query":{"offset":"8","postType":"post","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","sticky":"","perPage":"1"},"displayLayout":{"type":"list","columns":3},"align":"wide","layout":{"inherit":true}} -->
 153                      <div class="wp-block-query alignwide"><!-- wp:post-template {"align":"wide"} -->
 154                      <!-- wp:spacer {"height":96} -->
 155                      <div style="height:96px" aria-hidden="true" class="wp-block-spacer"></div>
 156                      <!-- /wp:spacer -->
 157  
 158                      <!-- wp:post-featured-image {"isLink":true,"width":"100%","height":"318px"} /-->
 159  
 160                      <!-- wp:post-title {"isLink":true,"fontSize":"x-large"} /-->
 161  
 162                      <!-- wp:post-excerpt /-->
 163  
 164                      <!-- wp:post-date {"format":"F j, Y","isLink":true,"fontSize":"small"} /-->
 165                      <!-- /wp:post-template --></div>
 166                      <!-- /wp:query --></div>
 167                      <!-- /wp:column --></div>
 168                      <!-- /wp:columns --></div>
 169                      <!-- /wp:group -->',
 170  );


Generated : Sat Nov 23 08:20:01 2024 Cross-referenced by PHPXref