From b38f03c0e7218762d90fa5092696b127f24f36db Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Sun, 25 Jan 2026 07:07:26 +0000
Subject: [PATCH] =Some logical flaws in Queue.php, Queue.js, ContentExecutor.php, UploadExecutor.php - particularly with timeline ordering, frontend queue updates, etc

---
 inc/EmbedGenerator.php |   17 +++++------------
 1 files changed, 5 insertions(+), 12 deletions(-)

diff --git a/inc/EmbedGenerator.php b/inc/EmbedGenerator.php
index 1e15dce..63c1f11 100644
--- a/inc/EmbedGenerator.php
+++ b/inc/EmbedGenerator.php
@@ -67,7 +67,7 @@
         $legacy_url = 'https://legacytattooremoval.ca';
 
         // Build HTML with structured data for SEO
-        $html = <<<HTML
+		return <<<HTML
 <!-- edmonton.ink Artist Badge - Start -->
 <div id="$container_id" class="jvb-badge" style="max-width:200px; margin:12px auto; text-align:center;">
     <a href="$profile_url" target="_blank" rel="noopener"
@@ -117,7 +117,6 @@
 </div>
 <!-- edmonton.ink Artist Badge - End -->
 HTML;
-        return $html;
     }
 
     /**
@@ -133,7 +132,7 @@
         $container_id = 'jvb-badge' . $this->user_id;
         $legacy_url   = 'https://legacytattooremoval.ca';
 
-        $html = <<<HTML
+		return <<<HTML
 <!-- edmonton.ink Artist Badge - Start -->
 <div id="$container_id" style="max-width:150px; text-align:center;">
     <a href="$profile_url" target="_blank" rel="noopener"
@@ -160,8 +159,6 @@
 </div>
 <!-- edmonton.ink Artist Badge - End -->
 HTML;
-
-        return $html;
     }
 
     /**
@@ -179,7 +176,7 @@
             foreach ($style_ids as $style_id) {
                 $term = get_term((int) $style_id, BASE . 'style');
                 if ($term && !is_wp_error($term)) {
-                    $styles[] = $term->name;
+                    $styles[] = html_entity_decode($term->name);
                 }
             }
         }
@@ -199,7 +196,7 @@
         $container_id = 'jvb-badge-img-' . $this->user_id;
         $legacy_url   = 'https://legacytattooremoval.ca';
 
-        $html = <<<HTML
+		return <<<HTML
 <!-- edmonton.ink Artist Badge - Start -->
 <div id="$container_id" style="display:inline-block;">
     <a href="$profile_url" target="_blank" rel="noopener"
@@ -229,8 +226,6 @@
 </div>
 <!-- edmonton.ink Artist Badge - End -->
 HTML;
-
-        return $html;
     }
 
     /**
@@ -245,7 +240,7 @@
         $image_only_code = htmlspecialchars($this->getImageOnlyEmbedCode(), ENT_QUOTES, 'UTF-8');
         $preview         = $this->getEmbedCode();
 
-        $html = <<<HTML
+		return <<<HTML
 <div class="jvb-embed-code-container">
     <h3>Embed Code for Your Website</h3>
     <p>Copy this code to your website to show your edmonton.ink verified status and link back to your profile.</p>
@@ -303,7 +298,5 @@
     </div>
 </div>
 HTML;
-
-        return $html;
     }
 }

--
Gitblit v1.10.0