enable.sql 1.3 KB

1234567891011121314151617181920212223
  1. -- Settings
  2. SET @iTypeOrder = (SELECT MAX(`order`) FROM `sys_options_types` WHERE `group` = 'modules');
  3. INSERT INTO `sys_options_types` (`group`, `name`, `caption`, `icon`, `order`) VALUES
  4. ('modules', 'bx_plyr', '_bx_plyr_adm_stg_cpt_type', 'bx_plyr@modules/boonex/plyr/|std-icon.svg', IF(NOT ISNULL(@iTypeOrder), @iTypeOrder + 1, 1));
  5. SET @iTypeId = LAST_INSERT_ID();
  6. INSERT INTO `sys_options_categories` (`type_id`, `name`, `caption`, `order` )
  7. VALUES (@iTypeId, 'bx_plyr_general', '_bx_plyr_adm_stg_cpt_category_general', 1);
  8. SET @iCategId = LAST_INSERT_ID();
  9. INSERT INTO `sys_options` (`name`, `value`, `category_id`, `caption`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  10. ('bx_plyr_option_controls', 'play-large,play,progress,current-time,mute,volume,captions,settings,pip,airplay,fullscreen', @iCategId, '_bx_plyr_option_controls', 'text', '', '', '', 10),
  11. ('bx_plyr_option_settings', 'captions,quality,speed,loop', @iCategId, '_bx_plyr_option_settings', 'text', '', '', '', 20);
  12. -- Editor
  13. INSERT INTO `sys_objects_player` (`object`, `title`, `skin`, `override_class_name`, `override_class_file`) VALUES
  14. ('bx_plyr', 'Plyr', '', 'BxPlyrPlayer', 'modules/boonex/plyr/classes/BxPlyrPlayer.php');
  15. UPDATE `sys_options` SET `value` = 'bx_plyr' WHERE `name` = 'sys_player_default';