]> git.pld-linux.org Git - packages/dokuwiki.git/blame - more-buttons.patch
- add the new buttons to right side
[packages/dokuwiki.git] / more-buttons.patch
CommitLineData
2ea88325 1--- sidebar/main.php 2009-08-29 23:53:54.718210429 +0300
c45fa6ea 2+++ sidebar/main.php 2009-09-01 12:51:33.000000000 +0300
2ea88325
ER
3@@ -18,6 +18,8 @@
4 // must be run from within DokuWiki
5 if (!defined('DOKU_INC')) die();
6
7+global $REV;
8+
9 // include functions that provide sidebar functionality
10 @require_once(dirname(__FILE__).'/tplfn_sidebar.php');
11 ?>
c45fa6ea
ER
12@@ -66,6 +68,30 @@
13 </div>
14
15 <div class="bar-right" id="bar__topright">
1414aec4
ER
16+ <?php
17+ $pdf_plugin = &plugin_load('action','html2pdf');
18+ if ($pdf_plugin && !plugin_isdisabled($pdf_plugin->getPluginName())) { ?>
19+ <form class="button" method="get" action="<?php wl($ID)?>">
20+ <div class="no">
21+ <input type="submit" value="Export to PDF" class="button" />
22+ <input type="hidden" name="do" value="export_pdf" />
23+ <input type="hidden" name="id" value="<?php echo $ID?>" />
2ea88325 24+ <input type="hidden" name="rev" value="<?php echo $REV ?>" />
1414aec4
ER
25+ </div>
26+ </form>
27+ <?php } ?>
28+ <?php
29+ $odt_plugin = &plugin_load('renderer','odt');
30+ if ($odt_plugin && !plugin_isdisabled($odt_plugin->getPluginName())) { ?>
31+ <form class="button" method="get" action="<?php wl($ID)?>">
32+ <div class="no">
33+ <input type="submit" value="Export to ODT" class="button" />
34+ <input type="hidden" name="do" value="export_odt" />
35+ <input type="hidden" name="id" value="<?php echo $ID?>" />
2ea88325 36+ <input type="hidden" name="rev" value="<?php echo $REV ?>" />
1414aec4
ER
37+ </div>
38+ </form>
39+ <?php } ?>
c45fa6ea
ER
40 <?php tpl_button('recent')?>
41 <?php tpl_searchform()?>&nbsp;
b679fa0b 42 </div>
This page took 0.090749 seconds and 4 git commands to generate.