]> git.pld-linux.org Git - packages/dokuwiki.git/blob - more-buttons.patch
- export to pdf also for dw2pdf plugin
[packages/dokuwiki.git] / more-buttons.patch
1 --- dokuwiki-rc2011-11-10/lib/tpl/default/main.php~     2012-02-11 15:16:44.000000000 +0200
2 +++ dokuwiki-rc2011-11-10/lib/tpl/default/main.php      2012-02-11 15:17:57.971423003 +0200
3 @@ -15,6 +15,8 @@
4  // must be run from within DokuWiki
5  if (!defined('DOKU_INC')) die();
6  
7 +global $REV;
8 +
9  ?>
10  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
11   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
12 @@ -66,6 +68,28 @@
13        </div>
14  
15        <div class="bar-right" id="bar__topright">
16 +        <?php
17 +        if (!plugin_isdisabled('html2pdf') || !plugin_isdisabled('dw2pdf')) { ?>
18 +        <form class="button" method="get" action="<?php wl($ID)?>">
19 +          <div class="no">
20 +            <input type="submit" value="Export to PDF" class="button" />
21 +            <input type="hidden" name="do" value="export_pdf" />
22 +            <input type="hidden" name="id" value="<?php echo $ID?>" />
23 +            <input type="hidden" name="rev" value="<?php echo $REV ?>" />
24 +          </div>
25 +        </form>
26 +        <?php } ?>
27 +        <?php
28 +        if (!plugin_isdisabled('odt')) { ?>
29 +        <form class="button" method="get" action="<?php wl($ID)?>">
30 +          <div class="no">
31 +            <input type="submit" value="Export to ODT" class="button" />
32 +            <input type="hidden" name="do" value="export_odt" />
33 +            <input type="hidden" name="id" value="<?php echo $ID?>" />
34 +            <input type="hidden" name="rev" value="<?php echo $REV ?>" />
35 +          </div>
36 +        </form>
37 +        <?php } ?>
38          <?php tpl_button('recent')?>
39          <?php tpl_searchform()?>&nbsp;
40        </div>
This page took 0.024084 seconds and 3 git commands to generate.