| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <?php defined('BX_DOL') or die('hack attempt');
- /**
- * Copyright (c) UNA, Inc - https://una.io
- * MIT License - https://opensource.org/licenses/MIT
- *
- * @defgroup Artificer Artificer template
- * @ingroup UnaModules
- *
- * @{
- */
- require_once('BxArtificerStudioOptions.php');
- define('BX_ARTIFICER_STUDIO_TEMPL_TYPE_STYLES', 'styles');
- class BxArtificerStudioPage extends BxTemplStudioDesign
- {
- function __construct($sModule, $mixedPageName, $sPage = "")
- {
- parent::__construct($sModule, $mixedPageName, $sPage);
- $this->aMenuItems = bx_array_insert_after([
- BX_ARTIFICER_STUDIO_TEMPL_TYPE_STYLES => ['title' => '_bx_artificer_lmi_cpt_styles', 'icon' => 'mi-tpl-styles.svg', 'icon_bg' => true]
- ], $this->aMenuItems, BX_DOL_STUDIO_TEMPL_TYPE_SETTINGS);
- }
- protected function getSettings($mixedCategory = '', $sMix = '')
- {
- return parent::getSettings('bx_artificer_system', $sMix);
- }
- protected function getStyles($mixedCategory = '', $sMix = '')
- {
- $sPrefix = $this->sModule;
- if(empty($mixedCategory))
- $mixedCategory = [
- $sPrefix . '_styles_custom',
- ];
- $oOptions = new BxArtificerStudioOptions($this->sModule, $mixedCategory, $sMix);
- return BxDolStudioTemplate::getInstance()->parseHtmlByName('design.html', [
- 'content' => $oOptions->getCode(),
- 'js_content' => $this->getPageJsCode()
- ]);
- }
- }
- /** @} */
|