forked from Shape-and-Shift/shopware-maps
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed bug for actual shopware 6 version Shape-and-Shift#7
- Loading branch information
Sergey Zayarnyy (fedora linux main)
committed
Aug 18, 2022
1 parent
207d51d
commit 55555d0
Showing
6 changed files
with
60 additions
and
4 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/* | ||
* Copyright 2012-2016 the original author or authors | ||
* @license MIT, see LICENSE.txt for details | ||
* | ||
* @author Scott Andrews | ||
*/ | ||
|
||
/* | ||
* Copyright 2013-2016 the original author or authors | ||
* @license MIT, see LICENSE.txt for details | ||
* | ||
* @author Scott Andrews | ||
*/ | ||
|
||
/* | ||
* Copyright 2014-2016 the original author or authors | ||
* @license MIT, see LICENSE.txt for details | ||
* | ||
* @author Michael Jackson | ||
*/ | ||
|
||
/* | ||
* Copyright 2014-2016 the original author or authors | ||
* @license MIT, see LICENSE.txt for details | ||
* | ||
* @author Scott Andrews | ||
*/ | ||
|
||
/* | ||
* Copyright 2015-2016 the original author or authors | ||
* @license MIT, see LICENSE.txt for details | ||
* | ||
* @author Scott Andrews | ||
*/ | ||
|
||
/* | ||
* Copyright 2016 the original author or authors | ||
* @license MIT, see LICENSE.txt for details | ||
* | ||
* @author Scott Andrews | ||
*/ | ||
|
||
/* | ||
* Copyright 2014-2016 the original author or authors | ||
* @license MIT, see LICENSE.txt for details | ||
* | ||
* @author Scott Andrews | ||
*/ |
7 changes: 7 additions & 0 deletions
7
src/Resources/views/storefront/block/cms-block-sas-maps.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{% block block_sas_maps %} | ||
{% set id = element.id %} | ||
{% set element = block.slots.getSlot('sasMaps') %} | ||
<div data-cms-element-id="{{ element.id }}" style="width: 100%;"> | ||
{% sw_include "@Storefront/storefront/element/cms-element-maps.html.twig" with { 'element': element } %} | ||
</div> | ||
{% endblock %} |
3 changes: 2 additions & 1 deletion
3
src/Resources/views/storefront/element/cms-element-maps.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
{% block element_maps %} | ||
{% set apitoken = config('SasMaps.config.mapboxApiKey') %} | ||
<div class="cms-element-maps" style="height: 500px; width: 100%" | ||
data-maps="true" | ||
data-lat="{{ element.config.geoLat.value }}" | ||
data-long="{{ element.config.geoLong.value }}" | ||
data-description="{{ element.config.description.value }}" | ||
data-mapbox="{{ element.config.mapboxStyle.value }}" | ||
data-zoom="{{ element.config.zoom.value }}" | ||
data-token="{{ shopware.config.SasMaps.config.mapboxApiKey }}" | ||
data-token="{{ apitoken }}" | ||
> | ||
</div> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters