BxDecorousStudioPage.php 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?php defined('BX_DOL') or die('hack attempt');
  2. /**
  3. * Copyright (c) UNA, Inc - https://una.io
  4. * MIT License - https://opensource.org/licenses/MIT
  5. *
  6. * @defgroup Decorous Decorous template
  7. * @ingroup UnaModules
  8. *
  9. * @{
  10. */
  11. define('BX_DECOROUS_STUDIO_TEMPL_TYPE_STYLES', 'styles');
  12. class BxDecorousStudioPage extends BxTemplStudioDesign
  13. {
  14. function __construct($sModule, $mixedPageName, $sPage = "")
  15. {
  16. parent::__construct($sModule, $mixedPageName, $sPage);
  17. $this->aMenuItems[BX_DECOROUS_STUDIO_TEMPL_TYPE_STYLES] = ['title' => '_bx_decorous_lmi_cpt_styles', 'icon' => 'paint-brush'];
  18. unset($this->aMenuItems[BX_DOL_STUDIO_TEMPL_TYPE_LOGO]);
  19. }
  20. protected function getSettings($mixedCategory = '', $sMix = '')
  21. {
  22. return parent::getSettings('bx_decorous_system', $sMix);
  23. }
  24. protected function getStyles($mixedCategory = '', $sMix = '')
  25. {
  26. $sPrefix = $this->sModule;
  27. if(empty($mixedCategory))
  28. $mixedCategory = [
  29. $sPrefix . '_styles_general',
  30. $sPrefix . '_styles_header',
  31. $sPrefix . '_styles_footer',
  32. $sPrefix . '_styles_body',
  33. $sPrefix . '_styles_cover',
  34. $sPrefix . '_styles_block',
  35. $sPrefix . '_styles_card',
  36. $sPrefix . '_styles_popup',
  37. $sPrefix . '_styles_menu_main',
  38. $sPrefix . '_styles_menu_account',
  39. $sPrefix . '_styles_menu_add',
  40. $sPrefix . '_styles_menu_page',
  41. $sPrefix . '_styles_menu_slide',
  42. $sPrefix . '_styles_form',
  43. $sPrefix . '_styles_large_button',
  44. $sPrefix . '_styles_small_button',
  45. $sPrefix . '_styles_font',
  46. $sPrefix . '_styles_custom',
  47. $sPrefix . '_viewport_tablet',
  48. $sPrefix . '_viewport_mobile'
  49. ];
  50. return parent::getStyles($mixedCategory, $sMix);
  51. }
  52. }
  53. /** @} */