support the quicksubscribe plugin

This commit is contained in:
Andreas Gohr 2019-03-11 12:08:18 +01:00
commit ed91dc00ee
3 changed files with 33 additions and 0 deletions

View file

@ -7,6 +7,8 @@ $doPlugin = plugin_load('helper', 'do');
$qcPlugin = plugin_load('helper', 'qc');
/** @var \action_plugin_starred $starredPlugin */
$starredPlugin = plugin_load('action', 'starred');
/** @var \helper_plugin_quicksubscribe $quickSubPlugin */
$quickSubPlugin = plugin_load('helper', 'quicksubscribe');
if($doPlugin !== null || $qcPlugin !== null || $starredPlugin !== null) {
echo '<ul class="page-attributes">';
@ -48,6 +50,12 @@ if($starredPlugin !== null) {
echo '</li>';
}
if($quickSubPlugin !== null) {
echo '<li class="plugin_quicksubscribe">';
echo $quickSubPlugin->tpl_subscribe();
echo '</li>';
}
if($doPlugin !== null || $qcPlugin !== null || $starredPlugin !== null) {
echo "</ul>";
}