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