mirror of
https://github.com/splitbrain/dokuwiki-plugin-dw2pdf.git
synced 2025-07-23 01:02:52 +00:00
add new files required for export button
This commit is contained in:
@ -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
3
lang/en/lang.php
Normal file
@ -0,0 +1,3 @@
|
||||
<?php
|
||||
|
||||
$lang['export_pdf_button'] = "Export to PDF";
|
BIN
pagetools-pdfexport-sprite.png
Normal file
BIN
pagetools-pdfexport-sprite.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.3 KiB |
23
style.css
Normal file
23
style.css
Normal 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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user