]> git.pld-linux.org Git - packages/dokuwiki.git/blobdiff - more-buttons.patch
update pear dep exclude
[packages/dokuwiki.git] / more-buttons.patch
index bb4ab24485fd89eb73e839132337d15b3cec4c1e..7cebd348c1088561cd4413050589758bb2e449ef 100644 (file)
@@ -1,40 +1,22 @@
---- dokuwiki-rc2011-11-10/lib/tpl/default/main.php~    2012-02-11 15:16:44.000000000 +0200
-+++ dokuwiki-rc2011-11-10/lib/tpl/default/main.php     2012-02-11 15:17:57.971423003 +0200
-@@ -15,6 +15,8 @@
- // must be run from within DokuWiki
- if (!defined('DOKU_INC')) die();
-+global $REV;
+--- dokuwiki-2015-08-10/lib/tpl/dokuwiki/tpl_header.php~       2015-08-11 15:39:31.799253674 +0300
++++ dokuwiki-2015-08-10/lib/tpl/dokuwiki/tpl_header.php        2015-08-11 15:39:49.525658460 +0300
+@@ -66,6 +66,19 @@
+             </div>
+             <ul>
+                 <?php
++                    global $REV;
++                    if (!plugin_isdisabled('html2pdf') || !plugin_isdisabled('dw2pdf')) {
++                        echo '<li>';
++                        tpl_link(wl($ID, array('do' => 'export_pdf', 'rev' => $REV)), '<span>PDF Export</span>', 'class="action html2pdf"');
++                        echo '</li>';
++                    }
 +
- ?>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
-  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-@@ -66,6 +68,28 @@
-       </div>
-       <div class="bar-right" id="bar__topright">
-+        <?php
-+        if (!plugin_isdisabled('html2pdf') || !plugin_isdisabled('dw2pdf')) { ?>
-+        <form class="button" method="get" action="<?php wl($ID)?>">
-+          <div class="no">
-+            <input type="submit" value="Export to PDF" class="button" />
-+            <input type="hidden" name="do" value="export_pdf" />
-+            <input type="hidden" name="id" value="<?php echo $ID?>" />
-+            <input type="hidden" name="rev" value="<?php echo $REV ?>" />
-+          </div>
-+        </form>
-+        <?php } ?>
-+        <?php
-+        if (!plugin_isdisabled('odt')) { ?>
-+        <form class="button" method="get" action="<?php wl($ID)?>">
-+          <div class="no">
-+            <input type="submit" value="Export to ODT" class="button" />
-+            <input type="hidden" name="do" value="export_odt" />
-+            <input type="hidden" name="id" value="<?php echo $ID?>" />
-+            <input type="hidden" name="rev" value="<?php echo $REV ?>" />
-+          </div>
-+        </form>
-+        <?php } ?>
-         <?php tpl_button('recent')?>
-         <?php tpl_searchform()?>&nbsp;
-       </div>
++                    if (!plugin_isdisabled('odt')) {
++                        echo '<li>';
++                        tpl_link(wl($ID, array('do' => 'export_odt', 'rev' => $REV)), '<span>ODT Export</span>', 'class="action odt"');
++                        echo '</li>';
++                    }
++
+                     tpl_toolsevent('sitetools', array(
+                         tpl_action('recent', true, 'li', true),
+                         tpl_action('media', true, 'li', true),
This page took 0.050293 seconds and 4 git commands to generate.