Skip to content

Commit

Permalink
Moved scripts from header to head
Browse files Browse the repository at this point in the history
  • Loading branch information
vilgro committed Jan 2, 2019
1 parent c80cc10 commit 2439efc
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 18 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "trustpilot/module-reviews",
"description": "The Trustpilot Review extension makes it simple and easy for merchants to collect reviews from their customers to power their marketing efforts, increase sales conversion, build their online reputation and draw business insights.",
"type": "magento2-module",
"version": "1.0.230",
"version": "1.0.232",
"license": [
"OSL-3.0"
],
Expand Down
2 changes: 1 addition & 1 deletion etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<ConnectUrl>https://ecommerce-invitations.b2b.trustpilot.com/#/magento</ConnectUrl>
<SnippetUrl>https://businessapp.b2b.trustpilot.com/#/integrations/trustbox/library</SnippetUrl>
<PreviewUrl>//ecommplugins-scripts.trustpilot.com/</PreviewUrl>
<ReleaseNumber>1.0.230</ReleaseNumber>
<ReleaseNumber>1.0.232</ReleaseNumber>
<key></key>
</general>
</trustpilotGeneral>
Expand Down
8 changes: 3 additions & 5 deletions view/frontend/layout/catalog_category_view.xml
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceContainer name="header.container">
<block class="Trustpilot\Reviews\Block\Trustbox" name="trustpilot_trustbox_category" as="trustpilot_trustbox_category" template="Trustpilot_Reviews::trustbox.phtml"/>
</referenceContainer>
</body>
<referenceContainer name="head.additional">
<block class="Trustpilot\Reviews\Block\Trustbox" name="trustpilot_trustbox_category" as="trustpilot_trustbox_category" template="Trustpilot_Reviews::trustbox.phtml"/>
</referenceContainer>
</page>
8 changes: 3 additions & 5 deletions view/frontend/layout/catalog_product_view.xml
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceContainer name="header.container">
<block class="Trustpilot\Reviews\Block\Trustbox" name="trustpilot_trustbox_product" as="trustpilot_trustbox_product" template="Trustpilot_Reviews::trustbox.phtml"/>
</referenceContainer>
</body>
<referenceContainer name="head.additional">
<block class="Trustpilot\Reviews\Block\Trustbox" name="trustpilot_trustbox_product" as="trustpilot_trustbox_product" template="Trustpilot_Reviews::trustbox.phtml"/>
</referenceContainer>
</page>
8 changes: 3 additions & 5 deletions view/frontend/layout/cms_index_index.xml
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceContainer name="header.container">
<block class="Trustpilot\Reviews\Block\Trustbox" name="trustpilot_trustbox_homepage" as="trustpilot_trustbox_homepage" template="Trustpilot_Reviews::trustbox.phtml"/>
</referenceContainer>
</body>
<referenceContainer name="head.additional">
<block class="Trustpilot\Reviews\Block\Trustbox" name="trustpilot_trustbox_homepage" as="trustpilot_trustbox_homepage" template="Trustpilot_Reviews::trustbox.phtml"/>
</referenceContainer>
</page>
2 changes: 1 addition & 1 deletion view/frontend/layout/default.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<block class="Trustpilot\Reviews\Block\Head" name="trustpilot.head.head" as="trustpilot.head.head" template="Trustpilot_Reviews::head/head.phtml"/>
</referenceContainer>
<head>
<css src="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" src_type="url"/>
<css src="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" src_type="url"/>
<css src="Trustpilot_Reviews::css/trustpilot.css"/>
</head>
</page>

0 comments on commit 2439efc

Please sign in to comment.