widget_options['classname'].'-image-link" href="'.esc_url($link).'" target="'.esc_attr($linktarget).'">'; } if ( $imageurl ) { // --- StartHack --------------------------------------------- if( isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == "on" ) { $imageurl = str_replace('http://', 'https://', $imageurl); } else { $imageurl = str_replace('https://', 'http://', $imageurl); } // --- EndHack --------------------------------------------- echo '"; } if ( $link ) { echo ''; } } if ( !empty( $description ) ) { $text = apply_filters( 'widget_text', $description, $args, $instance ); echo '
"; } echo $after_widget; ?>