]> git.pld-linux.org Git - packages/dokuwiki.git/blame - more-buttons.patch
include rev for NEWPAGE links
[packages/dokuwiki.git] / more-buttons.patch
CommitLineData
d056ce86
ER
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 @@
2ea88325
ER
4 // must be run from within DokuWiki
5 if (!defined('DOKU_INC')) die();
6
7+global $REV;
8+
2ea88325 9 ?>
d056ce86
ER
10 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
11 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
8db3697c 12@@ -66,6 +68,31 @@
c45fa6ea
ER
13 </div>
14
15 <div class="bar-right" id="bar__topright">
1414aec4 16+ <?php
6f11ed2d 17+ if (!plugin_isdisabled('html2pdf') || !plugin_isdisabled('dw2pdf')) { ?>
1414aec4
ER
18+ <form class="button" method="get" action="<?php wl($ID)?>">
19+ <div class="no">
8db3697c
ER
20+ <button type="submit" class="button">
21+ <img src="<?php echo DOKU_BASE?>lib/images/fileicons/pdf.png" alt="PDF Export" />
22+ Export to PDF
23+ </button>
1414aec4
ER
24+ <input type="hidden" name="do" value="export_pdf" />
25+ <input type="hidden" name="id" value="<?php echo $ID?>" />
2ea88325 26+ <input type="hidden" name="rev" value="<?php echo $REV ?>" />
1414aec4
ER
27+ </div>
28+ </form>
29+ <?php } ?>
30+ <?php
2cb7590e 31+ if (!plugin_isdisabled('odt')) { ?>
1414aec4
ER
32+ <form class="button" method="get" action="<?php wl($ID)?>">
33+ <div class="no">
34+ <input type="submit" value="Export to ODT" class="button" />
35+ <input type="hidden" name="do" value="export_odt" />
36+ <input type="hidden" name="id" value="<?php echo $ID?>" />
2ea88325 37+ <input type="hidden" name="rev" value="<?php echo $REV ?>" />
1414aec4
ER
38+ </div>
39+ </form>
40+ <?php } ?>
c45fa6ea
ER
41 <?php tpl_button('recent')?>
42 <?php tpl_searchform()?>&nbsp;
b679fa0b 43 </div>
382fafee
ER
44--- dokuwiki/lib/tpl/dokuwiki/tpl_header.php 2012-09-01 22:54:16.816853164 +0300
45+++ dokuwiki-2012-09-01/lib/tpl/dokuwiki/tpl_header.php 2012-09-01 23:14:51.484803869 +0300
46@@ -64,6 +64,19 @@
335f778d
ER
47 </div>
48 <ul>
49 <?php
382fafee 50+ global $REV;
335f778d
ER
51+ if (!plugin_isdisabled('html2pdf') || !plugin_isdisabled('dw2pdf')) {
52+ echo '<li>';
382fafee 53+ tpl_link(wl($ID, array('do' => 'export_pdf', 'rev' => $REV)), '<span>PDF Export</span>', 'class="action html2pdf"');
335f778d
ER
54+ echo '</li>';
55+ }
56+
57+ if (!plugin_isdisabled('odt')) {
58+ echo '<li>';
382fafee 59+ tpl_link(wl($ID, array('do' => 'export_odt', 'rev' => $REV)), '<span>ODT Export</span>', 'class="action odt"');
335f778d
ER
60+ echo '</li>';
61+ }
62+
63 tpl_action('recent', 1, 'li');
64 tpl_action('media', 1, 'li');
65 tpl_action('index', 1, 'li');
This page took 0.067622 seconds and 4 git commands to generate.