diff --git a/README.md b/README.md index cf33033..07ad015 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ Internal WordPress plugin that walks a technician through a structured healthche ## Install ```sh -ln -s ~/dev/wp-healthcheck /path/to/wp/wp-content/plugins/site-healthcheck +ln -s ~/dev/wp-healthcheck /path/to/wp/wp-content/plugins/att-site-healthcheck ``` Then activate from *Plugins*. Settings appear under *Tools → Site Healthcheck*. @@ -28,7 +28,7 @@ Each step is a single file under `includes/steps/` named `-.php`. ```php discover(ATT_HC_PLUGIN_DIR . 'includes/steps/'); +}); diff --git a/includes/admin-page.php b/includes/admin-page.php index 40645fc..d6bd1c5 100644 --- a/includes/admin-page.php +++ b/includes/admin-page.php @@ -1,195 +1,195 @@ '; echo '

Site Healthcheck

'; - if ($msg = get_transient('wph_install_message')) { - delete_transient('wph_install_message'); + if ($msg = get_transient('att_hc_install_message')) { + delete_transient('att_hc_install_message'); echo '

' . esc_html($msg) . '

'; } if (!$session) { - wph_render_start_panel(); + att_hc_render_start_panel(); echo ''; return; } if ($session->is_finished()) { - wph_render_finished_panel($session); + att_hc_render_finished_panel($session); echo ''; return; } - wph_render_active_session($session); + att_hc_render_active_session($session); echo ''; } -function wph_render_start_panel(): void { +function att_hc_render_start_panel(): void { ?> -
+

Start a healthcheck

This will create a new in-progress session for . One session per site at a time.

- - + +
progress(); $tech = get_userdata($session->technician_id()); ?> -
+

Session: id()); ?> · Started: started_at())); ?> · Technician: display_name : '#' . $session->technician_id()); ?> · - / steps + / steps

WP wp_version()); ?> · PHP php_version()); ?> · Site site_url()); ?>

-
+
- - + +
- - + +
'; - wph_render_sidebar($session); + echo '
'; + att_hc_render_sidebar($session); echo '
'; - foreach (WPH_Steps::instance()->all() as $step) { - wph_render_step_card($session, $step); + foreach (ATT_HC_Steps::instance()->all() as $step) { + att_hc_render_step_card($session, $step); } echo '
'; } -function wph_render_sidebar(WPH_Session $session): void { - echo '