Skip to content

Commit

Permalink
established the compatibility with Shopware from version 6.5
Browse files Browse the repository at this point in the history
  • Loading branch information
sschreier committed Sep 5, 2023
1 parent 8e7b242 commit 6bb23c9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "sschreier/sschreiertopbarnotifications",
"description": "Leiste für Informations- und Hinweistexte oder Meldungen",
"version": "1.0.5",
"version": "1.1.0",
"type": "shopware-platform-plugin",
"license": "proprietary",
"authors": [
Expand All @@ -11,8 +11,8 @@
}
],
"require": {
"shopware/core": "~6.4.18",
"shopware/storefront": "~6.4.18"
"shopware/core": "~6.5.0",
"shopware/storefront": "~6.5.0"
},
"extra": {
"shopware-plugin-class": "Sschreier\\TopbarNotifications\\SschreierTopbarNotifications",
Expand Down
8 changes: 1 addition & 7 deletions src/Resources/config/services.xml
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
<?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>

<service id="Sschreier\TopbarNotifications\Subscriber\ThemeVariablesSubscriber">
<argument type="service" id="Shopware\Core\System\SystemConfig\SystemConfigService" />

<argument type="service" id="Shopware\Core\System\SystemConfig\SystemConfigService" />
<tag name="kernel.event_subscriber"/>
</service>

</services>

</container>
4 changes: 2 additions & 2 deletions src/Resources/views/storefront/topbarnotifications.html.twig
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="topbar-outer-container {{ config('SschreierTopbarNotifications.config.showContentIn') }}">
<div class="topbar-outer-container {{ config('SschreierTopbarNotifications.config.showContentIn') }}{% block base_header_inner_topbarnotifications_container_outer_cssclass %}{% endblock %}">
{% block base_header_inner_topbarnotifications_container %}
<div class="container">
{% block base_header_inner_topbarnotifications_container_topbar %}
Expand Down Expand Up @@ -74,7 +74,7 @@

{% if (showTopBarArea == true) %}
{% block base_header_inner_topbarnotifications_container_topbar_nav_item_container_link %}
{% if (linkTopBarArea != "") %}<a {% if (linkTargetTopBarArea == "modalbox") %}data-toggle="modal" data-url="{% if (linkTargetTopBarArea == "modalbox") %}{{ path('frontend.cms.page', { id: linkTopBarArea }) }}{% else %}{{ linkTopBarArea }}{% endif %}" {% endif %}href="{% if (linkTargetTopBarArea == "modalbox") %}{{ path('frontend.cms.page', { id: linkTopBarArea }) }}{% else %}{{ linkTopBarArea }}{% endif %}"{% if (linkTitleTopBarArea != "") %} title="{{ linkTitleTopBarArea }}"{% endif %} class="top-bar-notification-nav-item-link d-none {% for showInViewportTopBarAreaArray in showInViewportTopBarArea %}{{ "d-only-" ~ showInViewportTopBarAreaArray ~ "-flex " }}{% endfor %}"{% if (linkTargetTopBarArea == "blank") %} target="_blank"{% endif %}>{% endif %}
{% if (linkTopBarArea != "") %}<a {% if (linkTargetTopBarArea == "modalbox") %}data-ajax-modal="true" data-url="{% if (linkTargetTopBarArea == "modalbox") %}{{ path('frontend.cms.page', { id: linkTopBarArea }) }}{% else %}{{ linkTopBarArea }}{% endif %}" {% endif %}href="{% if (linkTargetTopBarArea == "modalbox") %}{{ path('frontend.cms.page', { id: linkTopBarArea }) }}{% else %}{{ linkTopBarArea }}{% endif %}"{% if (linkTitleTopBarArea != "") %} title="{{ linkTitleTopBarArea }}"{% endif %} class="top-bar-notification-nav-item-link d-none {% for showInViewportTopBarAreaArray in showInViewportTopBarArea %}{{ "d-only-" ~ showInViewportTopBarAreaArray ~ "-flex " }}{% endfor %}"{% if (linkTargetTopBarArea == "blank") %} target="_blank"{% endif %}>{% endif %}
{% block base_header_inner_topbarnotifications_container_topbar_nav_item_container %}
<div class="top-bar-notification-nav-item-container {% if (linkTopBarArea == "") %}d-none {% for showInViewportTopBarAreaArray in showInViewportTopBarArea %}{{ "d-only-" ~ showInViewportTopBarAreaArray ~ "-flex " }}{% endfor %}{% endif %}">
<div class="top-bar-notification-nav-item-inner-container top-bar-notification-nav-item-container-{{ i }} {{ orientationTopBarArea }}">
Expand Down

0 comments on commit 6bb23c9

Please sign in to comment.