init_dashboard_page();
$this->init_install_theme_page();
$this->init_install_plugin_page();
$this->init_logs_page();
$this->init_miscellaneous_page();
add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
add_action( is_multisite() ? 'network_admin_notices' : 'admin_notices', array( $this, 'display_alert_notification_box' ) );
add_filter( 'admin_footer_text', array( $this, 'admin_footer' ), 1, 2 );
}
/**
* Initialize dashboard page
*/
private function init_dashboard_page() {
new Dashboard();
}
/**
* Initialize install theme page
*/
public function init_install_theme_page() {
new InstallTheme();
}
/**
* Initialize install plugin page
*/
private function init_install_plugin_page() {
new InstallPlugin();
}
/**
* Initialize miscellaneous page
*/
private function init_miscellaneous_page() {
new Miscellaneous();
}
/**
* Initialize logs page
*/
private function init_logs_page() {
new Logs();
}
/**
* Display alert notification box
*/
public function display_alert_notification_box() {
$data_manager = new DataManager();
$alert_notification_setting = $data_manager->get_alert_notification_setting();
if ( $alert_notification_setting ) {
$menu_slug = Helper::menu_slug();
$dashboard_url = is_multisite() ? network_admin_url( "admin.php?page={$menu_slug}" ) : menu_page_url( $menu_slug, false );
// translators: %s = dashboard url.
$html = wp_kses_post( __( 'Warning: Please do not make any changes to the theme or plugin code directly because some themes or plugins are connected with Git.
Click here to learn more.', 'deployer-for-git' ) );
$html = sprintf( $html, esc_url( $dashboard_url ) );
$html = apply_filters( 'dfg_alert_notification_message', $html );
$html = "