install.sql 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292
  1. SET @sName = 'bx_uni';
  2. -- SETTINGS
  3. INSERT INTO `sys_options_types`(`group`, `name`, `caption`, `icon`, `order`) VALUES
  4. ('templates', @sName, '_bx_uni_stg_cpt_type', 'bx_uni@modules/boonex/uni/|std-mi.png', 2);
  5. SET @iTypeId = LAST_INSERT_ID();
  6. -- SETTINGS: UNI System
  7. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `order`) VALUES
  8. (@iTypeId, CONCAT(@sName, '_system'), '_bx_uni_stg_cpt_category_system', 1);
  9. SET @iCategoryId = LAST_INSERT_ID();
  10. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  11. (@iCategoryId, CONCAT(@sName, '_switcher_title'), '_bx_uni_stg_cpt_option_switcher_name', 'UNI', 'digit', '', '', '', 1);
  12. -- SETTINGS: UNI Styles General
  13. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `order`) VALUES
  14. (@iTypeId, CONCAT(@sName, '_styles_general'), '_bx_uni_stg_cpt_category_styles_general', 2);
  15. SET @iCategoryId = LAST_INSERT_ID();
  16. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  17. (@iCategoryId, CONCAT(@sName, '_general_item_bg_color_hover'), '_bx_uni_stg_cpt_option_general_item_bg_color_hover', 'rgba(196, 248, 156, 0.2)', 'rgba', '', '', '', 1),
  18. (@iCategoryId, CONCAT(@sName, '_general_item_bg_color_active'), '_bx_uni_stg_cpt_option_general_item_bg_color_active', 'rgba(196, 248, 156, 0.4)', 'rgba', '', '', '', 2);
  19. -- SETTINGS: UNI Styles Header
  20. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `order`) VALUES
  21. (@iTypeId, CONCAT(@sName, '_styles_header'), '_bx_uni_stg_cpt_category_styles_header', 3);
  22. SET @iCategoryId = LAST_INSERT_ID();
  23. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  24. (@iCategoryId, CONCAT(@sName, '_header_height'), '_bx_uni_stg_cpt_option_header_height', '3rem', 'digit', '', '', '', 1),
  25. (@iCategoryId, CONCAT(@sName, '_header_content_padding'), '_bx_uni_stg_cpt_option_header_content_padding', '0px', 'digit', '', '', '', 2),
  26. (@iCategoryId, CONCAT(@sName, '_header_bg_color'), '_bx_uni_stg_cpt_option_header_bg_color', 'rgba(59, 134, 134, 1)', 'rgba', '', '', '', 3),
  27. (@iCategoryId, CONCAT(@sName, '_header_bg_image'), '_bx_uni_stg_cpt_option_header_bg_image', '', 'image', '', '', '', 4),
  28. (@iCategoryId, CONCAT(@sName, '_header_bg_image_repeat'), '_bx_uni_stg_cpt_option_header_bg_image_repeat', 'no-repeat', 'select', 'no-repeat,repeat,repeat-x,repeat-y', '', '', 5),
  29. (@iCategoryId, CONCAT(@sName, '_header_bg_image_size'), '_bx_uni_stg_cpt_option_header_bg_image_size', 'cover', 'select', 'auto,cover,contain', '', '', 6),
  30. (@iCategoryId, CONCAT(@sName, '_site_logo'), '_bx_uni_stg_cpt_option_site_logo', '', 'image', '', '', '', 7),
  31. (@iCategoryId, CONCAT(@sName, '_site_logo_alt'), '_bx_uni_stg_cpt_option_site_logo_alt', '', 'text', '', '', '', 8),
  32. (@iCategoryId, CONCAT(@sName, '_site_logo_width'), '_bx_uni_stg_cpt_option_site_logo_width', '240', 'digit', '', '', '', 9),
  33. (@iCategoryId, CONCAT(@sName, '_site_logo_height'), '_bx_uni_stg_cpt_option_site_logo_height', '48', 'digit', '', '', '', 10),
  34. (@iCategoryId, CONCAT(@sName, '_header_border_color'), '_bx_uni_stg_cpt_option_header_border_color', 'rgba(208, 208, 208, 1)', 'rgba', '', '', '', 11),
  35. (@iCategoryId, CONCAT(@sName, '_header_border_size'), '_bx_uni_stg_cpt_option_header_border_size', '0px', 'digit', '', '', '', 12),
  36. (@iCategoryId, CONCAT(@sName, '_header_shadow'), '_bx_uni_stg_cpt_option_header_shadow', 'none', 'digit', '', '', '', 13),
  37. (@iCategoryId, CONCAT(@sName, '_header_icon_color'), '_bx_uni_stg_cpt_option_header_icon_color', 'rgba(255, 255, 255, 1)', 'rgba', '', '', '', 14),
  38. (@iCategoryId, CONCAT(@sName, '_header_icon_color_hover'), '_bx_uni_stg_cpt_option_header_icon_color_hover', 'rgba(255, 255, 255, 1)', 'rgba', '', '', '', 15),
  39. (@iCategoryId, CONCAT(@sName, '_header_link_color'), '_bx_uni_stg_cpt_option_header_link_color', 'rgba(255, 255, 255, 1)', 'rgba', '', '', '', 16),
  40. (@iCategoryId, CONCAT(@sName, '_header_link_color_hover'), '_bx_uni_stg_cpt_option_header_link_color_hover', 'rgba(255, 255, 255, 1)', 'rgba', '', '', '', 17);
  41. -- SETTINGS: UNI Styles Footer
  42. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `order`) VALUES
  43. (@iTypeId, CONCAT(@sName, '_styles_footer'), '_bx_uni_stg_cpt_category_styles_footer', 4);
  44. SET @iCategoryId = LAST_INSERT_ID();
  45. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  46. (@iCategoryId, CONCAT(@sName, '_footer_bg_color'), '_bx_uni_stg_cpt_option_footer_bg_color', 'rgba(255, 255, 255, 1)', 'rgba', '', '', '', 1),
  47. (@iCategoryId, CONCAT(@sName, '_footer_bg_image'), '_bx_uni_stg_cpt_option_footer_bg_image', '', 'image', '', '', '', 2),
  48. (@iCategoryId, CONCAT(@sName, '_footer_bg_image_repeat'), '_bx_uni_stg_cpt_option_footer_bg_image_repeat', 'no-repeat', 'select', 'no-repeat,repeat,repeat-x,repeat-y', '', '', 3),
  49. (@iCategoryId, CONCAT(@sName, '_footer_bg_image_size'), '_bx_uni_stg_cpt_option_footer_bg_image_size', 'cover', 'select', 'auto,cover,contain', '', '', 4),
  50. (@iCategoryId, CONCAT(@sName, '_footer_content_padding'), '_bx_uni_stg_cpt_option_footer_content_padding', '0px', 'digit', '', '', '', 5),
  51. (@iCategoryId, CONCAT(@sName, '_footer_border_color'), '_bx_uni_stg_cpt_option_footer_border_color', 'rgba(208, 208, 208, 1)', 'rgba', '', '', '', 6),
  52. (@iCategoryId, CONCAT(@sName, '_footer_border_size'), '_bx_uni_stg_cpt_option_footer_border_size', '1px', 'digit', '', '', '', 7),
  53. (@iCategoryId, CONCAT(@sName, '_footer_shadow'), '_bx_uni_stg_cpt_option_footer_shadow', 'none', 'digit', '', '', '', 8),
  54. (@iCategoryId, CONCAT(@sName, '_footer_font_color'), '_bx_uni_stg_cpt_option_footer_font_color', 'rgba(51, 51, 51, 1)', 'rgba', '', '', '', 9),
  55. (@iCategoryId, CONCAT(@sName, '_footer_icon_color'), '_bx_uni_stg_cpt_option_footer_icon_color', 'rgba(62, 134, 133, 1)', 'rgba', '', '', '', 10),
  56. (@iCategoryId, CONCAT(@sName, '_footer_icon_color_hover'), '_bx_uni_stg_cpt_option_footer_icon_color_hover', 'rgba(62, 134, 133, 1)', 'rgba', '', '', '', 11),
  57. (@iCategoryId, CONCAT(@sName, '_footer_link_color'), '_bx_uni_stg_cpt_option_footer_link_color', 'rgba(62, 134, 133, 1)', 'rgba', '', '', '', 12),
  58. (@iCategoryId, CONCAT(@sName, '_footer_link_color_hover'), '_bx_uni_stg_cpt_option_footer_link_color_hover', 'rgba(62, 134, 133, 1)', 'rgba', '', '', '', 13);
  59. -- SETTINGS: UNI Styles Body
  60. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `order`) VALUES
  61. (@iTypeId, CONCAT(@sName, '_styles_body'), '_bx_uni_stg_cpt_category_styles_body', 5);
  62. SET @iCategoryId = LAST_INSERT_ID();
  63. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  64. (@iCategoryId, CONCAT(@sName, '_body_bg_color'), '_bx_uni_stg_cpt_option_body_bg_color', 'rgb(255, 255, 255)', 'rgb', '', '', '', 1),
  65. (@iCategoryId, CONCAT(@sName, '_body_bg_image'), '_bx_uni_stg_cpt_option_body_bg_image', '', 'image', '', '', '', 2),
  66. (@iCategoryId, CONCAT(@sName, '_body_bg_image_repeat'), '_bx_uni_stg_cpt_option_body_bg_image_repeat', 'no-repeat', 'select', 'no-repeat,repeat,repeat-x,repeat-y', '', '', 3),
  67. (@iCategoryId, CONCAT(@sName, '_body_bg_image_size'), '_bx_uni_stg_cpt_option_body_bg_image_size', 'cover', 'select', 'auto,cover,contain', '', '', 4),
  68. (@iCategoryId, CONCAT(@sName, '_page_width'), '_bx_uni_stg_cpt_option_page_width', '1000', 'digit', '', '', '', 5),
  69. (@iCategoryId, CONCAT(@sName, '_body_icon_color'), '_bx_uni_stg_cpt_option_body_icon_color', 'rgba(62, 134, 133, 1)', 'rgba', '', '', '', 6),
  70. (@iCategoryId, CONCAT(@sName, '_body_icon_color_hover'), '_bx_uni_stg_cpt_option_body_icon_color_hover', 'rgba(62, 134, 133, 1)', 'rgba', '', '', '', 7),
  71. (@iCategoryId, CONCAT(@sName, '_body_link_color'), '_bx_uni_stg_cpt_option_body_link_color', 'rgba(62, 134, 133, 1)', 'rgba', '', '', '', 8),
  72. (@iCategoryId, CONCAT(@sName, '_body_link_color_hover'), '_bx_uni_stg_cpt_option_body_link_color_hover', 'rgba(62, 134, 133, 1)', 'rgba', '', '', '', 9);
  73. -- SETTINGS: UNI Styles Block
  74. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `order`) VALUES
  75. (@iTypeId, CONCAT(@sName, '_styles_block'), '_bx_uni_stg_cpt_category_styles_block', 6);
  76. SET @iCategoryId = LAST_INSERT_ID();
  77. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  78. (@iCategoryId, CONCAT(@sName, '_block_bg_color'), '_bx_uni_stg_cpt_option_block_bg_color', 'rgba(255, 255, 255, 1)', 'rgba', '', '', '', 1),
  79. (@iCategoryId, CONCAT(@sName, '_block_bg_image'), '_bx_uni_stg_cpt_option_block_bg_image', '', 'image', '', '', '', 2),
  80. (@iCategoryId, CONCAT(@sName, '_block_bg_image_repeat'), '_bx_uni_stg_cpt_option_block_bg_image_repeat', 'no-repeat', 'select', 'no-repeat,repeat,repeat-x,repeat-y', '', '', 3),
  81. (@iCategoryId, CONCAT(@sName, '_block_bg_image_size'), '_bx_uni_stg_cpt_option_block_bg_image_size', 'cover', 'select', 'auto,cover,contain', '', '', 4),
  82. (@iCategoryId, CONCAT(@sName, '_block_content_padding'), '_bx_uni_stg_cpt_option_block_content_padding', '1rem', 'digit', '', '', '', 5),
  83. (@iCategoryId, CONCAT(@sName, '_block_border_color'), '_bx_uni_stg_cpt_option_block_border_color', 'rgba(208, 208, 208, 1)', 'rgba', '', '', '', 6),
  84. (@iCategoryId, CONCAT(@sName, '_block_border_size'), '_bx_uni_stg_cpt_option_block_border_size', '0px', 'digit', '', '', '', 7),
  85. (@iCategoryId, CONCAT(@sName, '_block_border_radius'), '_bx_uni_stg_cpt_option_block_border_radius', '0px', 'digit', '', '', '', 8),
  86. (@iCategoryId, CONCAT(@sName, '_block_shadow'), '_bx_uni_stg_cpt_option_block_shadow', 'none', 'digit', '', '', '', 9),
  87. (@iCategoryId, CONCAT(@sName, '_block_title_padding'), '_bx_uni_stg_cpt_option_block_title_padding', '0px', 'digit', '', '', '', 10),
  88. (@iCategoryId, CONCAT(@sName, '_block_title_font_family'), '_bx_uni_stg_cpt_option_block_title_font_family', 'Helvetica, Arial, sans-serif', 'digit', '', '', '', 11),
  89. (@iCategoryId, CONCAT(@sName, '_block_title_font_size'), '_bx_uni_stg_cpt_option_block_title_font_size', '1.5rem', 'digit', '', '', '', 12),
  90. (@iCategoryId, CONCAT(@sName, '_block_title_font_color'), '_bx_uni_stg_cpt_option_block_title_font_color', 'rgba(0, 0, 20, 1)', 'rgba', '', '', '', 13),
  91. (@iCategoryId, CONCAT(@sName, '_block_title_div_height'), '_bx_uni_stg_cpt_option_block_title_div_height', '1px', 'digit', '', '', '', 14),
  92. (@iCategoryId, CONCAT(@sName, '_block_title_div_bg_color'), '_bx_uni_stg_cpt_option_block_title_div_bg_color', 'rgba(208, 208, 208, 1)', 'rgba', '', '', '', 15);
  93. -- SETTINGS: UNI Styles Card
  94. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `order`) VALUES
  95. (@iTypeId, CONCAT(@sName, '_styles_card'), '_bx_uni_stg_cpt_category_styles_card', 7);
  96. SET @iCategoryId = LAST_INSERT_ID();
  97. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  98. (@iCategoryId, CONCAT(@sName, '_card_bg_color'), '_bx_uni_stg_cpt_option_card_bg_color', 'rgba(242, 242, 242, 1)', 'rgba', '', '', '', 1),
  99. (@iCategoryId, CONCAT(@sName, '_card_bg_image'), '_bx_uni_stg_cpt_option_card_bg_image', '', 'image', '', '', '', 2),
  100. (@iCategoryId, CONCAT(@sName, '_card_bg_image_repeat'), '_bx_uni_stg_cpt_option_card_bg_image_repeat', 'no-repeat', 'select', 'no-repeat,repeat,repeat-x,repeat-y', '', '', 3),
  101. (@iCategoryId, CONCAT(@sName, '_card_bg_image_size'), '_bx_uni_stg_cpt_option_card_bg_image_size', 'cover', 'select', 'auto,cover,contain', '', '', 4),
  102. (@iCategoryId, CONCAT(@sName, '_card_content_padding'), '_bx_uni_stg_cpt_option_card_content_padding', '20px', 'digit', '', '', '', 5),
  103. (@iCategoryId, CONCAT(@sName, '_card_border_color'), '_bx_uni_stg_cpt_option_card_border_color', 'rgba(208, 208, 208, 1)', 'rgba', '', '', '', 6),
  104. (@iCategoryId, CONCAT(@sName, '_card_border_size'), '_bx_uni_stg_cpt_option_card_border_size', '0px', 'digit', '', '', '', 7),
  105. (@iCategoryId, CONCAT(@sName, '_card_border_radius'), '_bx_uni_stg_cpt_option_card_border_radius', '3px', 'digit', '', '', '', 8),
  106. (@iCategoryId, CONCAT(@sName, '_card_shadow'), '_bx_uni_stg_cpt_option_card_shadow', 'none', 'digit', '', '', '', 9);
  107. -- SETTINGS: UNI Styles Popups
  108. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `order`) VALUES
  109. (@iTypeId, CONCAT(@sName, '_styles_popup'), '_bx_uni_stg_cpt_category_styles_popup', 8);
  110. SET @iCategoryId = LAST_INSERT_ID();
  111. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  112. (@iCategoryId, CONCAT(@sName, '_popup_bg_color'), '_bx_uni_stg_cpt_option_popup_bg_color', 'rgba(255, 255, 255, 1)', 'rgba', '', '', '', 1),
  113. (@iCategoryId, CONCAT(@sName, '_popup_bg_image'), '_bx_uni_stg_cpt_option_popup_bg_image', '', 'image', '', '', '', 2),
  114. (@iCategoryId, CONCAT(@sName, '_popup_bg_image_repeat'), '_bx_uni_stg_cpt_option_popup_bg_image_repeat', 'no-repeat', 'select', 'no-repeat,repeat,repeat-x,repeat-y', '', '', 3),
  115. (@iCategoryId, CONCAT(@sName, '_popup_bg_image_size'), '_bx_uni_stg_cpt_option_popup_bg_image_size', 'cover', 'select', 'auto,cover,contain', '', '', 4),
  116. (@iCategoryId, CONCAT(@sName, '_popup_content_padding'), '_bx_uni_stg_cpt_option_popup_content_padding', '1.25rem', 'digit', '', '', '', 5),
  117. (@iCategoryId, CONCAT(@sName, '_popup_border_color'), '_bx_uni_stg_cpt_option_popup_border_color', 'rgba(56, 61, 102, 1)', 'rgba', '', '', '', 6),
  118. (@iCategoryId, CONCAT(@sName, '_popup_border_size'), '_bx_uni_stg_cpt_option_popup_border_size', '1px', 'digit', '', '', '', 7),
  119. (@iCategoryId, CONCAT(@sName, '_popup_border_radius'), '_bx_uni_stg_cpt_option_popup_border_radius', '3px', 'digit', '', '', '', 8),
  120. (@iCategoryId, CONCAT(@sName, '_popup_shadow'), '_bx_uni_stg_cpt_option_popup_shadow', 'none', 'digit', '', '', '', 9),
  121. (@iCategoryId, CONCAT(@sName, '_popup_title_padding'), '_bx_uni_stg_cpt_option_popup_title_padding', '1.25rem', 'digit', '', '', '', 10),
  122. (@iCategoryId, CONCAT(@sName, '_popup_title_font_family'), '_bx_uni_stg_cpt_option_popup_title_font_family', 'Helvetica, Arial, sans-serif', 'digit', '', '', '', 11),
  123. (@iCategoryId, CONCAT(@sName, '_popup_title_font_size'), '_bx_uni_stg_cpt_option_popup_title_font_size', '1.5rem', 'digit', '', '', '', 12),
  124. (@iCategoryId, CONCAT(@sName, '_popup_title_font_color'), '_bx_uni_stg_cpt_option_popup_title_font_color', 'rgba(0, 0, 20, 1)', 'rgba', '', '', '', 13);
  125. -- SETTINGS: UNI Styles Slide Menus
  126. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `order`) VALUES
  127. (@iTypeId, CONCAT(@sName, '_styles_menu_slide'), '_bx_uni_stg_cpt_category_styles_menu_slide', 9);
  128. SET @iCategoryId = LAST_INSERT_ID();
  129. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  130. (@iCategoryId, CONCAT(@sName, '_menu_slide_bg_color'), '_bx_uni_stg_cpt_option_menu_slide_bg_color', 'rgba(255, 255, 255, 1)', 'rgba', '', '', '', 1),
  131. (@iCategoryId, CONCAT(@sName, '_menu_slide_bg_image'), '_bx_uni_stg_cpt_option_menu_slide_bg_image', '', 'image', '', '', '', 2),
  132. (@iCategoryId, CONCAT(@sName, '_menu_slide_bg_image_repeat'), '_bx_uni_stg_cpt_option_menu_slide_bg_image_repeat', 'no-repeat', 'select', 'no-repeat,repeat,repeat-x,repeat-y', '', '', 3),
  133. (@iCategoryId, CONCAT(@sName, '_menu_slide_bg_image_size'), '_bx_uni_stg_cpt_option_menu_slide_bg_image_size', 'cover', 'select', 'auto,cover,contain', '', '', 4),
  134. (@iCategoryId, CONCAT(@sName, '_menu_slide_content_padding'), '_bx_uni_stg_cpt_option_menu_slide_content_padding', '1.25rem', 'digit', '', '', '', 5),
  135. (@iCategoryId, CONCAT(@sName, '_menu_slide_border_color'), '_bx_uni_stg_cpt_option_menu_slide_border_color', 'rgba(208, 208, 208, 1)', 'rgba', '', '', '', 6),
  136. (@iCategoryId, CONCAT(@sName, '_menu_slide_border_size'), '_bx_uni_stg_cpt_option_menu_slide_border_size', '0px', 'digit', '', '', '', 7),
  137. (@iCategoryId, CONCAT(@sName, '_menu_slide_shadow'), '_bx_uni_stg_cpt_option_menu_slide_shadow', 'none', 'digit', '', '', '', 8);
  138. -- SETTINGS: UNI Styles Page Menu
  139. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `order`) VALUES
  140. (@iTypeId, CONCAT(@sName, '_styles_menu_page'), '_bx_uni_stg_cpt_category_styles_menu_page', 10);
  141. SET @iCategoryId = LAST_INSERT_ID();
  142. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  143. (@iCategoryId, CONCAT(@sName, '_menu_page_bg_color'), '_bx_uni_stg_cpt_option_menu_page_bg_color', 'rgba(242, 242, 242, 1)', 'rgba', '', '', '', 1),
  144. (@iCategoryId, CONCAT(@sName, '_menu_page_bg_image'), '_bx_uni_stg_cpt_option_menu_page_bg_image', '', 'image', '', '', '', 2),
  145. (@iCategoryId, CONCAT(@sName, '_menu_page_bg_image_repeat'), '_bx_uni_stg_cpt_option_menu_page_bg_image_repeat', 'no-repeat', 'select', 'no-repeat,repeat,repeat-x,repeat-y', '', '', 3),
  146. (@iCategoryId, CONCAT(@sName, '_menu_page_bg_image_size'), '_bx_uni_stg_cpt_option_menu_page_bg_image_size', 'cover', 'select', 'auto,cover,contain', '', '', 4),
  147. (@iCategoryId, CONCAT(@sName, '_menu_page_content_padding'), '_bx_uni_stg_cpt_option_menu_page_content_padding', '0px', 'digit', '', '', '', 5),
  148. (@iCategoryId, CONCAT(@sName, '_menu_page_border_color'), '_bx_uni_stg_cpt_option_menu_page_border_color', 'rgba(208, 208, 208, 1)', 'rgba', '', '', '', 6),
  149. (@iCategoryId, CONCAT(@sName, '_menu_page_border_size'), '_bx_uni_stg_cpt_option_menu_page_border_size', '0px', 'digit', '', '', '', 7),
  150. (@iCategoryId, CONCAT(@sName, '_menu_page_shadow'), '_bx_uni_stg_cpt_option_menu_page_shadow', 'none', 'digit', '', '', '', 8);
  151. -- SETTINGS: UNI Styles Forms
  152. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `order`) VALUES
  153. (@iTypeId, CONCAT(@sName, '_styles_form'), '_bx_uni_stg_cpt_category_styles_form', 11);
  154. SET @iCategoryId = LAST_INSERT_ID();
  155. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  156. (@iCategoryId, CONCAT(@sName, '_form_input_height'), '_bx_uni_stg_cpt_option_form_input_height', '2.2rem', 'digit', '', '', '', 1),
  157. (@iCategoryId, CONCAT(@sName, '_form_input_bg_color'), '_bx_uni_stg_cpt_option_form_input_bg_color', 'rgba(255, 255, 255, 1)', 'rgba', '', '', '', 2),
  158. (@iCategoryId, CONCAT(@sName, '_form_input_bg_color_active'), '_bx_uni_stg_cpt_option_form_input_bg_color_active', 'rgba(255, 255, 255, 1)', 'rgba', '', '', '', 3),
  159. (@iCategoryId, CONCAT(@sName, '_form_input_border_color'), '_bx_uni_stg_cpt_option_form_input_border_color', 'rgba(121, 189, 154, 1)', 'rgba', '', '', '', 4),
  160. (@iCategoryId, CONCAT(@sName, '_form_input_border_color_active'), '_bx_uni_stg_cpt_option_form_input_border_color_active', 'rgba(108, 170, 138, 1)', 'rgba', '', '', '', 5),
  161. (@iCategoryId, CONCAT(@sName, '_form_input_border_size'), '_bx_uni_stg_cpt_option_form_input_border_size', '2px', 'digit', '', '', '', 6),
  162. (@iCategoryId, CONCAT(@sName, '_form_input_shadow'), '_bx_uni_stg_cpt_option_form_input_shadow', 'none', 'digit', '', '', '', 7),
  163. (@iCategoryId, CONCAT(@sName, '_form_input_font_family'), '_bx_uni_stg_cpt_option_form_input_font_family', 'Helvetica, Arial, sans-serif', 'digit', '', '', '', 8),
  164. (@iCategoryId, CONCAT(@sName, '_form_input_font_size'), '_bx_uni_stg_cpt_option_form_input_font_size', '1.125rem', 'digit', '', '', '', 9),
  165. (@iCategoryId, CONCAT(@sName, '_form_input_font_color'), '_bx_uni_stg_cpt_option_form_input_font_color', 'rgba(51, 51, 51, 1)', 'rgba', '', '', '', 10);
  166. -- SETTINGS: UNI Styles Large Buttons
  167. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `order`) VALUES
  168. (@iTypeId, CONCAT(@sName, '_styles_large_button'), '_bx_uni_stg_cpt_category_styles_large_button', 12);
  169. SET @iCategoryId = LAST_INSERT_ID();
  170. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  171. (@iCategoryId, CONCAT(@sName, '_button_lg_height'), '_bx_uni_stg_cpt_option_button_lg_height', '2.25rem', 'digit', '', '', '', 1),
  172. (@iCategoryId, CONCAT(@sName, '_button_lg_bg_color'), '_bx_uni_stg_cpt_option_button_lg_bg_color', 'rgba(108, 170, 138, 1)', 'rgba', '', '', '', 2),
  173. (@iCategoryId, CONCAT(@sName, '_button_lg_bg_color_hover'), '_bx_uni_stg_cpt_option_button_lg_bg_color_hover', 'rgba(58, 134, 134, 1)', 'rgba', '', '', '', 3),
  174. (@iCategoryId, CONCAT(@sName, '_button_lg_border_color'), '_bx_uni_stg_cpt_option_button_lg_border_color', 'rgba(208, 208, 208, 1)', 'rgba', '', '', '', 4),
  175. (@iCategoryId, CONCAT(@sName, '_button_lg_border_color_hover'), '_bx_uni_stg_cpt_option_button_lg_border_color_hover', 'rgba(208, 208, 208, 1)', 'rgba', '', '', '', 5),
  176. (@iCategoryId, CONCAT(@sName, '_button_lg_border_size'), '_bx_uni_stg_cpt_option_button_lg_border_size', '0px', 'digit', '', '', '', 6),
  177. (@iCategoryId, CONCAT(@sName, '_button_lg_border_radius'), '_bx_uni_stg_cpt_option_button_lg_border_radius', '3px', 'digit', '', '', '', 7),
  178. (@iCategoryId, CONCAT(@sName, '_button_lg_shadow'), '_bx_uni_stg_cpt_option_button_lg_shadow', 'none', 'digit', '', '', '', 8),
  179. (@iCategoryId, CONCAT(@sName, '_button_lg_font_family'), '_bx_uni_stg_cpt_option_button_lg_font_family', '"Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif', 'digit', '', '', '', 9),
  180. (@iCategoryId, CONCAT(@sName, '_button_lg_font_size'), '_bx_uni_stg_cpt_option_button_lg_font_size', '1rem', 'digit', '', '', '', 10),
  181. (@iCategoryId, CONCAT(@sName, '_button_lg_font_color'), '_bx_uni_stg_cpt_option_button_lg_font_color', 'rgba(255, 255, 255, 1)', 'rgba', '', '', '', 11),
  182. (@iCategoryId, CONCAT(@sName, '_button_lg_font_color_hover'), '_bx_uni_stg_cpt_option_button_lg_font_color_hover', 'rgba(255, 255, 255, 1)', 'rgba', '', '', '', 12),
  183. (@iCategoryId, CONCAT(@sName, '_button_lg_font_shadow'), '_bx_uni_stg_cpt_option_button_lg_font_shadow', 'none', 'digit', '', '', '', 13),
  184. (@iCategoryId, CONCAT(@sName, '_button_lg_font_weight'), '_bx_uni_stg_cpt_option_button_lg_font_weight', '400', 'digit', '', '', '', 14);
  185. -- SETTINGS: UNI Styles Small Buttons
  186. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `order`) VALUES
  187. (@iTypeId, CONCAT(@sName, '_styles_small_button'), '_bx_uni_stg_cpt_category_styles_small_button', 13);
  188. SET @iCategoryId = LAST_INSERT_ID();
  189. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  190. (@iCategoryId, CONCAT(@sName, '_button_sm_height'), '_bx_uni_stg_cpt_option_button_sm_height', '1.5rem', 'digit', '', '', '', 1),
  191. (@iCategoryId, CONCAT(@sName, '_button_sm_bg_color'), '_bx_uni_stg_cpt_option_button_sm_bg_color', 'rgba(108, 170, 138, 1)', 'rgba', '', '', '', 2),
  192. (@iCategoryId, CONCAT(@sName, '_button_sm_bg_color_hover'), '_bx_uni_stg_cpt_option_button_sm_bg_color_hover', 'rgba(58, 134, 134, 1)', 'rgba', '', '', '', 3),
  193. (@iCategoryId, CONCAT(@sName, '_button_sm_border_color'), '_bx_uni_stg_cpt_option_button_sm_border_color', 'rgba(208, 208, 208, 1)', 'rgba', '', '', '', 4),
  194. (@iCategoryId, CONCAT(@sName, '_button_sm_border_color_hover'), '_bx_uni_stg_cpt_option_button_sm_border_color_hover', 'rgba(208, 208, 208, 1)', 'rgba', '', '', '', 5),
  195. (@iCategoryId, CONCAT(@sName, '_button_sm_border_size'), '_bx_uni_stg_cpt_option_button_sm_border_size', '0px', 'digit', '', '', '', 6),
  196. (@iCategoryId, CONCAT(@sName, '_button_sm_border_radius'), '_bx_uni_stg_cpt_option_button_sm_border_radius', '3px', 'digit', '', '', '', 7),
  197. (@iCategoryId, CONCAT(@sName, '_button_sm_shadow'), '_bx_uni_stg_cpt_option_button_sm_shadow', 'none', 'digit', '', '', '', 8),
  198. (@iCategoryId, CONCAT(@sName, '_button_sm_font_family'), '_bx_uni_stg_cpt_option_button_sm_font_family', '"Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif', 'digit', '', '', '', 9),
  199. (@iCategoryId, CONCAT(@sName, '_button_sm_font_size'), '_bx_uni_stg_cpt_option_button_sm_font_size', '0.9rem', 'digit', '', '', '', 10),
  200. (@iCategoryId, CONCAT(@sName, '_button_sm_font_color'), '_bx_uni_stg_cpt_option_button_sm_font_color', 'rgba(255, 255, 255, 1)', 'rgba', '', '', '', 11),
  201. (@iCategoryId, CONCAT(@sName, '_button_sm_font_color_hover'), '_bx_uni_stg_cpt_option_button_sm_font_color_hover', 'rgba(255, 255, 255, 1)', 'rgba', '', '', '', 12),
  202. (@iCategoryId, CONCAT(@sName, '_button_sm_font_shadow'), '_bx_uni_stg_cpt_option_button_sm_font_shadow', 'none', 'digit', '', '', '', 13),
  203. (@iCategoryId, CONCAT(@sName, '_button_sm_font_weight'), '_bx_uni_stg_cpt_option_button_sm_font_weight', '400', 'digit', '', '', '', 14);
  204. -- SETTINGS: UNI Styles Font
  205. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `order`) VALUES
  206. (@iTypeId, CONCAT(@sName, '_styles_font'), '_bx_uni_stg_cpt_category_styles_font', 14);
  207. SET @iCategoryId = LAST_INSERT_ID();
  208. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  209. (@iCategoryId, CONCAT(@sName, '_font_family'), '_bx_uni_stg_cpt_option_font_family', '"Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif', 'digit', '', '', '', 1),
  210. (@iCategoryId, CONCAT(@sName, '_font_size_default'), '_bx_uni_stg_cpt_option_size_default', '18px', 'digit', '', '', '', 2),
  211. (@iCategoryId, CONCAT(@sName, '_font_color_default'), '_bx_uni_stg_cpt_option_color_default', 'rgba(51, 51, 51, 1)', 'rgba', '', '', '', 3),
  212. (@iCategoryId, CONCAT(@sName, '_font_size_small'), '_bx_uni_stg_cpt_option_size_small', '14px', 'digit', '', '', '', 4),
  213. (@iCategoryId, CONCAT(@sName, '_font_color_small'), '_bx_uni_stg_cpt_option_color_small', 'rgba(51, 51, 51, 1)', 'rgba', '', '', '', 5),
  214. (@iCategoryId, CONCAT(@sName, '_font_size_middle'), '_bx_uni_stg_cpt_option_size_middle', '16px', 'digit', '', '', '', 6),
  215. (@iCategoryId, CONCAT(@sName, '_font_color_middle'), '_bx_uni_stg_cpt_option_color_middle', 'rgba(51, 51, 51, 1)', 'rgba', '', '', '', 7),
  216. (@iCategoryId, CONCAT(@sName, '_font_size_large'), '_bx_uni_stg_cpt_option_size_large', '22px', 'digit', '', '', '', 8),
  217. (@iCategoryId, CONCAT(@sName, '_font_color_large'), '_bx_uni_stg_cpt_option_color_large', 'rgba(51, 51, 51, 1)', 'rgba', '', '', '', 9),
  218. (@iCategoryId, CONCAT(@sName, '_font_size_h1'), '_bx_uni_stg_cpt_option_size_h1', '38px', 'digit', '', '', '', 10),
  219. (@iCategoryId, CONCAT(@sName, '_font_color_h1'), '_bx_uni_stg_cpt_option_color_h1', 'rgba(51, 51, 51, 1)', 'rgba', '', '', '', 11),
  220. (@iCategoryId, CONCAT(@sName, '_font_size_h2'), '_bx_uni_stg_cpt_option_size_h2', '24px', 'digit', '', '', '', 12),
  221. (@iCategoryId, CONCAT(@sName, '_font_color_h2'), '_bx_uni_stg_cpt_option_color_h2', 'rgba(51, 51, 51, 1)', 'rgba', '', '', '', 13),
  222. (@iCategoryId, CONCAT(@sName, '_font_size_h3'), '_bx_uni_stg_cpt_option_size_h3', '18px', 'digit', '', '', '', 14),
  223. (@iCategoryId, CONCAT(@sName, '_font_color_h3'), '_bx_uni_stg_cpt_option_color_h3', 'rgba(51, 51, 51, 1)', 'rgba', '', '', '', 15),
  224. (@iCategoryId, CONCAT(@sName, '_font_color_grayed'), '_bx_uni_stg_cpt_option_color_grayed', 'rgba(153, 153, 153, 1)', 'rgba', '', '', '', 16),
  225. (@iCategoryId, CONCAT(@sName, '_font_color_contrasted'), '_bx_uni_stg_cpt_option_color_contrasted', 'rgba(255, 255, 255, 1)', 'rgba', '', '', '', 17);
  226. -- SETTINGS: UNI Viewport Tablet
  227. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `order`) VALUES
  228. (@iTypeId, CONCAT(@sName, '_viewport_tablet'), '_bx_uni_stg_cpt_category_viewport_tablet', 15);
  229. SET @iCategoryId = LAST_INSERT_ID();
  230. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  231. (@iCategoryId, CONCAT(@sName, '_vpt_font_size_scale'), '_bx_uni_stg_cpt_option_vpt_font_size_scale', '100%', 'digit', '', '', '', 1);
  232. -- SETTINGS: UNI Viewport Mobile
  233. INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `order`) VALUES
  234. (@iTypeId, CONCAT(@sName, '_viewport_mobile'), '_bx_uni_stg_cpt_category_viewport_mobile', 16);
  235. SET @iCategoryId = LAST_INSERT_ID();
  236. INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
  237. (@iCategoryId, CONCAT(@sName, '_vpm_font_size_scale'), '_bx_uni_stg_cpt_option_vpm_font_size_scale', '85%', 'digit', '', '', '', 1);
  238. -- STUDIO PAGE & WIDGET
  239. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  240. (3, @sName, '', '', 'bx_uni@modules/boonex/uni/|std-pi.png');
  241. SET @iPageId = LAST_INSERT_ID();
  242. SET @iParentPageId = (SELECT `id` FROM `sys_std_pages` WHERE `name`='home');
  243. SET @iParentPageOrder = (SELECT MAX(`order`) FROM `sys_std_pages_widgets` WHERE `page_id`=@iParentPageId);
  244. INSERT INTO `sys_std_widgets`(`page_id`, `module`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  245. (@iPageId, @sName, CONCAT('{url_studio}design.php?name=', @sName), '', 'bx_uni@modules/boonex/uni/|std-wi.png', '_bx_uni_wgt_cpt', '', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:11:"get_actions";s:6:"params";a:0:{}s:5:"class";s:18:"TemplStudioDesigns";}');
  246. INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES
  247. (@iParentPageId, LAST_INSERT_ID(), @iParentPageOrder + 1);