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() { ...@@ -81,7 +81,7 @@ function widget_ccLicense_init() {
// Creates widget configuration // Creates widget configuration
$text = ''; $text = '';
$licenseText = ''; $licenseText = '';
$imageUrl = ''; $imageUrl = plugins_url('images',__FILE__) . '/';
$licenseUrl = ''; $licenseUrl = '';
$url = ''; $url = '';
...@@ -137,16 +137,16 @@ function widget_ccLicense_init() { ...@@ -137,16 +137,16 @@ function widget_ccLicense_init() {
switch ($image) { switch ($image) {
case 'somerights20': case 'somerights20':
$imageUrl = 'http://creativecommons.org/images/public/somerights20.png'; $imageUrl = $imageUrl . 'somerights20.png';
break; break;
case '80x15': case '80x15':
$imageUrl = 'http://i.creativecommons.org/l/' . $url . '/3.0/80x15.png'; $imageUrl = $imageUrl . $url . '-80x15.png';
break; break;
case '88x31': case '88x31':
$imageUrl = 'http://i.creativecommons.org/l/' . $url . '/3.0/88x31.png'; $imageUrl = $imageUrl . $url . '-88x31.png';
break; break;
default: default:
$imageUrl = 'http://creativecommons.org/images/public/somerights20.png'; $imageUrl = $imageUrl . 'somerights20.png';
break; 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