Files
drmaterac.pl/modules/creativeelements/core/base/header-footer-base.php
2025-07-13 11:19:53 +02:00

56 lines
1.3 KiB
PHP

<?php
/**
* Creative Elements - live Theme & Page Builder
*
* @author WebshopWorks, Elementor
* @copyright 2019-2022 WebshopWorks.com & Elementor.com
* @license https://www.gnu.org/licenses/gpl-3.0.html
*/
namespace CE;
defined('_PS_VERSION_') or die;
use CE\CoreXDocumentTypesXPost as Post;
use CE\CoreXBaseXThemeDocument as ThemeDocument;
abstract class CoreXBaseXHeaderFooterBase extends ThemeDocument
{
public function getCssWrapperSelector()
{
return '#' . $this->getName();
}
public function getElementUniqueSelector(ElementBase $element)
{
return '#' . $this->getName() . ' .elementor-element' . $element->getUniqueSelector();
}
protected static function getEditorPanelCategories()
{
// Move to top as active.
$categories = [
'theme-elements' => [
'title' => __('Site'),
'active' => true,
],
];
return $categories + parent::getEditorPanelCategories();
}
protected function _registerControls()
{
parent::_registerControls();
Post::registerStyleControls($this);
$this->updateControl(
'section_page_style',
[
'label' => __('Style'),
]
);
}
}