Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update cptbc-frontend.php #100

Merged
merged 1 commit into from
Jan 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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