[packages/dokuwiki] add pdf and odt exports to new skin as well
glen
glen at pld-linux.org
Sat Sep 1 22:17:33 CEST 2012
commit 335f778dbd7ea7efbe3e4b82b06c49342237c821
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sat Sep 1 23:10:03 2012 +0300
add pdf and odt exports to new skin as well
more-buttons.patch | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
---
diff --git a/more-buttons.patch b/more-buttons.patch
index 6a2401e..f634aaa 100644
--- a/more-buttons.patch
+++ b/more-buttons.patch
@@ -41,3 +41,24 @@
<?php tpl_button('recent')?>
<?php tpl_searchform()?>
</div>
+--- dokuwiki/lib/tpl/dokuwiki/tpl_header.php~ 2012-09-01 22:54:08.000000000 +0300
++++ dokuwiki/lib/tpl/dokuwiki/tpl_header.php 2012-09-01 22:54:16.816853164 +0300
+@@ -64,6 +64,18 @@
+ </div>
+ <ul>
+ <?php
++ if (!plugin_isdisabled('html2pdf') || !plugin_isdisabled('dw2pdf')) {
++ echo '<li>';
++ tpl_link(wl($ID, 'do=export_pdf'), '<span>PDF Export</span>', 'class="action html2pdf"');
++ echo '</li>';
++ }
++
++ if (!plugin_isdisabled('odt')) {
++ echo '<li>';
++ tpl_link(wl($ID, 'do=export_odt'), '<span>ODT Export</span>', 'class="action odt"');
++ echo '</li>';
++ }
++
+ tpl_action('recent', 1, 'li');
+ tpl_action('media', 1, 'li');
+ tpl_action('index', 1, 'li');
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/dokuwiki.git/commitdiff/382fafee53e28225cd5abfde229175fa4a780bca
More information about the pld-cvs-commit
mailing list