nr.1 test

This commit is contained in:
ps74 2021-09-03 10:05:05 +02:00
parent 767d9aba4e
commit 8aa5c499eb
8 changed files with 89 additions and 0 deletions

View File

View File

@ -0,0 +1 @@
.header-search { margin: 0;}

View File

@ -0,0 +1 @@
@import "header-search.scss";

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
*/

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

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

View File

@ -0,0 +1,43 @@
{% sw_extends "@Storefront/storefront/layout/header/header.html.twig" %}
{% block layout_header_navigation %}
<div class="row align-items-center header-row">
{% block layout_header_search %}
<div class="col-12 order-sm-1 col-lg-4 header-search-col">
<div class="row">
<div class="col-sm-auto d-none d-sm-block d-lg-none">
{% block layout_header_navigation_toggle_tablet %}
{{ parent() }}
{% endblock %}
</div>
<div class="col">
{% sw_include '@Storefront/storefront/layout/header/search.html.twig' %}
</div>
</div>
</div>
{% endblock %}
{% block layout_header_logo %}
<div class="col-8 order-2 col-lg-6 header-logo-col">
{% sw_include '@Storefront/storefront/layout/header/logo.html.twig' %}
</div>
{% endblock %}
{% block layout_header_actions %}
{{ parent() }}
{% endblock %}
{#{% block dump_vars %}
<div style="position: fixed; left:0; top:10vh; height: 10vh; width: 100vh; padding: 20px: z-index:1000000">
{{ dump() }}
</div>
{% endblock %}#}
</div>
{% endblock %}

14
src/Unsertheme.php Normal file
View File

@ -0,0 +1,14 @@
<?php declare(strict_types=1);
namespace Unsertheme;
use Shopware\Core\Framework\Plugin;
use Shopware\Storefront\Framework\ThemeInterface;
class Unsertheme extends Plugin implements ThemeInterface
{
public function getThemeConfigPath(): string
{
return 'theme.json';
}
}