diff --git a/config/email-templates.php b/config/email-templates.php index 24c36f2..5420b68 100644 --- a/config/email-templates.php +++ b/config/email-templates.php @@ -14,25 +14,35 @@ 'logo' => 'media/email-templates/logo.png', //Logo size in pixels -> 200 pixels high is plenty big enough. - 'logo_width' => '200', - 'logo_height' => '200', + 'logo_width' => '476', + 'logo_height' => '117', //Content Width in Pixels 'content_width' => '600', //Background Colours - 'header_bg_color' => '#424242', + 'header_bg_color' => '#B8B8D1', 'body_bg_color' => '#f4f4f4', - 'content_bg_color' => '#fefefe', - 'footer_bg_color' => '#646464', - 'callout_bg_color' => '#700000', - 'button_bg_color' => '#424242', + 'content_bg_color' => '#FFFFFB', + 'footer_bg_color' => '#5B5F97', + 'callout_bg_color' => '#B8B8D1', + 'button_bg_color' => '#FFC145', //Text Colours 'body_color' => '#333333', - 'callout_color' => '#ffffff', - 'button_color' => '#ffffff', - 'anchor_color' => '#ff7978', + 'callout_color' => '#000000', + 'button_color' => '#2A2A11', + 'anchor_color' => '#4c05a1', + + //Contact details included in default email templates + 'customer-services-email'=>'support@yourcompany.com', + 'customer-services-phone'=>'+441273 455702', + + //Footer Links + 'links' =>[ + ['name'=>'Website','url'=>'https://yourwebsite.com','title'=>'Goto website'], + ['name'=>'Privacy Policy','url'=>'https://yourwebsite.com/privacy-policy','title'=>'View Privacy Policy'], + ], //Options for alternative languages //Note that Laravel default locale is just 'en' @@ -79,6 +89,4 @@ 'password_reset_success' => true, ], - //Contact details included in default email templates - 'customer-services'=>'support@yourcompany.com' ]; diff --git a/media/logo.png b/media/logo.png index 7253079..5e69575 100644 Binary files a/media/logo.png and b/media/logo.png differ diff --git a/refresh.sh b/refresh.sh new file mode 100755 index 0000000..360beff --- /dev/null +++ b/refresh.sh @@ -0,0 +1,7 @@ +#!/bin/bash +#For developer to remove and reinstall the package overwriting the previous views and config. +php artisan vendor:publish --tag=filament-email-templates-config --force +php artisan vendor:publish --tag=filament-email-templates-migrations --force +php artisan vendor:publish --tag=filament-email-templates-seeds --force +php artisan vendor:publish --tag=vb-email-templates-views --force +php artisan vendor:publish --tag=filament-email-templates-media --force diff --git a/reinstall.sh b/reinstall.sh index 8150f66..3f844ae 100755 --- a/reinstall.sh +++ b/reinstall.sh @@ -8,6 +8,7 @@ php artisan vendor:publish --tag=filament-email-templates-config --force php artisan vendor:publish --tag=filament-email-templates-migrations --force php artisan vendor:publish --tag=filament-email-templates-seeds --force php artisan vendor:publish --tag=vb-email-templates-views --force +php artisan vendor:publish --tag=filament-email-templates-media --force php artisan migrate:fresh --seed php artisan db:seed --class=EmailTemplateSeeder diff --git a/resources/views/email/parts/_footer.blade.php b/resources/views/email/parts/_footer.blade.php index ca0eac7..566d383 100644 --- a/resources/views/email/parts/_footer.blade.php +++ b/resources/views/email/parts/_footer.blade.php @@ -12,8 +12,10 @@
- {{__('vb-email-templates::email-templates.general-labels.website')}} | - {{__('vb-email-templates::email-templates.general-labels.privacy-policy')}} + @foreach(config('email-templates.links') as $link) + {{$link['name']}} + @if(! $loop->last) | @endif + @endforeach