| @@ 1007-1023 (lines=17) @@ | ||
| 1004 | die(); |
|
| 1005 | } |
|
| 1006 | ||
| 1007 | public function display_footer() { |
|
| 1008 | if ( ! $this->smart ) { |
|
| 1009 | $this->js_dialog( $this->shortname, array( 'width' => 580, 'height' => 450 ) ); |
|
| 1010 | } else { |
|
| 1011 | ?><script type="text/javascript"> |
|
| 1012 | jQuery( document ).ready( function() { |
|
| 1013 | jQuery.getScript( 'https://platform.linkedin.com/in.js?async=true', function success() { |
|
| 1014 | IN.init(); |
|
| 1015 | }); |
|
| 1016 | }); |
|
| 1017 | jQuery( document.body ).on( 'post-load', function() { |
|
| 1018 | if ( typeof IN != 'undefined' ) |
|
| 1019 | IN.parse(); |
|
| 1020 | }); |
|
| 1021 | </script><?php |
|
| 1022 | } |
|
| 1023 | } |
|
| 1024 | } |
|
| 1025 | ||
| 1026 | class Share_Facebook extends Sharing_Source { |
|
| @@ 1551-1557 (lines=7) @@ | ||
| 1548 | die(); |
|
| 1549 | } |
|
| 1550 | ||
| 1551 | public function display_footer() { |
|
| 1552 | if ( $this->smart ) { |
|
| 1553 | ?><script id="tumblr-js" type="text/javascript" src="https://assets.tumblr.com/share-button.js"></script><?php |
|
| 1554 | } else { |
|
| 1555 | $this->js_dialog( $this->shortname, array( 'width' => 450, 'height' => 450 ) ); |
|
| 1556 | } |
|
| 1557 | } |
|
| 1558 | } |
|
| 1559 | ||
| 1560 | class Share_Pinterest extends Sharing_Source { |
|
| @@ 1768-1784 (lines=17) @@ | ||
| 1765 | return $this->build_amp_markup( $attrs ); |
|
| 1766 | } |
|
| 1767 | ||
| 1768 | function display_footer() { |
|
| 1769 | if ( $this->smart ) : |
|
| 1770 | ?> |
|
| 1771 | <script> |
|
| 1772 | // Don't use Pocket's default JS as it we need to force init new Pocket share buttons loaded via JS. |
|
| 1773 | function jetpack_sharing_pocket_init() { |
|
| 1774 | jQuery.getScript( 'https://widgets.getpocket.com/v1/j/btn.js?v=1' ); |
|
| 1775 | } |
|
| 1776 | jQuery( document ).ready( jetpack_sharing_pocket_init ); |
|
| 1777 | jQuery( document.body ).on( 'post-load', jetpack_sharing_pocket_init ); |
|
| 1778 | </script> |
|
| 1779 | <?php |
|
| 1780 | else : |
|
| 1781 | $this->js_dialog( $this->shortname, array( 'width' => 450, 'height' => 450 ) ); |
|
| 1782 | endif; |
|
| 1783 | ||
| 1784 | } |
|
| 1785 | ||
| 1786 | } |
|
| 1787 | ||
| @@ 1947-1972 (lines=26) @@ | ||
| 1944 | die(); |
|
| 1945 | } |
|
| 1946 | ||
| 1947 | public function display_footer() { |
|
| 1948 | if ( $this->smart ) : |
|
| 1949 | ?> |
|
| 1950 | <script> |
|
| 1951 | (function(r, d, s) { |
|
| 1952 | r.loadSkypeWebSdkAsync = r.loadSkypeWebSdkAsync || function(p) { |
|
| 1953 | var js, sjs = d.getElementsByTagName(s)[0]; |
|
| 1954 | if (d.getElementById(p.id)) { return; } |
|
| 1955 | js = d.createElement(s); |
|
| 1956 | js.id = p.id; |
|
| 1957 | js.src = p.scriptToLoad; |
|
| 1958 | js.onload = p.callback |
|
| 1959 | sjs.parentNode.insertBefore(js, sjs); |
|
| 1960 | }; |
|
| 1961 | var p = { |
|
| 1962 | scriptToLoad: 'https://swx.cdn.skype.com/shared/v/latest/skypewebsdk.js', |
|
| 1963 | id: 'skype_web_sdk' |
|
| 1964 | }; |
|
| 1965 | r.loadSkypeWebSdkAsync(p); |
|
| 1966 | })(window, document, 'script'); |
|
| 1967 | </script> |
|
| 1968 | <?php |
|
| 1969 | else : |
|
| 1970 | $this->js_dialog( $this->shortname, array( 'width' => 305, 'height' => 665 ) ); |
|
| 1971 | endif; |
|
| 1972 | } |
|
| 1973 | } |
|
| 1974 | ||