Skip to content

Commit

Permalink
Merge pull request #100 from aedelgod/master
Browse files Browse the repository at this point in the history
Update cptbc-frontend.php
  • Loading branch information
ewels authored Jan 17, 2023
2 parents 5efe776 + 0eb5af3 commit 390c57c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cptbc-frontend.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ function cptbc_frontend($atts){
if(count($images) > 0){
ob_start();
?>
<div id="cptbc_<?php echo $id; ?>" class="carousel slide<?php if($atts['use_carousel_fade'] == '1'){ echo ' carousel-fade'; } ?>" <?php if($atts['use_javascript_animation'] == '0'){ echo ' data-ride="carousel"'; } ?> data-interval="<?php echo $atts['interval']; ?>">
<div id="cptbc_<?php echo $id; ?>" class="carousel slide<?php if($atts['use_carousel_fade'] == '1'){ echo ' carousel-fade'; } ?>" <?php if($atts['use_javascript_animation'] == '0'){ echo ' data-ride="carousel"'; } ?> data-interval="<?php echo htmlspecialchars($atts['interval']); ?>">

<?php
if( $atts['showindicators'] === 'true' ) {
Expand Down Expand Up @@ -234,7 +234,7 @@ function cptbc_frontend($atts){
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery('#cptbc_<?php echo $id; ?>').carousel({
interval: <?php echo $atts['interval']; ?>
interval: <?php echo htmlspecialchars($atts['interval']); ?>
});
});
</script>
Expand Down

0 comments on commit 390c57c

Please sign in to comment.