handling conditionnal anchors to avoid bugs
This commit is contained in:
parent
66c950530b
commit
8d617f1fd4
File diff suppressed because one or more lines are too long
|
|
@ -9,11 +9,11 @@ $customImageUrl = $attributes['imageUrl'] ?? null;
|
|||
$customImageAlt = $attributes['imageAlt'] ?? null;
|
||||
|
||||
$customTitle = $attributes['blockCustomTitle'] ?? null;
|
||||
|
||||
$anchor = esc_html($attributes['anchor'])
|
||||
?>
|
||||
|
||||
|
||||
<section id="<?php echo esc_html($attributes['anchor']) ?>" <?php echo get_block_wrapper_attributes(['class' => 'block-content-page-header']) ?>>
|
||||
<section id="<?php echo $anchor ?? "" ?>" <?php echo get_block_wrapper_attributes(['class' => 'block-content-page-header']) ?>>
|
||||
<div class="block-content-page-header__content">
|
||||
<div className="section_titling">
|
||||
<?php if (!$attributes['hasCustomTitle']) : ?>
|
||||
|
|
|
|||
|
|
@ -9,11 +9,11 @@ $customImageUrl = $attributes['imageUrl'] ?? null;
|
|||
$customImageAlt = $attributes['imageAlt'] ?? null;
|
||||
|
||||
$customTitle = $attributes['blockCustomTitle'] ?? null;
|
||||
|
||||
$anchor = esc_html($attributes['anchor'])
|
||||
?>
|
||||
|
||||
|
||||
<section id="<?php echo esc_html($attributes['anchor']) ?>" <?php echo get_block_wrapper_attributes(['class' => 'block-content-page-header']) ?>>
|
||||
<section id="<?php echo $anchor ?? "" ?>" <?php echo get_block_wrapper_attributes(['class' => 'block-content-page-header']) ?>>
|
||||
<div class="block-content-page-header__content">
|
||||
<div className="section_titling">
|
||||
<?php if (!$attributes['hasCustomTitle']) : ?>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user