mirror of https://github.com/cncf/cncf.io.git
Allows for links in Phippy character bios
Signed-off-by: Chris Abraham <cjyabraham@gmail.com>
This commit is contained in:
parent
1c5aaf70b5
commit
6d60eb76f7
|
@ -76,7 +76,7 @@
|
|||
"label": "Bio",
|
||||
"name": "bio",
|
||||
"aria-label": "",
|
||||
"type": "textarea",
|
||||
"type": "wysiwyg",
|
||||
"instructions": "",
|
||||
"required": 0,
|
||||
"conditional_logic": 0,
|
||||
|
@ -86,10 +86,11 @@
|
|||
"id": ""
|
||||
},
|
||||
"default_value": "",
|
||||
"maxlength": "",
|
||||
"rows": 2,
|
||||
"placeholder": "",
|
||||
"new_lines": "",
|
||||
"allow_in_bindings": 1,
|
||||
"tabs": "all",
|
||||
"toolbar": "full",
|
||||
"media_upload": 1,
|
||||
"delay": 0,
|
||||
"parent_repeater": "field_643833b019b90"
|
||||
}
|
||||
]
|
||||
|
@ -198,5 +199,5 @@
|
|||
"active": true,
|
||||
"description": "",
|
||||
"show_in_rest": 0,
|
||||
"modified": 1681536109
|
||||
}
|
||||
"modified": 1747337423
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
.wp-block-lf-phippy-family__grid-col{align-items:center;display:flex;flex-direction:column;gap:20px;grid-column:span 12}@media(min-width:412px){.wp-block-lf-phippy-family__grid-col{grid-column:span 6}}@media(min-width:800px){.wp-block-lf-phippy-family__grid-col{grid-column:span 4}}@media(min-width:1000px){.wp-block-lf-phippy-family__grid-col{grid-column:span 3}}.wp-block-lf-phippy-family__image{max-width:100%;width:min(80%,192px)}.wp-block-lf-phippy-family__name{margin-top:10px}.wp-block-lf-phippy-family__text{margin:10px auto 20px;max-width:80%;text-align:center}@media(min-width:800px){.wp-block-lf-phippy-family__text{max-width:70%}}@media(min-width:1000px){.wp-block-lf-phippy-family__text{margin-bottom:80px}}.is-style-rounded-border{border:7px solid #fff;border-radius:100%;box-shadow:0 2px 5px rgba(0,0,0,.1)}
|
||||
.wp-block-lf-phippy-family__grid-col{align-items:center;display:flex;flex-direction:column;gap:20px;grid-column:span 12}@media(min-width:412px){.wp-block-lf-phippy-family__grid-col{grid-column:span 6}}@media(min-width:800px){.wp-block-lf-phippy-family__grid-col{grid-column:span 4}}@media(min-width:1000px){.wp-block-lf-phippy-family__grid-col{grid-column:span 3}}.wp-block-lf-phippy-family__image{max-width:100%;width:min(80%,192px)}.wp-block-lf-phippy-family__name{margin-top:10px}.wp-block-lf-phippy-family__text{margin:10px auto 20px;max-width:90%;text-align:center}@media(min-width:1000px){.wp-block-lf-phippy-family__text{margin-bottom:80px}}.is-style-rounded-border{border:7px solid #fff;border-radius:100%;box-shadow:0 2px 5px rgba(0,0,0,.1)}
|
|
@ -48,7 +48,13 @@ $classes = implode( ' ', $all_classes );
|
|||
class="wp-block-lf-phippy-family__name is-style-spaced-uppercase"><?php the_sub_field( 'name' ); ?></p>
|
||||
|
||||
<p class="wp-block-lf-phippy-family__text">
|
||||
<?php the_sub_field( 'bio' ); ?></p>
|
||||
<?php
|
||||
// strip out only the <p> tags from the bio.
|
||||
$bio = get_sub_field( 'bio' );
|
||||
$bio = preg_replace( '/<p\b[^>]*>|<\/p>/', '', $bio );
|
||||
echo wp_kses_post( $bio );
|
||||
?>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<?php endwhile; ?>
|
||||
|
|
|
@ -25,10 +25,7 @@
|
|||
margin-top: 10px;
|
||||
}
|
||||
&__text {
|
||||
max-width: 80%;
|
||||
@media (min-width: 800px) {
|
||||
max-width: 70%;
|
||||
}
|
||||
max-width: 90%;
|
||||
text-align: center;
|
||||
margin-top: 10px;
|
||||
margin-left: auto;
|
||||
|
|
Loading…
Reference in New Issue