/** * Plugin Name: Hostnet - Plano Cloud * Plugin URI: https://www.hostnet.com.br * Description: Plugin essencial para atualização de plugins premiums oferecidos pela Hostnet. * Version: 1.0.6 * Requires at least: 5.2 * Requires PHP: 7.4 * Author: Hostnet Interner * Author URI: https://www.hostnet.com.br * Text Domain: aaa-hn-plano-cloud * Domain Path: /languages */ if ( !defined('ABSPATH') ) { exit; } if(!class_exists('HN_PLANO_CLOUD_PLUGIN')) { // Plugin version if ( ! defined( 'HN_PLANO_CLOUD_VERSION_PLUGIN' ) ) { define( 'HN_PLANO_CLOUD_VERSION_PLUGIN', '1.0.6' ); } // CSS version if ( ! defined( 'HN_PLANO_CLOUD_VERSION_CSS' ) ) { define( 'HN_PLANO_CLOUD_VERSION_CSS', '1.0.0' ); } // JS version if ( ! defined( 'HN_PLANO_CLOUD_VERSION_JS' ) ) { define( 'HN_PLANO_CLOUD_VERSION_JS', '1.0.0' ); } // Plugin file if ( ! defined( 'HN_PLANO_CLOUD_FILE' ) ) { define( 'HN_PLANO_CLOUD_FILE', __FILE__ ); } // Plugin folder path if ( ! defined( 'HN_PLANO_CLOUD_PLUGIN_PATH' ) ) { define( 'HN_PLANO_CLOUD_PLUGIN_PATH', plugin_dir_path( __FILE__ ) ); } // Plugin folder URL if ( ! defined( 'HN_PLANO_CLOUD_PLUGIN_URL' ) ) { define( 'HN_PLANO_CLOUD_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); } define('HN_PLANO_CLOUD_NAME', 'Hostnet - Plano Cloud'); define('HN_PLANO_CLOUD_SLUG', 'aaa-hn-plano-cloud'); define('HN_PLANO_CLOUD_INFO_JSON', 'https://plugins.hostnet.com.br/plugins/aaa-hn-plano-cloud/info.json'); define('HN_PLANO_CLOUD_CACHE_UPDATE', 172800); if (!class_exists('HN_WAAR_Update')) { include_once( HN_PLANO_CLOUD_PLUGIN_PATH . 'includes/class-update.php' ); } class HN_PLANO_CLOUD_PLUGIN { public function __construct() { $this->includes(); } /* * Adicona Scripts */ public function includes() { include_once( HN_PLANO_CLOUD_PLUGIN_PATH . 'includes/config.php' ); include_once( HN_PLANO_CLOUD_PLUGIN_PATH . 'includes/functions.php' ); include_once( HN_PLANO_CLOUD_PLUGIN_PATH . 'includes/class-settings.php' ); include_once( HN_PLANO_CLOUD_PLUGIN_PATH . 'includes/class-update.php' ); } } // Cria a classe caso o plugin esteja ativo. add_action( 'plugins_loaded', function() { new HN_PLANO_CLOUD_PLUGIN; }, 1 ); }