Snapshot of main at 9f39a6e1e (2026-11-02)

This commit is contained in:
Ronald Huynen committed 2026-11-02 10:41:47 +01:00
commit 6ccf1792d7
2580 files changed
+1040202

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
<?php
namespace App\Services;
use Enflow\SocialShare\ConfiguredSocialShareService;
class CustomSocialShareService extends ConfiguredSocialShareService
{
public function icon(): ?string
{
// First check for custom icon in resources
$customIconPath = resource_path('views/vendor/social-share/icons/' . $this->name . '.svg');
if (file_exists($customIconPath)) {
return file_get_contents($customIconPath);
}
// Fallback to vendor package icon
if (file_exists($iconPath = __DIR__ . '/../../vendor/enflow/laravel-social-share/resources/icons/' . $this->name . '.svg')) {
return file_get_contents($iconPath);
}
return null;
}
}