| Server IP : 43.153.74.48 / Your IP : 216.73.216.28 Web Server : LiteSpeed System : Linux VM-0-13-ubuntu 5.15.0-113-generic #123-Ubuntu SMP Mon Jun 10 08:16:17 UTC 2024 x86_64 User : www ( 1002) PHP Version : 8.1.29 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /www/wwwroot/stainlesstint.com/wp-content/themes/woodmart/inc/shortcodes/ |
Upload File : |
<?php if ( ! defined( 'WOODMART_THEME_DIR' ) ) exit( 'No direct script access allowed' );
/**
* ------------------------------------------------------------------------------------------------
* Countdown timer
* ------------------------------------------------------------------------------------------------
*/
if( ! function_exists( 'woodmart_shortcode_countdown_timer' )) {
function woodmart_shortcode_countdown_timer($atts, $content) {
if( ! function_exists( 'wpb_getImageBySize' ) ) return;
$click = $output = $class = '';
extract(shortcode_atts( array(
'date' => '2020/12/12',
'woodmart_color_scheme' => 'dark',
'size' => 'medium',
'align' => 'center',
'style' => 'standard',
'css_animation' => 'none',
'el_class' => '',
'hide_on_finish' => 'no',
), $atts ));
$class .= ' ' . $el_class;
$class .= ' color-scheme-' . $woodmart_color_scheme;
$class .= ' text-' . $align;
$class .= ' timer-size-' . $size;
$class .= ' timer-style-' . $style;
$class .= woodmart_get_css_animation( $css_animation );
$timezone = 'GMT';
$date = str_replace( '/', '-', apply_filters( 'wd_countdown_timer_end_date', $date ) );
if ( apply_filters( 'woodmart_wp_timezone_element', false ) ) $timezone = get_option( 'timezone_string' );
ob_start();
woodmart_enqueue_js_library( 'countdown-bundle' );
woodmart_enqueue_js_script( 'countdown-element' );
woodmart_enqueue_inline_style( 'countdown' );
?>
<div class="wd-countdown-timer<?php echo esc_attr( $class ); ?>">
<div class="wd-timer<?php echo woodmart_get_old_classes( ' woodmart-timer' ); ?>" data-end-date="<?php echo esc_attr( $date ) ?>" data-timezone="<?php echo esc_attr( $timezone ) ?>" data-hide-on-finish="<?php echo esc_attr( $hide_on_finish ) ?>">
<span class="countdown-days">
0
<span>
<?php esc_html_e( 'days', 'woodmart' ); ?>
</span>
</span>
<span class="countdown-hours">
00
<span>
<?php esc_html_e( 'hr', 'woodmart' ); ?>
</span>
</span>
<span class="countdown-min">
00
<span>
<?php esc_html_e( 'min', 'woodmart' ); ?>
</span>
</span>
<span class="countdown-sec">
00
<span>
<?php esc_html_e( 'sc', 'woodmart' ); ?>
</span>
</span>
</div>
</div>
<?php
$output = ob_get_contents();
ob_end_clean();
return $output;
}
}