\x89PNG\r\n\x1a\n\x00\x00\x00\x0DIHDR\x00\x00\x00\x01\x00 \x00\x00\x01\x08\x06\x00\x00\x00\x1F\x15\xC4\x89\x00\x00\x00 \x0AIDATx\x9Ccb\x00\x00\x00\x06\x00\x03\x1A\x05\x9D\x00\x00 \x00\x00IEND\xAE\x42\x60\x82
| Path : /var/www/html/softech.com.tr/wp-content/plugins/bdthemes-element-pack/modules/countdown/ |
|
B-Con CMD Config cPanel C-Rdp D-Log Info Jump Mass Ransom Symlink vHost Zone-H |
| Current File : /var/www/html/softech.com.tr/wp-content/plugins/bdthemes-element-pack/modules/countdown/module.php |
<?php
namespace ElementPack\Modules\Countdown;
use ElementPack\Base\Element_Pack_Module_Base;
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
class Module extends Element_Pack_Module_Base {
public function __construct() {
parent::__construct();
add_action('wp_ajax_element_pack_countdown_end', [$this, 'countdown_end']);
add_action('wp_ajax_nopriv_element_pack_countdown_end', [$this, 'countdown_end']);
}
public function get_name() {
return 'countdown';
}
public function get_widgets() {
$widgets = [
'Countdown',
];
return $widgets;
}
public function countdown_end(){
$wp_current_time = current_time( 'timestamp' ) - ( get_option( 'gmt_offset' ) * HOUR_IN_SECONDS );
$end_time = $_POST['endTime'];
if( $wp_current_time > $end_time ){
echo "ended";
}
wp_die();
}
}