integrate star toggle for starred plugin

This commit is contained in:
Andreas Gohr 2017-04-20 11:52:12 +02:00
commit d4c5a4240d
3 changed files with 18 additions and 7 deletions

View file

@ -3,8 +3,11 @@
*/ */
/* + + + + + global + + + + + */ .page-attributes .starred svg {
height: 1.6em;
#dokuwiki__site { width: 1.6em;
}
.page-attributes .starred.on svg {
fill: @ini_link;
} }

View file

@ -105,6 +105,7 @@ css/plugins/edittable.less = all
css/plugins/extension__manager.less = all css/plugins/extension__manager.less = all
css/plugins/folded.less = all css/plugins/folded.less = all
css/plugins/configmanager.less = all css/plugins/configmanager.less = all
css/plugins/starred.less = all
; _____________ print styles _____________ ; _____________ print styles _____________

View file

@ -5,9 +5,10 @@ if(!defined('DOKU_INC')) die();
$doPlugin = plugin_load('helper', 'do'); $doPlugin = plugin_load('helper', 'do');
/** @var \helper_plugin_qc $qcPlugin */ /** @var \helper_plugin_qc $qcPlugin */
$qcPlugin = plugin_load('helper', 'qc'); $qcPlugin = plugin_load('helper', 'qc');
/** @var \action_plugin_starred $starredPlugin */
$starredPlugin = plugin_load('action', 'starred');
if($doPlugin !== null || $qcPlugin !== null || $starredPlugin !== null) {
if($doPlugin !== null || $qcPlugin !== null) {
echo '<ul class="page-attributes">'; echo '<ul class="page-attributes">';
} }
@ -40,7 +41,13 @@ if($doPlugin !== null) {
echo $markup; echo $markup;
} }
if($doPlugin !== null || $qcPlugin !== null) { if($starredPlugin !== null) {
echo '<li>';
$starredPlugin->tpl_starred();
echo '</li>';
}
if($doPlugin !== null || $qcPlugin !== null || $starredPlugin !== null) {
echo "</ul>"; echo "</ul>";
} }