integrate star toggle for starred plugin
This commit is contained in:
parent
c22ee858b3
commit
d4c5a4240d
3 changed files with 18 additions and 7 deletions
|
@ -5,9 +5,10 @@ if(!defined('DOKU_INC')) die();
|
|||
$doPlugin = plugin_load('helper', 'do');
|
||||
/** @var \helper_plugin_qc $qcPlugin */
|
||||
$qcPlugin = plugin_load('helper', 'qc');
|
||||
/** @var \action_plugin_starred $starredPlugin */
|
||||
$starredPlugin = plugin_load('action', 'starred');
|
||||
|
||||
|
||||
if($doPlugin !== null || $qcPlugin !== null) {
|
||||
if($doPlugin !== null || $qcPlugin !== null || $starredPlugin !== null) {
|
||||
echo '<ul class="page-attributes">';
|
||||
}
|
||||
|
||||
|
@ -40,7 +41,13 @@ if($doPlugin !== null) {
|
|||
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>";
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue