GIT.Harvie.CZ
/
mirrors
/
DokuWiki-Plugin-SVGEdit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
c7beaa4
)
nicer links + titles
author
Harvie
<tomas@mudrunka.cz>
Mon, 28 Jun 2010 11:19:34 +0000
(13:19 +0200)
committer
Harvie
<tomas@mudrunka.cz>
Mon, 28 Jun 2010 11:19:34 +0000
(13:19 +0200)
syntax.php
patch
|
blob
|
blame
|
history
diff --git
a/syntax.php
b/syntax.php
index 2b8c0028afd9c6bd5a27fcffd748597c41ea7898..b536cabfff29c3178dc6f4cff7b7b96169195751 100755
(executable)
--- 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';
}
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)
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';
else
$svgtag='object '.$svg_parameters.' data';
- return '<a href="'.$svglink.'" type="image/svg+xml" /><'.$svgtag.'="'.$svglink.'" alt="'.$
alt
.'" type="image/svg+xml" /></a>'."<br />";
+ return '<a href="'.$svglink.'" type="image/svg+xml" /><'.$svgtag.'="'.$svglink.'" alt="'.$
title.'" title="'.$title
.'" type="image/svg+xml" /></a>'."<br />";
}
function render($format, &$renderer, $data) {
}
function render($format, &$renderer, $data) {
@@
-78,19
+78,19
@@
class syntax_plugin_svgedit extends DokuWiki_Syntax_Plugin {
if($data[0]==='<svg') {
$svgenc = $this->svg_base64_encode($data[1]);
if($data[0]==='<svg') {
$svgenc = $this->svg_base64_encode($data[1]);
- $renderer->doc .= $this->svg_format_embed($svgenc, '
svg-image
@'.$ID, $svg_dimensions);
+ $renderer->doc .= $this->svg_format_embed($svgenc, '
inline-svg
@'.$ID, $svg_dimensions);
return true;
}
if($data[0]==='{{sv') {
$svglink = exportlink($svg_wiki_page,'svg');
$renderer->doc .= $this->svg_format_embed($svglink, 'image:'.htmlspecialchars($svg_wiki_page), $svg_dimensions);
return true;
}
if($data[0]==='{{sv') {
$svglink = exportlink($svg_wiki_page,'svg');
$renderer->doc .= $this->svg_format_embed($svglink, 'image:'.htmlspecialchars($svg_wiki_page), $svg_dimensions);
- $renderer->doc .=
html_wikilink($svg_wiki_page,'svg@'.$svg_wiki_page)
;
+ $renderer->doc .=
'<small>'.html_wikilink($svg_wiki_page,'svg@'.$svg_wiki_page).'</small>'
;
return true;
}
if($data[0]==='{{SV') {
$svgenc = $this->svg_base64_encode(rawWiki($svg_wiki_page));
$renderer->doc .= $this->svg_format_embed($svgenc, 'image:'.htmlspecialchars($svg_wiki_page), $svg_dimensions);
return true;
}
if($data[0]==='{{SV') {
$svgenc = $this->svg_base64_encode(rawWiki($svg_wiki_page));
$renderer->doc .= $this->svg_format_embed($svgenc, 'image:'.htmlspecialchars($svg_wiki_page), $svg_dimensions);
- $renderer->doc .=
html_wikilink($svg_wiki_page,'SVG@'.$svg_wiki_page)
;
+ $renderer->doc .=
'<small>'.html_wikilink($svg_wiki_page,'SVG@'.$svg_wiki_page).'</small>'
;
return true;
}
}
return true;
}
}
This page took
0.125117 seconds
and
4
git commands to generate.