-
Notifications
You must be signed in to change notification settings - Fork 4
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 #12 from mageplaza/2.4-develop
Merge branch '2.4-develop' into '2.4'
- Loading branch information
Showing
6 changed files
with
107 additions
and
38 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
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,26 +1,26 @@ | ||
{ | ||
"name": "mageplaza/module-social-share", | ||
"description": "Magento 2 Social Share Extension", | ||
"require": { | ||
"mageplaza/module-core": "^1.4.5" | ||
}, | ||
"type": "magento2-module", | ||
"version": "1.0.2", | ||
"license": "proprietary", | ||
"authors": [ | ||
{ | ||
"name": "Mageplaza", | ||
"email": "[email protected]", | ||
"homepage": "https://www.mageplaza.com", | ||
"role": "Technical Support" | ||
} | ||
], | ||
"autoload": { | ||
"files": [ | ||
"registration.php" | ||
], | ||
"psr-4": { | ||
"Mageplaza\\SocialShare\\": "" | ||
} | ||
} | ||
} | ||
{ | ||
"name": "mageplaza/module-social-share", | ||
"description": "Magento 2 Social Share Extension", | ||
"require": { | ||
"mageplaza/module-core": "^1.4.5" | ||
}, | ||
"type": "magento2-module", | ||
"version": "4.0.0", | ||
"license": "proprietary", | ||
"authors": [ | ||
{ | ||
"name": "Mageplaza", | ||
"email": "[email protected]", | ||
"homepage": "https://www.mageplaza.com", | ||
"role": "Technical Support" | ||
} | ||
], | ||
"autoload": { | ||
"files": [ | ||
"registration.php" | ||
], | ||
"psr-4": { | ||
"Mageplaza\\SocialShare\\": "" | ||
} | ||
} | ||
} |
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
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,62 @@ | ||
/** | ||
* 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 | ||
*/ | ||
|
||
require([ | ||
'jquery' | ||
], function ($) { | ||
$(document).ready(function () { | ||
|
||
var existCondition = setInterval( | ||
function () { | ||
if ($('#a2a_modal').css('display') === 'block') { | ||
if ($('.a2a_button_facebook').length !== 0) { | ||
$('#a2a_thanks_kit .a2a_button_facebook .a2a_s_facebook svg').replaceWith('<img src="' + $('.a2a_kit .a2a_button_facebook img').attr('src') + '" width="32" height="32" alt="facebook">'); | ||
$('#a2a_thanks_kit .a2a_button_facebook').css('height', '32px'); | ||
} | ||
|
||
if ($('.a2a_button_twitter').length !== 0) { | ||
$('#a2a_thanks_kit .a2a_button_twitter .a2a_s_twitter svg').replaceWith('<img src="' + $('.a2a_kit .a2a_button_twitter img').attr('src') + '" width="32" height="32" alt="twitter">'); | ||
$('#a2a_thanks_kit .a2a_button_twitter').css('height', '32px'); | ||
} | ||
|
||
if ($('.a2a_button_facebook_messenger').length !== 0) { | ||
$('#a2a_thanks_kit .a2a_button_facebook_messenger .a2a_s_facebook_messenger svg').replaceWith('<img src="' + $('.a2a_kit .a2a_button_facebook_messenger img').attr('src') + '" width="32" height="32" alt="facebook_messenger">'); | ||
$('#a2a_thanks_kit .a2a_button_facebook_messenger').css('height', '32px'); | ||
} | ||
|
||
if ($('.a2a_button_pinterest').length !== 0) { | ||
$('#a2a_thanks_kit .a2a_button_pinterest .a2a_s_pinterest svg').replaceWith('<img src="' + $('.a2a_kit .a2a_button_pinterest img').attr('src') + '" width="32" height="32" alt="pinterest">'); | ||
$('#a2a_thanks_kit .a2a_button_pinterest').css('height', '32px'); | ||
} | ||
|
||
if ($('.a2a_button_linkedin').length !== 0) { | ||
$('#a2a_thanks_kit .a2a_button_linkedin .a2a_s_linkedin svg').replaceWith('<img src="' + $('.a2a_kit .a2a_button_linkedin img').attr('src') + '" width="32" height="32" alt="linkedin">'); | ||
$('#a2a_thanks_kit .a2a_button_linkedin').css('height', '32px'); | ||
} | ||
|
||
if ($('.a2a_button_tumblr').length !== 0) { | ||
$('#a2a_thanks_kit .a2a_button_tumblr .a2a_s_tumblr svg').replaceWith('<img src="' + $('.a2a_kit .a2a_button_tumblr img').attr('src') + '" width="32" height="32" alt="tumblr">'); | ||
$('#a2a_thanks_kit .a2a_button_tumblr').css('height', '32px'); | ||
} | ||
} | ||
}, 400 | ||
); | ||
}); | ||
}); |