1
0

chg: pkg: SWC-89 change the structure from sw plugin to sw theme

This commit is contained in:
2023-02-15 14:59:36 +01:00
parent 6b1afe4bfe
commit 3241feb54d
9 changed files with 38 additions and 17 deletions

View File

@@ -5,11 +5,11 @@
"license": "MIT", "license": "MIT",
"autoload": { "autoload": {
"psr-4": { "psr-4": {
"EtailWestTheme\\": "src/" "EtailConferenceTheme\\": "src/"
} }
}, },
"extra": { "extra": {
"shopware-plugin-class": "EtailWestTheme\\EtailWestTheme", "shopware-plugin-class": "EtailConferenceTheme\\EtailConferenceTheme",
"label": { "label": {
"en-GB": "eTail West theme plugin for presentation" "en-GB": "eTail West theme plugin for presentation"
} }

View File

@@ -1,19 +1,20 @@
<?php declare(strict_types=1); <?php declare(strict_types=1);
namespace EtailWestTheme; namespace EtailConferenceTheme;
use Shopware\Core\Framework\Plugin; use Shopware\Core\Framework\Plugin;
use Shopware\Storefront\Framework\ThemeInterface;
/** /**
* Class EtailWestTheme * Class EtailConferenceTheme
* *
* @package EtailWestTheme * @package EtailConferenceTheme
* @author Lang <https://www.splendidbear.org> * @author Lang <https://www.splendidbear.org>
* @category Class * @category Class
* @license https://www.gnu.org/licenses/lgpl-3.0.en.html GNU Lesser General Public License * @license https://www.gnu.org/licenses/lgpl-3.0.en.html GNU Lesser General Public License
* @link www.splendidbear.org * @link www.splendidbear.org
* @since 2023. 02. 15. * @since 2023. 02. 15.
*/ */
class EtailWestTheme extends Plugin class EtailConferenceTheme extends Plugin implements ThemeInterface
{ {
} }

View File

View File

@@ -0,0 +1,8 @@
/*
Override variable defaults
==================================================
This file is used to override default SCSS variables from the Shopware Storefront or Bootstrap.
Because of the !default flags, theme variable overrides have to be declared beforehand.
https://getbootstrap.com/docs/4.0/getting-started/theming/#variable-defaults
*/

View File

@@ -1,10 +0,0 @@
<?xml version="1.0" ?>
<container xmlns="http://symfony.com/schema/dic/services"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
<services>
</services>
</container>

22
src/Resources/theme.json Normal file
View File

@@ -0,0 +1,22 @@
{
"name": "EtailConferenceTheme",
"author": "Shopware AG",
"views": [
"@Storefront",
"@Plugins",
"@EtailConferenceTheme"
],
"style": [
"app/storefront/src/scss/overrides.scss",
"@Storefront",
"app/storefront/src/scss/base.scss"
],
"script": [
"@Storefront",
"app/storefront/dist/storefront/js/etail-conference-theme.js"
],
"asset": [
"@Storefront",
"app/storefront/src/assets"
]
}