]> git.pld-linux.org Git - packages/dokuwiki-tpl-sidebar.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:
    dokuwiki-tpl-sidebar.spec -> 1.11
    more-buttons.patch -> 1.1

dokuwiki-tpl-sidebar.spec
more-buttons.patch [new file with mode: 0644]

index e20b3d50caebebb7979db38df6f84c44fcbe9254..e090629da722af5534ed476517c4b2ff9a3013fa 100644 (file)
@@ -5,13 +5,14 @@ Summary:      Sidebar navigation with DokuWiki
 Summary(pl.UTF-8):     Nawigacja po sidebarze przy użyciu DokuWiki
 Name:          dokuwiki-tpl-sidebar
 Version:       %{ver}
 Summary(pl.UTF-8):     Nawigacja po sidebarze przy użyciu DokuWiki
 Name:          dokuwiki-tpl-sidebar
 Version:       %{ver}
-Release:       1
+Release:       2
 License:       GPL
 Group:         Applications/WWW
 Source0:       http://dokuwiki.jalakai.co.uk/template-sidebar-rc%{snap}.zip
 # Source0-md5: 7a36b63e86d00f72eecae2ba80334fdd
 Patch0:                backlink-rightside.patch
 License:       GPL
 Group:         Applications/WWW
 Source0:       http://dokuwiki.jalakai.co.uk/template-sidebar-rc%{snap}.zip
 # Source0-md5: 7a36b63e86d00f72eecae2ba80334fdd
 Patch0:                backlink-rightside.patch
-URL:           http://wiki.jalakai.co.uk/dokuwiki/
+Patch1:                more-buttons.patch
+URL:           http://www.dokuwiki.org/template:sidebar
 BuildRequires: rpmbuild(macros) >= 1.268
 Requires:      dokuwiki >= 20090126
 BuildArch:     noarch
 BuildRequires: rpmbuild(macros) >= 1.268
 Requires:      dokuwiki >= 20090126
 BuildArch:     noarch
@@ -37,6 +38,7 @@ ile to możliwe.
 %prep
 %setup -q -n %{tpl}
 %patch0 -p1
 %prep
 %setup -q -n %{tpl}
 %patch0 -p1
+%patch1 -p1
 
 cat > INSTALL <<'EOF'
 To activate this template add the following to your conf/local.php file:
 
 cat > INSTALL <<'EOF'
 To activate this template add the following to your conf/local.php file:
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.051941 seconds and 4 git commands to generate.