From e9967fa22781d922ba4eb8fb44fe72d200ac4b14 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Mon, 10 Nov 2025 21:04:10 +0000
Subject: [PATCH] =IconsManager.php update

---
 JVBase.php |   13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/JVBase.php b/JVBase.php
index e6fe838..8894d0c 100644
--- a/JVBase.php
+++ b/JVBase.php
@@ -3,6 +3,7 @@
 
 use JVBase\integrations\BlueSky;
 use JVBase\managers\ErrorHandler;
+use JVBase\managers\LoginManager;
 use JVBase\managers\OperationQueue;
 use JVBase\managers\DashboardManager;
 use JVBase\managers\ReferralManager;
@@ -24,6 +25,7 @@
 use JVBase\rest\routes\QueueRoutes;
 use JVBase\rest\routes\ErrorRoutes;
 use JVBase\rest\routes\FormRoutes;
+use JVBase\rest\routes\LoginRoutes;
 use JVBase\rest\routes\NewsRoutes;
 use JVBase\rest\routes\ReferralRoutes;
 use JVBase\rest\routes\MagicLinkRoutes;
@@ -60,6 +62,7 @@
 		'gmb' => 'JVBase\integrations\GoogleMyBusiness',
 		'cloudflare' => 'JVBase\integrations\Cloudflare',
 		'umami' => 'JVBase\integrations\Umami',
+		'postmark' => 'JVBase\integrations\PostMark',
 	];
 
     public static function getInstance():JVB
@@ -103,6 +106,7 @@
 		}
 
         $this->routes = [
+			'login'			=> new LoginRoutes(),
 			'integrations'	=> new IntegrationsRoutes(),
 		];
         if (jvbSiteUsesFeedBlock()) {
@@ -116,10 +120,10 @@
             $this->routes['term'] = new TermRoutes();
         }
 
+		$this->routes['queue']  = new QueueRoutes();
+		$this->routes['settings']= new SettingsRoutes();
+		$this->routes['upload'] = new UploadRoutes();
         if (jvbSiteHasDashboard()) {
-            $this->routes['upload'] = new UploadRoutes();
-            $this->routes['settings']= new SettingsRoutes();
-            $this->routes['queue']  = new QueueRoutes();
             $this->routes['error']  = new ErrorRoutes();
             $this->routes['admin']  = new AdminRoutes();
             $this->routes['content']= new ContentRoutes();
@@ -276,6 +280,9 @@
 
 	public function additionalActions():void
 	{
+		if (LoginManager::isLogin()) {
+			return;
+		}
 		$extras = apply_filters('jvbAdditionalActions', []);
 		$extras = array_filter($extras, function ($extra) {
 			return is_array($extra) && array_key_exists('button', $extra) && array_key_exists('content', $extra);

--
Gitblit v1.10.0