@@ 820-829 (lines=10) @@ | ||
817 | if ( ! $this->is_likes_visible() ) |
|
818 | return $content; |
|
819 | ||
820 | if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) { |
|
821 | $blog_id = get_current_blog_id(); |
|
822 | $bloginfo = get_blog_details( (int) $blog_id ); |
|
823 | $domain = $bloginfo->domain; |
|
824 | } else { |
|
825 | $blog_id = Jetpack_Options::get_option( 'id' ); |
|
826 | $url = home_url(); |
|
827 | $url_parts = parse_url( $url ); |
|
828 | $domain = $url_parts['host']; |
|
829 | } |
|
830 | // make sure to include the scripts before the iframe otherwise weird things happen |
|
831 | add_action( 'wp_footer', array( $this, 'likes_master' ), 21 ); |
|
832 | ||
@@ 865-874 (lines=10) @@ | ||
862 | if ( is_ssl() ) |
|
863 | $protocol = 'https'; |
|
864 | ||
865 | if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) { |
|
866 | $blog_id = get_current_blog_id(); |
|
867 | $bloginfo = get_blog_details( (int) $blog_id ); |
|
868 | $domain = $bloginfo->domain; |
|
869 | } else { |
|
870 | $blog_id = Jetpack_Options::get_option( 'id' ); |
|
871 | $url = home_url(); |
|
872 | $url_parts = parse_url( $url ); |
|
873 | $domain = $url_parts['host']; |
|
874 | } |
|
875 | // make sure to include the scripts before the iframe otherwise weird things happen |
|
876 | add_action( 'wp_footer', array( $this, 'likes_master' ), 21 ); |
|
877 | ||
@@ 904-913 (lines=10) @@ | ||
901 | if ( is_ssl() ) |
|
902 | $protocol = 'https'; |
|
903 | ||
904 | if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) { |
|
905 | $blog_id = get_current_blog_id(); |
|
906 | $bloginfo = get_blog_details( (int) $blog_id ); |
|
907 | $domain = $bloginfo->domain; |
|
908 | } else { |
|
909 | $blog_id = Jetpack_Options::get_option( 'id' ); |
|
910 | $url = home_url(); |
|
911 | $url_parts = parse_url( $url ); |
|
912 | $domain = $url_parts['host']; |
|
913 | } |
|
914 | // make sure to include the scripts before the iframe otherwise weird things happen |
|
915 | add_action( 'wp_footer', array( $this, 'likes_master' ), 21 ); |
|
916 |