BxLucidStudioPage.php 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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 Lucid Lucid template
  7. * @ingroup UnaModules
  8. *
  9. * @{
  10. */
  11. define('BX_LUCID_STUDIO_TEMPL_TYPE_STYLES', 'styles');
  12. class BxLucidStudioPage extends BxTemplStudioDesign
  13. {
  14. function __construct($sModule, $mixedPageName, $sPage = "")
  15. {
  16. parent::__construct($sModule, $mixedPageName, $sPage);
  17. $this->aMenuItems[BX_LUCID_STUDIO_TEMPL_TYPE_STYLES] = ['title' => '_bx_lucid_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_lucid_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_large_button_primary',
  45. $sPrefix . '_styles_button',
  46. $sPrefix . '_styles_button_primary',
  47. $sPrefix . '_styles_small_button',
  48. $sPrefix . '_styles_small_button_primary',
  49. $sPrefix . '_styles_font',
  50. $sPrefix . '_styles_custom',
  51. $sPrefix . '_viewport_tablet',
  52. $sPrefix . '_viewport_mobile'
  53. ];
  54. return parent::getStyles($mixedCategory, $sMix);
  55. }
  56. }
  57. /** @} */