Code Duplication    Length = 7-17 lines in 3 locations

modules/sharedaddy/sharing-sources.php 3 locations

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