-
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.
Merge pull request #1 from hungmac-sw/fixed-bug-and-add-share-theme
Fixed bug preview theme, Added copy & share button
- Loading branch information
Showing
19 changed files
with
271 additions
and
31 deletions.
There are no files selected for viewing
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,3 +1,8 @@ | ||
# 1.0.0 | ||
|
||
* Button Copy Link & Share Theme hinzugefügt | ||
* Behobener Fehler kann keine Vorschau anderer Seiten außer der Homepage anzeigen | ||
|
||
# 0.30.4 | ||
|
||
* Erste Veröffentlichung mit Feature-Vorschau-Thema im Detail des Vertriebskanals |
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,3 +1,8 @@ | ||
# 1.0.0 | ||
|
||
* Added button copy link & share theme | ||
* Fixed bug can't preview other pages except the homepage | ||
|
||
# 0.30.4 | ||
|
||
* First release with feature preview theme in sales channel detail |
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
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
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,28 @@ | ||
<?php declare(strict_types=1); | ||
|
||
namespace MacThemePreview\Framework\Cookie; | ||
|
||
use Shopware\Storefront\Framework\Cookie\CookieProviderInterface; | ||
|
||
class CustomCookieProvider implements CookieProviderInterface { | ||
|
||
private $originalService; | ||
|
||
function __construct(CookieProviderInterface $service) | ||
{ | ||
$this->originalService = $service; | ||
} | ||
|
||
public function getCookieGroups(): array | ||
{ | ||
return array_merge( | ||
$this->originalService->getCookieGroups(), | ||
[ | ||
[ | ||
'snippet_name' => 'cookie.theme', | ||
'cookie' => 'preview-theme-id', | ||
] | ||
] | ||
); | ||
} | ||
} |
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
4 changes: 4 additions & 0 deletions
4
...nistration/src/modules/sw-theme-manager/component/sw-theme-modal/sw-theme-modal.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
5 changes: 4 additions & 1 deletion
5
src/Resources/app/administration/src/modules/sw-theme-manager/snippet/de-DE.json
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,5 +1,8 @@ | ||
{ | ||
"mac-theme-preview": { | ||
"previewButton": "Vorschau" | ||
"previewButton": "Vorschau", | ||
"buttonCopyLink": "Kopieren & teilen", | ||
"notificationCopyLinkSuccess": "URL in Zwischenablage kopiert.", | ||
"notificationEmptyDomain": "Dieser Vertriebskanal hat keine Domain." | ||
} | ||
} |
7 changes: 6 additions & 1 deletion
7
src/Resources/app/administration/src/modules/sw-theme-manager/snippet/en-GB.json
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,5 +1,10 @@ | ||
{ | ||
"mac-theme-preview": { | ||
"previewButton": "Preview" | ||
"previewButton": "Preview", | ||
"buttonCopyLink": "Copy & Share", | ||
"notification": { | ||
"notificationCopyLinkSuccess": "URL has been copied to clipboard.", | ||
"notificationEmptyDomain": "This sales channel have no domain." | ||
} | ||
} | ||
} |
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
Oops, something went wrong.