Commit 859f88ef authored by Antonio's avatar Antonio 🇪🇺

1.4.0 RC Fixes

parent 96e6be5b
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -163,7 +163,7 @@
<?php echo __( 'Value', 'structured-content' ) ?>
</div>
<div class="wp-block-structured-content-job__currency">
<?php echo number_format_i18n( $atts['quantitative_value'], 2 ); ?>
<?php echo number_format_i18n( $atts['quantitative_value'] ?: 0, 2 ); ?>
</div>
</div>
</div>
......
......@@ -144,18 +144,20 @@
<div class="sc_box-label">
<?php echo __( 'Colleague', 'structured-content' ) ?>
</div>
<div class="sc_input-group">
<div class="sc_input-label">
<?php echo __( 'URL', 'structured-content' )?>
</div>
<div class="wp-block-structured-content-person__colleague_url">
<ul>
<?php foreach ( $atts['links'] as $link => $url ) { ?>
<li><a href="<?php echo $url ?>"><?php echo $url ?></a></li>
<?php } ?>
</ul>
</div>
<div class="sc_input-group">
<div class="sc_input-label">
<?php echo __( 'URL', 'structured-content' ) ?>
</div>
<div class="wp-block-structured-content-person__colleague_url">
<ul>
<?php if ( ! empty( $atts['links'] ) ) {
foreach ( $atts['links'] as $link => $url ) { ?>
<li><a href="<?php echo $url ?>"><?php echo $url ?></a></li>
<?php }
} ?>
</ul>
</div>
</div>
</div>
</div>
</section>
......@@ -174,11 +176,11 @@
},
"colleague": [
<?php
foreach ( $atts['links'] as $link => $url ) :
echo '"' . $url . '"';
echo $link !== count( $atts['links'] ) - 1 ? ", \n" : " \n";
endforeach;
?>
foreach ( $atts['links'] as $link => $url ) :
echo '"' . $url . '"';
echo $link !== count( $atts['links'] ) - 1 ? ", \n" : " \n";
endforeach;
?>
],
"email": "mailto:<?php echo $atts['email']; ?>",
"image": "<?php echo wp_get_attachment_url( $atts['image_id'] ) ?>",
......@@ -189,4 +191,5 @@
}
</script>
......@@ -140,7 +140,7 @@ registerBlockType(`structured-content/${name}`, {
id : id,
title : '',
description : '',
even_location : '',
event_location : '',
start_date : '',
end_date : '',
street_address : '',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment