public static function get_seconds_left() { $now = time(); $exp = strtotime(AC::get_timer_expiration()); return $exp - $now; }
} ?> <?php if (AC::get_current_step() !== 1) { ?> <script src="/wp-content/themes/vetri-master/lib/ActivityCenter/js/jquery.countdown.min.js"></script> <div class="alert alert-info countdown" data-url="<?php the_permalink(); ?> " data-now="<?php echo time(); ?> " data-end="<?php echo strtotime(AC::get_timer_expiration()); ?> "> Your selection is being held for <?php echo AC::$timer / 60; ?> minutes. Current time left: <div data-seconds-left="<?php echo AC::get_seconds_left(); ?> " id="clock"></div> </div> <?php } ?> <?php