Commit 2eacfe48 authored by lucha's avatar lucha Committed by lechuck

remove hotlinking of images in creative-commons-license-widget

parent 298249d8
......@@ -81,7 +81,7 @@ function widget_ccLicense_init() {
// Creates widget configuration
$text = '';
$licenseText = '';
$imageUrl = '';
$imageUrl = plugins_url('images',__FILE__) . '/';
$licenseUrl = '';
$url = '';
......@@ -137,16 +137,16 @@ function widget_ccLicense_init() {
switch ($image) {
case 'somerights20':
$imageUrl = 'http://creativecommons.org/images/public/somerights20.png';
$imageUrl = $imageUrl . 'somerights20.png';
break;
case '80x15':
$imageUrl = 'http://i.creativecommons.org/l/' . $url . '/3.0/80x15.png';
$imageUrl = $imageUrl . $url . '-80x15.png';
break;
case '88x31':
$imageUrl = 'http://i.creativecommons.org/l/' . $url . '/3.0/88x31.png';
$imageUrl = $imageUrl . $url . '-88x31.png';
break;
default:
$imageUrl = 'http://creativecommons.org/images/public/somerights20.png';
$imageUrl = $imageUrl . 'somerights20.png';
break;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment