[ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * Title: Hero, full width image 4 * Slug: twentytwentyfive/hero-full-width-image 5 * Categories: banner 6 * Description: A hero with a full width image, heading, short paragraph and button. 7 * 8 * @package WordPress 9 * @subpackage Twenty_Twenty_Five 10 * @since Twenty Twenty-Five 1.0 11 */ 12 13 ?> 14 15 <!-- wp:cover {"url":"<?php echo esc_url( get_template_directory_uri() ); ?>/assets/images/northern-buttercups-flowers.webp","alt":"Picture of a flower","dimRatio":10,"isUserOverlayColor":true,"focalPoint":{"x":0.5,"y":0.95},"minHeight":840,"minHeightUnit":"px","contentPosition":"bottom center","align":"full","style":{"spacing":{"padding":{"top":"var:preset|spacing|50","bottom":"var:preset|spacing|50","left":"var:preset|spacing|50","right":"var:preset|spacing|50"},"margin":{"top":"0","bottom":"0"}}},"layout":{"type":"constrained"}} --> 16 <div class="wp-block-cover alignfull has-custom-content-position is-position-bottom-center" style="margin-top:0;margin-bottom:0;padding-top:var(--wp--preset--spacing--50);padding-right:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--50);padding-left:var(--wp--preset--spacing--50);min-height:840px"> 17 <span aria-hidden="true" class="wp-block-cover__background has-background-dim-10 has-background-dim"></span> 18 <img class="wp-block-cover__image-background" alt="<?php echo esc_attr_x( 'Picture of a flower', 'Alt text for cover image.', 'twentytwentyfive' ); ?>" src="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/images/northern-buttercups-flowers.webp" style="object-position:50% 95%" data-object-fit="cover" data-object-position="50% 95%"/> 19 <div class="wp-block-cover__inner-container"> 20 <!-- wp:group {"align":"wide","layout":{"type":"constrained","justifyContent":"left"}} --> 21 <div class="wp-block-group alignwide"> 22 <!-- wp:heading {"textAlign":"left","fontSize":"xx-large"} --> 23 <h2 class="wp-block-heading has-text-align-left has-xx-large-font-size"><?php echo esc_html_x( 'Tell your story', 'Sample hero heading', 'twentytwentyfive' ); ?></h2> 24 <!-- /wp:heading --> 25 26 <!-- wp:paragraph --> 27 <p><?php echo esc_html_x( 'Like flowers that bloom in unexpected places, every story unfolds with beauty and resilience, revealing hidden wonders.', 'Sample hero paragraph', 'twentytwentyfive' ); ?></p> 28 <!-- /wp:paragraph --> 29 30 <!-- wp:buttons --> 31 <div class="wp-block-buttons"> 32 <!-- wp:button --> 33 <div class="wp-block-button"><a class="wp-block-button__link wp-element-button"><?php echo esc_html_x( 'Learn More', 'Sample hero button', 'twentytwentyfive' ); ?></a></div> 34 <!-- /wp:button --> 35 </div> 36 <!-- /wp:buttons --> 37 </div> 38 <!-- /wp:group --> 39 </div> 40 </div> 41 <!-- /wp:cover -->
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated : Sun Dec 22 08:20:01 2024 | Cross-referenced by PHPXref |