File: /var/www/html/wppartneramazingsecret/wp-content/plugins/themify-builder-pro/themify-builder-pro.php
<?php
/**
* Plugin Name: Themify Builder Pro
* Plugin URI: https://themify.me/builder-pro
* Description: Build custom WordPress themes and templates (header, footer, post/page templates, etc.) using Themify Builder.
* Version: 2.2.1
* Author: Themify
* Author URI: https://themify.me/
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Text Domain: tbp
* Domain Path: /languages
* Compatibility: 5.0.0
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
/**
* Currently plugin version.
* Start at version 1.0.0 and use SemVer - https://semver.org
* Rename this for your plugin and update it as you release new versions.
*/
define( 'TBP_DIR', trailingslashit( plugin_dir_path( __FILE__ ) ) );
define( 'TBP_URL', trailingslashit( plugin_dir_url( __FILE__ ) ) );
define('TBP_CSS_MODULES',TBP_URL.'public/css/modules/');
define('TBP_WC_CSS_MODULES',TBP_URL.'public/css/wc/modules/');
/**
* The core plugin class that is used to define internationalization,
* admin-specific hooks, and public-facing site hooks.
*/
require TBP_DIR. 'includes/class-tbp.php';
/**
* The code that runs during plugin activation.
* This action is documented in includes/class-tbp-activator.php
*/
function tbp_activate() {
Tbp::register_cpt();
flush_rewrite_rules();
}
register_activation_hook( __FILE__, 'tbp_activate' );
/**
* Begins execution of the plugin.
*
* Since everything within the plugin is registered via hooks,
* then kicking off the plugin from this point in the file does
* not affect the page life cycle.
*
* @since 1.0.0
*/
add_action( 'init', array('Tbp','run'));
function tbp_admin_notices() {
if ( ! class_exists( 'Themify_Builder' ) ) {
?>
<div class="error">
<p><?php printf( __( 'Builder Pro plugin requires <a href="%s">Themify framework</a>, or the free <a href="%s">Themify Builder plugin</a>.', 'tbp' ), 'https://themify.me/themes', 'https://wordpress.org/plugins/themify-builder/' ); ?></p>
</div>
<?php
}
}
add_action( 'admin_notices', 'tbp_admin_notices' );