diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 65788ed..dafbad1 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -1,34 +1,34 @@ ---- -name: Bug report -about: Technical issue with the extension -labels: 'Issue' - ---- - - - -### Preconditions (*) - -1. -2. - -### Steps to reproduce (*) - -1. -2. - -### Expected result (*) - -1. [Screenshots, logs or description] -2. - -### Actual result (*) - -1. [Screenshots, logs or description] -2. +--- +name: Bug report +about: Technical issue with the extension +labels: 'Issue' + +--- + + + +### Preconditions (*) + +1. +2. + +### Steps to reproduce (*) + +1. +2. + +### Expected result (*) + +1. [Screenshots, logs or description] +2. + +### Actual result (*) + +1. [Screenshots, logs or description] +2. diff --git a/.github/ISSUE_TEMPLATE/developer-experience-issue.md b/.github/ISSUE_TEMPLATE/developer-experience-issue.md index 90a4fb5..597f869 100644 --- a/.github/ISSUE_TEMPLATE/developer-experience-issue.md +++ b/.github/ISSUE_TEMPLATE/developer-experience-issue.md @@ -1,19 +1,19 @@ ---- -name: Developer experience issue -about: Issues related to customization, extensibility, modularity -labels: 'Experience' - ---- - - - -### Summary (*) - - -### Examples (*) - - -### Proposed solution - +--- +name: Developer experience issue +about: Issues related to customization, extensibility, modularity +labels: 'Experience' + +--- + + + +### Summary (*) + + +### Examples (*) + + +### Proposed solution + diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md index 3cd5bb4..c7708c5 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -1,22 +1,22 @@ ---- -name: Feature request -about: Request feature for development -labels: 'Feature Request' - ---- - - - -### Description (*) - - -### Expected behavior (*) - - -### Benefits - - -### Additional information - +--- +name: Feature request +about: Request feature for development +labels: 'Feature Request' + +--- + + + +### Description (*) + + +### Expected behavior (*) + + +### Benefits + + +### Additional information + diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 8f862f9..6b8e961 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,19 +1,19 @@ - - -### Description - - -### Fixed Issues (if relevant) - -1. https://github.com/mageplaza/magento-2-reports/: Issue title -2. ... - -### Manual testing scenarios - -1. -2. - -### Contribution checklist - - [ ] Pull request has a meaningful description of its purpose - - [ ] All commits are accompanied by meaningful commit messages - - [ ] All new or changed code is covered with unit/integration tests (if applicable) + + +### Description + + +### Fixed Issues (if relevant) + +1. https://github.com/mageplaza/magento-2-reports/: Issue title +2. ... + +### Manual testing scenarios + +1. +2. + +### Contribution checklist + - [ ] Pull request has a meaningful description of its purpose + - [ ] All commits are accompanied by meaningful commit messages + - [ ] All new or changed code is covered with unit/integration tests (if applicable) diff --git a/.github/no-response.yml b/.github/no-response.yml index 06a2899..64568da 100644 --- a/.github/no-response.yml +++ b/.github/no-response.yml @@ -1,13 +1,13 @@ -# Configuration for probot-no-response - https://github.com/probot/no-response - -# Number of days of inactivity before an Issue is closed for lack of response -daysUntilClose: 7 -# Label requiring a response -responseRequiredLabel: waiting-customer-response -# Comment to post when closing an Issue for lack of response. Set to `false` to disable -closeComment: > - This issue has been automatically closed because there has been no response - to our request for more information from the original author. With only the - information that is currently in the issue, we don't have enough information - to take action. Please reach out if you have or find the answers we need so - that we can investigate further. +# Configuration for probot-no-response - https://github.com/probot/no-response + +# Number of days of inactivity before an Issue is closed for lack of response +daysUntilClose: 7 +# Label requiring a response +responseRequiredLabel: waiting-customer-response +# Comment to post when closing an Issue for lack of response. Set to `false` to disable +closeComment: > + This issue has been automatically closed because there has been no response + to our request for more information from the original author. With only the + information that is currently in the issue, we don't have enough information + to take action. Please reach out if you have or find the answers we need so + that we can investigate further. diff --git a/Block/Adminhtml/System/Snippet.php b/Block/Adminhtml/System/Snippet.php index d136a6a..b8c4f3a 100644 --- a/Block/Adminhtml/System/Snippet.php +++ b/Block/Adminhtml/System/Snippet.php @@ -1,57 +1,57 @@ -

'; - $html .= __('Use the following code to show facebook plugin in any places which you want.'); - $html .= '

'; - - $html .= __('CMS Page/Static Block'); - $html .= '
{{block class="Mageplaza\FacebookPlugin\Block\Widget"}}
'; - - $html .= __('Template .phtml file'); - $html .= '
' . $this->_escaper->escapeHtml('getLayout()->createBlock("\Mageplaza\FacebookPlugin\Block\Widget::class")->toHtml();?>') . '
'; - - $html .= __('Layout file'); - $html .= '
' . $this->_escaper->escapeHtml('') . '
'; - - $html .= ''; - - return $html; - } -} +

'; + $html .= __('Use the following code to show facebook plugin in any places which you want.'); + $html .= '

