Skip to content

Commit ffb893e

Browse files
committed
fix: Log display and GitHub URL
- Corrected correct retrieval of `$showLogo` and `$showUrl` - Update view classes - Addition of the <a> tag to the tags authorised by the `->withSentence()` method.
1 parent b5464b4 commit ffb893e

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ use Devonab\FilamentEasyFooter\EasyFooterPlugin;
180180
,
181181
])
182182
```
183-
The authorized tags are as follows: `<strong><img><em><span><b><i><small>`.
183+
The authorized tags are as follows: `<strong><img><a><em><span><b><i><small>`.
184184

185185

186186
### Show GitHub version

resources/views/easy-footer.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@
3535
} => $footerPosition === 'footer',
3636
])
3737
>
38-
<span @class(['flex gap-2' => $isHtmlSentence])>&copy; {{ now()->format('Y') }} -
38+
<span @class(['flex items-center gap-2' => $isHtmlSentence])>&copy; {{ now()->format('Y') }} -
3939
@if($sentence)
4040
@if($isHtmlSentence)
41-
<span class="flex">{!! $sentence !!}</span>
41+
<span class="flex items-center gap-2">{!! $sentence !!}</span>
4242
@else
4343
{{ $sentence }}
4444
@endif

src/EasyFooterPlugin.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function register(Panel $panel): void
6565
$githubService = app(GitHubService::class);
6666

6767
if ($this->githubEnabled) {
68-
$githubService->enable();
68+
$githubService->enable($this->showLogo, $this->showUrl);
6969
} else {
7070
$githubService->disable();
7171
}
@@ -283,7 +283,7 @@ public function withSentence(string | HtmlString $sentence): static
283283
$this->isHtmlSentence = true;
284284
}
285285

286-
$this->sentence = strip_tags($sentence, '<strong><img><em><span><b><i><small>');
286+
$this->sentence = strip_tags($sentence, '<strong><img><a><em><span><b><i><small>');
287287

288288
return $this;
289289
}

0 commit comments

Comments
 (0)