]> git.pld-linux.org Git - packages/dokuwiki.git/commitdiff
- add export pdf and export odt buttons; rel 2
authorElan Ruusamäe <glen@pld-linux.org>
Sat, 29 Aug 2009 21:03:01 +0000 (21:03 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    more-buttons.patch -> 1.1

more-buttons.patch [new file with mode: 0644]

diff --git a/more-buttons.patch b/more-buttons.patch
new file mode 100644 (file)
index 0000000..340a06a
--- /dev/null
@@ -0,0 +1,31 @@
+--- sidebar/main.php   2009-08-30 00:00:33.098142092 +0300
++++ sidebar/main.php   2009-08-29 23:53:54.718210429 +0300
+@@ -63,6 +63,28 @@
+       <div class="bar-left" id="bar__topleft">
+         <?php tpl_button('edit')?>
+         <?php tpl_button('history')?>
++              <?php
++              $pdf_plugin = &plugin_load('action','html2pdf');
++              if ($pdf_plugin && !plugin_isdisabled($pdf_plugin->getPluginName())) { ?>
++              <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?>" />
++                </div>
++              </form>
++              <?php } ?>
++              <?php
++              $odt_plugin = &plugin_load('renderer','odt');
++              if ($pdf_plugin && !plugin_isdisabled($pdf_plugin->getPluginName())) { ?>
++              <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?>" />
++                </div>
++              </form>
++              <?php } ?>
+       </div>
+       <div class="bar-right" id="bar__topright">
This page took 0.14648 seconds and 4 git commands to generate.