Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions modules/services.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,22 +65,22 @@ function link( $url, $alt, $icon, $width, $height, $blank=true ){
*/
function hatena()
{
$url = "http://b.hatena.ne.jp/add?mode=confirm&url={$this->encode_url}&title={$this->encode_title}";
$url = "//b.hatena.ne.jp/add?mode=confirm&url={$this->encode_url}&title={$this->encode_title}";
$alt = __( "Bookmark this on Hatena Bookmark", WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN );
$icon = WP_SOCIAL_BOOKMARKING_LIGHT_IMAGES_URL."/hatena.gif";
return $this->link( $url, $alt, $icon, 16, 12 );
}
function hatena_users()
{
$url = "http://b.hatena.ne.jp/entry/{$this->url}";
$url = "//b.hatena.ne.jp/entry/{$this->url}";
$alt = sprintf( __("Hatena Bookmark - %s", WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN), $this->title );
$icon = "http://b.hatena.ne.jp/entry/image/{$this->url}";
$icon = "//b.hatena.ne.jp/entry/image/{$this->url}";
return $this->link( $url, $alt, $icon, null, null );
}
function hatena_button()
{
$options = wp_social_bookmarking_light_options();
$url = "http://b.hatena.ne.jp/entry/{$this->url}";
$url = "//b.hatena.ne.jp/entry/{$this->url}";
$title = $this->title;
$alt = __( "Bookmark this on Hatena Bookmark", WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN );
return $this->link_raw('<a href="'.$url.'"'
Expand Down