@@ 768-777 (lines=10) @@ | ||
765 | if ( ! $this->is_likes_visible() ) |
|
766 | return $content; |
|
767 | ||
768 | if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) { |
|
769 | $blog_id = get_current_blog_id(); |
|
770 | $bloginfo = get_blog_details( (int) $blog_id ); |
|
771 | $domain = $bloginfo->domain; |
|
772 | } else { |
|
773 | $blog_id = Jetpack_Options::get_option( 'id' ); |
|
774 | $url = home_url(); |
|
775 | $url_parts = parse_url( $url ); |
|
776 | $domain = $url_parts['host']; |
|
777 | } |
|
778 | // make sure to include the scripts before the iframe otherwise weird things happen |
|
779 | add_action( 'wp_footer', array( $this, 'likes_master' ), 21 ); |
|
780 | ||
@@ 813-822 (lines=10) @@ | ||
810 | if ( is_ssl() ) |
|
811 | $protocol = 'https'; |
|
812 | ||
813 | if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) { |
|
814 | $blog_id = get_current_blog_id(); |
|
815 | $bloginfo = get_blog_details( (int) $blog_id ); |
|
816 | $domain = $bloginfo->domain; |
|
817 | } else { |
|
818 | $blog_id = Jetpack_Options::get_option( 'id' ); |
|
819 | $url = home_url(); |
|
820 | $url_parts = parse_url( $url ); |
|
821 | $domain = $url_parts['host']; |
|
822 | } |
|
823 | // make sure to include the scripts before the iframe otherwise weird things happen |
|
824 | add_action( 'wp_footer', array( $this, 'likes_master' ), 21 ); |
|
825 | ||
@@ 852-861 (lines=10) @@ | ||
849 | if ( is_ssl() ) |
|
850 | $protocol = 'https'; |
|
851 | ||
852 | if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) { |
|
853 | $blog_id = get_current_blog_id(); |
|
854 | $bloginfo = get_blog_details( (int) $blog_id ); |
|
855 | $domain = $bloginfo->domain; |
|
856 | } else { |
|
857 | $blog_id = Jetpack_Options::get_option( 'id' ); |
|
858 | $url = home_url(); |
|
859 | $url_parts = parse_url( $url ); |
|
860 | $domain = $url_parts['host']; |
|
861 | } |
|
862 | // make sure to include the scripts before the iframe otherwise weird things happen |
|
863 | add_action( 'wp_footer', array( $this, 'likes_master' ), 21 ); |
|
864 |