__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
namespace WP_Statistics\Service\Admin;
use WP_Statistics\Service\Admin\NoticeHandler\Notice;
class AdminManager
{
public function __construct()
{
$this->initFooterModifier();
$this->initNoticeHandler();
$this->initSiteHealthInfo();
$this->initAjaxOptionUpdater();
}
private function initFooterModifier()
{
add_filter('admin_footer_text', array($this, 'modifyAdminFooterText'), 999);
add_filter('update_footer', array($this, 'modifyAdminUpdateFooter'), 999);
}
private function initNoticeHandler()
{
add_action('admin_notices', [Notice::class, 'displayNotices']);
add_action('admin_init', [Notice::class, 'handleDismissNotice']);
add_action('admin_init', [Notice::class, 'handleGeneralNotices'], 11);
}
private function initSiteHealthInfo()
{
// Initialize Site Health Info and register its hooks
$siteHealthInfo = new SiteHealthInfo();
$siteHealthInfo->register();
}
/**
*
*/
private function initAjaxOptionUpdater()
{
$optionUpdater = new AjaxOptionUpdater();
$optionUpdater->init();
}
/**
* Include footer
*/
public function modifyAdminFooterText($text)
{
$screen = get_current_screen();
if (apply_filters('wp_statistics_enable_footer_text', true) && stripos($screen->id, 'wps_') !== false) {
$text = sprintf(
__('Please rate <strong>WP Statistics</strong> <a href="%s" aria-label="%s" title="%s" target="_blank">★★★★★ %s</a> to help us spread the word. Thank you!', 'wp-statistics'),
'https://wordpress.org/support/plugin/wp-statistics/reviews/?filter=5#new-post',
esc_attr__('Rate WP Statistics with five stars on WordPress.org', 'wp-statistics'),
esc_attr__('Rate WP Statistics', 'wp-statistics'),
esc_html__('on WordPress.org', 'wp-statistics')
);
}
return $text;
}
public function modifyAdminUpdateFooter($content)
{
$screen = get_current_screen();
if (apply_filters('wp_statistics_enable_footer_text', true) && stripos($screen->id, 'wps_') !== false) {
global $wp_version;
$content = sprintf('<p id="footer-upgrade" class="alignright">%s | %s %s</p>',
esc_html__('WordPress', 'wp-statistics') . ' ' . esc_html($wp_version),
esc_html('WP Statistics'),
esc_attr(WP_STATISTICS_VERSION)
);
}
return $content;
}
}| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| AnonymizedUsageData | Folder | 0755 |
|
|
| AuthorAnalytics | Folder | 0755 |
|
|
| CategoryAnalytics | Folder | 0755 |
|
|
| ContentAnalytics | Folder | 0755 |
|
|
| Devices | Folder | 0755 |
|
|
| Exclusions | Folder | 0755 |
|
|
| ExportImport | Folder | 0755 |
|
|
| FilterHandler | Folder | 0755 |
|
|
| Geographic | Folder | 0755 |
|
|
| HelpCenter | Folder | 0755 |
|
|
| LicenseManagement | Folder | 0755 |
|
|
| MarketingCampaign | Folder | 0755 |
|
|
| Metabox | Folder | 0755 |
|
|
| MiniChart | Folder | 0755 |
|
|
| ModalHandler | Folder | 0755 |
|
|
| NoticeHandler | Folder | 0755 |
|
|
| Notification | Folder | 0755 |
|
|
| Optimization | Folder | 0755 |
|
|
| Overview | Folder | 0755 |
|
|
| PageInsights | Folder | 0755 |
|
|
| Posts | Folder | 0755 |
|
|
| PrivacyAudit | Folder | 0755 |
|
|
| Referrals | Folder | 0755 |
|
|
| TrackerDebugger | Folder | 0755 |
|
|
| VisitorInsights | Folder | 0755 |
|
|
| WebsitePerformance | Folder | 0755 |
|
|
| AdminManager.php | File | 2.56 KB | 0644 |
|
| AjaxOptionUpdater.php | File | 1.58 KB | 0644 |
|
| ConditionTagEvaluator.php | File | 6.29 KB | 0644 |
|
| SiteHealthInfo.php | File | 30.83 KB | 0644 |
|