/** */
 function __construct()
 {
     if (defined('SCRIPT_DEBUG') && SCRIPT_DEBUG) {
         self::$_SCRIPT_DEBUG = true;
         self::$_SCRIPT_SUFFIX = '';
     }
     $this->options = get_option(self::TRANSLATE_OPTIONS_KEY);
     if (is_admin()) {
         add_action('admin_menu', array($this, 'on_admin_menu'));
         add_action('admin_print_styles', array($this, 'on_admin_styles'));
         add_action('admin_print_scripts', array($this, 'on_admin_scripts'));
     } else {
         if (!empty($this->options['wpglobus_translate_options'])) {
             foreach ($this->options['wpglobus_translate_options'] as $option) {
                 $keys = explode('+', $option);
                 $this->keys[] = $keys;
                 add_filter('option_' . $keys[0], array($this, 'on_translate_option'));
             }
         }
     }
 }
 /** */
 function __construct()
 {
     if (defined('SCRIPT_DEBUG') && SCRIPT_DEBUG) {
         self::$_SCRIPT_DEBUG = true;
         self::$_SCRIPT_SUFFIX = '';
     }
     $this->options = get_option(self::TRANSLATE_OPTIONS_KEY);
     if (is_admin()) {
         add_action('admin_menu', array($this, 'on_admin_menu'));
         add_action('admin_print_styles', array($this, 'on_admin_styles'));
         add_action('admin_print_scripts', array($this, 'on_admin_scripts'));
         add_filter('plugin_action_links_' . plugin_basename(__FILE__), array($this, 'filter__plugin_action_links'));
         global $pagenow;
         if ('customize.php' === $pagenow) {
             //if ( version_compare( $wp_version, '4.5.0', '<=' ) ) {
             require_once 'includes/customize-options-wp44.php';
             WPGlobus_TO_Customize_Options::controller(self::TRANSLATE_OPTIONS_PAGE);
             //} else {
             //require_once 'includes/customize-options-wp45.php';
             //}
         }
     } else {
         if (!empty($this->options['wpglobus_translate_options'])) {
             foreach ($this->options['wpglobus_translate_options'] as $option) {
                 $keys = explode('+', $option);
                 $this->keys[] = $keys;
                 add_filter('option_' . $keys[0], array($this, 'on_translate_option'));
             }
         }
     }
 }