Skip to content

Open-source event management and ticket selling platform — perfect for concerts, conferences, and everything in between 🎟️ If you find this project helpful, please consider giving us a star ⭐️

Add ability to change email heading logo and footer

Dave Earley2d1a0def873c
diff --git a/backend/config/app.php b/backend/config/app.php
index 88b55fb4e..c421fec61 100644
--- a/backend/config/app.php
+++ b/backend/config/app.php
@@ -4,6 +4,8 @@ use Illuminate\Support\Facades\Facade;
use Illuminate\Support\ServiceProvider;
return [
+ 'name' => env('APP_NAME', 'Hi.Events'),
+
'reset_password_token_expiry_in_min' => 15,
'frontend_url' => env('APP_FRONTEND_URL', 'http://localhost'),
'cnd_url' => env('APP_CDN_URL', '/storage'),
@@ -33,18 +35,8 @@ return [
'organizer_order_summary' => '/manage/event/%d/orders#order-%d',
],
- /*
- |--------------------------------------------------------------------------
- | Application Name
- |--------------------------------------------------------------------------
- |
- | This value is the name of your application. This value is used when the
- | framework needs to place the application's name in a notification or
- | any other location as required by the application or its packages.
- |
- */
-
- 'name' => env('APP_NAME', 'Hi.Events'),
+ 'email_logo_url' => env('APP_EMAIL_LOGO_URL'),
+ 'email_footer_text' => env('APP_EMAIL_FOOTER_TEXT'),
/*
|--------------------------------------------------------------------------
diff --git a/backend/resources/views/vendor/mail/html/message.blade.php b/backend/resources/views/vendor/mail/html/message.blade.php
index 80bce2112..c29cae8d9 100644
--- a/backend/resources/views/vendor/mail/html/message.blade.php
+++ b/backend/resources/views/vendor/mail/html/message.blade.php
@@ -1,8 +1,14 @@
<x-mail::layout>
{{-- Header --}}
<x-slot:header>
- <x-mail::header :url="config('app.url')">
- {{ config('app.name') }}
+ <x-mail::header :url="config('app.frontend_url')">
+ @if($appLogo = config('app.email_logo_url'))
+ <img src="{{ $appLogo }}" class="logo" alt="{{ config('app.name') }}"
+ style="max-width: 300px;">
+ @else
+ <img src="{{ config('app.frontend_url') }}/logo-dark.svg" class="logo" alt="{{ config('app.name') }}"
+ style="max-width: 300px;">
+ @endif
</x-mail::header>
</x-slot:header>
@@ -21,7 +27,18 @@
{{-- Footer --}}
<x-slot:footer>
<x-mail::footer>
- © {{ date('Y') }} {{ config('app.name') }}. @lang('All rights reserved.')
+ @if($appEmailFooter = config('app.email_footer'))
+ {{ $appEmailFooter }}
+ @else
+ {{--* PLEASE NOTE:--}}
+ {{--* Under the terms of the license, you are not permitted to remove or obscure the powered by footer unless you have a white-label--}}
+ {{--* or commercial license.--}}
+ {{--* @see https://github.com/HiEventsDev/hi.events/blob/main/LICENCE#L13--}}
+ {{--* You can purchase a license at https://hi.events/licensing--}}
+ © {{ date('Y') }} <a title="Manage events and sell tickets online with Hi.Events"
+ href="https://hi.events?utm_source=app-email-footer">Hi.Events</a> - Effortless
+ Event Management
+ @endif
</x-mail::footer>
</x-slot:footer>
</x-mail::layout>
diff --git a/backend/resources/views/vendor/mail/html/themes/default.css b/backend/resources/views/vendor/mail/html/themes/default.css
index 03d811653..9da643b64 100644
--- a/backend/resources/views/vendor/mail/html/themes/default.css
+++ b/backend/resources/views/vendor/mail/html/themes/default.css
@@ -112,9 +112,8 @@ img {
/* Logo */
.logo {
- height: 75px;
- max-height: 75px;
- width: 75px;
+ max-width: 300px;
+ width: 150px;
}
/* Body */