@@ 1451-1457 (lines=7) @@ | ||
1448 | die(); |
|
1449 | } |
|
1450 | ||
1451 | public function display_footer() { |
|
1452 | if ( $this->smart ) { |
|
1453 | ?><script id="tumblr-js" type="text/javascript" src="https://assets.tumblr.com/share-button.js"></script><?php |
|
1454 | } else { |
|
1455 | $this->js_dialog( $this->shortname, array( 'width' => 450, 'height' => 450 ) ); |
|
1456 | } |
|
1457 | } |
|
1458 | } |
|
1459 | ||
1460 | class Share_Pinterest extends Sharing_Source { |
|
@@ 1655-1671 (lines=17) @@ | ||
1652 | ||
1653 | } |
|
1654 | ||
1655 | function display_footer() { |
|
1656 | if ( $this->smart ) : |
|
1657 | ?> |
|
1658 | <script> |
|
1659 | // Don't use Pocket's default JS as it we need to force init new Pocket share buttons loaded via JS. |
|
1660 | function jetpack_sharing_pocket_init() { |
|
1661 | jQuery.getScript( 'https://widgets.getpocket.com/v1/j/btn.js?v=1' ); |
|
1662 | } |
|
1663 | jQuery( document ).ready( jetpack_sharing_pocket_init ); |
|
1664 | jQuery( document.body ).on( 'post-load', jetpack_sharing_pocket_init ); |
|
1665 | </script> |
|
1666 | <?php |
|
1667 | else : |
|
1668 | $this->js_dialog( $this->shortname, array( 'width' => 450, 'height' => 450 ) ); |
|
1669 | endif; |
|
1670 | ||
1671 | } |
|
1672 | ||
1673 | } |
|
1674 | ||
@@ 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 { |