| @@ 1018-1034 (lines=17) @@ | ||
| 1015 | die(); |
|
| 1016 | } |
|
| 1017 | ||
| 1018 | public function display_footer() { |
|
| 1019 | if ( ! $this->smart ) { |
|
| 1020 | $this->js_dialog( $this->shortname, array( 'width' => 580, 'height' => 450 ) ); |
|
| 1021 | } else { |
|
| 1022 | ?><script type="text/javascript"> |
|
| 1023 | jQuery( document ).ready( function() { |
|
| 1024 | jQuery.getScript( 'https://platform.linkedin.com/in.js?async=true', function success() { |
|
| 1025 | IN.init(); |
|
| 1026 | }); |
|
| 1027 | }); |
|
| 1028 | jQuery( document.body ).on( 'post-load', function() { |
|
| 1029 | if ( typeof IN != 'undefined' ) |
|
| 1030 | IN.parse(); |
|
| 1031 | }); |
|
| 1032 | </script><?php |
|
| 1033 | } |
|
| 1034 | } |
|
| 1035 | } |
|
| 1036 | ||
| 1037 | class Share_Facebook extends Sharing_Source { |
|
| @@ 1562-1568 (lines=7) @@ | ||
| 1559 | die(); |
|
| 1560 | } |
|
| 1561 | ||
| 1562 | public function display_footer() { |
|
| 1563 | if ( $this->smart ) { |
|
| 1564 | ?><script id="tumblr-js" type="text/javascript" src="https://assets.tumblr.com/share-button.js"></script><?php |
|
| 1565 | } else { |
|
| 1566 | $this->js_dialog( $this->shortname, array( 'width' => 450, 'height' => 450 ) ); |
|
| 1567 | } |
|
| 1568 | } |
|
| 1569 | } |
|
| 1570 | ||
| 1571 | class Share_Pinterest extends Sharing_Source { |
|
| @@ 1779-1795 (lines=17) @@ | ||
| 1776 | return $this->build_amp_markup( $attrs ); |
|
| 1777 | } |
|
| 1778 | ||
| 1779 | function display_footer() { |
|
| 1780 | if ( $this->smart ) : |
|
| 1781 | ?> |
|
| 1782 | <script> |
|
| 1783 | // Don't use Pocket's default JS as it we need to force init new Pocket share buttons loaded via JS. |
|
| 1784 | function jetpack_sharing_pocket_init() { |
|
| 1785 | jQuery.getScript( 'https://widgets.getpocket.com/v1/j/btn.js?v=1' ); |
|
| 1786 | } |
|
| 1787 | jQuery( document ).ready( jetpack_sharing_pocket_init ); |
|
| 1788 | jQuery( document.body ).on( 'post-load', jetpack_sharing_pocket_init ); |
|
| 1789 | </script> |
|
| 1790 | <?php |
|
| 1791 | else : |
|
| 1792 | $this->js_dialog( $this->shortname, array( 'width' => 450, 'height' => 450 ) ); |
|
| 1793 | endif; |
|
| 1794 | ||
| 1795 | } |
|
| 1796 | ||
| 1797 | } |
|
| 1798 | ||
| @@ 1958-1983 (lines=26) @@ | ||
| 1955 | die(); |
|
| 1956 | } |
|
| 1957 | ||
| 1958 | public function display_footer() { |
|
| 1959 | if ( $this->smart ) : |
|
| 1960 | ?> |
|
| 1961 | <script> |
|
| 1962 | (function(r, d, s) { |
|
| 1963 | r.loadSkypeWebSdkAsync = r.loadSkypeWebSdkAsync || function(p) { |
|
| 1964 | var js, sjs = d.getElementsByTagName(s)[0]; |
|
| 1965 | if (d.getElementById(p.id)) { return; } |
|
| 1966 | js = d.createElement(s); |
|
| 1967 | js.id = p.id; |
|
| 1968 | js.src = p.scriptToLoad; |
|
| 1969 | js.onload = p.callback |
|
| 1970 | sjs.parentNode.insertBefore(js, sjs); |
|
| 1971 | }; |
|
| 1972 | var p = { |
|
| 1973 | scriptToLoad: 'https://swx.cdn.skype.com/shared/v/latest/skypewebsdk.js', |
|
| 1974 | id: 'skype_web_sdk' |
|
| 1975 | }; |
|
| 1976 | r.loadSkypeWebSdkAsync(p); |
|
| 1977 | })(window, document, 'script'); |
|
| 1978 | </script> |
|
| 1979 | <?php |
|
| 1980 | else : |
|
| 1981 | $this->js_dialog( $this->shortname, array( 'width' => 305, 'height' => 665 ) ); |
|
| 1982 | endif; |
|
| 1983 | } |
|
| 1984 | } |
|
| 1985 | ||