Add Creative Elements templates and update index files
- Introduced new templates for catalog, checkout, contact, and error pages. - Implemented caching headers and redirection in index.php files across various directories. - Enhanced product and layout templates for better integration with Creative Elements. - Added backoffice header styles and scripts for improved UI/UX in the admin panel.
This commit is contained in:
79
modules/creativeelements/includes/schemes/typography.php
Normal file
79
modules/creativeelements/includes/schemes/typography.php
Normal file
@@ -0,0 +1,79 @@
|
||||
<?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;
|
||||
|
||||
class SchemeTypography extends SchemeBase
|
||||
{
|
||||
const TYPOGRAPHY_1 = '1';
|
||||
const TYPOGRAPHY_2 = '2';
|
||||
const TYPOGRAPHY_3 = '3';
|
||||
const TYPOGRAPHY_4 = '4';
|
||||
|
||||
public static function getType()
|
||||
{
|
||||
return 'typography';
|
||||
}
|
||||
|
||||
public function getTitle()
|
||||
{
|
||||
return __('Typography');
|
||||
}
|
||||
|
||||
public function getDisabledTitle()
|
||||
{
|
||||
return __('Default Fonts');
|
||||
}
|
||||
|
||||
public function getSchemeTitles()
|
||||
{
|
||||
return [
|
||||
self::TYPOGRAPHY_1 => __('Primary Headline'),
|
||||
self::TYPOGRAPHY_2 => __('Secondary Headline'),
|
||||
self::TYPOGRAPHY_3 => __('Body Text'),
|
||||
self::TYPOGRAPHY_4 => __('Accent Text'),
|
||||
];
|
||||
}
|
||||
|
||||
public function getDefaultScheme()
|
||||
{
|
||||
return [
|
||||
self::TYPOGRAPHY_1 => [
|
||||
'font_family' => 'Roboto',
|
||||
'font_weight' => '600',
|
||||
],
|
||||
self::TYPOGRAPHY_2 => [
|
||||
'font_family' => 'Roboto Slab',
|
||||
'font_weight' => '400',
|
||||
],
|
||||
self::TYPOGRAPHY_3 => [
|
||||
'font_family' => 'Roboto',
|
||||
'font_weight' => '400',
|
||||
],
|
||||
self::TYPOGRAPHY_4 => [
|
||||
'font_family' => 'Roboto',
|
||||
'font_weight' => '500',
|
||||
],
|
||||
];
|
||||
}
|
||||
|
||||
protected function _initSystemSchemes()
|
||||
{
|
||||
return [];
|
||||
}
|
||||
|
||||
public function printTemplateContent()
|
||||
{
|
||||
?>
|
||||
<div class="elementor-panel-scheme-items"></div>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user