Skip to content

Commit 21a8615

Browse files
committed
Fix placeholder social links in CV pattern to avoid unsafe href="#" and improve security scanner signal
1 parent f297101 commit 21a8615

1 file changed

Lines changed: 62 additions & 0 deletions

File tree

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
<?php
2+
/**
3+
* Title: CV/bio
4+
* Slug: twentytwentyfive/page-cv-bio
5+
* Categories: twentytwentyfive_page, about, featured
6+
* Keywords: starter
7+
* Block Types: core/post-content
8+
* Viewport width: 1400
9+
* Description: A pattern for a CV/Bio landing page.
10+
*
11+
* @package WordPress
12+
* @subpackage Twenty_Twenty_Five
13+
* @since Twenty Twenty-Five 1.0
14+
*/
15+
16+
?>
17+
<!-- wp:cover {"overlayColor":"base","isUserOverlayColor":true,"isDark":false,"align":"full","style":{"spacing":{"padding":{"right":"var:preset|spacing|50","left":"var:preset|spacing|50","top":"var:preset|spacing|60","bottom":"var:preset|spacing|60"}}}} -->
18+
<div class="wp-block-cover alignfull is-light has-contrast-color has-text-color has-link-color" style="margin-top:0;margin-bottom:0;padding-top:var(--wp--preset--spacing--60);padding-right:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--60);padding-left:var(--wp--preset--spacing--50)">
19+
<span aria-hidden="true" class="wp-block-cover__background has-base-background-color has-background-dim-100 has-background-dim"></span>
20+
<div class="wp-block-cover__inner-container">
21+
<!-- wp:columns {"align":"wide","style":{"spacing":{"blockGap":{"top":"var:preset|spacing|60","left":"var:preset|spacing|80"}}}} -->
22+
<div class="wp-block-columns alignwide">
23+
<!-- wp:column {"width":"65%"} -->
24+
<div class="wp-block-column" style="flex-basis:65%">
25+
<!-- wp:group {"layout":{"type":"flex","orientation":"vertical","justifyContent":"stretch"}} -->
26+
<div class="wp-block-group">
27+
<!-- wp:heading {"textAlign":"left","style":{"typography":{"fontSize":"22rem","letterSpacing":"-0.03em","fontStyle":"normal","fontWeight":"300","lineHeight":"1.4"}}} -->
28+
<h2 class="wp-block-heading has-text-align-left" style="font-size:22rem;font-style:normal;font-weight:300;letter-spacing:-0.03em;line-height:1.4"><?php echo esc_html_x( 'Hey,', 'Example heading for a CV. You can replace this with a greeting or your name.', 'twentytwentyfive' ); ?></h2>
29+
<!-- /wp:heading -->
30+
31+
<!-- wp:paragraph {"className":"is-style-text-subtitle"} -->
32+
<p class="is-style-text-subtitle"><?php echo esc_html_x( 'My name is Nora Winslow Keene, and Im a committed public interest attorney. Living in Denver, Colorado, Ive spent years championing social justice, and Im currently a senior associate at Murakami, Keeney, and Associates. Im dedicated to advancing equal opportunity and making a positive impact in the community.', 'Example introduction for a CV. Replace this with your own bio.', 'twentytwentyfive' ); ?></p>
33+
<!-- /wp:paragraph -->
34+
</div>
35+
<!-- /wp:group -->
36+
</div>
37+
<!-- /wp:column -->
38+
39+
<!-- wp:column {"width":"35%"} -->
40+
<div class="wp-block-column" style="flex-basis:35%">
41+
<!-- wp:group {"layout":{"type":"flex","orientation":"vertical","justifyContent":"stretch","flexWrap":"nowrap"}} -->
42+
<div class="wp-block-group">
43+
<!-- wp:image {"aspectRatio":"3/4","scale":"cover","sizeSlug":"full","linkDestination":"none"} -->
44+
<figure class="wp-block-image size-full"><img src="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/images/woman-splashing-water.webp" alt="<?php esc_attr_e( 'Woman on beach, splashing water.', 'twentytwentyfive' ); ?>" style="aspect-ratio:3/4;object-fit:cover" /></figure>
45+
<!-- /wp:image -->
46+
47+
<!-- wp:paragraph {"align":"right","style":{"typography":{"lineHeight":"1.2"}},"fontSize":"x-large"} -->
48+
<p class="has-text-align-right has-x-large-font-size" style="line-height:1.2">
49+
<a href="<?php echo esc_url( home_url( '/instagram/' ) ); ?>"><?php esc_html_e( 'Instagram', 'twentytwentyfive' ); ?></a><br>
50+
<a href="<?php echo esc_url( home_url( '/linkedin/' ) ); ?>"><?php esc_html_e( 'LinkedIn', 'twentytwentyfive' ); ?></a><br>
51+
<a href="<?php echo esc_url( home_url( '/now/' ) ); ?>"><?php echo esc_html_x( 'Now', 'Link to a page with information about what the person is working on right now.', 'twentytwentyfive' ); ?></a>
52+
</p>
53+
<!-- /wp:paragraph -->
54+
</div>
55+
<!-- /wp:group -->
56+
</div>
57+
<!-- /wp:column -->
58+
</div>
59+
<!-- /wp:columns -->
60+
</div>
61+
</div>
62+
<!-- /wp:cover -->

0 commit comments

Comments
 (0)