| 1 |
<?php |
| 2 |
/** |
| 3 |
* Plugin Name: Hotel Booking & Divi Integration |
| 4 |
* Plugin URI: https://motopress.com/products/hotel-booking-divi-theme-integration/ |
| 5 |
* Description: Integrates Divi theme with the MotoPress Hotel Booking plugin to modify content and styles visually via Divi builder. |
| 6 |
* Version: 1.0.3 |
| 7 |
* Author: MotoPress |
| 8 |
* Author URI: https://motopress.com/ |
| 9 |
* License: GPLv2 or later |
| 10 |
* Text Domain: mphb-divi |
| 11 |
* Domain Path: /languages |
| 12 |
**/ |
| 13 |
|
| 14 |
if( !function_exists( 'mphb_divi_init' ) ): |
| 15 |
|
| 16 |
add_action( 'divi_extensions_init', 'mphb_divi_init' ); |
| 17 |
|
| 18 |
function mphb_divi_init() { |
| 19 |
if ( !class_exists( 'MPHB_Divi' ) && class_exists( 'HotelBookingPlugin' ) ) { |
| 20 |
require( plugin_dir_path( __FILE__ ) . 'plugin.php' ); |
| 21 |
} |
| 22 |
} |
| 23 |
|
| 24 |
endif; |