X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;f=syntax.php;fp=syntax.php;h=b536cabfff29c3178dc6f4cff7b7b96169195751;hb=d7de41a44642e2ba9689c479453e3c593bf2cb85;hp=2b8c0028afd9c6bd5a27fcffd748597c41ea7898;hpb=c7beaa42e766a3c85c8a30ac1b9c1e0a1df33be1;p=mirrors%2FDokuWiki-Plugin-SVGEdit.git
diff --git a/syntax.php b/syntax.php
index 2b8c002..b536cab 100755
--- a/syntax.php
+++ b/syntax.php
@@ -52,7 +52,7 @@ class syntax_plugin_svgedit extends DokuWiki_Syntax_Plugin {
return 'data:image/svg+xml;base64,'.base64_encode($svg).'" type="image/svg+xml';
}
- function svg_format_embed($svglink, $alt, $svg_parameters) { //create xhtml code for svg embeding
+ function svg_format_embed($svglink, $title, $svg_parameters) { //create xhtml code for svg embeding
global $ID;
//use object tag for stupid browsers (like firefox) - ugly (relies on browser identification)
@@ -62,7 +62,7 @@ class syntax_plugin_svgedit extends DokuWiki_Syntax_Plugin {
else
$svgtag='object '.$svg_parameters.' data';
- return '<'.$svgtag.'="'.$svglink.'" alt="'.$alt.'" type="image/svg+xml" />'."
";
+ return '<'.$svgtag.'="'.$svglink.'" alt="'.$title.'" title="'.$title.'" type="image/svg+xml" />'."
";
}
function render($format, &$renderer, $data) {
@@ -78,19 +78,19 @@ class syntax_plugin_svgedit extends DokuWiki_Syntax_Plugin {
if($data[0]==='