]> git.pld-linux.org Git - packages/dokuwiki.git/commitdiff
add pdf and odt exports to new skin as well
authorElan Ruusamäe <glen@delfi.ee>
Sat, 1 Sep 2012 20:10:03 +0000 (23:10 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Sat, 1 Sep 2012 20:10:03 +0000 (23:10 +0300)
more-buttons.patch

index 6a2401ea7fd6a80d9b015e3e316d7c4c9b3b836f..f634aaaa0c23a5660b6b9b3c12b91c5dfb0b7b7a 100644 (file)
          <?php tpl_button('recent')?>
          <?php tpl_searchform()?>&nbsp;
        </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');
This page took 0.094526 seconds and 4 git commands to generate.