public function __construct()
 {
     parent::__construct();
     $license_version_field = new JWP6_Form_Field_Select('license_version', array('options' => JWP6_Plugin::$license_versions, 'default' => 'free', 'description_is_value' => true, 'help_text' => 'Select which edition of JW Player you own to unlock additional template settings and to hide the player watermark.'));
     $license_key_field = new JWP6_Form_Field('license_key', array('validation' => array($this, "license_key_validation"), 'help_text' => 'A license key is required for the Pro, Premium and Ads edition.'));
     if (JWP6_USE_CUSTOM_SHORTCODE_FILTER) {
         $default_config_options = array('label' => 'Category pages', 'options' => array('excerpt' => 'Use excerpt', 'content' => 'Use content', 'disable' => 'Strip shortcode'), 'default' => 'content', 'single_line' => true);
         $category_config_options = $default_config_options;
         $category_config_options['label'] = 'Category pages';
         $category_config_field = new JWP6_Form_Field_Radio('category_config', $category_config_options);
         $search_config_options = $default_config_options;
         $search_config_options['label'] = 'Search pages';
         $search_config_field = new JWP6_Form_Field_Radio('search_config', $search_config_options);
         $tag_config_options = $default_config_options;
         $tag_config_options['label'] = 'Tag pages';
         $tag_config_field = new JWP6_Form_Field_Radio('tag_config', $tag_config_options);
         $home_config_options = $default_config_options;
         $home_config_options['label'] = 'Home page';
         $home_config_field = new JWP6_Form_Field_Radio('home_config', $home_config_options);
     }
     $tracking_field = new JWP6_Form_Field_Toggle('allow_anonymous_tracking', array('label' => 'Anonymous tracking', 'text' => 'Allow anonymous tracking of plugin feature usage', 'help_text' => 'We track which overall features (player edition, external urls, playlists, etc.) you use. This will help us improve the plugin in the future.', 'default' => true));
     $purge_field = new JWP6_Form_Field_Toggle('purge_settings_at_deactivation', array('label' => 'Purge settings', 'text' => 'Purge all plugin settings when I deactivate the plugin.', 'default' => false, 'help_text' => 'Note. This process is irreversible. If you ever decide to reactivate the plugin all your settings will be gone. Use with care!'));
     $this->license_fields = array($license_version_field, $license_key_field);
     $this->other_fields = array($tracking_field, $purge_field);
     if (JWP6_USE_CUSTOM_SHORTCODE_FILTER) {
         $this->shortcode_fields = array($category_config_field, $search_config_field, $tag_config_field, $home_config_field);
     } else {
         $this->shortcode_fields = array();
     }
     $this->form_fields = array_merge($this->license_fields, $this->shortcode_fields, $this->other_fields);
 }
 public function __construct()
 {
     parent::__construct();
     $this->imported_players = get_option(JWP6 . 'imported_jwp5_players');
     if (isset($_GET['player_id']) && isset($_GET['action'])) {
         $this->process_action();
     } else {
         if (isset($_GET['player_id'])) {
             $this->player = new JWP6_Player($_GET['player_id']);
             if (!$this->player->is_existing()) {
                 $this->add_message('Please note that you need save changes to definitely save this player.');
             }
             $this->overview_or_edit = 'edit';
             return $this->_init_edit_page();
         }
     }
     return $this->_init_overview_page();
 }
 public function __construct()
 {
     parent::__construct();
 }