|
|
@@ -15,10 +15,9 @@ class BxLucidStudioPage extends BxTemplStudioDesign
|
|
|
{
|
|
|
function __construct($sModule, $mixedPageName, $sPage = "")
|
|
|
{
|
|
|
- $this->MODULE = 'bx_lucid';
|
|
|
parent::__construct($sModule, $mixedPageName, $sPage);
|
|
|
|
|
|
- $this->aMenuItems[BX_LUCID_STUDIO_TEMPL_TYPE_STYLES] = array('title' => '_bx_lucid_lmi_cpt_styles', 'icon' => 'paint-brush');
|
|
|
+ $this->aMenuItems[BX_LUCID_STUDIO_TEMPL_TYPE_STYLES] = ['title' => '_bx_lucid_lmi_cpt_styles', 'icon' => 'paint-brush'];
|
|
|
unset($this->aMenuItems[BX_DOL_STUDIO_TEMPL_TYPE_LOGO]);
|
|
|
}
|
|
|
|
|
|
@@ -27,50 +26,39 @@ class BxLucidStudioPage extends BxTemplStudioDesign
|
|
|
return parent::getSettings('bx_lucid_system', $sMix);
|
|
|
}
|
|
|
|
|
|
- protected function getStyles($sMix = '')
|
|
|
+ protected function getStyles($mixedCategory = '', $sMix = '')
|
|
|
{
|
|
|
- $oTemplate = BxDolStudioTemplate::getInstance();
|
|
|
+ $sPrefix = $this->sModule;
|
|
|
|
|
|
- $sPrefix = $this->MODULE;
|
|
|
- $aCategories = array(
|
|
|
- $sPrefix . '_styles_general',
|
|
|
- $sPrefix . '_styles_header',
|
|
|
- $sPrefix . '_styles_footer',
|
|
|
- $sPrefix . '_styles_body',
|
|
|
- $sPrefix . '_styles_cover',
|
|
|
- $sPrefix . '_styles_block',
|
|
|
- $sPrefix . '_styles_card',
|
|
|
- $sPrefix . '_styles_popup',
|
|
|
- $sPrefix . '_styles_menu_main',
|
|
|
- $sPrefix . '_styles_menu_account',
|
|
|
- $sPrefix . '_styles_menu_add',
|
|
|
- $sPrefix . '_styles_menu_page',
|
|
|
- $sPrefix . '_styles_menu_slide',
|
|
|
- $sPrefix . '_styles_form',
|
|
|
- $sPrefix . '_styles_large_button',
|
|
|
- $sPrefix . '_styles_large_button_primary',
|
|
|
- $sPrefix . '_styles_button',
|
|
|
- $sPrefix . '_styles_button_primary',
|
|
|
- $sPrefix . '_styles_small_button',
|
|
|
- $sPrefix . '_styles_small_button_primary',
|
|
|
- $sPrefix . '_styles_font',
|
|
|
- $sPrefix . '_styles_custom',
|
|
|
- $sPrefix . '_viewport_tablet',
|
|
|
- $sPrefix . '_viewport_mobile'
|
|
|
- );
|
|
|
- $oPage = new BxTemplStudioSettings($this->sModule, $aCategories, $sMix);
|
|
|
- $oPage->enableReadOnly(true);
|
|
|
- $oPage->enableMixes(true);
|
|
|
+ if(empty($mixedCategory))
|
|
|
+ $mixedCategory = [
|
|
|
+ $sPrefix . '_styles_general',
|
|
|
+ $sPrefix . '_styles_header',
|
|
|
+ $sPrefix . '_styles_footer',
|
|
|
+ $sPrefix . '_styles_body',
|
|
|
+ $sPrefix . '_styles_cover',
|
|
|
+ $sPrefix . '_styles_block',
|
|
|
+ $sPrefix . '_styles_card',
|
|
|
+ $sPrefix . '_styles_popup',
|
|
|
+ $sPrefix . '_styles_menu_main',
|
|
|
+ $sPrefix . '_styles_menu_account',
|
|
|
+ $sPrefix . '_styles_menu_add',
|
|
|
+ $sPrefix . '_styles_menu_page',
|
|
|
+ $sPrefix . '_styles_menu_slide',
|
|
|
+ $sPrefix . '_styles_form',
|
|
|
+ $sPrefix . '_styles_large_button',
|
|
|
+ $sPrefix . '_styles_large_button_primary',
|
|
|
+ $sPrefix . '_styles_button',
|
|
|
+ $sPrefix . '_styles_button_primary',
|
|
|
+ $sPrefix . '_styles_small_button',
|
|
|
+ $sPrefix . '_styles_small_button_primary',
|
|
|
+ $sPrefix . '_styles_font',
|
|
|
+ $sPrefix . '_styles_custom',
|
|
|
+ $sPrefix . '_viewport_tablet',
|
|
|
+ $sPrefix . '_viewport_mobile'
|
|
|
+ ];
|
|
|
|
|
|
- $oTemplate->addJs(array('codemirror/codemirror.min.js'));
|
|
|
- $oTemplate->addCss(BX_DIRECTORY_PATH_PLUGINS_PUBLIC . 'codemirror/|codemirror.css');
|
|
|
-
|
|
|
- return BxDolStudioTemplate::getInstance()->parseHtmlByName('design.html', array(
|
|
|
- 'content' => $oPage->getFormCode(),
|
|
|
- 'js_content' => $this->getPageJsCode(array(
|
|
|
- 'sCodeMirror' => "textarea[name='" . $sPrefix . "_styles_custom']"
|
|
|
- ))
|
|
|
- ));
|
|
|
+ return parent::getStyles($mixedCategory, $sMix);
|
|
|
}
|
|
|
}
|
|
|
|