-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from abdosaeedelhassan/dev
Allow changing navigation group from plugin object
- Loading branch information
Showing
7 changed files
with
171 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,14 +4,14 @@ | |
/** | ||
* If you wish to customise the table name change this before migration | ||
*/ | ||
'table_name' => 'vb_email_templates', | ||
'theme_table_name' => 'vb_email_templates_themes', | ||
'table_name' => 'vb_email_templates', | ||
'theme_table_name' => 'vb_email_templates_themes', | ||
|
||
|
||
/** | ||
* Mail Classes will be generated into this directory | ||
*/ | ||
"mailable_directory" => 'Mail/Visualbuilder/EmailTemplates', | ||
"mailable_directory" => 'Mail/Visualbuilder/EmailTemplates', | ||
|
||
/** | ||
* If you want to use your own token helper replace this class | ||
|
@@ -31,110 +31,120 @@ | |
* } | ||
*/ | ||
|
||
'tokenHelperClass' => \Visualbuilder\EmailTemplates\DefaultTokenHelper::class, | ||
'tokenHelperClass' => \Visualbuilder\EmailTemplates\DefaultTokenHelper::class, | ||
|
||
|
||
/** | ||
* Some tokens don't belong to a model. These $models->token will be checked | ||
*/ | ||
'known_tokens' => [ | ||
'tokenUrl', | ||
'verificationUrl', | ||
'message' | ||
], | ||
'known_tokens' => [ | ||
'tokenUrl', | ||
'verificationUrl', | ||
'message' | ||
], | ||
|
||
/** | ||
* Admin panel navigation options | ||
*/ | ||
'navigation' => [ | ||
'templates' => [ | ||
'sort' => 10, | ||
'label' => 'Email Templates', | ||
'icon' => 'heroicon-o-envelope', | ||
'group' => 'Content', | ||
'cluster' => false, | ||
'position' => \Filament\Pages\SubNavigationPosition::Top | ||
], | ||
'themes' => [ | ||
'sort' => 20, | ||
'label' => 'Email Template Themes', | ||
'icon' => 'heroicon-o-paint-brush', | ||
'group' => 'Content', | ||
'cluster' => false, | ||
'position' => \Filament\Pages\SubNavigationPosition::Top | ||
], | ||
'navigation' => [ | ||
'templates' => [ | ||
'sort' => 10, | ||
'label' => 'Email Templates', | ||
'icon' => 'heroicon-o-envelope', | ||
'group' => 'Content', | ||
'cluster' => false, | ||
'position' => \Filament\Pages\SubNavigationPosition::Top | ||
], | ||
'themes' => [ | ||
'sort' => 20, | ||
'label' => 'Email Template Themes', | ||
'icon' => 'heroicon-o-paint-brush', | ||
'group' => 'Content', | ||
'cluster' => false, | ||
'position' => \Filament\Pages\SubNavigationPosition::Top | ||
], | ||
], | ||
|
||
//Email templates will be copied to resources/views/vendor/vb-email-templates/email | ||
//default.blade.php is base view that can be customised below | ||
'default_view' => 'default', | ||
'default_view' => 'default', | ||
|
||
'template_view_path' => 'vb-email-templates::email', | ||
'template_view_path' => 'vb-email-templates::email', | ||
|
||
'template_keys' => [ | ||
'user-welcome'=>'User Welcome Email', | ||
'user-request-reset'=>'User Request Password Reset', | ||
'user-password-reset-success'=>'User Password Reset', | ||
'user-locked-out'=>'User Account Locked Out', | ||
'user-verify-email'=>'User Verify Email', | ||
'user-verified'=>'User Verified', | ||
'user-login'=>'User Logged In', | ||
], | ||
|
||
//Default Logo | ||
'logo' => 'media/email-templates/logo.png', | ||
'logo' => 'media/email-templates/logo.png', | ||
|
||
//Browsed Logo | ||
'browsed_logo' => 'media/email-templates/logos', | ||
'browsed_logo' => 'media/email-templates/logos', | ||
|
||
//Logo size in pixels -> 200 pixels high is plenty big enough. | ||
'logo_width' => '500', | ||
'logo_height' => '126', | ||
'logo_width' => '500', | ||
'logo_height' => '126', | ||
|
||
//Content Width in Pixels | ||
'content_width' => '600', | ||
'content_width' => '600', | ||
|
||
//Contact details included in default email templates | ||
'customer-services' => ['email' => '[email protected]', | ||
'phone' => '+441273 455702'], | ||
'customer-services' => ['email' => '[email protected]', | ||
'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'], | ||
], | ||
'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' you can use this but | ||
//we are being more specific to cater for English vs USA languages | ||
'default_locale' => 'en_GB', | ||
'default_locale' => 'en_GB', | ||
|
||
//These will be included in the language picker when editing an email template | ||
'languages' => [ | ||
'en_GB' => ['display' => 'British', 'flag-icon' => 'gb'], | ||
'en_US' => ['display' => 'USA', 'flag-icon' => 'us'], | ||
'es' => ['display' => 'Español', 'flag-icon' => 'es'], | ||
'fr' => ['display' => 'Français', 'flag-icon' => 'fr'], | ||
'pt' => ['display' => 'Brasileiro', 'flag-icon' => 'br'], | ||
'in' => ['display' => 'Hindi', 'flag-icon' => 'in'], | ||
], | ||
'languages' => [ | ||
'en_GB' => ['display' => 'British', 'flag-icon' => 'gb'], | ||
'en_US' => ['display' => 'USA', 'flag-icon' => 'us'], | ||
'es' => ['display' => 'Español', 'flag-icon' => 'es'], | ||
'fr' => ['display' => 'Français', 'flag-icon' => 'fr'], | ||
'pt' => ['display' => 'Brasileiro', 'flag-icon' => 'br'], | ||
'in' => ['display' => 'Hindi', 'flag-icon' => 'in'], | ||
], | ||
|
||
//Notifiable Models who can receive emails | ||
'recipients' => [ | ||
App\Models\User::class, | ||
], | ||
'recipients' => [ | ||
App\Models\User::class, | ||
], | ||
|
||
/** | ||
* Allowed config keys which can be inserted into email templates | ||
* eg use ##config.app.name## in the email template for automatic replacement. | ||
*/ | ||
'config_keys' => [ | ||
'app.name', | ||
'app.url', | ||
'email-templates.customer-services' | ||
// Add other safe config keys here. | ||
// We don't want to allow all config keys they may contain secret keys or credentials | ||
], | ||
'config_keys' => [ | ||
'app.name', | ||
'app.url', | ||
'email-templates.customer-services' | ||
// Add other safe config keys here. | ||
// We don't want to allow all config keys they may contain secret keys or credentials | ||
], | ||
|
||
//Most built-in emails can be automatically sent with minimal setup, | ||
//except "request password reset" requires a function in the User's model. See readme.md for details | ||
'send_emails' => [ | ||
'new_user_registered' => true, | ||
'verification' => true, | ||
'user_verified' => true, | ||
'login' => true, | ||
'password_reset_success' => true, | ||
'locked_out' => true, | ||
], | ||
'send_emails' => [ | ||
'new_user_registered' => true, | ||
'verification' => true, | ||
'user_verified' => true, | ||
'login' => true, | ||
'password_reset_success' => true, | ||
'locked_out' => true, | ||
], | ||
|
||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.