*/ class Audioeye_Public { /** * The ID of this plugin. * * @since 1.0.0 * @access private * @var string $plugin_name The ID of this plugin. */ private $plugin_name; /** * The version of this plugin. * * @since 1.0.0 * @access private * @var string $version The current version of this plugin. */ private $version; /** * Initialize the class and set its properties. * * @since 1.0.0 * @param string $plugin_name The name of the plugin. * @param string $version The version of this plugin. */ public function __construct( $plugin_name, $version ) { $this->plugin_name = $plugin_name; $this->version = $version; } /** * Register the JavaScript for the public-facing side of the site. * * @since 1.0.0 */ public function enqueue_scripts() { $options = get_option( 'audioeye_config', array() ); if ( ! is_array( $options ) ) { return; } if ( isset( $options['site_hash'] ) && $options['site_hash'] ) { $cdn_host = audioeye_effective_use_wsv3_cdn( $options ) ? AUDIOEYE_CDN_HOST_WSV3 : AUDIOEYE_CDN_HOST_LEGACY; $script_src = 'https://' . $cdn_host . '/aem.js'; ?>