Edit wppa-potd-widget.php.
Find line 71, it reads:
.
if ($link) $widget_content .= "\n\t".'</a>';
}
else { // No image
$widget_content .= __a('Photo not found.', 'wppa_theme');
}
Change to:
.
if ($link) $widget_content .= "\n\t".'</a>';
// Pinterest
$thumb = $image;
$desc = urlencode(sprintf(__a('See this image on %s'), str_replace('&', __a('and'), get_bloginfo('name')))).': '.urlencode(strip_shortcodes(wppa_strip_tags(wppa_get_photo_desc($thumb['id'])), 'all')).'" ';
if ( strlen($desc) > 500) $desc = substr($desc, 0, 495).'...';
$pi = '<div style="float:left; padding:2px;" >';
$pi .= '<a title="'.sprintf(__a('Share %s on Pinterest', 'wppa'), esc_attr(__(stripslashes($thumb['name'])))).'" ';
$pi .= 'href="https://pinterest.com/pin/create/button/?url='.urlencode(wppa_convert_to_pretty(str_replace('&', '&', wppa_get_image_page_url_by_id($thumb['id'], $wppa_opt['wppa_share_single_image']))));
$pi .= '&media='.urlencode(str_replace('/thumbs/', '/', wppa_get_thumb_url($thumb['id']))); // Fullsize image
$pi .= '&description='.$desc;
$pi .= 'target="_blank" >';//'class="pin-it-button" count-layout="horizontal" >';
$pi .= '<img src="'.wppa_get_imgdir().'pinterest.png" style="height:16px;" alt="Pin it!" />'; //border="0" src="//assets.pinterest.com/images/PinExt.png" title="Pin It" />';
$pi .= '</a>';
$pi .= '</div>';
$widget_content .= $pi;
}
else { // No image
$widget_content .= __a('Photo not found.', 'wppa_theme');
}
Keep this file as it will be overwritten at the next update!!!