SOURCES: dokuwiki-media-directlink.patch (NEW) - add directlink attr to lin...

glen glen at pld-linux.org
Thu Mar 12 21:37:03 CET 2009


Author: glen                         Date: Thu Mar 12 20:37:03 2009 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- add directlink attr to links if media link is not direct (for lightbox)

---- Files affected:
SOURCES:
   dokuwiki-media-directlink.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/dokuwiki-media-directlink.patch
diff -u /dev/null SOURCES/dokuwiki-media-directlink.patch:1.1
--- /dev/null	Thu Mar 12 21:37:04 2009
+++ SOURCES/dokuwiki-media-directlink.patch	Thu Mar 12 21:36:57 2009
@@ -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;
================================================================


More information about the pld-cvs-commit mailing list