befac370 by Jeff Balicki

qa

Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent 2a0b7535
......@@ -27,7 +27,7 @@ if (!empty($block["align"])) {
if ($is_preview) {
$className .= " is-admin";
}
$ran = getName();
?>
<div id="<?php echo esc_attr($id); ?>" class="<?php echo esc_attr(
......@@ -46,7 +46,7 @@ if ($is_preview) {
preg_match('/src="(.+?)"/', $iframe, $matches);
$src = explode('embed/', $matches[1]);
$src = explode('?', $src[1]);
$modalId = "modal-" . $index;
$modalId = "modal-" . $index.$ran;
?>
<div class="swiper-slide">
<div class="carousel-content">
......@@ -125,7 +125,7 @@ if ($is_preview) {
$carousel_style = get_sub_field("carousel_style");
if($carousel_style == 'video'){ ?>
<?php $index = get_row_index();
$modalId = "modal-" . $index;
$modalId = "modal-" . $index.$ran;
?>
<?php
$iframe = get_sub_field("video");
......
......@@ -30,7 +30,7 @@ if( $is_preview ) {
}
$carousel_style = get_field('carousel_style');
$ran = getName();
?>
<div id="<?php echo esc_attr($id); ?>" class="<?php echo esc_attr($className); ?> ">
......@@ -47,7 +47,7 @@ $carousel_style = get_field('carousel_style');
preg_match('/src="(.+?)"/', $iframe, $matches);
$src = explode('embed/', $matches[1]);
$src = explode('?', $src[1]);
$modalId = 'modal-' .$index; ?>
$modalId = 'modal-' .$index.$ran; ?>
<div class="swiper-slide">
<div class="carousel-content">
<a href="javascript:void(0)" class="video_open" data-bs-toggle="modal" data-bs-target="#<?php echo $modalId; ?>" >
......@@ -74,7 +74,7 @@ $carousel_style = get_field('carousel_style');
<?php if( have_rows('promo_items') ): ?>
<?php while( the_repeater_field('promo_items') ): ?>
<?php $index = get_row_index();
$modalId = 'modal-' .$index; ?>
$modalId = 'modal-' .$index.$ran; ?>
<?php $iframe = get_sub_field('video');
// Use preg_match to find iframe src.
......