]> git.pld-linux.org Git - packages/dokuwiki-tpl-sidebar.git/blame - more-buttons.patch
- add images/button-pld.png link
[packages/dokuwiki-tpl-sidebar.git] / more-buttons.patch
CommitLineData
9fa9a2aa 1--- sidebar/main.php 2009-09-01 12:51:33.000000000 +0300
5214ec5a 2+++ sidebar/main.php 2009-09-01 12:51:33.000000000 +0300
403c46fe
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 ?>
9fa9a2aa 12@@ -66,6 +68,28 @@
5214ec5a
ER
13 </div>
14
15 <div class="bar-right" id="bar__topright">
85f567df 16+ <?php
9fa9a2aa 17+ if (!plugin_isdisabled('html2pdf')) { ?>
85f567df
ER
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?>" />
403c46fe 23+ <input type="hidden" name="rev" value="<?php echo $REV ?>" />
85f567df
ER
24+ </div>
25+ </form>
26+ <?php } ?>
27+ <?php
9fa9a2aa 28+ if (!plugin_isdisabled('odt')) { ?>
85f567df
ER
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?>" />
403c46fe 34+ <input type="hidden" name="rev" value="<?php echo $REV ?>" />
85f567df
ER
35+ </div>
36+ </form>
37+ <?php } ?>
5214ec5a
ER
38 <?php tpl_button('recent')?>
39 <?php tpl_searchform()?>&nbsp;
381f50d9 40 </div>
This page took 0.063626 seconds and 4 git commands to generate.