PluginProbe
MotoPress Hotel Booking for Divi / 1.0.4
MotoPress Hotel Booking for Divi v1.0.4
trunk 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.1.0 2.0.0
← All changes | mphb-divi.php +24 -40 trunk1.0.4 View file →
@@ -1,40 +1,24 @@
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: 2.0.0
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 ( ! defined( 'MPHB_DIVI_VERSION' ) ) {
15 - define( 'MPHB_DIVI_VERSION', '2.0.0' );
16 -}
17 -
18 -if ( ! function_exists( 'mphb_divi_init' ) && class_exists( 'HotelBookingPlugin' ) ) :
19 -
20 - require_once plugin_dir_path( __FILE__ ) . 'src/renderers.php';
21 - require_once plugin_dir_path( __FILE__ ) . 'divi-5/php/bootstrap.php';
22 - require_once plugin_dir_path( __FILE__ ) . 'src/functions.php';
23 -
24 - add_action( 'divi_extensions_init', 'mphb_divi_init' );
25 - add_action( 'wp_enqueue_scripts', 'mphb_divi_enqueue_assets' );
26 - add_action( 'customize_preview_init', 'mphb_divi_enqueue_customizer_assets' );
27 -
28 - function mphb_divi_init() {
29 - require_once plugin_dir_path( __FILE__ ) . 'divi-4/includes/mphb.php';
30 - }
31 -
32 - function mphb_divi_enqueue_assets() {
33 - wp_enqueue_style( 'mphb-divi-style', plugin_dir_url( __FILE__ ) . 'assets/style.css', array(), MPHB_DIVI_VERSION );
34 - }
35 -
36 - function mphb_divi_enqueue_customizer_assets() {
37 - wp_enqueue_script( 'mphb-divi-customize-preview', plugin_dir_url( __FILE__ ) . 'assets/customize-preview.js', array( 'jquery', 'customize-preview' ), MPHB_DIVI_VERSION, true );
38 - }
39 -
40 -endif;
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.4
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;