-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support svg pagetool icon, state depends on page selection via js/css
svg has to path elements, selectable via a class via javascript class is toggled Fixes #104
- Loading branch information
Showing
5 changed files
with
91 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?php | ||
|
||
namespace dokuwiki\plugin\bookcreator; | ||
|
||
use dokuwiki\Menu\Item\AbstractItem; | ||
|
||
/** | ||
* Class MenuItem | ||
* | ||
* Implements the PDF export button for DokuWiki's menu system | ||
* | ||
* @package dokuwiki\plugin\bookcreator | ||
*/ | ||
class MenuItem extends AbstractItem { | ||
|
||
/** @var string do action for this plugin */ | ||
protected $type = 'plugin_bookcreator__addtobook'; | ||
|
||
/** @var string icon file */ | ||
protected $svg = __DIR__ . '/images/book-plusmin.svg'; | ||
|
||
/** | ||
* MenuItem constructor. | ||
*/ | ||
public function __construct() { | ||
parent::__construct(); | ||
// global $REV; | ||
// if($REV) $this->params['rev'] = $REV; | ||
} | ||
|
||
/** | ||
* Get label from plugin language file | ||
* | ||
* @return string | ||
*/ | ||
public function getLabel() { | ||
$hlp = plugin_load('action', 'bookcreator_pagetools'); | ||
$jslocal = $hlp->getLang('js'); | ||
return $jslocal['btn_addtobook']; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters