Skip to content

matbcvo/mautic-whitelabel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mautic Whitelabel

Mautic Whitelabel is a Composer package that allows you to customize the Mautic UI dynamically using .env values.
You can modify logos, background colors, and other assets without directly changing Mautic core files.

Installation

Run the following command inside your Mautic project root:

composer require matbcvo/mautic-whitelabel

You may be asked to confirm if you want to add this plugin to your allowed plugins, you can answer y.

matbcvo/mautic-whitelabel contains a Composer plugin which is currently not in your allow-plugins config. See https://getcomposer.org/allow-plugins
Do you trust "matbcvo/mautic-whitelabel" to execute code and wish to enable it now? (writes "allow-plugins" to composer.json) [y,n,d,?] y

Configuration

Ensure your .env file (or compiled env) contains the required branding variables:

WHITELABEL_BRAND="Marketing Automation Ltd"
WHITELABEL_FOOTER="Marketing Automation Ltd. All Rights Reserved."
WHITELABEL_PRIMARY="#ffffff"
WHITELABEL_HOVER="#ffffff"
WHITELABEL_ACTIVE_ICON="#ffffff"
WHITELABEL_LOGO_BACKGROUND="#ffffff"
WHITELABEL_SIDEBAR_LOGO=/custom-logo.png
WHITELABEL_SIDEBAR_LOGO_WIDTH=130
WHITELABEL_SIDEBAR_LOGO_MARGIN_TOP=0
WHITELABEL_SIDEBAR_LOGO_MARGIN_LEFT=0
WHITELABEL_SIDEBAR_LOGO_MARGIN_RIGHT=0
WHITELABEL_SIDEBAR_BACKGROUND="#ffffff"
WHITELABEL_SIDEBAR_SUBMENU_BACKGROUND="#ffffff"
WHITELABEL_SIDEBAR_LINK="#ffffff"
WHITELABEL_SIDEBAR_LINK_HOVER="#ffffff"
WHITELABEL_SIDEBAR_DIVIDER="#ffffff"
WHITELABEL_DIVIDER_LEFT=50
WHITELABEL_SUBMENU_BULLET_BACKGROUND="#ffffff"
WHITELABEL_SUBMENU_BULLET_SHADOW="#ffffff"
WHITELABEL_LOGIN_LOGO=/custom-logo.png
WHITELABEL_LOGIN_LOGO_WIDTH=/custom-logo.png
WHITELABEL_LOGIN_LOGO_MARGIN_TOP=20
WHITELABEL_LOGIN_LOGO_MARGIN_BOTTOM=20
WHITELABEL_FAVICON=/custom-logo.png

If using production, make sure your .env values are compiled:

composer dump-env prod

Applying Whitelabel Branding

Run manually at any time:

composer mautic:whitelabel

Contributing

We welcome contributions! If you have ideas or fixes, feel free to submit a PR.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages