includes/wikiengine/Render/Xhtml/Url.php
changeset 67 f6454d5fec7a
parent 21 663fcf528726
equal deleted inserted replaced
66:52017732bc20 67:f6454d5fec7a
    98 				// allow targets on non-anchor non-mailto links
    98 				// allow targets on non-anchor non-mailto links
    99                 $target = $this->getConf('target');
    99                 $target = $this->getConf('target');
   100             }
   100             }
   101 
   101 
   102             // generate a regular link (not an image)
   102             // generate a regular link (not an image)
   103             $text = $this->textEncode($text);
   103             // $text = $this->textEncode($text);
   104             $css = $this->formatConf(' class="%s"', "css_$type");
   104             $css = $this->formatConf(' class="%s"', "css_$type");
   105             $output = "<a$css href={$quote}$href{$quote}";
   105             $output = "<a$css href={$quote}$href{$quote}";
       
   106             
       
   107             // hackish fix for the "external" image in Oxygen [added for Enano]
       
   108             if ( preg_match('/<(.+?)>/is', $text) )
       
   109             {
       
   110               $output .= ' style="background-image: none; padding-right: 0;"';
       
   111             }
   106 
   112 
   107             if ($target) {
   113             if ($target) {
   108                 // use a "popup" window.  this is XHTML compliant, suggested by
   114                 // use a "popup" window.  this is XHTML compliant, suggested by
   109                 // Aaron Kalin.  uses the $target as the new window name.
   115                 // Aaron Kalin.  uses the $target as the new window name.
   110                 $target = $this->textEncode($target);
   116                 $target = $this->textEncode($target);