]> git.pld-linux.org Git - packages/dokuwiki.git/commitdiff
- add directlink attr to links if media link is not direct (for lightbox)
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 12 Mar 2009 20:36:57 +0000 (20:36 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    dokuwiki-media-directlink.patch -> 1.1

dokuwiki-media-directlink.patch [new file with mode: 0644]

diff --git a/dokuwiki-media-directlink.patch b/dokuwiki-media-directlink.patch
new file mode 100644 (file)
index 0000000..984b4cf
--- /dev/null
@@ -0,0 +1,12 @@
+--- dokuwiki-2009-02-14/inc/parser/xhtml.php~  2009-02-14 14:13:25.000000000 +0200
++++ dokuwiki-2009-02-14/inc/parser/xhtml.php   2009-03-12 22:05:27.933270570 +0200
+@@ -680,6 +680,9 @@
+         list($ext,$mime,$dl) = mimetype($src);
+         if(substr($mime,0,5) == 'image' && $render){
+             $link['url'] = ml($src,array('id'=>$ID,'cache'=>$cache),($linking=='direct'));
++            if ($linking != 'direct' && $linking != 'nolink') {
++                $link['more'] .= 'directlink="'.ml($src,array('id'=>$ID,'cache'=>$cache), true). '"';
++            }
+         }elseif($mime == 'application/x-shockwave-flash' && $render){
+             // don't link flash movies
+             $noLink = true;
This page took 0.069461 seconds and 4 git commands to generate.