add new files required for export button

This commit is contained in:
Gerrit Uitslag
2014-01-07 21:54:01 +01:00
parent 6be736bf1f
commit 3cc6f95e78
4 changed files with 27 additions and 0 deletions

View File

@ -188,6 +188,7 @@ class action_plugin_dw2pdf extends DokuWiki_Action_Plugin {
switch($conf['template']) {
case 'dokuwiki':
case 'arago':
$event->data['items']['export_pdf'] =
'<li>'
.'<a href='.wl($ID, $params).' class="action export_pdf" rel="nofollow" title="'.$this->getLang('export_pdf_button').'">'

3
lang/en/lang.php Normal file
View File

@ -0,0 +1,3 @@
<?php
$lang['export_pdf_button'] = "Export to PDF";

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

23
style.css Normal file
View File

@ -0,0 +1,23 @@
/**
* dw2pdf export_pdf pagetool icon
*/
/* export icon */
#dokuwiki__pagetools ul li a.export_pdf {
background-position: right 0;
}
#dokuwiki__pagetools ul li a.export_pdf:before {
content: url(pagetools-pdfexport-sprite.png);
margin-top: 0;
}
#dokuwiki__pagetools:hover ul li a.export_pdf,
#dokuwiki__pagetools ul li a.export_pdf:focus,
#dokuwiki__pagetools ul li a.export_pdf:active {
background-image: url(pagetools-pdfexport-sprite.png);
}
#dokuwiki__pagetools ul li a.export_pdf:hover,
#dokuwiki__pagetools ul li a.export_pdf:active,
#dokuwiki__pagetools ul li a.export_pdf:focus {
background-position: right -45px;
}