This commit is contained in:
2026-09-15 10:35:56 +08:00
commit 782f8ea7aa
4086 changed files with 631288 additions and 0 deletions
@@ -0,0 +1,37 @@
<?xml version="1.0"?>
<!--
/**
* Mageplaza
*
* NOTICE OF LICENSE
*
* This source file is subject to the Mageplaza.com license that is
* available through the world-wide-web at this URL:
* https://www.mageplaza.com/LICENSE.txt
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade this extension to newer
* version in the future.
*
* @category Mageplaza
* @package Mageplaza_SocialShare
* @copyright Copyright (c) Mageplaza (https://www.mageplaza.com/)
* @license https://www.mageplaza.com/LICENSE.txt
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Acl/etc/acl.xsd">
<acl>
<resources>
<resource id="Magento_Backend::admin">
<resource id="Magento_Backend::stores">
<resource id="Magento_Backend::stores_settings">
<resource id="Magento_Config::config">
<resource id="Mageplaza_SocialShare::configuration" title="Mageplaza Social Share"/>
</resource>
</resource>
</resource>
</resource>
</resources>
</acl>
</config>
@@ -0,0 +1,269 @@
<?xml version="1.0"?>
<!--
/**
* Mageplaza
*
* NOTICE OF LICENSE
*
* This source file is subject to the Mageplaza.com license that is
* available through the world-wide-web at this URL:
* https://www.mageplaza.com/LICENSE.txt
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade this extension to newer
* version in the future.
*
* @category Mageplaza
* @package Mageplaza_SocialShare
* @copyright Copyright (c) Mageplaza (https://www.mageplaza.com/)
* @license https://www.mageplaza.com/LICENSE.txt
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
<system>
<section id="mpsocialshare" translate="label" type="text" sortOrder="100" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Social Share</label>
<tab>mageplaza</tab>
<resource>Mageplaza_SocialShare::configuration</resource>
<group id="general" translate="label comment" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>General Configuration</label>
<field id="enabled" translate="label comment" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
<label>Enable</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<comment><![CDATA[Select <b>Yes</b> to enable this module.<br />
1. It helps to reduce abandonment cart with <a href="https://www.mageplaza.com/magento-2-one-step-checkout-extension/" target="_blank">One Step Checkout</a>. <br />
2. Magento stores see upwards of 30% revenue 💰 with AVADA. <a href="https://go.avada.io/mageplaza">Learn more</a>]]></comment>
</field>
<field id="icon_color" translate="label comment" type="select" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
<label>Icon Color</label>
<source_model>Mageplaza\SocialShare\Model\System\Config\Source\IconColor</source_model>
<comment>Only apply for default icon</comment>
</field>
<field id="custom_icon_color" translate="label" type="text" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
<label>Custom Icon Color</label>
<frontend_model>Mageplaza\Core\Block\Adminhtml\System\Config\ColorPicker</frontend_model>
<depends>
<field id="icon_color">Custom</field>
</depends>
</field>
<field id="button_color" translate="label comment" type="select" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
<label>Button Color</label>
<source_model>Mageplaza\SocialShare\Model\System\Config\Source\ButtonColor</source_model>
<comment>Only apply for default icon</comment>
</field>
<field id="custom_button_color" translate="label" type="text" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
<label>Custom Button Color</label>
<frontend_model>Mageplaza\Core\Block\Adminhtml\System\Config\ColorPicker</frontend_model>
<depends>
<field id="button_color">Custom</field>
</depends>
</field>
<field id="background_color" translate="label" type="select" sortOrder="60" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
<label>Background Color</label>
<source_model>Mageplaza\SocialShare\Model\System\Config\Source\BackgroundColor</source_model>
</field>
<field id="custom_background_color" translate="label" type="text" sortOrder="70" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
<label>Custom Background Color</label>
<frontend_model>Mageplaza\Core\Block\Adminhtml\System\Config\ColorPicker</frontend_model>
<depends>
<field id="background_color">Custom</field>
</depends>
</field>
<field id="border_radius" translate="label comment" type="text" sortOrder="80" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
<label>Border Radius</label>
<comment>The unit is %, ranging from 0% to 50%.</comment>
<validate>required-entry validate-digits validate-digits-range digits-range-0-50</validate>
</field>
<field id="share_counter" translate="label" type="select" sortOrder="90" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
<label>Enable Share Counter</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
</field>
<field id="thank_you" translate="label comment" type="select" sortOrder="100" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
<label>Enable Thank You Popup</label>
<comment>Display after customers' sharing action.</comment>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
</field>
<group id="facebook" translate="label" type="text" sortOrder="110" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Facebook</label>
<field id="enabled" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
<label>Enable</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
</field>
<field id="image" translate="label comment" type="image" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
<label>Image</label>
<backend_model>Magento\Config\Model\Config\Backend\Image</backend_model>
<upload_dir config="system/filesystem/media" scope_info="1">mageplaza/socialshare/facebook</upload_dir>
<base_url type="media" scope_info="1">mageplaza/socialshare/facebook</base_url>
<comment>If empty, the default icon will be used.</comment>
</field>
</group>
<group id="twitter" translate="label" type="text" sortOrder="120" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Twitter</label>
<field id="enabled" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
<label>Enable</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
</field>
<field id="image" translate="label comment" type="image" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
<label>Image</label>
<backend_model>Magento\Config\Model\Config\Backend\Image</backend_model>
<upload_dir config="system/filesystem/media" scope_info="1">mageplaza/socialshare/twitter</upload_dir>
<base_url type="media" scope_info="1">mageplaza/socialshare/twitter</base_url>
<comment>If empty, the default icon will be used.</comment>
</field>
</group>
<group id="facebook_messenger" translate="label" type="text" sortOrder="130" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Facebook Messenger</label>
<field id="enabled" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
<label>Enable</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
</field>
<field id="image" translate="label comment" type="image" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
<label>Image</label>
<backend_model>Magento\Config\Model\Config\Backend\Image</backend_model>
<upload_dir config="system/filesystem/media" scope_info="1">mageplaza/socialshare/facebook_messenger</upload_dir>
<base_url type="media" scope_info="1">mageplaza/socialshare/facebook_messenger</base_url>
<comment>If empty, the default icon will be used.</comment>
</field>
</group>
<group id="pinterest" translate="label" type="text" sortOrder="140" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Pinterest</label>
<field id="enabled" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
<label>Enable</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
</field>
<field id="image" translate="label comment" type="image" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
<label>Image</label>
<backend_model>Magento\Config\Model\Config\Backend\Image</backend_model>
<upload_dir config="system/filesystem/media" scope_info="1">mageplaza/socialshare/pinterest</upload_dir>
<base_url type="media" scope_info="1">mageplaza/socialshare/pinterest</base_url>
<comment>If empty, the default icon will be used.</comment>
</field>
</group>
<group id="linkedin" translate="label" type="text" sortOrder="150" showInDefault="1" showInWebsite="1" showInStore="1">
<label>LinkedIn</label>
<field id="enabled" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
<label>Enable</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
</field>
<field id="image" translate="label comment" type="image" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
<label>Image</label>
<backend_model>Magento\Config\Model\Config\Backend\Image</backend_model>
<upload_dir config="system/filesystem/media" scope_info="1">mageplaza/socialshare/linkedin</upload_dir>
<base_url type="media" scope_info="1">mageplaza/socialshare/linkedin</base_url>
<comment>If empty, the default icon will be used.</comment>
</field>
</group>
<group id="tumblr" translate="label" type="text" sortOrder="160" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Tumblr</label>
<field id="enabled" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
<label>Enable</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
</field>
<field id="image" translate="label comment" type="image" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
<label>Image</label>
<backend_model>Magento\Config\Model\Config\Backend\Image</backend_model>
<upload_dir config="system/filesystem/media" scope_info="1">mageplaza/socialshare/tumblr</upload_dir>
<base_url type="media" scope_info="1">mageplaza/socialshare/tumblr</base_url>
<comment>If empty, the default icon will be used.</comment>
</field>
</group>
<group id="add_more_share" translate="label" type="text" sortOrder="170" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Add More Share</label>
<field id="enabled" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
<label>Enable</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
</field>
<field id="display_menu" translate="label" type="select" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
<label>Display Menu Type</label>
<source_model>Mageplaza\SocialShare\Model\System\Config\Source\DisplayMenu</source_model>
</field>
<field id="full_menu" translate="label" type="select" sortOrder="25" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
<label>Display Full Menu</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<depends>
<field id="display_menu">click</field>
</depends>
</field>
<field id="number_service" translate="label comment" type="text" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
<label>Number of Services</label>
<validate>required-entry validate-digits validate-digits-range digits-range-1-400</validate>
<depends>
<field id="full_menu">0</field>
</depends>
</field>
</group>
</group>
<group id="float" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Floating Configuration</label>
<field id="apply_for" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
<label>Apply For</label>
<source_model>Mageplaza\SocialShare\Model\System\Config\Source\FloatApplyFor</source_model>
</field>
<field id="select_page" translate="label" type="multiselect" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
<source_model>Mageplaza\SocialShare\Model\System\Config\Source\FloatSelectPages</source_model>
<label>Apply for Select Page</label>
<depends>
<field id="apply_for">select_pages</field>
</depends>
</field>
<field id="cms_page" translate="label" type="multiselect" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
<source_model>Mageplaza\SocialShare\Model\System\Config\Source\FloatCmsPages</source_model>
<label>Apply for CMS Page</label>
<depends>
<field id="apply_for">select_pages</field>
</depends>
</field>
<field id="style" translate="label" type="select" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
<label>Style</label>
<source_model>Mageplaza\SocialShare\Model\System\Config\Source\Style</source_model>
</field>
<field id="position" translate="label" type="select" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
<label>Position</label>
<source_model>Mageplaza\SocialShare\Model\System\Config\Source\FloatPosition</source_model>
</field>
<field id="margin_top" translate="label comment" type="text" sortOrder="60" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
<label>Margin Top</label>
<comment>Specify the top margin of sharing button block. Default is 150px.</comment>
<validate>required-entry validate-digits validate-digits-range digits-range-0-1000</validate>
<depends>
<field id="style">vertical</field>
</depends>
</field>
<field id="margin_bottom" translate="label comment" type="text" sortOrder="70" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
<label>Margin Bottom</label>
<comment>Specify the bottom margin of sharing button block. Default is 0px.</comment>
<validate>required-entry validate-digits validate-digits-range digits-range-0-1000</validate>
<depends>
<field id="style">horizontal</field>
</depends>
</field>
<field id="button_size" translate="label comment" type="select" sortOrder="80" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
<label>Button Size</label>
<source_model>Mageplaza\SocialShare\Model\System\Config\Source\ButtonSize</source_model>
<comment>32x32 px button size is recommended.</comment>
</field>
</group>
<group id="inline" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Inline Configuration</label>
<field id="apply_for" translate="label" type="multiselect" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
<label>Apply For</label>
<source_model>Mageplaza\SocialShare\Model\System\Config\Source\InlineApplyFor</source_model>
</field>
<field id="position" translate="label" type="select" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
<label>Position</label>
<source_model>Mageplaza\SocialShare\Model\System\Config\Source\InlinePosition</source_model>
</field>
<field id="show_under_cart" translate="label" type="select" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
<label>Show Under Add To Cart on Product Detail Page</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
</field>
<field id="button_size" translate="label comment" type="select" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
<label>Button Size</label>
<source_model>Mageplaza\SocialShare\Model\System\Config\Source\ButtonSize</source_model>
<comment>32x32 px button size is recommended.</comment>
</field>
</group>
</section>
</system>
</config>
@@ -0,0 +1,81 @@
<?xml version="1.0"?>
<!--
/**
* Mageplaza
*
* NOTICE OF LICENSE
*
* This source file is subject to the Mageplaza.com license that is
* available through the world-wide-web at this URL:
* https://www.mageplaza.com/LICENSE.txt
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade this extension to newer
* version in the future.
*
* @category Mageplaza
* @package Mageplaza_SocialShare
* @copyright Copyright (c) Mageplaza (https://www.mageplaza.com/)
* @license https://www.mageplaza.com/LICENSE.txt
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Store:etc/config.xsd">
<default>
<mpsocialshare>
<module>
<type>1</type>
</module>
<general>
<enabled>1</enabled>
<icon_color>#FFFFFF</icon_color>
<custom_icon_color>#FFFFFF</custom_icon_color>
<button_color>unset</button_color>
<custom_button_color>#FFFFFF</custom_button_color>
<background_color>#FFFFFF</background_color>
<custom_background_color>#FFFFFF</custom_background_color>
<border_radius>0</border_radius>
<share_counter>1</share_counter>
<thank_you>1</thank_you>
<facebook>
<enabled>1</enabled>
</facebook>
<twitter>
<enabled>1</enabled>
</twitter>
<facebook_messenger>
<enabled>1</enabled>
</facebook_messenger>
<pinterest>
<enabled>1</enabled>
</pinterest>
<linkedin>
<enabled>1</enabled>
</linkedin>
<tumblr>
<enabled>1</enabled>
</tumblr>
<add_more_share>
<enabled>1</enabled>
<display_menu>click</display_menu>
<full_menu>0</full_menu>
<number_service>8</number_service>
</add_more_share>
</general>
<float>
<apply_for>all_pages</apply_for>
<style>vertical</style>
<position>left</position>
<margin_top>150</margin_top>
<margin_bottom>0</margin_bottom>
<button_size>32x32</button_size>
</float>
<inline>
<apply_for>home_page</apply_for>
<position>bottom_content</position>
<show_under_cart>1</show_under_cart>
<button_size>32x32</button_size>
</inline>
</mpsocialshare>
</default>
</config>
@@ -0,0 +1,43 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
* Mageplaza
*
* NOTICE OF LICENSE
*
* This source file is subject to the Mageplaza.com license that is
* available through the world-wide-web at this URL:
* https://www.mageplaza.com/LICENSE.txt
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade this extension to newer
* version in the future.
*
* @category Mageplaza
* @package Mageplaza_SocialShare
* @copyright Copyright (c) Mageplaza (https://www.mageplaza.com/)
* @license https://www.mageplaza.com/LICENSE.txt
*/
-->
<csp_whitelist xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Csp:etc/csp_whitelist.xsd">
<policies>
<policy id="style-src">
<values>
<value id="fue-style" type="host">*.googleapis.com</value>
<value id="addtoany-style" type="host">*.addtoany.com</value>
</values>
</policy>
<policy id="font-src">
<values>
<value id="googleapis" type="host">https://fonts.gstatic.com</value>
</values>
</policy>
<policy id="connect-src">
<values>
<value id="fue-connect" type="host">http://dpm.demdex.net</value>
</values>
</policy>
</policies>
</csp_whitelist>
@@ -0,0 +1,29 @@
<?xml version="1.0"?>
<!--
/**
* Mageplaza
*
* NOTICE OF LICENSE
*
* This source file is subject to the Mageplaza.com license that is
* available through the world-wide-web at this URL:
* https://www.mageplaza.com/LICENSE.txt
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade this extension to newer
* version in the future.
*
* @category Mageplaza
* @package Mageplaza_SocialShare
* @copyright Copyright (c) Mageplaza (https://www.mageplaza.com/)
* @license https://www.mageplaza.com/LICENSE.txt
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Mageplaza_SocialShare" setup_version="1.0.0">
<sequence>
<module name="Mageplaza_Core"/>
</sequence>
</module>
</config>