Download the PHP package moderntribe/tribe-alerts without Composer
On this page you can find all versions of the php package moderntribe/tribe-alerts. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download moderntribe/tribe-alerts
More information about moderntribe/tribe-alerts
Files in moderntribe/tribe-alerts
Package tribe-alerts
Short Description Tribe Alerts WordPress Plugin
License
Homepage https://github.com/moderntribe/tribe-alerts
Informations about the package tribe-alerts
Tribe Alerts
Displays a customizable banner on that screen and remembers when users have dismissed it.
Display custom banner alerts on your website.
Requirements
- php7.4+
- Advanced Custom Fields Pro
- nvm or fnm
- node 16+
- yarn 1.22+
- npm 8.3+
Quick Start First Run
- Install SquareOne Docker (so)
- Run:
so bootstrap
- Run:
nvm use
- Run:
yarn install
- Run:
yarn mix
- Activate your plugins in the WordPress dashboard and start developing!
Pull Requests / Building
Ensure you run yarn prod
before submitting a PR to ensure the resources/dist
folder is updated with the latest build.
Front end
Front end building is powered by Laravel Mix.
Building
Usage
Build for development:
Watch for file changes:
Poll for file changes:
Watch with hot module replacement:
Build for production:
See more options: yarn mix --help
Installing this plugin
Every published release automatically creates a tribe-alerts.zip
which is a fully built and vendor scoped WordPress plugin, about a minute after the release is published. To manually install, visit a release and download and extract the zip in your WordPress plugins folder.
Composer
The best way to include the release zip is by using the fantastic ffraenz/private-composer-installer plugin.
Add a custom repository to your project's repository
key in composer.json
:
NOTE: Simply update the version above and run
composer update
to upgrade the plugin in the future.
Then, add the plugin definition to the require section:
Tell composer where to put your WordPress plugins/themes via the extra
section.
NOTE: Adjust the paths based on your project.
You may have to allow this plugin in your config as well:
Finally, install the plugin:
Displaying an Alert
The banner is set to automatically display using the wp_footer
hook. If you need to manually add it to a theme or a plugin, add the following code to render the alert view:
You can hide the automatic wp_footer
output by defining the following in your wp-config.php:
Customize The Alert View Markup
You can filter the directory where we look for view files, e.g.
And then copy the resources/views/alert.php to your specified folder and customize as needed.
ACF Swatch Field Options
Color options are disabled by default. You can enable it by defining the following in your wp-config.php:
Filter the color options provided to the ACF swatch field:
The default CSS class prefix for the color theme is tribe-alerts__theme
, which ends up being tribe-alerts__theme-$name
once a color is selected.
Filter the CSS class prefix:
Credits
- Based on Spatie Skeleton
License
GNU General Public License GPLv2 (or later). Please see License File for more information.
Modern Tribe
All versions of tribe-alerts with dependencies
ext-json Version *
ext-readline Version *
johnbillion/extended-cpts Version ^5.0
league/plates Version ^3.4
moderntribe/tribe-libs Version ^3.4.13
spatie/data-transfer-object Version ^2.8