[ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * Title: Short heading and paragraph and image on the left 4 * Slug: twentytwentyfive/banner-intro-image 5 * Categories: banner, featured 6 * Description: A Intro pattern with Short heading, paragraph and image on the left. 7 * 8 * @package WordPress 9 * @subpackage Twenty_Twenty_Five 10 * @since Twenty Twenty-Five 1.0 11 */ 12 13 ?> 14 <!-- 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"}} --> 15 <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)"> 16 <!-- wp:columns {"align":"wide","style":{"spacing":{"blockGap":{"top":"var:preset|spacing|50","left":"var:preset|spacing|50"}}}} --> 17 <div class="wp-block-columns alignwide"> 18 <!-- wp:column {"width":"56%"} --> 19 <div class="wp-block-column" style="flex-basis:56%"> 20 <!-- wp:image {"aspectRatio":"1","scale":"cover","sizeSlug":"full"} --> 21 <figure class="wp-block-image size-full"> 22 <img src="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/images/botany-flowers.webp" alt="<?php echo esc_attr_x( 'Picture of a flower', 'Alt text for intro picture.', 'twentytwentyfive' ); ?>" style="aspect-ratio:1;object-fit:cover"/> 23 </figure> 24 <!-- /wp:image --> 25 </div> 26 <!-- /wp:column --> 27 28 <!-- wp:column {"verticalAlignment":"center","style":{"spacing":{"blockGap":"var:preset|spacing|40"}}} --> 29 <div class="wp-block-column is-vertically-aligned-center"> 30 <!-- wp:heading --> 31 <h2 class="wp-block-heading"><?php echo esc_html_x( 'New arrivals', 'Heading for banner pattern.', 'twentytwentyfive' ); ?></h2> 32 <!-- /wp:heading --> 33 34 <!-- wp:paragraph --> 35 <p><?php echo esc_html_x( 'Like flowers that bloom in unexpected places, every story unfolds with beauty and resilience, revealing hidden wonders.', 'Sample description for banner with flower.', 'twentytwentyfive' ); ?></p> 36 <!-- /wp:paragraph --> 37 38 <!-- wp:buttons --> 39 <div class="wp-block-buttons"> 40 <!-- wp:button --> 41 <div class="wp-block-button"> 42 <a class="wp-block-button__link wp-element-button"><?php echo esc_html_x( 'Learn More', 'Button text of intro section.', 'twentytwentyfive' ); ?></a> 43 </div> 44 <!-- /wp:button --> 45 </div> 46 <!-- /wp:buttons --> 47 </div> 48 <!-- /wp:column --> 49 </div> 50 <!-- /wp:columns --> 51 </div> 52 <!-- /wp:group -->
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated : Sun Dec 22 08:20:01 2024 | Cross-referenced by PHPXref |