'simple', 'year' => '', 'month' => '', 'day' => '', 'hour' => '00', 'minute' => '00', 'fcolor' => '', 'bcolor' => '', 'gap' => '', 'el_class' => '' ), $atts ) ); $gap = ( $gap != '' ? '0 ' . $gap . 'px' : '0' ); $unique_class = 'a13_class_' . rand(); //check for script in theme version < 1.8.0 if(wp_script_is( 'jquery.countdown', 'registered' ) || wp_script_is( 'jquery.countdown', 'enqueued' )){ wp_enqueue_script( 'jquery.countdown' ); } //check for script in theme version >= 1.8.0 elseif(wp_script_is( 'jquery-countdown', 'registered' ) || wp_script_is( 'jquery-countdown', 'enqueued' )){ wp_enqueue_script( 'jquery-countdown' ); } $date_str = sprintf( '%s/%s/%s %s:%s:00', $year, $month, $day, $hour, $minute ); $output .= ''; $output .= '
'; if ( $style == 'flipping' ) { $output .= ''; } return $output; } //@deprecated add_shortcode( 'a13_countdown', 'a13fe_countdown_render' ); //@since 1.0.8 add_shortcode( 'a13fe_countdown', 'a13fe_countdown_render' );