File: /www/wwwroot/1.scey.cn/wp-content/plugins/hao-image-box/hao-image-box.php
<?php
/*
Plugin Name: Hao Image Box
Version: 1.0
Requires at least: 5.2
Requires PHP: 5.6
Plugin URI: https://www.haozhuti.cn/wordpress/plugins/147.html
Author: 好主题网
Author URI: https://www.haozhuti.cn/
Description: 好主题网制作的图片灯箱插件
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/
if (!defined('HAO_IMAGE_BOX_PLUGIN_ASSETS_URI')) define('HAO_IMAGE_BOX_PLUGIN_ASSETS_URI', plugin_dir_url(__FILE__) . 'assets');
if (!defined('HAO_IMAGE_BOX_PLUGIN_ASSETS_PATH')) define('HAO_IMAGE_BOX_PLUGIN_ASSETS_PATH', plugin_dir_path(__FILE__) . 'inc');
//包含设置选项页面
if (is_admin()) {
require_once HAO_IMAGE_BOX_PLUGIN_ASSETS_PATH . '/hao-image-setting.php';
} else {
require_once HAO_IMAGE_BOX_PLUGIN_ASSETS_PATH . '/hao-image-view.php';
}