Code Duplication    Length = 7-17 lines in 3 locations

modules/sharedaddy/sharing-sources.php 3 locations

@@ 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 {
@@ 1435-1441 (lines=7) @@
1432
		die();
1433
	}
1434
1435
	public function display_footer() {
1436
		if ( $this->smart ) {
1437
			?><script id="tumblr-js" type="text/javascript" src="https://assets.tumblr.com/share-button.js"></script><?php
1438
		} else {
1439
			$this->js_dialog( $this->shortname, array( 'width' => 450, 'height' => 450 ) );
1440
		}
1441
	}
1442
}
1443
1444
class Share_Pinterest extends Sharing_Source {
@@ 1639-1655 (lines=17) @@
1636
1637
	}
1638
1639
	function display_footer() {
1640
		if ( $this->smart ) :
1641
		?>
1642
		<script>
1643
		// Don't use Pocket's default JS as it we need to force init new Pocket share buttons loaded via JS.
1644
		function jetpack_sharing_pocket_init() {
1645
			jQuery.getScript( 'https://widgets.getpocket.com/v1/j/btn.js?v=1' );
1646
		}
1647
		jQuery( document ).ready( jetpack_sharing_pocket_init );
1648
		jQuery( document.body ).on( 'post-load', jetpack_sharing_pocket_init );
1649
		</script>
1650
		<?php
1651
		else :
1652
			$this->js_dialog( $this->shortname, array( 'width' => 450, 'height' => 450 ) );
1653
		endif;
1654
1655
	}
1656
1657
}
1658