streams/Code/Module/Comment_control.php
2022-02-15 20:08:28 -08:00

29 lines
769 B
PHP

<?php
namespace Code\Module;
use Code\Lib\Apps;
use Code\Lib\Libsync;
use Code\Web\Controller;
class Comment_control extends Controller
{
public function get()
{
$desc = t('This app allows you to select the comment audience and set a length of time that comments on a particular post will be accepted.');
$text = '<div class="section-content-info-wrapper">' . $desc . '</div>';
if (!(local_channel() && Apps::system_app_installed(local_channel(), 'Comment Control'))) {
return $text;
}
$desc = t('This app is installed. A button to control comments may be found below the post editor.');
$text = '<div class="section-content-info-wrapper">' . $desc . '</div>';
return $text;
}
}