install.sql 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. -- TABLE: types of categories
  2. CREATE TABLE IF NOT EXISTS `bx_editor_toolbar_buttons` (
  3. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  4. `active` tinyint(4) NOT NULL default '0',
  5. `order` tinyint(4) NOT NULL default '0',
  6. `name` varchar(64) NOT NULL DEFAULT '',
  7. `mode` varchar(10) NOT NULL DEFAULT '',
  8. PRIMARY KEY (`id`)
  9. );
  10. INSERT INTO `bx_editor_toolbar_buttons`(`active`, `order`, `name`, `mode`) VALUES
  11. (1, 0, 'bold', 'full'),
  12. (1, 1, 'italic', 'full'),
  13. (1, 2, 'underline', 'full'),
  14. (1, 3, 'strike', 'full'),
  15. (1, 4, 'subscript', 'full'),
  16. (1, 5, 'superscript', 'full'),
  17. (1, 6, 'code', 'full'),
  18. (1, 7, 'highlight', 'full'),
  19. (1, 8, 'separator', 'full'),
  20. (1, 9, 'indent', 'full'),
  21. (1, 10, 'outdent', 'full'),
  22. (1, 11, 'bulletList', 'full'),
  23. (1, 12, 'codeBlock', 'full'),
  24. (1, 13, 'orderedList', 'full'),
  25. (1, 14, 'separator', 'full'),
  26. (1, 15, 'alignLeft', 'full'),
  27. (1, 16, 'alignCenter', 'full'),
  28. (1, 17, 'alignRight', 'full'),
  29. (1, 18, 'alignJustify', 'full'),
  30. (1, 19, 'separator', 'full'),
  31. (1, 20, 'h1', 'full'),
  32. (1, 21, 'h2', 'full'),
  33. (1, 22, 'h3', 'full'),
  34. (1, 23, 'h4', 'full'),
  35. (1, 24, 'separator', 'full'),
  36. (1, 25, 'link', 'full'),
  37. (1, 26, 'image', 'full'),
  38. (1, 27, 'embed', 'full'),
  39. (1, 0, 'bold', 'standard'),
  40. (1, 1, 'italic', 'standard'),
  41. (1, 2, 'underline', 'standard'),
  42. (1, 3, 'strike', 'standard'),
  43. (0, 4, 'subscript', 'standard'),
  44. (0, 5, 'superscript', 'standard'),
  45. (0, 6, 'code', 'standard'),
  46. (0, 7, 'highlight', 'standard'),
  47. (1, 8, 'separator', 'standard'),
  48. (0, 9, 'indent', 'standard'),
  49. (0, 10, 'outdent', 'standard'),
  50. (1, 11, 'bulletList', 'standard'),
  51. (0, 12, 'codeBlock', 'standard'),
  52. (1, 13, 'orderedList', 'standard'),
  53. (1, 14, 'separator', 'standard'),
  54. (1, 15, 'alignLeft', 'standard'),
  55. (1, 16, 'alignCenter', 'standard'),
  56. (1, 17, 'alignRight', 'standard'),
  57. (1, 18, 'alignJustify', 'standard'),
  58. (1, 19, 'separator', 'standard'),
  59. (1, 20, 'h1', 'standard'),
  60. (1, 21, 'h2', 'standard'),
  61. (1, 22, 'h3', 'standard'),
  62. (1, 23, 'h4', 'standard'),
  63. (1, 24, 'separator', 'standard'),
  64. (1, 25, 'link', 'standard'),
  65. (1, 26, 'image', 'standard'),
  66. (1, 27, 'embed', 'standard'),
  67. (1, 0, 'bold', 'mini'),
  68. (1, 1, 'italic', 'mini'),
  69. (1, 2, 'underline', 'mini'),
  70. (0, 3, 'strike', 'mini'),
  71. (0, 4, 'subscript', 'mini'),
  72. (0, 5, 'superscript', 'mini'),
  73. (0, 6, 'code', 'mini'),
  74. (0, 7, 'highlight', 'mini'),
  75. (0, 8, 'separator', 'mini'),
  76. (0, 9, 'indent', 'mini'),
  77. (0, 10, 'outdent', 'mini'),
  78. (0, 11, 'bulletList', 'mini'),
  79. (0, 12, 'codeBlock', 'mini'),
  80. (0, 13, 'orderedList', 'mini'),
  81. (1, 14, 'separator', 'mini'),
  82. (1, 15, 'alignLeft', 'mini'),
  83. (1, 16, 'alignCenter', 'mini'),
  84. (1, 17, 'alignRight', 'mini'),
  85. (1, 18, 'alignJustify', 'mini'),
  86. (0, 19, 'separator', 'mini'),
  87. (0, 20, 'h1', 'mini'),
  88. (0, 21, 'h2', 'mini'),
  89. (0, 22, 'h3', 'mini'),
  90. (0, 23, 'h4', 'mini'),
  91. (1, 24, 'separator', 'mini'),
  92. (1, 25, 'link', 'mini'),
  93. (1, 26, 'image', 'mini'),
  94. (1, 27, 'embed', 'mini');
  95. -- Studio page and widget
  96. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  97. (3, 'bx_editor', '_bx_editor', '_bx_editor', 'bx_editor@modules/boonex/editor/|std-icon.svg');
  98. SET @iPageId = LAST_INSERT_ID();
  99. SET @iParentPageId = (SELECT `id` FROM `sys_std_pages` WHERE `name` = 'home');
  100. SET @iParentPageOrder = (SELECT MAX(`order`) FROM `sys_std_pages_widgets` WHERE `page_id` = @iParentPageId);
  101. INSERT INTO `sys_std_widgets` (`page_id`, `module`, `type`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  102. (@iPageId, 'bx_editor', 'integrations', '{url_studio}module.php?name=bx_editor', '', 'bx_editor@modules/boonex/editor/|std-icon.svg', '_bx_editor', '', '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:"TemplStudioModules";}');
  103. INSERT INTO `sys_std_pages_widgets` (`page_id`, `widget_id`, `order`) VALUES
  104. (@iParentPageId, LAST_INSERT_ID(), IF(ISNULL(@iParentPageOrder), 1, @iParentPageOrder + 1));