Merge pull request #126 from gkrid/master

Integration with the approve plugin
This commit is contained in:
Andreas Gohr 2025-08-07 18:11:28 +02:00 committed by GitHub
commit 236302b69d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 15 additions and 0 deletions

7
css/plugins/approve.less Normal file
View file

@ -0,0 +1,7 @@
/**
* This file provides styles for approve plugin
*/
#plugin__approve {
position: static;
display: inline;
}

View file

@ -117,6 +117,7 @@ css/plugins/data.less = all
css/plugins/fastwiki.less = all css/plugins/fastwiki.less = all
css/plugins/tplinc.less = all css/plugins/tplinc.less = all
css/plugins/translation.less = all css/plugins/translation.less = all
css/plugins/approve.less = all
; _____________ print styles _____________ ; _____________ print styles _____________

View file

@ -9,6 +9,8 @@ $qcPlugin = plugin_load('helper', 'qc');
$starredPlugin = plugin_load('action', 'starred'); $starredPlugin = plugin_load('action', 'starred');
/** @var \helper_plugin_quicksubscribe $quickSubPlugin */ /** @var \helper_plugin_quicksubscribe $quickSubPlugin */
$quickSubPlugin = plugin_load('helper', 'quicksubscribe'); $quickSubPlugin = plugin_load('helper', 'quicksubscribe');
/** @var \helper_plugin_approve_tpl $approvePlugin */
$approvePlugin = plugin_load('helper', 'approve_tpl');
if($doPlugin !== null || $qcPlugin !== null || $starredPlugin !== null) { if($doPlugin !== null || $qcPlugin !== null || $starredPlugin !== null) {
echo '<ul class="page-attributes">'; echo '<ul class="page-attributes">';
@ -63,3 +65,8 @@ if($quickSubPlugin !== null) {
if($doPlugin !== null || $qcPlugin !== null || $starredPlugin !== null) { if($doPlugin !== null || $qcPlugin !== null || $starredPlugin !== null) {
echo "</ul>"; echo "</ul>";
} }
if($approvePlugin !== null) {
global $ACT;
echo $approvePlugin->banner($ACT);
}