[ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * Title: Grid with categories 4 * Slug: twentytwentyfive/grid-with-categories 5 * Categories: banner 6 * Viewport width: 1400 7 * Description: A grid section with different categories. 8 * 9 * @package WordPress 10 * @subpackage Twenty_Twenty_Five 11 * @since Twenty Twenty-Five 1.0 12 */ 13 14 ?> 15 <!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"var:preset|spacing|50","bottom":"var:preset|spacing|50"},"margin":{"top":"0","bottom":"0"}}},"layout":{"type":"constrained"}} --> 16 <div class="wp-block-group alignfull" style="margin-top:0;margin-bottom:0;padding-top:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--50)"> 17 <!-- wp:group {"align":"wide","style":{"spacing":{"blockGap":"var:preset|spacing|50"}},"layout":{"type":"grid","minimumColumnWidth":"16rem"}} --> 18 <div class="wp-block-group alignwide"> 19 <!-- wp:group {"layout":{"type":"flex","orientation":"vertical","verticalAlignment":"center"}} --> 20 <div class="wp-block-group"> 21 <!-- wp:heading {"fontSize":"x-large"} --> 22 <h2 class="wp-block-heading has-x-large-font-size"><?php esc_html_e( 'Top Categories', 'twentytwentyfive' ); ?></h2> 23 <!-- /wp:heading --> 24 </div> 25 <!-- /wp:group --> 26 <!-- wp:group {"layout":{"type":"flex","orientation":"vertical","justifyContent":"stretch"}} --> 27 <div class="wp-block-group"> 28 <!-- wp:cover {"url":"<?php echo esc_url( get_template_directory_uri() ); ?>/assets/images/category-anthuriums.webp","alt":"Close up of a red anthurium.","dimRatio":0,"customOverlayColor":"#833d3a","isUserOverlayColor":true,"layout":{"type":"constrained"}} --> 29 <div class="wp-block-cover"><span aria-hidden="true" class="wp-block-cover__background has-background-dim-0 has-background-dim" style="background-color:#833d3a"></span><img class="wp-block-cover__image-background" alt="<?php esc_attr_e( 'Close up of a red anthurium.', 'twentytwentyfive' ); ?>" src="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/images/category-anthuriums.webp" data-object-fit="cover"/><div class="wp-block-cover__inner-container"> 30 <!-- wp:spacer {"height":"var:preset|spacing|20"} --> 31 <div style="height:var(--wp--preset--spacing--20)" aria-hidden="true" class="wp-block-spacer"></div> 32 <!-- /wp:spacer --> 33 </div></div> 34 <!-- /wp:cover --> 35 <!-- wp:paragraph {"align":"center"} --> 36 <p class="has-text-align-center"><?php esc_html_e( 'Anthuriums', 'twentytwentyfive' ); ?></p> 37 <!-- /wp:paragraph --> 38 </div> 39 <!-- /wp:group --> 40 <!-- wp:group {"layout":{"type":"flex","orientation":"vertical","justifyContent":"stretch"}} --> 41 <div class="wp-block-group"> 42 <!-- wp:cover {"url":"<?php echo esc_url( get_template_directory_uri() ); ?>/assets/images/category-cactus.webp","dimRatio":0,"customOverlayColor":"#828282","isUserOverlayColor":true,"isDark":false,"layout":{"type":"constrained"}} --> 43 <div class="wp-block-cover is-light"><span aria-hidden="true" class="wp-block-cover__background has-background-dim-0 has-background-dim" style="background-color:#828282"></span><img class="wp-block-cover__image-background" alt="" src="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/images/category-cactus.webp" data-object-fit="cover"/><div class="wp-block-cover__inner-container"> 44 <!-- wp:spacer {"height":"var:preset|spacing|20"} --> 45 <div style="height:var(--wp--preset--spacing--20)" aria-hidden="true" class="wp-block-spacer"></div> 46 <!-- /wp:spacer --> 47 </div></div> 48 <!-- /wp:cover --> 49 <!-- wp:paragraph {"align":"center"} --> 50 <p class="has-text-align-center"><?php esc_html_e( 'Cactus', 'twentytwentyfive' ); ?></p> 51 <!-- /wp:paragraph --> 52 </div> 53 <!-- /wp:group --> 54 <!-- wp:group {"layout":{"type":"flex","orientation":"vertical","justifyContent":"stretch"}} --> 55 <div class="wp-block-group"> 56 <!-- wp:cover {"url":"<?php echo esc_url( get_template_directory_uri() ); ?>/assets/images/category-sunflowers.webp","dimRatio":0,"customOverlayColor":"#d6bc98","isUserOverlayColor":true,"isDark":false,"layout":{"type":"constrained"}} --> 57 <div class="wp-block-cover is-light"><span aria-hidden="true" class="wp-block-cover__background has-background-dim-0 has-background-dim" style="background-color:#d6bc98"></span><img class="wp-block-cover__image-background" alt="" src="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/images/category-sunflowers.webp" data-object-fit="cover"/><div class="wp-block-cover__inner-container"> 58 <!-- wp:spacer {"height":"var:preset|spacing|20"} --> 59 <div style="height:var(--wp--preset--spacing--20)" aria-hidden="true" class="wp-block-spacer"></div> 60 <!-- /wp:spacer --> 61 </div></div> 62 <!-- /wp:cover --> 63 <!-- wp:paragraph {"align":"center"} --> 64 <p class="has-text-align-center"><?php esc_html_e( 'Sunflowers', 'twentytwentyfive' ); ?></p> 65 <!-- /wp:paragraph --> 66 </div> 67 <!-- /wp:group --> 68 </div> 69 <!-- /wp:group --> 70 </div> 71 <!-- /wp:group -->
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated : Thu Nov 21 08:20:01 2024 | Cross-referenced by PHPXref |