| @@ 936-952 (lines=17) @@ | ||
| 933 | die(); | |
| 934 | } | |
| 935 | ||
| 936 | 	public function display_footer() { | |
| 937 | 		if ( ! $this->smart ) { | |
| 938 | $this->js_dialog( $this->shortname, array( 'width' => 580, 'height' => 450 ) ); | |
| 939 | 		} else { | |
| 940 | ?><script type="text/javascript"> | |
| 941 | 			jQuery( document ).ready( function() { | |
| 942 | 				jQuery.getScript( 'https://platform.linkedin.com/in.js?async=true', function success() { | |
| 943 | IN.init(); | |
| 944 | }); | |
| 945 | }); | |
| 946 | 			jQuery( document.body ).on( 'post-load', function() { | |
| 947 | if ( typeof IN != 'undefined' ) | |
| 948 | IN.parse(); | |
| 949 | }); | |
| 950 | </script><?php | |
| 951 | } | |
| 952 | } | |
| 953 | } | |
| 954 | ||
| 955 | class Share_Facebook extends Sharing_Source { | |
| @@ 1443-1449 (lines=7) @@ | ||
| 1440 | die(); | |
| 1441 | } | |
| 1442 | ||
| 1443 | 	public function display_footer() { | |
| 1444 | 		if ( $this->smart ) { | |
| 1445 | ?><script id="tumblr-js" type="text/javascript" src="https://assets.tumblr.com/share-button.js"></script><?php | |
| 1446 | 		} else { | |
| 1447 | $this->js_dialog( $this->shortname, array( 'width' => 450, 'height' => 450 ) ); | |
| 1448 | } | |
| 1449 | } | |
| 1450 | } | |
| 1451 | ||
| 1452 | class Share_Pinterest extends Sharing_Source { | |
| @@ 1647-1663 (lines=17) @@ | ||
| 1644 | ||
| 1645 | } | |
| 1646 | ||
| 1647 | 	function display_footer() { | |
| 1648 | if ( $this->smart ) : | |
| 1649 | ?> | |
| 1650 | <script> | |
| 1651 | // Don't use Pocket's default JS as it we need to force init new Pocket share buttons loaded via JS. | |
| 1652 | 		function jetpack_sharing_pocket_init() { | |
| 1653 | jQuery.getScript( 'https://widgets.getpocket.com/v1/j/btn.js?v=1' ); | |
| 1654 | } | |
| 1655 | jQuery( document ).ready( jetpack_sharing_pocket_init ); | |
| 1656 | jQuery( document.body ).on( 'post-load', jetpack_sharing_pocket_init ); | |
| 1657 | </script> | |
| 1658 | <?php | |
| 1659 | else : | |
| 1660 | $this->js_dialog( $this->shortname, array( 'width' => 450, 'height' => 450 ) ); | |
| 1661 | endif; | |
| 1662 | ||
| 1663 | } | |
| 1664 | ||
| 1665 | } | |
| 1666 | ||