|
321 | 321 | configElement.conf[aConfigurationKey] = configuration[configIndex].conf[aConfigurationKey];
|
322 | 322 | }
|
323 | 323 | }
|
| 324 | + |
| 325 | + // once the provider has been found and configuration applied |
| 326 | + // we should reset the internIndex for the next provider match to work correctly |
| 327 | + // and break, to skip loops on unwanted next providers |
| 328 | + internIndex=0; |
| 329 | + break; |
324 | 330 | }
|
325 | 331 | }
|
326 | 332 | } else {
|
|
490 | 496 |
|
491 | 497 | $window.open(
|
492 | 498 | urlString,
|
493 |
| - 'sharer', 'toolbar=0,status=0,resizable=yes,width=' + attrs.socialsharePopupWidth + ',height=' + attrs.socialsharePopupHeight |
| 499 | + 'facebookSharer', 'toolbar=0,status=0,resizable=yes,width=' + attrs.socialsharePopupWidth + ',height=' + attrs.socialsharePopupHeight |
494 | 500 | + ',top=' + ($window.innerHeight - attrs.socialsharePopupHeight) / 2 + ',left=' + ($window.innerWidth - attrs.socialsharePopupWidth) / 2);
|
495 | 501 |
|
496 | 502 | } else if (attrs.socialshareType && attrs.socialshareType === 'send') {
|
|
523 | 529 |
|
524 | 530 | $window.open(
|
525 | 531 | urlString,
|
526 |
| - 'sharer', 'toolbar=0,status=0,resizable=yes,width=' + attrs.socialsharePopupWidth + ',height=' + attrs.socialsharePopupHeight |
| 532 | + 'facebookSharer', 'toolbar=0,status=0,resizable=yes,width=' + attrs.socialsharePopupWidth + ',height=' + attrs.socialsharePopupHeight |
527 | 533 | + ',top=' + ($window.innerHeight - attrs.socialsharePopupHeight) / 2 + ',left=' + ($window.innerWidth - attrs.socialsharePopupWidth) / 2);
|
528 | 534 |
|
529 | 535 | } else {
|
530 | 536 | //otherwise default to using sharer.php
|
531 | 537 | $window.open(
|
532 | 538 | 'https://www.facebook.com/sharer/sharer.php?u=' + encodeURIComponent(attrs.socialshareUrl || $location.absUrl())
|
533 |
| - , 'sharer', 'toolbar=0,status=0,resizable=yes,width=' + attrs.socialsharePopupWidth + ',height=' + attrs.socialsharePopupHeight |
| 539 | + , 'facebookSharer', 'toolbar=0,status=0,resizable=yes,width=' + attrs.socialsharePopupWidth + ',height=' + attrs.socialsharePopupHeight |
534 | 540 | + ',top=' + ($window.innerHeight - attrs.socialsharePopupHeight) / 2 + ',left=' + ($window.innerWidth - attrs.socialsharePopupWidth) / 2);
|
535 | 541 | }
|
536 | 542 | }
|
|
560 | 566 |
|
561 | 567 | $window.open(
|
562 | 568 | urlString,
|
563 |
| - 'sharer', 'toolbar=0,status=0,resizable=yes,width=' + attrs.socialsharePopupWidth + ',height=' + attrs.socialsharePopupHeight |
| 569 | + 'facebookMessengerSharer', 'toolbar=0,status=0,resizable=yes,width=' + attrs.socialsharePopupWidth + ',height=' + attrs.socialsharePopupHeight |
564 | 570 | + ',top=' + ($window.innerHeight - attrs.socialsharePopupHeight) / 2 + ',left=' + ($window.innerWidth - attrs.socialsharePopupWidth) / 2);
|
565 | 571 | }
|
566 | 572 | , manageGooglePlusShare = function manageGooglePlusShare($window, $location, attrs) {
|
567 | 573 |
|
568 | 574 | $window.open(
|
569 | 575 | 'https://plus.google.com/share?url=' + encodeURIComponent(attrs.socialshareUrl || $location.absUrl())
|
570 |
| - , 'sharer', 'toolbar=0,status=0,resizable=yes,width=' + attrs.socialsharePopupWidth + ',height=' + attrs.socialsharePopupHeight |
| 576 | + , 'GooglePlusSharer', 'toolbar=0,status=0,resizable=yes,width=' + attrs.socialsharePopupWidth + ',height=' + attrs.socialsharePopupHeight |
571 | 577 | + ',top=' + ($window.innerHeight - attrs.socialsharePopupHeight) / 2 + ',left=' + ($window.innerWidth - attrs.socialsharePopupWidth) / 2);
|
572 | 578 | }
|
573 | 579 | , manageRedditShare = function manageRedditShare($window, $location, attrs) {
|
|
593 | 599 |
|
594 | 600 | $window.open(
|
595 | 601 | urlString + encodeURIComponent(attrs.socialshareUrl || $location.absUrl()) + '&title=' + encodeURIComponent(attrs.socialshareText)
|
596 |
| - , 'sharer', 'toolbar=0,status=0,resizable=yes,width=' + attrs.socialsharePopupWidth + ',height=' + attrs.socialsharePopupHeight |
| 602 | + , 'RedditSharer', 'toolbar=0,status=0,resizable=yes,width=' + attrs.socialsharePopupWidth + ',height=' + attrs.socialsharePopupHeight |
597 | 603 | + ',top=' + ($window.innerHeight - attrs.socialsharePopupHeight) / 2 + ',left=' + ($window.innerWidth - attrs.socialsharePopupWidth) / 2);
|
598 | 604 | }
|
599 | 605 | , manageStumbleuponShare = function manageStumbleuponShare($window, $location, attrs) {
|
600 | 606 |
|
601 | 607 | $window.open(
|
602 | 608 | 'https://www.stumbleupon.com/submit?url=' + encodeURIComponent(attrs.socialshareUrl || $location.absUrl()) + '&title=' + encodeURIComponent(attrs.socialshareText)
|
603 |
| - , 'sharer', 'toolbar=0,status=0,resizable=yes,width=' + attrs.socialsharePopupWidth + ',height=' + attrs.socialsharePopupHeight |
| 609 | + , 'StumbleUponSharer', 'toolbar=0,status=0,resizable=yes,width=' + attrs.socialsharePopupWidth + ',height=' + attrs.socialsharePopupHeight |
604 | 610 | + ',top=' + ($window.innerHeight - attrs.socialsharePopupHeight) / 2 + ',left=' + ($window.innerWidth - attrs.socialsharePopupWidth) / 2);
|
605 | 611 | }
|
606 | 612 | , manageLinkedinShare = function manageLinkedinShare($window, $location, attrs) {
|
|
626 | 632 |
|
627 | 633 | $window.open(
|
628 | 634 | urlString,
|
629 |
| - 'sharer', 'toolbar=0,status=0,resizable=yes,width=' + attrs.socialsharePopupWidth + ',height=' + attrs.socialsharePopupHeight |
| 635 | + 'LinkedinSharer', 'toolbar=0,status=0,resizable=yes,width=' + attrs.socialsharePopupWidth + ',height=' + attrs.socialsharePopupHeight |
630 | 636 | + ',top=' + ($window.innerHeight - attrs.socialsharePopupHeight) / 2 + ',left=' + ($window.innerWidth - attrs.socialsharePopupWidth) / 2);
|
631 | 637 | }
|
632 | 638 | , managePinterestShare = function managePinterestShare($window, $location, attrs) {
|
633 | 639 |
|
634 | 640 | $window.open(
|
635 | 641 | 'https://www.pinterest.com/pin/create/button/?url=' + encodeURIComponent(attrs.socialshareUrl || $location.absUrl()) + '&media=' + encodeURIComponent(attrs.socialshareMedia) + '&description=' + encodeURIComponent(attrs.socialshareText)
|
636 |
| - , 'sharer', 'toolbar=0,status=0,resizable=yes,width=' + attrs.socialsharePopupWidth + ',height=' + attrs.socialsharePopupHeight |
| 642 | + , 'PinterestSharer', 'toolbar=0,status=0,resizable=yes,width=' + attrs.socialsharePopupWidth + ',height=' + attrs.socialsharePopupHeight |
637 | 643 | + ',top=' + ($window.innerHeight - attrs.socialsharePopupHeight) / 2 + ',left=' + ($window.innerWidth - attrs.socialsharePopupWidth) / 2);
|
638 | 644 | }
|
639 | 645 | , manageDiggShare = function manageDiggShare($window, $location, attrs) {
|
640 | 646 |
|
641 | 647 | $window.open(
|
642 | 648 | 'https://www.digg.com/submit?url=' + encodeURIComponent(attrs.socialshareUrl || $location.absUrl()) + '&title=' + encodeURIComponent(attrs.socialshareText)
|
643 |
| - , 'sharer', 'toolbar=0,status=0,resizable=yes,width=' + attrs.socialsharePopupWidth + ',height=' + attrs.socialsharePopupHeight |
| 649 | + , 'DiggSharer', 'toolbar=0,status=0,resizable=yes,width=' + attrs.socialsharePopupWidth + ',height=' + attrs.socialsharePopupHeight |
644 | 650 | + ',top=' + ($window.innerHeight - attrs.socialsharePopupHeight) / 2 + ',left=' + ($window.innerWidth - attrs.socialsharePopupWidth) / 2);
|
645 | 651 | }
|
646 | 652 | , manageTumblrShare = function manageTumblrShare($window, $location, attrs) {
|
|
654 | 660 |
|
655 | 661 | $window.open(
|
656 | 662 | urlString,
|
657 |
| - 'sharer', 'toolbar=0,status=0,resizable=yes,width=' + attrs.socialsharePopupWidth + ',height=' + attrs.socialsharePopupHeight |
| 663 | + 'TumblrSharer', 'toolbar=0,status=0,resizable=yes,width=' + attrs.socialsharePopupWidth + ',height=' + attrs.socialsharePopupHeight |
658 | 664 | + ',top=' + ($window.innerHeight - attrs.socialsharePopupHeight) / 2 + ',left=' + ($window.innerWidth - attrs.socialsharePopupWidth) / 2);
|
659 | 665 | } else {
|
660 | 666 |
|
661 | 667 | $window.open(
|
662 | 668 | 'https://www.tumblr.com/share/link?url=' + encodeURIComponent(attrs.socialshareUrl || $location.absUrl()) + '&description=' + encodeURIComponent(attrs.socialshareText)
|
663 |
| - , 'sharer', 'toolbar=0,status=0,resizable=yes,width=' + attrs.socialsharePopupWidth + ',height=' + attrs.socialsharePopupHeight |
| 669 | + , 'TumblrSharer', 'toolbar=0,status=0,resizable=yes,width=' + attrs.socialsharePopupWidth + ',height=' + attrs.socialsharePopupHeight |
664 | 670 | + ',top=' + ($window.innerHeight - attrs.socialsharePopupHeight) / 2 + ',left=' + ($window.innerWidth - attrs.socialsharePopupWidth) / 2);
|
665 | 671 | }
|
666 | 672 | }
|
|
681 | 687 |
|
682 | 688 | $window.open(
|
683 | 689 | urlString
|
684 |
| - , 'sharer', 'toolbar=0,status=0,resizable=yes,width=' + attrs.socialsharePopupWidth + ',height=' + attrs.socialsharePopupHeight |
| 690 | + , 'VkSharer', 'toolbar=0,status=0,resizable=yes,width=' + attrs.socialsharePopupWidth + ',height=' + attrs.socialsharePopupHeight |
685 | 691 | + ',top=' + ($window.innerHeight - attrs.socialsharePopupHeight) / 2 + ',left=' + ($window.innerWidth - attrs.socialsharePopupWidth) / 2);
|
686 | 692 | }
|
687 | 693 | , manageOkShare = function manageOkShare($window, $location, attrs) {
|
688 | 694 | $window.open(
|
689 | 695 | 'http://www.odnoklassniki.ru/dk?st.cmd=addShare&st.s=1&st._surl=' + encodeURIComponent(attrs.socialshareUrl || $location.absUrl()) + '&st.comments=' + encodeURIComponent(attrs.socialshareText)
|
690 |
| - , 'sharer', 'toolbar=0,status=0,resizable=yes,width=' + attrs.socialsharePopupWidth + ',height=' + attrs.socialsharePopupHeight |
| 696 | + , 'OkSharer', 'toolbar=0,status=0,resizable=yes,width=' + attrs.socialsharePopupWidth + ',height=' + attrs.socialsharePopupHeight |
691 | 697 | + ',top=' + ($window.innerHeight - attrs.socialsharePopupHeight) / 2 + ',left=' + ($window.innerWidth - attrs.socialsharePopupWidth) / 2);
|
692 | 698 | }
|
693 | 699 | , manageDeliciousShare = function manageDeliciousShare($window, $location, attrs) {
|
694 | 700 |
|
695 | 701 | $window.open(
|
696 | 702 | 'https://www.delicious.com/save?v=5&noui&jump=close&url=' + encodeURIComponent(attrs.socialshareUrl || $location.absUrl()) + '&title=' + encodeURIComponent(attrs.socialshareText)
|
697 |
| - , 'sharer', 'toolbar=0,status=0,resizable=yes,width=' + attrs.socialsharePopupWidth + ',height=' + attrs.socialsharePopupHeight |
| 703 | + , 'DeliciousSharer', 'toolbar=0,status=0,resizable=yes,width=' + attrs.socialsharePopupWidth + ',height=' + attrs.socialsharePopupHeight |
698 | 704 | + ',top=' + ($window.innerHeight - attrs.socialsharePopupHeight) / 2 + ',left=' + ($window.innerWidth - attrs.socialsharePopupWidth) / 2);
|
699 | 705 | }
|
700 | 706 | , manageBufferShare = function manageBufferShare($window, $location, attrs) {
|
|
713 | 719 |
|
714 | 720 | $window.open(
|
715 | 721 | urlString,
|
716 |
| - 'sharer', 'toolbar=0,status=0,resizable=yes,width=' + attrs.socialsharePopupWidth + ',height=' + attrs.socialsharePopupHeight |
| 722 | + 'BufferSharer', 'toolbar=0,status=0,resizable=yes,width=' + attrs.socialsharePopupWidth + ',height=' + attrs.socialsharePopupHeight |
717 | 723 | + ',top=' + ($window.innerHeight - attrs.socialsharePopupHeight) / 2 + ',left=' + ($window.innerWidth - attrs.socialsharePopupWidth) / 2);
|
718 | 724 | }
|
719 | 725 | , manageHackernewsShare = function manageHackernewsShare($window, $location, attrs) {
|
|
727 | 733 |
|
728 | 734 | $window.open(
|
729 | 735 | urlString,
|
730 |
| - 'sharer', 'toolbar=0,status=0,resizable=yes,width=' + attrs.socialsharePopupWidth + ',height=' + attrs.socialsharePopupHeight |
| 736 | + 'HackernewsSharer', 'toolbar=0,status=0,resizable=yes,width=' + attrs.socialsharePopupWidth + ',height=' + attrs.socialsharePopupHeight |
731 | 737 | + ',top=' + ($window.innerHeight - attrs.socialsharePopupHeight) / 2 + ',left=' + ($window.innerWidth - attrs.socialsharePopupWidth) / 2);
|
732 | 738 | }
|
733 | 739 | , manageFlipboardShare = function manageFlipboardShare($window, $location, attrs) {
|
|
742 | 748 |
|
743 | 749 | $window.open(
|
744 | 750 | urlString,
|
745 |
| - 'sharer', 'toolbar=0,status=0,resizable=yes,width=' + attrs.socialsharePopupWidth + ',height=' + attrs.socialsharePopupHeight |
| 751 | + 'FlipboardSharer', 'toolbar=0,status=0,resizable=yes,width=' + attrs.socialsharePopupWidth + ',height=' + attrs.socialsharePopupHeight |
746 | 752 | + ',top=' + ($window.innerHeight - attrs.socialsharePopupHeight) / 2 + ',left=' + ($window.innerWidth - attrs.socialsharePopupWidth) / 2);
|
747 | 753 | }
|
748 | 754 | , managePocketShare = function managePocketShare($window, $location, attrs) {
|
|
757 | 763 |
|
758 | 764 | $window.open(
|
759 | 765 | urlString,
|
760 |
| - 'sharer', 'toolbar=0,status=0,resizable=yes,width=' + attrs.socialsharePopupWidth + ',height=' + attrs.socialsharePopupHeight |
| 766 | + 'PocketSharer', 'toolbar=0,status=0,resizable=yes,width=' + attrs.socialsharePopupWidth + ',height=' + attrs.socialsharePopupHeight |
761 | 767 | + ',top=' + ($window.innerHeight - attrs.socialsharePopupHeight) / 2 + ',left=' + ($window.innerWidth - attrs.socialsharePopupWidth) / 2);
|
762 | 768 | }
|
763 | 769 | , manageWordpressShare = function manageWordpressShare($window, $location, attrs) {
|
|
775 | 781 |
|
776 | 782 | $window.open(
|
777 | 783 | urlString,
|
778 |
| - 'sharer', 'toolbar=0,status=0,resizable=yes,width=' + attrs.socialsharePopupWidth + ',height=' + attrs.socialsharePopupHeight |
| 784 | + 'WordpressSharer', 'toolbar=0,status=0,resizable=yes,width=' + attrs.socialsharePopupWidth + ',height=' + attrs.socialsharePopupHeight |
779 | 785 | + ',top=' + ($window.innerHeight - attrs.socialsharePopupHeight) / 2 + ',left=' + ($window.innerWidth - attrs.socialsharePopupWidth) / 2);
|
780 | 786 | }
|
781 | 787 | , manageXingShare = function manageXingShare($window, $location, attrs) {
|
|
786 | 792 | }
|
787 | 793 | $window.open(
|
788 | 794 | 'https://www.xing.com/spi/shares/new?url=' + encodeURIComponent(attrs.socialshareUrl || $location.absUrl()) + followUrl
|
789 |
| - , 'sharer', 'toolbar=0,status=0,resizable=yes,width=' + attrs.socialsharePopupWidth + ',height=' + attrs.socialsharePopupHeight |
| 795 | + , 'XingSharer', 'toolbar=0,status=0,resizable=yes,width=' + attrs.socialsharePopupWidth + ',height=' + attrs.socialsharePopupHeight |
790 | 796 | + ',top=' + ($window.innerHeight - attrs.socialsharePopupHeight) / 2 + ',left=' + ($window.innerWidth - attrs.socialsharePopupWidth) / 2);
|
791 | 797 | }
|
792 | 798 | , manageEvernoteShare = function manageEvernoteShare($window, $location, attrs) {
|
|
799 | 805 |
|
800 | 806 | $window.open(
|
801 | 807 | urlString
|
802 |
| - , 'sharer', 'toolbar=0,status=0,resizable=yes,width=' + attrs.socialsharePopupWidth + ',height=' + attrs.socialsharePopupHeight |
| 808 | + , 'EvernoteSharer', 'toolbar=0,status=0,resizable=yes,width=' + attrs.socialsharePopupWidth + ',height=' + attrs.socialsharePopupHeight |
803 | 809 | + ',top=' + ($window.innerHeight - attrs.socialsharePopupHeight) / 2 + ',left=' + ($window.innerWidth - attrs.socialsharePopupWidth) / 2);
|
804 | 810 | }
|
805 | 811 | , manageWhatsappShare = function manageWhatsappShare($window, $location, attrs, element) {
|
|
824 | 830 |
|
825 | 831 | $window.open(
|
826 | 832 | urlString
|
827 |
| - , 'sharer', 'toolbar=0,status=0,resizable=yes,width=' + attrs.socialsharePopupWidth + ',height=' + attrs.socialsharePopupHeight |
| 833 | + , 'TelegramSharer', 'toolbar=0,status=0,resizable=yes,width=' + attrs.socialsharePopupWidth + ',height=' + attrs.socialsharePopupHeight |
828 | 834 | + ',top=' + ($window.innerHeight - attrs.socialsharePopupHeight) / 2 + ',left=' + ($window.innerWidth - attrs.socialsharePopupWidth) / 2);
|
829 | 835 | }
|
830 | 836 | , skypeShare = function skypeShare($window, $location, attrs) {
|
|
836 | 842 |
|
837 | 843 | $window.open(
|
838 | 844 | urlString
|
839 |
| - , 'sharer', 'toolbar=0,status=0,resizable=yes,width=' + attrs.socialsharePopupWidth + ',height=' + attrs.socialsharePopupHeight |
| 845 | + , 'skypeSharer', 'toolbar=0,status=0,resizable=yes,width=' + attrs.socialsharePopupWidth + ',height=' + attrs.socialsharePopupHeight |
840 | 846 | + ',top=' + ($window.innerHeight - attrs.socialsharePopupHeight) / 2 + ',left=' + ($window.innerWidth - attrs.socialsharePopupWidth) / 2);
|
841 | 847 | }
|
842 | 848 | , sharingFunctions = {
|
|
0 commit comments