*/ const PLUGINS = array( '360-orbit-media-cleaner' => array( 'name' => '360 Orbit Media Cleaner', 'basename' => '360-orbit-media-cleaner/360-orbit-media-cleaner.php', 'page' => 'wp360-media-cleaner', 'version_constant' => 'WP360_MC_VERSION', ), '360-orbit-nocookie-analytics' => array( 'name' => '360 Orbit NoCookie Analytics', 'basename' => '360-orbit-nocookie-analytics/360-orbit-nocookie-analytics.php', 'page' => 'wp360-nca-stats', 'version_constant' => 'WP360_NCA_VERSION', ), '360-orbit-header-security' => array( 'name' => '360 Orbit Header Security', 'basename' => '360-orbit-header-security/360-orbit-header-security.php', 'page' => 'wp360-header-security', 'version_constant' => 'WP360_HS_VERSION', ), '360-orbit-speed-optimizer' => array( 'name' => '360 Orbit Speed Optimizer', 'basename' => '360-orbit-speed-optimizer/360-orbit-speed-optimizer.php', 'page' => 'wp360-speed-optimizer', 'version_constant' => 'WP360_SO_VERSION', ), '360-orbit-login-guard' => array( 'name' => '360 Orbit Login Guard', 'basename' => '360-orbit-login-guard/360-orbit-login-guard.php', 'page' => 'wp360-login-guard', 'version_constant' => 'WP360_LG_VERSION', ), '360-orbit-security-digest' => array( 'name' => '360 Orbit Security Digest', 'basename' => '360-orbit-security-digest/360-orbit-security-digest.php', 'page' => 'wp360-security-digest', 'version_constant' => 'WP360_SD_VERSION', ), '360-orbit-privacy-toolkit' => array( 'name' => '360 Orbit Privacy Toolkit', 'basename' => '360-orbit-privacy-toolkit/360-orbit-privacy-toolkit.php', 'page' => 'wp360-privacy-toolkit', 'version_constant' => 'WP360_PT_VERSION', ), '360-orbit-database-cleaner' => array( 'name' => '360 Orbit Database Cleaner', 'basename' => '360-orbit-database-cleaner/360-orbit-database-cleaner.php', 'page' => 'wp360-database-cleaner', 'version_constant' => 'WP360_DC_VERSION', ), ); /** * Kurzbeschreibungen der Suite-Plugins (uebersetzbar, deshalb keine Konstante). * * @return array */ private static function descriptions() { return array( '360-orbit-media-cleaner' => __( 'Finds unused media files and outdated image sizes.', '360-orbit-header-security' ), '360-orbit-nocookie-analytics' => __( 'Cookieless website statistics.', '360-orbit-header-security' ), '360-orbit-header-security' => __( 'HTTP security headers with guided setup.', '360-orbit-header-security' ), '360-orbit-speed-optimizer' => __( 'Caching, compression and cleanup via .htaccess.', '360-orbit-header-security' ), '360-orbit-login-guard' => __( 'Protects the login area from brute-force attacks.', '360-orbit-header-security' ), '360-orbit-security-digest' => __( 'A weekly digest email instead of constant update notices.', '360-orbit-header-security' ), '360-orbit-privacy-toolkit' => __( 'Anonymizes comment IPs and helps with the privacy policy.', '360-orbit-header-security' ), '360-orbit-database-cleaner' => __( 'Relieves the database: autoloaded options, expired transients and old revisions.', '360-orbit-header-security' ), ); } public static function init() { add_action( 'admin_menu', array( __CLASS__, 'register_parent' ), 5 ); } public static function register_parent() { global $admin_page_hooks; if ( isset( $admin_page_hooks[ self::SLUG ] ) ) { return; } add_menu_page( '360 WP Orbit', '360 WP Orbit', 'manage_options', self::SLUG, array( __CLASS__, 'render_overview' ), self::ICON, 58 ); // Denselben Slug wie add_menu_page als erste Unterseite registrieren -- // sonst legt WP dort automatisch einen Duplikat-Eintrag "360 WP Orbit" // an, statt ihn wie hier in "Uebersicht" umzubenennen. add_submenu_page( self::SLUG, __( '360 WP Orbit – Overview', '360-orbit-header-security' ), __( 'Overview', '360-orbit-header-security' ), 'manage_options', self::SLUG, array( __CLASS__, 'render_overview' ) ); } public static function render_overview() { if ( ! function_exists( 'is_plugin_active' ) ) { require_once ABSPATH . 'wp-admin/includes/plugin.php'; } $descriptions = self::descriptions(); ?>

360 WP Orbit

$plugin ) : ?>
·