'; + + $html .= __('CMS Page/Static Block'); + $html .= '
{{block class="Mageplaza\FacebookPlugin\Block\Widget"}}
'; + + $html .= __('Template .phtml file'); + $html .= '
' . $this->_escaper->escapeHtml('getLayout()->createBlock("\Mageplaza\FacebookPlugin\Block\Widget::class")->toHtml();?>') . '
'; + + $html .= __('Layout file'); + $html .= '
' . $this->_escaper->escapeHtml('') . '
'; + + $html .= ''; + + return $html; + } +} diff --git a/Block/Facebook.php b/Block/Facebook.php index c445450..1e355f8 100644 --- a/Block/Facebook.php +++ b/Block/Facebook.php @@ -1,90 +1,90 @@ -helperData = $helperData; - $this->locale = $resolver; - - parent::__construct($context, $data); - } - - /** - * @return helperData - */ - public function getHelperData() - { - return $this->helperData; - } - - /** - * Get Language by storeId - * - * @return null|string - */ - public function getLanguage() - { - return $this->locale->getLocale(); - } - - /** - * @return mixed - */ - public function getAppId() - { - return $this->helperData->getConfigGeneral('app_id'); - } -} +helperData = $helperData; + $this->locale = $resolver; + + parent::__construct($context, $data); + } + + /** + * @return helperData + */ + public function getHelperData() + { + return $this->helperData; + } + + /** + * Get Language by storeId + * + * @return null|string + */ + public function getLanguage() + { + return $this->locale->getLocale(); + } + + /** + * @return mixed + */ + public function getAppId() + { + return $this->helperData->getConfigGeneral('app_id'); + } +} diff --git a/Block/Product/TabComment.php b/Block/Product/TabComment.php index def8955..1e242ee 100644 --- a/Block/Product/TabComment.php +++ b/Block/Product/TabComment.php @@ -1,90 +1,90 @@ -registry = $registry; - - parent::__construct($context, $helperData, $resolver, $data); - - $this->setTabTitle(); - } - - /** - * Set Tab title - */ - public function setTabTitle() - { - $options = $this->helperData->getFbCommentsConfig(); - $title = __(isset($options['title']) ? $options['title'] : self::TITLE); - $this->setTitle($title); - } - - /** - * @return bool - */ - public function isEnabled() - { - $product = $this->registry->registry('current_product'); - - return $this->helperData->isEnabled() && - $this->helperData->isEnabledFbComments() && - $product->getMpFacebookComments() == 0; - } -} +registry = $registry; + + parent::__construct($context, $helperData, $resolver, $data); + + $this->setTabTitle(); + } + + /** + * Set Tab title + */ + public function setTabTitle() + { + $options = $this->helperData->getFbCommentsConfig(); + $title = __(isset($options['title']) ? $options['title'] : self::TITLE); + $this->setTitle($title); + } + + /** + * @return bool + */ + public function isEnabled() + { + $product = $this->registry->registry('current_product'); + + return $this->helperData->isEnabled() && + $this->helperData->isEnabledFbComments() && + $product->getMpFacebookComments() == 0; + } +} diff --git a/Block/Widget.php b/Block/Widget.php index 7faae8c..9567236 100644 --- a/Block/Widget.php +++ b/Block/Widget.php @@ -1,62 +1,62 @@ -getData('options'); - if ($option == Options::CONFIG) { - $this->setData(array_merge($this->helperData->getFbPageConfig(), $this->getData())); - } - } - - /** - * Retrieve Facebook Url - * - * @return mixed|string - */ - public function getFacebookUrl() - { - $url = $this->getData('options') == Options::CUSTOM ? $this->getData('url') : $this->helperData->getUrlConfig(); - if ($url && strpos($url, 'http') === false) { - $url = 'https://' . $url; - } - - return $url; - } -} +getData('options'); + if ($option == Options::CONFIG) { + $this->setData(array_merge($this->helperData->getFbPageConfig(), $this->getData())); + } + } + + /** + * Retrieve Facebook Url + * + * @return mixed|string + */ + public function getFacebookUrl() + { + $url = $this->getData('options') == Options::CUSTOM ? $this->getData('url') : $this->helperData->getUrlConfig(); + if ($url && strpos($url, 'http') === false) { + $url = 'https://' . $url; + } + + return $url; + } +} diff --git a/Helper/Data.php b/Helper/Data.php index 56de429..b3072db 100644 --- a/Helper/Data.php +++ b/Helper/Data.php @@ -1,87 +1,87 @@ -getModuleConfig('fbpage', $storeId); - } - - /** - * @param null $storeId - * - * @return mixed - */ - public function getUrlConfig($storeId = null) - { - return $this->getModuleConfig('fbpage/url', $storeId); - } - - /** - * @param null $storeId - * - * @return mixed - */ - public function isEnabledFbPage($storeId = null) - { - return $this->getModuleConfig('fbpage/enabled', $storeId); - } - - /** - * Retrieve all the values in the configuration of the fb comments - * - * @param null $storeId - * - * @return mixed - */ - public function getFbCommentsConfig($storeId = null) - { - return $this->getModuleConfig('fbcomments', $storeId); - } - - /** - * @param null $storeId - * - * @return mixed - */ - public function isEnabledFbComments($storeId = null) - { - return $this->getModuleConfig('fbcomments/enabled', $storeId); - } -} +getModuleConfig('fbpage', $storeId); + } + + /** + * @param null $storeId + * + * @return mixed + */ + public function getUrlConfig($storeId = null) + { + return $this->getModuleConfig('fbpage/url', $storeId); + } + + /** + * @param null $storeId + * + * @return mixed + */ + public function isEnabledFbPage($storeId = null) + { + return $this->getModuleConfig('fbpage/enabled', $storeId); + } + + /** + * Retrieve all the values in the configuration of the fb comments + * + * @param null $storeId + * + * @return mixed + */ + public function getFbCommentsConfig($storeId = null) + { + return $this->getModuleConfig('fbcomments', $storeId); + } + + /** + * @param null $storeId + * + * @return mixed + */ + public function isEnabledFbComments($storeId = null) + { + return $this->getModuleConfig('fbcomments/enabled', $storeId); + } +} diff --git a/LICENSE b/LICENSE index 87b119f..9e08325 100644 --- a/LICENSE +++ b/LICENSE @@ -1,33 +1,33 @@ -Copyright © 2016-present Mageplaza Co. Ltd. - -This License is entered by Mageplaza to govern the usage or redistribution of Mageplaza software. This is a legal agreement between you (either an individual or a single entity) and Mageplaza for Mageplaza software product(s) which may include extensions, templates and services. - -By purchasing, installing, or otherwise using Mageplaza products, you acknowledge that you have read this License and agree to be bound by the terms of this Agreement. If you do not agree to the terms of this License, do not install or use Mageplaza products. - -The Agreement becomes effective at the moment when you acquire software from our site or receive it through email or on data medium or by any other means. Mageplaza reserves the right to make reasonable changes to the terms of this license agreement and impose its clauses at any given time. - - 1. GRANT OF LICENSE: By purchasing a product of Mageplaza: - - 1. Customer will receive source code open 100%. - - 2. Customer will obtain a License Certificate which will remain valid until the Customer stops using the Product or until Mageplaza terminates this License because of Customer’s failure to comply with any of its Terms and Conditions. Each License Certificate includes a license serial which is valid for one live Magento installation only and unlimited test Magento installations. - - 3. You are allowed to customize our products to fit with your using purpose. - - 4. DESCRIPTION OF OTHER RIGHTS AND LIMITATIONS - - 5. Installation and Use - - 6. For each new Software installation, you are obliged to purchase a separate License. You are not permitted to use any part of the code in whole or part in any other software or product or website. You are legally bound to preserve the copyright information intact including the text/link at bottom. - - 2. Distribution: You are not allowed to distribute Mageplaza software to third parties. Any distribution without our permission, including non commercial distribution is considered as violation of this Agreement and entails liability, according to the current law. You may not place the Software onto a server that allows access to the Software via a public network or the Internet for distribution purposes. - - 3. Rental: You may not give, sell, sub-license, rent, lease or lend any portion of the Software to anyone. - - 4. Compliance with Applicable Laws: You must comply with all applicable laws regarding use of software products. Mageplaza software and a portion of it are protected by copyright laws and international copyright treaties, as well as other intellectual property laws and treaties. Accordingly, customer is required to treat the software like any other copyrighted material. Any activity violating copyright law will be prosecuted according to the current law. We retain the right to revoke the license of any user holding an invalid license. - - 5. TERMINATION: Without prejudice to any other rights, Mageplaza may terminate this License at any time if you fail to comply with the terms and conditions of this License. In such event, it constitutes a breach of the agreement, and your license to use the program is revoked and you must destroy all copies of Mageplaza products in your possession. After being notified of termination of your license, if you continue to use Mageplaza software, you hereby agree to accept an injunction to prevent you from its further use and to pay all costs (including but not limited to reasonable attorney fees) to enforce our revocation of your license and any damages suffered by us because of your misuse of the Software. We are not bound to return you the amount spent for purchase of the Software for the termination of this License. - - 6. LIMITATION OF LIABILITY: In no event shall Mageplaza be liable for any damages (including, without limitation, lost profits, business interruption, or lost information) rising out of ‘Authorized Users’ use of or inability to use the Mageplaza products, even if Mageplaza has been advised of the possibility of such damages. In no event will Mageplaza be liable for prosecution arising from use of the Software against law or for any illegal use. - +Copyright © 2016-present Mageplaza Co. Ltd. + +This License is entered by Mageplaza to govern the usage or redistribution of Mageplaza software. This is a legal agreement between you (either an individual or a single entity) and Mageplaza for Mageplaza software product(s) which may include extensions, templates and services. + +By purchasing, installing, or otherwise using Mageplaza products, you acknowledge that you have read this License and agree to be bound by the terms of this Agreement. If you do not agree to the terms of this License, do not install or use Mageplaza products. + +The Agreement becomes effective at the moment when you acquire software from our site or receive it through email or on data medium or by any other means. Mageplaza reserves the right to make reasonable changes to the terms of this license agreement and impose its clauses at any given time. + + 1. GRANT OF LICENSE: By purchasing a product of Mageplaza: + + 1. Customer will receive source code open 100%. + + 2. Customer will obtain a License Certificate which will remain valid until the Customer stops using the Product or until Mageplaza terminates this License because of Customer’s failure to comply with any of its Terms and Conditions. Each License Certificate includes a license serial which is valid for one live Magento installation only and unlimited test Magento installations. + + 3. You are allowed to customize our products to fit with your using purpose. + + 4. DESCRIPTION OF OTHER RIGHTS AND LIMITATIONS + + 5. Installation and Use + + 6. For each new Software installation, you are obliged to purchase a separate License. You are not permitted to use any part of the code in whole or part in any other software or product or website. You are legally bound to preserve the copyright information intact including the text/link at bottom. + + 2. Distribution: You are not allowed to distribute Mageplaza software to third parties. Any distribution without our permission, including non commercial distribution is considered as violation of this Agreement and entails liability, according to the current law. You may not place the Software onto a server that allows access to the Software via a public network or the Internet for distribution purposes. + + 3. Rental: You may not give, sell, sub-license, rent, lease or lend any portion of the Software to anyone. + + 4. Compliance with Applicable Laws: You must comply with all applicable laws regarding use of software products. Mageplaza software and a portion of it are protected by copyright laws and international copyright treaties, as well as other intellectual property laws and treaties. Accordingly, customer is required to treat the software like any other copyrighted material. Any activity violating copyright law will be prosecuted according to the current law. We retain the right to revoke the license of any user holding an invalid license. + + 5. TERMINATION: Without prejudice to any other rights, Mageplaza may terminate this License at any time if you fail to comply with the terms and conditions of this License. In such event, it constitutes a breach of the agreement, and your license to use the program is revoked and you must destroy all copies of Mageplaza products in your possession. After being notified of termination of your license, if you continue to use Mageplaza software, you hereby agree to accept an injunction to prevent you from its further use and to pay all costs (including but not limited to reasonable attorney fees) to enforce our revocation of your license and any damages suffered by us because of your misuse of the Software. We are not bound to return you the amount spent for purchase of the Software for the termination of this License. + + 6. LIMITATION OF LIABILITY: In no event shall Mageplaza be liable for any damages (including, without limitation, lost profits, business interruption, or lost information) rising out of ‘Authorized Users’ use of or inability to use the Mageplaza products, even if Mageplaza has been advised of the possibility of such damages. In no event will Mageplaza be liable for prosecution arising from use of the Software against law or for any illegal use. + The latest License: https://www.mageplaza.com/LICENSE.txt \ No newline at end of file diff --git a/Model/Config/Source/Options.php b/Model/Config/Source/Options.php index ebe8d21..0bd770e 100644 --- a/Model/Config/Source/Options.php +++ b/Model/Config/Source/Options.php @@ -1,53 +1,53 @@ - self::CONFIG, - 'label' => __('Use Config') - ], - [ - 'value' => self::CUSTOM, - 'label' => __('Custom') - ] - ]; - - return $options; - } -} + self::CONFIG, + 'label' => __('Use Config') + ], + [ + 'value' => self::CUSTOM, + 'label' => __('Custom') + ] + ]; + + return $options; + } +} diff --git a/Model/Config/Source/Tabs.php b/Model/Config/Source/Tabs.php index 5a21114..33adab8 100644 --- a/Model/Config/Source/Tabs.php +++ b/Model/Config/Source/Tabs.php @@ -1,60 +1,60 @@ - self::TIMELINE, - 'label' => __('Timeline') - ], - [ - 'value' => self::EVENTS, - 'label' => __('Events') - ], - [ - 'value' => self::MESSAGES, - 'label' => __('Messages') - ] - ]; - - return $options; - } -} + self::TIMELINE, + 'label' => __('Timeline') + ], + [ + 'value' => self::EVENTS, + 'label' => __('Events') + ], + [ + 'value' => self::MESSAGES, + 'label' => __('Messages') + ] + ]; + + return $options; + } +} diff --git a/Model/Config/Source/TrueFalse.php b/Model/Config/Source/TrueFalse.php index 1908f8e..8448932 100644 --- a/Model/Config/Source/TrueFalse.php +++ b/Model/Config/Source/TrueFalse.php @@ -1,52 +1,52 @@ - 'false', - 'label' => __('No') - ], - [ - 'value' => 'true', - 'label' => __('Yes') - ] - ]; - - return $options; - } -} + 'false', + 'label' => __('No') + ], + [ + 'value' => 'true', + 'label' => __('Yes') + ] + ]; + + return $options; + } +} diff --git a/Setup/InstallData.php b/Setup/InstallData.php index c6a6b0e..06948c9 100644 --- a/Setup/InstallData.php +++ b/Setup/InstallData.php @@ -1,89 +1,89 @@ -eavSetupFactory = $eavSetupFactory; - } - - /** - * @param \Magento\Framework\Setup\ModuleDataSetupInterface $setup - * @param \Magento\Framework\Setup\ModuleContextInterface $context - */ - public function install(ModuleDataSetupInterface $setup, ModuleContextInterface $context) - { - $setup->startSetup(); - $eavSetup = $this->eavSetupFactory->create(['setup' => $setup]); - /** - * Product attribute - */ - $eavSetup->removeAttribute(Product::ENTITY, 'mp_facebook_comments'); - $eavSetup->addAttribute(Product::ENTITY, 'mp_facebook_comments', [ - 'type' => 'int', - 'backend' => '', - 'frontend' => '', - 'label' => __('Disabled Facebook Comments'), - 'note' => 'Added by Mageplaza Facebook', - 'input' => 'boolean', - 'class' => '', - 'source' => \Magento\Eav\Model\Entity\Attribute\Source\Boolean::class, - 'global' => ScopedAttributeInterface::SCOPE_GLOBAL, - 'visible' => true, - 'required' => false, - 'user_defined' => true, - 'default' => 0, - 'searchable' => false, - 'filterable' => false, - 'comparable' => false, - 'visible_on_front' => false, - 'used_in_product_listing' => true, - 'unique' => false, - 'group' => '', - 'sort_order' => 100, - 'apply_to' => '' - ]); - } -} +eavSetupFactory = $eavSetupFactory; + } + + /** + * @param \Magento\Framework\Setup\ModuleDataSetupInterface $setup + * @param \Magento\Framework\Setup\ModuleContextInterface $context + */ + public function install(ModuleDataSetupInterface $setup, ModuleContextInterface $context) + { + $setup->startSetup(); + $eavSetup = $this->eavSetupFactory->create(['setup' => $setup]); + /** + * Product attribute + */ + $eavSetup->removeAttribute(Product::ENTITY, 'mp_facebook_comments'); + $eavSetup->addAttribute(Product::ENTITY, 'mp_facebook_comments', [ + 'type' => 'int', + 'backend' => '', + 'frontend' => '', + 'label' => __('Disabled Facebook Comments'), + 'note' => 'Added by Mageplaza Facebook', + 'input' => 'boolean', + 'class' => '', + 'source' => \Magento\Eav\Model\Entity\Attribute\Source\Boolean::class, + 'global' => ScopedAttributeInterface::SCOPE_GLOBAL, + 'visible' => true, + 'required' => false, + 'user_defined' => true, + 'default' => 0, + 'searchable' => false, + 'filterable' => false, + 'comparable' => false, + 'visible_on_front' => false, + 'used_in_product_listing' => true, + 'unique' => false, + 'group' => '', + 'sort_order' => 100, + 'apply_to' => '' + ]); + } +} diff --git a/Setup/Uninstall.php b/Setup/Uninstall.php index ea20da6..10a800c 100644 --- a/Setup/Uninstall.php +++ b/Setup/Uninstall.php @@ -1,68 +1,68 @@ -eavSetupFactory = $eavSetupFactory; - } - - /** - * Invoked when remove-data flag is set during module uninstall. - * - * @param SchemaSetupInterface $setup - * @param ModuleContextInterface $context - * - * @return void - */ - public function uninstall(SchemaSetupInterface $setup, ModuleContextInterface $context) - { - $installer = $setup; - $installer->startSetup(); - - $eavSetup = $this->eavSetupFactory->create(); - $eavSetup->removeAttribute(\Magento\Customer\Model\Customer::ENTITY, 'mp_facebook_comments'); - - $installer->endSetup(); - } -} +eavSetupFactory = $eavSetupFactory; + } + + /** + * Invoked when remove-data flag is set during module uninstall. + * + * @param SchemaSetupInterface $setup + * @param ModuleContextInterface $context + * + * @return void + */ + public function uninstall(SchemaSetupInterface $setup, ModuleContextInterface $context) + { + $installer = $setup; + $installer->startSetup(); + + $eavSetup = $this->eavSetupFactory->create(); + $eavSetup->removeAttribute(\Magento\Customer\Model\Customer::ENTITY, 'mp_facebook_comments'); + + $installer->endSetup(); + } +} diff --git a/USER-GUIDE.md b/USER-GUIDE.md index cd7d0e3..702b5de 100644 --- a/USER-GUIDE.md +++ b/USER-GUIDE.md @@ -1,54 +1,54 @@ -## Documentation - -- Installation guide: https://www.mageplaza.com/install-magento-2-extension/#solution-1-ready-to-paste -- User Guide: https://docs.mageplaza.com/facebook-plugin/ -- Product page: https://www.mageplaza.com/magento-2-facebook-plugin/ -- FAQs: https://www.mageplaza.com/faqs/ -- Get Support: https://mageplaza.freshdesk.com/ or support@mageplaza.com -- Changelog: https://www.mageplaza.com/releases/facebook-plugin/ -- License agreement: https://www.mageplaza.com/LICENSE.txt - -## How to install - -### Install ready-to-paste package (Recommended) - -- Installation guide: https://www.mageplaza.com/install-magento-2-extension/ - -## How to upgrade - -1. Backup - -Backup your Magento code, database before upgrading. - -2. Remove FacebookPlugin folder - -In case of customization, you should backup the customized files and modify in newer version. -Now you remove `app/code/Mageplaza/FacebookPlugin` folder. In this step, you can copy override FacebookPlugin folder but this may cause of compilation issue. That why you should remove it. - -3. Upload new version -Upload this package to Magento root directory - -4. Run command line: - -``` -php bin/magento setup:upgrade -php bin/magento setup:static-content:deploy -``` - - -## FAQs - - -#### Q: I got error: `Mageplaza_Core has been already defined` -A: Read solution: https://github.com/mageplaza/module-core/issues/3 - - -#### Q: My site is down -A: Please follow this guide: https://www.mageplaza.com/blog/magento-site-down.html - - -## Support - -- FAQs: https://www.mageplaza.com/faqs/ -- https://mageplaza.freshdesk.com/ -- support@mageplaza.com +## Documentation + +- Installation guide: https://www.mageplaza.com/install-magento-2-extension/#solution-1-ready-to-paste +- User Guide: https://docs.mageplaza.com/facebook-plugin/ +- Product page: https://www.mageplaza.com/magento-2-facebook-plugin/ +- FAQs: https://www.mageplaza.com/faqs/ +- Get Support: https://mageplaza.freshdesk.com/ or support@mageplaza.com +- Changelog: https://www.mageplaza.com/releases/facebook-plugin/ +- License agreement: https://www.mageplaza.com/LICENSE.txt + +## How to install + +### Install ready-to-paste package (Recommended) + +- Installation guide: https://www.mageplaza.com/install-magento-2-extension/ + +## How to upgrade + +1. Backup + +Backup your Magento code, database before upgrading. + +2. Remove FacebookPlugin folder + +In case of customization, you should backup the customized files and modify in newer version. +Now you remove `app/code/Mageplaza/FacebookPlugin` folder. In this step, you can copy override FacebookPlugin folder but this may cause of compilation issue. That why you should remove it. + +3. Upload new version +Upload this package to Magento root directory + +4. Run command line: + +``` +php bin/magento setup:upgrade +php bin/magento setup:static-content:deploy +``` + + +## FAQs + + +#### Q: I got error: `Mageplaza_Core has been already defined` +A: Read solution: https://github.com/mageplaza/module-core/issues/3 + + +#### Q: My site is down +A: Please follow this guide: https://www.mageplaza.com/blog/magento-site-down.html + + +## Support + +- FAQs: https://www.mageplaza.com/faqs/ +- https://mageplaza.freshdesk.com/ +- support@mageplaza.com diff --git a/composer.json b/composer.json index 1cef914..7025fd7 100644 --- a/composer.json +++ b/composer.json @@ -2,10 +2,10 @@ "name": "mageplaza/module-facebook-plugin", "description": "Magento 2 Facebook Plugin Extension", "require": { - "mageplaza/module-core": "^1.4.4" + "mageplaza/module-core": "^1.4.5" }, "type": "magento2-module", - "version": "1.0.2", + "version": "4.0.0", "license": "proprietary", "authors": [ { diff --git a/etc/acl.xml b/etc/acl.xml index 089eba6..3f14a0c 100644 --- a/etc/acl.xml +++ b/etc/acl.xml @@ -1,37 +1,37 @@ - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/etc/adminhtml/routes.xml b/etc/adminhtml/routes.xml index 775ec87..a65d5f6 100644 --- a/etc/adminhtml/routes.xml +++ b/etc/adminhtml/routes.xml @@ -1,29 +1,29 @@ - - - - - - - - - + + + + + + + + + diff --git a/etc/adminhtml/system.xml b/etc/adminhtml/system.xml index 6ff7dbf..f6069f9 100644 --- a/etc/adminhtml/system.xml +++ b/etc/adminhtml/system.xml @@ -1,177 +1,177 @@ - - - - -
- separator-top - - mageplaza - Mageplaza_FacebookPlugin::configuration - - - - Mageplaza\Core\Block\Adminhtml\System\Config\Head - -
  • User Guide
  • -
  • Helpdesk
  • -
  • Allow customers to login with Mageplaza Social Login
  • -
  • It helps to reduce abandonment cart with One Step Checkout.
  • -
  • How to setup abandoned cart email series
  • - - ]]>
    -
    - - - Magento\Config\Model\Config\Source\Yesno - Select Yes to enable this module - - - - required-entry - here. -Go to developers.facebook.com/tools/comments. You will get a list of all your Facebook apps, which lets you moderate all comments associated with each app.]]> - - 1 - - -
    - - - - - Magento\Config\Model\Config\Source\Yesno - Select Yes to enable Facebook Plugin - - - - - 1 - - The URL of the Facebook Page - - - - Mageplaza\FacebookPlugin\Model\Config\Source\Tabs - - 1 - - - - - validate-digits required-entry validate-digits-range digits-range-180-500 - The pixel width of the plugin. Min. is 180 px and Max. is 500 px. Default: 340 px - - 1 - - - - - validate-digits required-entry validate-digits-range digits-range-70-2048 - The pixel height of the plugin. Min. is 70 px - - 1 - - - - - Mageplaza\FacebookPlugin\Model\Config\Source\TrueFalse - Hide cover photo in the header. Default: No - - 1 - - - - - Mageplaza\FacebookPlugin\Model\Config\Source\TrueFalse - Show profile photos when friends like this. - - 1 - - - - - Mageplaza\FacebookPlugin\Model\Config\Source\TrueFalse - Hide the custom Call To Action button (if available) - - 1 - - - - - Mageplaza\FacebookPlugin\Model\Config\Source\TrueFalse - Use the small header instead. - - 1 - - - - - Mageplaza\FacebookPlugin\Model\Config\Source\TrueFalse - Try to fit inside the container width. Default: Yes - - 1 - - - - - - 1 - - Mageplaza\FacebookPlugin\Block\Adminhtml\System\Snippet - - - - - - - Select Yes to add a Facebook Comments tab in Product Detail page. - Magento\Config\Model\Config\Source\Yesno - - - - - 1 - - Enter the title of the tab. Default: Facebook comments - - - - validate-digits required-entry validate-digits-range digits-range-320-2048 - - 1 - - The width of the comment plugin on the webpage. The minimum width is 320 px - - - - validate-digits required-entry validate-digits-range digits-range-1-2048 - - 1 - - The number of comments to show by default. The minimum value is 1. - - -
    -
    + + + + +
    + separator-top + + mageplaza + Mageplaza_FacebookPlugin::configuration + + + + Mageplaza\Core\Block\Adminhtml\System\Config\Head + +
  • User Guide
  • +
  • Helpdesk
  • +
  • Allow customers to login with Mageplaza Social Login
  • +
  • It helps to reduce abandonment cart with One Step Checkout.
  • +
  • How to setup abandoned cart email series
  • + + ]]>
    +
    + + + Magento\Config\Model\Config\Source\Yesno + Select Yes to enable this module + + + + required-entry + here. +Go to developers.facebook.com/tools/comments. You will get a list of all your Facebook apps, which lets you moderate all comments associated with each app.]]> + + 1 + + +
    + + + + + Magento\Config\Model\Config\Source\Yesno + Select Yes to enable Facebook Plugin + + + + + 1 + + The URL of the Facebook Page + + + + Mageplaza\FacebookPlugin\Model\Config\Source\Tabs + + 1 + + + + + validate-digits required-entry validate-digits-range digits-range-180-500 + The pixel width of the plugin. Min. is 180 px and Max. is 500 px. Default: 340 px + + 1 + + + + + validate-digits required-entry validate-digits-range digits-range-70-2048 + The pixel height of the plugin. Min. is 70 px + + 1 + + + + + Mageplaza\FacebookPlugin\Model\Config\Source\TrueFalse + Hide cover photo in the header. Default: No + + 1 + + + + + Mageplaza\FacebookPlugin\Model\Config\Source\TrueFalse + Show profile photos when friends like this. + + 1 + + + + + Mageplaza\FacebookPlugin\Model\Config\Source\TrueFalse + Hide the custom Call To Action button (if available) + + 1 + + + + + Mageplaza\FacebookPlugin\Model\Config\Source\TrueFalse + Use the small header instead. + + 1 + + + + + Mageplaza\FacebookPlugin\Model\Config\Source\TrueFalse + Try to fit inside the container width. Default: Yes + + 1 + + + + + + 1 + + Mageplaza\FacebookPlugin\Block\Adminhtml\System\Snippet + + + + + + + Select Yes to add a Facebook Comments tab in Product Detail page. + Magento\Config\Model\Config\Source\Yesno + + + + + 1 + + Enter the title of the tab. Default: Facebook comments + + + + validate-digits required-entry validate-digits-range digits-range-320-2048 + + 1 + + The width of the comment plugin on the webpage. The minimum width is 320 px + + + + validate-digits required-entry validate-digits-range digits-range-1-2048 + + 1 + + The number of comments to show by default. The minimum value is 1. + + +
    +
    \ No newline at end of file diff --git a/etc/config.xml b/etc/config.xml index 037e0b2..9d1ea4c 100644 --- a/etc/config.xml +++ b/etc/config.xml @@ -1,51 +1,51 @@ - - - - - - - 1 - - - 1 - - - 1 - timeline - 340 - 500 - false - true - false - false - true - - - 0 - Facebook comments - 550 - 5 - - - + + + + + + + 1 + + + 1 + + + 1 + timeline + 340 + 500 + false + true + false + false + true + + + 0 + Facebook comments + 550 + 5 + + + \ No newline at end of file diff --git a/etc/module.xml b/etc/module.xml index 2644f08..ea592b2 100644 --- a/etc/module.xml +++ b/etc/module.xml @@ -1,29 +1,29 @@ - - - - - - - - - + + + + + + + + + diff --git a/etc/widget.xml b/etc/widget.xml index f2c6a89..33a6846 100644 --- a/etc/widget.xml +++ b/etc/widget.xml @@ -1,114 +1,114 @@ - - - - - - Create facebook plugin to store. - - - - - - - The URL of the Facebook Page. - - - - - - - - - - - - - The pixel width of the plugin. Min. is 180 px and Max. is 500 px. Default: 340 px - - - - - 340 - - - - The pixel height of the plugin. Min. is 70 px. - - - - 500 - - - - Hide cover photo in the header. Default: No - - - - - - - Show the profile photo when friends like this. - - - - - - - - - - - Hide the custom Call To Action button (if available). - - - - - - - Use the small header instead. - - - - - - - Try to fit inside the frame width. Default: Yes. - - - - - - - - - - + + + + + + Create facebook plugin to store. + + + + + + + The URL of the Facebook Page. + + + + + + + + + + + + + The pixel width of the plugin. Min. is 180 px and Max. is 500 px. Default: 340 px + + + + + 340 + + + + The pixel height of the plugin. Min. is 70 px. + + + + 500 + + + + Hide cover photo in the header. Default: No + + + + + + + Show the profile photo when friends like this. + + + + + + + + + + + Hide the custom Call To Action button (if available). + + + + + + + Use the small header instead. + + + + + + + Try to fit inside the frame width. Default: Yes. + + + + + + + + + + \ No newline at end of file diff --git a/i18n/en_US.csv b/i18n/en_US.csv index 326815a..423cc25 100644 --- a/i18n/en_US.csv +++ b/i18n/en_US.csv @@ -1,57 +1,57 @@ -"Use the following code to show facebook plugin in any places which you want.","Use the following code to show facebook plugin in any places which you want." -"CMS Page/Static Block","CMS Page/Static Block" -"Template .phtml file","Template .phtml file" -"Layout file","Layout file" -title,title -"Use Config","Use Config" -Custom,Custom -Timeline,Timeline -Events,Events -Messages,Messages -No,No -Yes,Yes -"Disabled Facebook Comments","Disabled Facebook Comments" -"Facebook Plugin","Facebook Plugin" -General,General -Enable,Enable -"Select Yes to enable this module","Select Yes to enable this module" -"Facebook App ID","Facebook App ID" -"Select Yes to enable Facebook Plugin","Select Yes to enable Facebook Plugin" -"Facebook URL","Facebook URL" -"The URL of the Facebook Page","The URL of the Facebook Page" -Tabs,Tabs -Width,Width -"The pixel width of the plugin. Min. is 180 px and Max. is 500 px. Default: 340 px","The pixel width of the plugin. Min. is 180 px and Max. is 500 px. Default: 340 px" -Height,Height -"The pixel height of the plugin. Min. is 70 px","The pixel height of the plugin. Min. is 70 px" -"Hide cover photo","Hide cover photo" -"Hide cover photo in the header. Default: No","Hide cover photo in the header. Default: No" -"Show profile photo","Show profile photo" -"Show profile photos when friends like this.","Show profile photos when friends like this." -"Hide the custom Call To Action","Hide the custom Call To Action" -"Hide the custom Call To Action button (if available)","Hide the custom Call To Action button (if available)" -"Small header","Small header" -"Use the small header instead.","Use the small header instead." -"Adapt Width","Adapt Width" -"Try to fit inside the container width. Default: Yes","Try to fit inside the container width. Default: Yes" -"Snippet Code","Snippet Code" -"Facebook Comments","Facebook Comments" -"Enable Facebook Comment","Enable Facebook Comment" -"Select Yes to add a Facebook Comments tab in Product Detail page.","Select Yes to add a Facebook Comments tab in Product Detail page." -Title,Title -"Enter the title of the tab. Default: Facebook comments","Enter the title of the tab. Default: Facebook comments" -"The width of the comment plugin on the webpage. The minimum width is 320 px","The width of the comment plugin on the webpage. The minimum width is 320 px" -"Number of Posts","Number of Posts" -"The number of comments to show by default. The minimum value is 1.","The number of comments to show by default. The minimum value is 1." -"Mageplaza Facebook Plugin","Mageplaza Facebook Plugin" -"Create facebook plugin to store.","Create facebook plugin to store." -"Facebook widget options","Facebook widget options" -"The URL of the Facebook Page.","The URL of the Facebook Page." -"The pixel width of the plugin. Min. is 180 px and Max. is 500 px. Default: 340 px - ","The pixel width of the plugin. Min. is 180 px and Max. is 500 px. Default: 340 px - " -"The pixel height of the plugin. Min. is 70 px.","The pixel height of the plugin. Min. is 70 px." -"Show the profile photo when friends like this.","Show the profile photo when friends like this." -"Hide the custom Call To Action button (if available).","Hide the custom Call To Action button (if available)." -"Adapt width","Adapt width" -"Try to fit inside the frame width. Default: Yes.","Try to fit inside the frame width. Default: Yes." +"Use the following code to show facebook plugin in any places which you want.","Use the following code to show facebook plugin in any places which you want." +"CMS Page/Static Block","CMS Page/Static Block" +"Template .phtml file","Template .phtml file" +"Layout file","Layout file" +title,title +"Use Config","Use Config" +Custom,Custom +Timeline,Timeline +Events,Events +Messages,Messages +No,No +Yes,Yes +"Disabled Facebook Comments","Disabled Facebook Comments" +"Facebook Plugin","Facebook Plugin" +General,General +Enable,Enable +"Select Yes to enable this module","Select Yes to enable this module" +"Facebook App ID","Facebook App ID" +"Select Yes to enable Facebook Plugin","Select Yes to enable Facebook Plugin" +"Facebook URL","Facebook URL" +"The URL of the Facebook Page","The URL of the Facebook Page" +Tabs,Tabs +Width,Width +"The pixel width of the plugin. Min. is 180 px and Max. is 500 px. Default: 340 px","The pixel width of the plugin. Min. is 180 px and Max. is 500 px. Default: 340 px" +Height,Height +"The pixel height of the plugin. Min. is 70 px","The pixel height of the plugin. Min. is 70 px" +"Hide cover photo","Hide cover photo" +"Hide cover photo in the header. Default: No","Hide cover photo in the header. Default: No" +"Show profile photo","Show profile photo" +"Show profile photos when friends like this.","Show profile photos when friends like this." +"Hide the custom Call To Action","Hide the custom Call To Action" +"Hide the custom Call To Action button (if available)","Hide the custom Call To Action button (if available)" +"Small header","Small header" +"Use the small header instead.","Use the small header instead." +"Adapt Width","Adapt Width" +"Try to fit inside the container width. Default: Yes","Try to fit inside the container width. Default: Yes" +"Snippet Code","Snippet Code" +"Facebook Comments","Facebook Comments" +"Enable Facebook Comment","Enable Facebook Comment" +"Select Yes to add a Facebook Comments tab in Product Detail page.","Select Yes to add a Facebook Comments tab in Product Detail page." +Title,Title +"Enter the title of the tab. Default: Facebook comments","Enter the title of the tab. Default: Facebook comments" +"The width of the comment plugin on the webpage. The minimum width is 320 px","The width of the comment plugin on the webpage. The minimum width is 320 px" +"Number of Posts","Number of Posts" +"The number of comments to show by default. The minimum value is 1.","The number of comments to show by default. The minimum value is 1." +"Mageplaza Facebook Plugin","Mageplaza Facebook Plugin" +"Create facebook plugin to store.","Create facebook plugin to store." +"Facebook widget options","Facebook widget options" +"The URL of the Facebook Page.","The URL of the Facebook Page." +"The pixel width of the plugin. Min. is 180 px and Max. is 500 px. Default: 340 px + ","The pixel width of the plugin. Min. is 180 px and Max. is 500 px. Default: 340 px + " +"The pixel height of the plugin. Min. is 70 px.","The pixel height of the plugin. Min. is 70 px." +"Show the profile photo when friends like this.","Show the profile photo when friends like this." +"Hide the custom Call To Action button (if available).","Hide the custom Call To Action button (if available)." +"Adapt width","Adapt width" +"Try to fit inside the frame width. Default: Yes.","Try to fit inside the frame width. Default: Yes." diff --git a/registration.php b/registration.php index 75917a9..8d4600a 100644 --- a/registration.php +++ b/registration.php @@ -1,26 +1,26 @@ - dev/tests/static/testsuite/Magento/Test/Less/_files/whitelist/common.txt -- echo "vendor/$COMPOSER_MODULE" > dev/tests/static/testsuite/Magento/Test/Php/_files/whitelist/common.txt -- echo "vendor/$COMPOSER_MODULE/**/*.js" > dev/tests/static/testsuite/Magento/Test/Js/_files/whitelist/magento.txt -- bash ./dev/travis/before_script.sh -script: -- test $TEST_SUITE = "static" && TEST_FILTER='--filter "Magento\\Test\\Php\\LiveCodeTest"' || true -- test $TEST_SUITE = "functional" && TEST_FILTER='dev/tests/functional/testsuites/Magento/Mtf/TestSuite/InjectableTests.php' || true -- if [ $TEST_SUITE == "functional" ]; then dev/tests/functional/vendor/phpunit/phpunit/phpunit -c dev/tests/$TEST_SUITE $TEST_FILTER; fi -- if [ $TEST_SUITE != "functional" ] && [ $TEST_SUITE != "js" ]; then phpunit -c dev/tests/$TEST_SUITE $TEST_FILTER; fi -- if [ $TEST_SUITE == "js" ]; then grunt $GRUNT_COMMAND; fi - +language: php +php: + - 7.0 + - 7.1 + - 7.2 +sudo: required +dist: trusty +env: + global: + - COMPOSER_BIN_DIR=~/bin + - INTEGRATION_SETS=3 + - NODE_JS_VERSION=6 + - MAGENTO_HOST_NAME="magento2.travis" + - COMPOSER_MODULE=mageplaza/module-facebook-plugin + matrix: + - MAGENTO_VERSION=2.2.1 TEST_SUITE=integration INTEGRATION_INDEX=1 + - MAGENTO_VERSION=2.2.1 TEST_SUITE=integration INTEGRATION_INDEX=2 + - MAGENTO_VERSION=2.2.1 TEST_SUITE=integration INTEGRATION_INDEX=3 + - MAGENTO_VERSION=2.2.2 TEST_SUITE=static + - MAGENTO_VERSION=2.2.2 TEST_SUITE=js GRUNT_COMMAND=static + - MAGENTO_VERSION=2.2.2 TEST_SUITE=integration INTEGRATION_INDEX=1 + - MAGENTO_VERSION=2.2.2 TEST_SUITE=integration INTEGRATION_INDEX=2 + - MAGENTO_VERSION=2.2.2 TEST_SUITE=integration INTEGRATION_INDEX=3 + +matrix: + exclude: + - php: 7.0 + env: MAGENTO_VERSION=2.2.2 TEST_SUITE=js GRUNT_COMMAND=static + - php: 7.0 + env: MAGENTO_VERSION=2.2.2 TEST_SUITE=static +cache: + apt: true + directories: + - "$HOME/.composer/cache" + - "$HOME/.nvm" +addons: + apt: + packages: + - mysql-server-5.6 + - mysql-client-core-5.6 + - mysql-client-5.6 + - postfix + firefox: '46.0' + hosts: + - magento2.travis +before_install: +- git clone https://github.com/magento/magento2 --branch $MAGENTO_VERSION +- cd magento2 +- bash ./dev/travis/before_install.sh +install: +- composer install --no-interaction --prefer-dist +- composer require $COMPOSER_MODULE +before_script: +#- cp -f ${TRAVIS_BUILD_DIR}/dev/tests/integration/phpunit.xml.dist dev/tests/integration/ +- echo "vendor/$COMPOSER_MODULE" > dev/tests/static/testsuite/Magento/Test/Less/_files/whitelist/common.txt +- echo "vendor/$COMPOSER_MODULE" > dev/tests/static/testsuite/Magento/Test/Php/_files/whitelist/common.txt +- echo "vendor/$COMPOSER_MODULE/**/*.js" > dev/tests/static/testsuite/Magento/Test/Js/_files/whitelist/magento.txt +- bash ./dev/travis/before_script.sh +script: +- test $TEST_SUITE = "static" && TEST_FILTER='--filter "Magento\\Test\\Php\\LiveCodeTest"' || true +- test $TEST_SUITE = "functional" && TEST_FILTER='dev/tests/functional/testsuites/Magento/Mtf/TestSuite/InjectableTests.php' || true +- if [ $TEST_SUITE == "functional" ]; then dev/tests/functional/vendor/phpunit/phpunit/phpunit -c dev/tests/$TEST_SUITE $TEST_FILTER; fi +- if [ $TEST_SUITE != "functional" ] && [ $TEST_SUITE != "js" ]; then phpunit -c dev/tests/$TEST_SUITE $TEST_FILTER; fi +- if [ $TEST_SUITE == "js" ]; then grunt $GRUNT_COMMAND; fi + diff --git a/view/frontend/layout/catalog_product_view.xml b/view/frontend/layout/catalog_product_view.xml index ddcbd89..0ba2382 100644 --- a/view/frontend/layout/catalog_product_view.xml +++ b/view/frontend/layout/catalog_product_view.xml @@ -1,34 +1,34 @@ - - - - - - - - - - - + + + + + + + + + + + \ No newline at end of file diff --git a/view/frontend/layout/default.xml b/view/frontend/layout/default.xml index 8da38ea..72c8eb8 100644 --- a/view/frontend/layout/default.xml +++ b/view/frontend/layout/default.xml @@ -1,30 +1,30 @@ - - - - - - - - + + + + + + + + \ No newline at end of file diff --git a/view/frontend/templates/facebookpage.phtml b/view/frontend/templates/facebookpage.phtml index 5ac337c..299d459 100644 --- a/view/frontend/templates/facebookpage.phtml +++ b/view/frontend/templates/facebookpage.phtml @@ -1,36 +1,36 @@ -getAllOptions(); -if ($block->getHelperData()->isEnabled() && $block->getHelperData()->isEnabledFbPage()) : ?> -
    -
    - +getAllOptions(); +if ($block->getHelperData()->isEnabled() && $block->getHelperData()->isEnabledFbPage()) : ?> +
    +
    + diff --git a/view/frontend/templates/product/head.phtml b/view/frontend/templates/product/head.phtml index 9a6cc0a..b93c410 100644 --- a/view/frontend/templates/product/head.phtml +++ b/view/frontend/templates/product/head.phtml @@ -1,24 +1,24 @@ - - + + diff --git a/view/frontend/templates/product/tabcomment.phtml b/view/frontend/templates/product/tabcomment.phtml index fe9b67a..c54bad9 100644 --- a/view/frontend/templates/product/tabcomment.phtml +++ b/view/frontend/templates/product/tabcomment.phtml @@ -1,31 +1,31 @@ -isEnabled()) : ?> - getHelperData()->getFbCommentsConfig() ?> -
    -
    - +isEnabled()) : ?> + getHelperData()->getFbCommentsConfig() ?> +
    +
    + diff --git a/view/frontend/templates/sdk.phtml b/view/frontend/templates/sdk.phtml index a811d82..3b1a045 100644 --- a/view/frontend/templates/sdk.phtml +++ b/view/frontend/templates/sdk.phtml @@ -1,34 +1,34 @@ -getHelperData()->isEnabled()) : ?> - getLanguage() . '/sdk.js#xfbml=1&version=v3.2&appId=' . $block->getAppId() . '&autoLogAppEvents=1' ?> -
    - - +getHelperData()->isEnabled()) : ?> + getLanguage() . '/sdk.js#xfbml=1&version=v3.2&appId=' . $block->getAppId() . '&autoLogAppEvents=1' ?> +
    + +