| Server IP : 207.244.250.86 / Your IP : 216.73.216.10 Web Server : Apache System : Linux plesk1.codeponents.com 4.18.0-240.10.1.el8_3.x86_64 #1 SMP Mon Jan 18 17:05:51 UTC 2021 x86_64 User : motionave ( 10025) PHP Version : 8.0.15 Disable Function : opcache_get_status MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/vhosts/motionave.com/devsite.motionave.com/wp-content/plugins/ut-pricing/ |
Upload File : |
<?php
/*
* Plugin Name: Pricing Tables by United Themes
* Version: 2.3
* Plugin URI: http://www.unitedthemes.com
* Description: Plugin for creating nice pricing tables
* Author: UnitedThemes
* Author URI: http://www.unitedthemes.com
* Requires at least: 3.0
* Tested up to: 4.0
*
* @package WordPress
* @author United Themes
* @since 1.0.0
*/
if ( ! defined( 'ABSPATH' ) ) exit;
/*
|--------------------------------------------------------------------------
| Basic Constants
|--------------------------------------------------------------------------
*/
define('UT_PRICING_DIR', plugin_dir_path(__FILE__));
define('UT_PRICING_URL', plugin_dir_url(__FILE__));
define('UT_PRICING_ASSETS_URL' , UT_PRICING_URL . 'assets');
define('UT_PRICING_VERSION', '2.3');
/*
|--------------------------------------------------------------------------
| load main style
|--------------------------------------------------------------------------
*/
if( !function_exists('ut_table_enqueuestyles') ) :
function ut_table_enqueuestyles() {
$min = NULL;
if( !WP_DEBUG ){
$min = '.min';
}
$ut_table = file_exists( get_stylesheet_directory() . '/css/ut.table.style' . $min . '.css' ) ? get_stylesheet_directory_uri() . '/css/ut.table.style' . $min . '.css' : UT_PRICING_ASSETS_URL . '/css/ut.table.style' . $min . '.css';
if( !is_admin() ) {
wp_enqueue_style(
'ut-fontawesome',
'//maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome' . $min . '.css'
);
wp_enqueue_style(
'ut-responsive-grid',
UT_PRICING_URL . 'assets/css/ut-responsive-grid' . $min . '.css'
);
wp_enqueue_style(
'ut-table',
$ut_table
);
}
}
add_action('get_header', 'ut_table_enqueuestyles');
endif;
/*
|--------------------------------------------------------------------------
| Include plugin class files
|--------------------------------------------------------------------------
*/
/* settings */
require_once( 'classes/class-table-template.php' );
/* post types */
require_once( 'classes/post-types/class-table-manager.php' );
/* shortcode */
require_once( 'classes/class-ut-table-shortcode.php' );
/*
|--------------------------------------------------------------------------
| Instantiate necessary classes
|--------------------------------------------------------------------------
*/
global $plugin_obj;
$plugin_obj = new UT_Table_Template( __FILE__ );
$plugin_post_type_obj = new UT_Table_Manager( __FILE__ );
?>