54 lines
769 B
PHP
54 lines
769 B
PHP
<?php
|
|
namespace XTXPATCH;
|
|
|
|
/*
|
|
* it means someone outside wp is accessing the file, in this case kill it.
|
|
*/
|
|
if (!defined('ABSPATH')) {
|
|
die('You can not access this file!');
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
* creates the plugin menu
|
|
*
|
|
*/
|
|
function add_plugin_menu() {
|
|
\Plgntls_xtx::add_menu(__NAMESPACE__.'\menu_content');
|
|
}
|
|
add_action('admin_menu', __NAMESPACE__.'\add_plugin_menu');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
* the construction of the admin menu page
|
|
*
|
|
*/
|
|
function menu_content() {
|
|
$option_register_email = Xtxpatch::OPTION_REGISTER_EMAIL;
|
|
|
|
$option_register_email_name = $option_register_email['_name'];
|
|
$option_register_email_value = \Plgntls_xtx::get_option_safe($option_register_email);
|
|
|
|
ob_start();
|
|
include(\Plgntls_xtx::root_path() . 'html/admin_menu.html');
|
|
echo ob_get_clean();
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
?>
|