frontblocks
Last commit date
includes
2 years ago
frontblocks.php
2 years ago
readme.txt
2 years ago
frontblocks.php
50 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Plugin Name: FrontBlocks |
| 4 | * Plugin URI: https://github.com/closemarketing/frontblocks |
| 5 | * Description: Blocks and helpers to facilitate GeneratePress frontend developing. |
| 6 | * Version: 0.2.3 |
| 7 | * Author: Closemarketing |
| 8 | * Author URI: https://close.marketing |
| 9 | * Text Domain: frontblocks |
| 10 | * Domain Path: /languages |
| 11 | * License: GPL-2.0+ |
| 12 | * License URI: http://www.gnu.org/licenses/gpl-2.0.txt |
| 13 | * |
| 14 | * Requires at least: 5.4 |
| 15 | * Requires PHP: 7.0 |
| 16 | * Requires Plugins: GeneratePress, GenerateBlocks |
| 17 | * |
| 18 | * @package FrontBlocks |
| 19 | * @author Closemarketing |
| 20 | * @copyright 2023 Closemarketing |
| 21 | * @license GPL-2.0+ |
| 22 | * |
| 23 | * @wordpress-plugin |
| 24 | * |
| 25 | * Prefix: frbl_ |
| 26 | */ |
| 27 | |
| 28 | defined( 'ABSPATH' ) || die( 'No script kiddies please!' ); |
| 29 | |
| 30 | define( 'FRBL_VERSION', '0.2.3' ); |
| 31 | define( 'FRBL_PLUGIN', __FILE__ ); |
| 32 | define( 'FRBL_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); |
| 33 | define( 'FRBL_PLUGIN_PATH', plugin_dir_path( __FILE__ ) ); |
| 34 | |
| 35 | add_action( 'plugins_loaded', 'frbl__plugin_init' ); |
| 36 | /** |
| 37 | * Load localization files |
| 38 | * |
| 39 | * @return void |
| 40 | */ |
| 41 | function frbl__plugin_init() { |
| 42 | load_plugin_textdomain( 'frontblocks', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' ); |
| 43 | } |
| 44 | |
| 45 | // Carousel. |
| 46 | require_once FRBL_PLUGIN_PATH . 'includes/carousel/frontblocks-carousel.php'; |
| 47 | |
| 48 | // Animations. |
| 49 | require_once FRBL_PLUGIN_PATH . 'includes/animations/frontblocks-animations.php'; |
| 50 |