|
|
@@ -1,26 +1,6 @@
|
|
|
---
|
|
|
--- General section.
|
|
|
---
|
|
|
SET @sName = 'bx_uni';
|
|
|
|
|
|
---
|
|
|
--- Studio page and widget.
|
|
|
---
|
|
|
-INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
|
|
|
-(3, @sName, '', '', 'bx_uni@modules/boonex/uni/|std-pi.png');
|
|
|
-SET @iPageId = LAST_INSERT_ID();
|
|
|
-
|
|
|
-SET @iParentPageId = (SELECT `id` FROM `sys_std_pages` WHERE `name`='home');
|
|
|
-SET @iParentPageOrder = (SELECT MAX(`order`) FROM `sys_std_pages_widgets` WHERE `page_id`=@iParentPageId);
|
|
|
-INSERT INTO `sys_std_widgets`(`page_id`, `module`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
|
|
|
-(@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";}');
|
|
|
-INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES
|
|
|
-(@iParentPageId, LAST_INSERT_ID(), @iParentPageOrder + 1);
|
|
|
-
|
|
|
-
|
|
|
---
|
|
|
--- Settings.
|
|
|
---
|
|
|
+-- SETTINGS
|
|
|
INSERT INTO `sys_options_types`(`group`, `name`, `caption`, `icon`, `order`) VALUES
|
|
|
('templates', @sName, '_bx_uni_stg_cpt_type', 'bx_uni@modules/boonex/uni/|std-mi.png', 2);
|
|
|
SET @iTypeId = LAST_INSERT_ID();
|
|
|
@@ -31,3 +11,16 @@ SET @iCategoryId = LAST_INSERT_ID();
|
|
|
|
|
|
INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
|
|
|
(@iCategoryId, CONCAT(@sName, '_switcher_title'), 'Name In Template Switcher', 'UNI', 'digit', '', '', '', 1);
|
|
|
+
|
|
|
+
|
|
|
+-- STUDIO PAGE & WIDGET
|
|
|
+INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
|
|
|
+(3, @sName, '', '', 'bx_uni@modules/boonex/uni/|std-pi.png');
|
|
|
+SET @iPageId = LAST_INSERT_ID();
|
|
|
+
|
|
|
+SET @iParentPageId = (SELECT `id` FROM `sys_std_pages` WHERE `name`='home');
|
|
|
+SET @iParentPageOrder = (SELECT MAX(`order`) FROM `sys_std_pages_widgets` WHERE `page_id`=@iParentPageId);
|
|
|
+INSERT INTO `sys_std_widgets`(`page_id`, `module`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
|
|
|
+(@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";}');
|
|
|
+INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES
|
|
|
+(@iParentPageId, LAST_INSERT_ID(), @iParentPageOrder + 1);
|