Jake Vanderwerf
2025-12-23 25be5747a6e462a3d09fc6607b3639b79e4d9374
inc/managers/NotificationManager.php
@@ -1069,16 +1069,17 @@
        }
        // Add footer content
        $content .= '<div class="divider"></div>';
        $content .= sprintf(
            '<p>You\'re receiving this %s digest because you follow artists on edmonton.ink. ' .
            'You can <a href="%s" class="text-link">adjust your notification settings</a> at any time.</p>',
            $frequency,
            esc_url(add_query_arg([
      $content .= JVB()->email()->divider();
      $settings_url = add_query_arg([
                'utm_source'   => 'email',
                'utm_medium'   => 'digest',
                'utm_campaign' => $this->campaign
            ], site_url('/dash/settings/')))
      ], site_url('/dash/settings/'));
      $content .= sprintf(
         '<p>You\'re receiving this %s digest because you follow artists on edmonton.ink. You can %s at any time.</p>',
         $frequency,
         '<a href="' . esc_url($settings_url) . '">adjust your notification settings</a>'
        );
        return $content;
@@ -1240,8 +1241,7 @@
            return '';
        }
        $content = '<h3>Other Updates</h3>';
        $content .= '<ul style="padding-left: 20px;">';
      $items = [];
        // Group notifications by type
        $by_type = [];
@@ -1254,9 +1254,6 @@
        // Process each type
        foreach ($by_type as $type => $type_notifications) {
            $config = $this->notification_types[ $type ] ?? [];
            $icon   = $config['icon'] ?? 'info';
            foreach ($type_notifications as $notification) {
                $message = $notification->message;
                if (empty($message)) {
@@ -1264,15 +1261,12 @@
                }
                if (!empty($message)) {
                    $content .= sprintf('<li>%s</li>', $message);
               $items[] = ['label' => '', 'value' => $message];
                }
            }
        }
        $content .= '</ul>';
        $content .= '<div class="divider"></div>';
        return $content;
      return JVB()->email()->table($items, 'Other Updates');
    }
    /**