Merge branch 'main' into joeykimsey-com

prep for deploy
This commit is contained in:
Joey Kimsey
2025-01-22 15:02:48 -05:00
42 changed files with 346 additions and 248 deletions

View File

@ -32,12 +32,12 @@ class Home extends AdminController {
}
public function index() {
Components::set( 'commentDash', '' );
if ( class_exists( 'TheTempusProject\Plugins\Comments' ) ) {
$plugin = new CommentPlugin;
if ( ! $plugin->checkEnabled() ) {
Debug::info( 'Comments Plugin is disabled in the control panel.' );
Components::set( 'commentDash', '' );
} else {
$comments = new Comments;
$commentList = Views::simpleView( 'comments.admin.dashboard', $comments->recent( 'all', 5 ) );