Skip to content

This Statamic addon automatically generates a control panel logo image based on the application name.

License

Notifications You must be signed in to change notification settings

codepeak/statamic-lazy-logo

 
 

Repository files navigation

Statamic Packagist version License

Lazy Logo

This Statamic addon automatically generates a control panel logo image based on the application name. Useful if you need a quick way to see which site you're editing at a glance. You can also configure the text and styles, allowing you to use different values in different environments for example.

Important: This addon uses Statamic's white labeling feature, which is Pro only. Therefore this addon will only work with the Pro edition.

Installation

You can search for this addon in the Tools > Addons section of the Statamic control panel and click install, or run the following command from your project root:

composer require jacksleight/statamic-lazy-logo

Set the custom_logo_url in config/statamic/cp.php to /cp/lazy-logo.svg:

'custom_logo_url' => env('STATAMIC_CUSTOM_LOGO_URL', '/cp/lazy-logo.svg'),

That's it!

Configuration

By default the text will be the APP_NAME environment variable, and it'll be styled to match the CP text. If you want to customise it you can publish and edit the config:

php please vendor:publish --tag=statamic-lazy-logo-config

Then open config/statamic/lazy_logo.php and make your changes.

About

This Statamic addon automatically generates a control panel logo image based on the application name.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 85.5%
  • Blade 14.5%