qa
Signed-off-by: Jeff <jeff@gotenzing.com>
Showing
2 changed files
with
6 additions
and
6 deletions
| ... | @@ -27,7 +27,7 @@ if (!empty($block["align"])) { | ... | @@ -27,7 +27,7 @@ if (!empty($block["align"])) { |
| 27 | if ($is_preview) { | 27 | if ($is_preview) { |
| 28 | $className .= " is-admin"; | 28 | $className .= " is-admin"; |
| 29 | } | 29 | } |
| 30 | 30 | $ran = getName(); | |
| 31 | 31 | ||
| 32 | ?> | 32 | ?> |
| 33 | <div id="<?php echo esc_attr($id); ?>" class="<?php echo esc_attr( | 33 | <div id="<?php echo esc_attr($id); ?>" class="<?php echo esc_attr( |
| ... | @@ -46,7 +46,7 @@ if ($is_preview) { | ... | @@ -46,7 +46,7 @@ if ($is_preview) { |
| 46 | preg_match('/src="(.+?)"/', $iframe, $matches); | 46 | preg_match('/src="(.+?)"/', $iframe, $matches); |
| 47 | $src = explode('embed/', $matches[1]); | 47 | $src = explode('embed/', $matches[1]); |
| 48 | $src = explode('?', $src[1]); | 48 | $src = explode('?', $src[1]); |
| 49 | $modalId = "modal-" . $index; | 49 | $modalId = "modal-" . $index.$ran; |
| 50 | ?> | 50 | ?> |
| 51 | <div class="swiper-slide"> | 51 | <div class="swiper-slide"> |
| 52 | <div class="carousel-content"> | 52 | <div class="carousel-content"> |
| ... | @@ -125,7 +125,7 @@ if ($is_preview) { | ... | @@ -125,7 +125,7 @@ if ($is_preview) { |
| 125 | $carousel_style = get_sub_field("carousel_style"); | 125 | $carousel_style = get_sub_field("carousel_style"); |
| 126 | if($carousel_style == 'video'){ ?> | 126 | if($carousel_style == 'video'){ ?> |
| 127 | <?php $index = get_row_index(); | 127 | <?php $index = get_row_index(); |
| 128 | $modalId = "modal-" . $index; | 128 | $modalId = "modal-" . $index.$ran; |
| 129 | ?> | 129 | ?> |
| 130 | <?php | 130 | <?php |
| 131 | $iframe = get_sub_field("video"); | 131 | $iframe = get_sub_field("video"); | ... | ... |
| ... | @@ -30,7 +30,7 @@ if( $is_preview ) { | ... | @@ -30,7 +30,7 @@ if( $is_preview ) { |
| 30 | } | 30 | } |
| 31 | 31 | ||
| 32 | $carousel_style = get_field('carousel_style'); | 32 | $carousel_style = get_field('carousel_style'); |
| 33 | 33 | $ran = getName(); | |
| 34 | 34 | ||
| 35 | ?> | 35 | ?> |
| 36 | <div id="<?php echo esc_attr($id); ?>" class="<?php echo esc_attr($className); ?> "> | 36 | <div id="<?php echo esc_attr($id); ?>" class="<?php echo esc_attr($className); ?> "> |
| ... | @@ -47,7 +47,7 @@ $carousel_style = get_field('carousel_style'); | ... | @@ -47,7 +47,7 @@ $carousel_style = get_field('carousel_style'); |
| 47 | preg_match('/src="(.+?)"/', $iframe, $matches); | 47 | preg_match('/src="(.+?)"/', $iframe, $matches); |
| 48 | $src = explode('embed/', $matches[1]); | 48 | $src = explode('embed/', $matches[1]); |
| 49 | $src = explode('?', $src[1]); | 49 | $src = explode('?', $src[1]); |
| 50 | $modalId = 'modal-' .$index; ?> | 50 | $modalId = 'modal-' .$index.$ran; ?> |
| 51 | <div class="swiper-slide"> | 51 | <div class="swiper-slide"> |
| 52 | <div class="carousel-content"> | 52 | <div class="carousel-content"> |
| 53 | <a href="javascript:void(0)" class="video_open" data-bs-toggle="modal" data-bs-target="#<?php echo $modalId; ?>" > | 53 | <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'); | ... | @@ -74,7 +74,7 @@ $carousel_style = get_field('carousel_style'); |
| 74 | <?php if( have_rows('promo_items') ): ?> | 74 | <?php if( have_rows('promo_items') ): ?> |
| 75 | <?php while( the_repeater_field('promo_items') ): ?> | 75 | <?php while( the_repeater_field('promo_items') ): ?> |
| 76 | <?php $index = get_row_index(); | 76 | <?php $index = get_row_index(); |
| 77 | $modalId = 'modal-' .$index; ?> | 77 | $modalId = 'modal-' .$index.$ran; ?> |
| 78 | <?php $iframe = get_sub_field('video'); | 78 | <?php $iframe = get_sub_field('video'); |
| 79 | 79 | ||
| 80 | // Use preg_match to find iframe src. | 80 | // Use preg_match to find iframe src. | ... | ... |
-
Please register or sign in to post a comment