diff --git a/assets/css/buddy.css b/assets/css/buddy.css index 763d6e5..cb77617 100644 --- a/assets/css/buddy.css +++ b/assets/css/buddy.css @@ -168,3 +168,84 @@ font-size: 13px; border-radius: 0 4px 4px 0; } + +/* ── About page ──────────────────────────────────────────────────── */ + +.buddy-about-intro { + display: flex; + gap: 24px; + align-items: center; + flex-wrap: wrap; + margin: 16px 0 28px; + padding: 18px; + background: #fff; + border: 1px solid #ccd0d4; + border-radius: 4px; +} +.buddy-about-intro__sprite { + flex: 0 0 160px; + display: flex; + justify-content: center; +} +.buddy-about-intro__body { + flex: 1 1 320px; + min-width: 0; +} +.buddy-about-intro__body h2 { margin-top: 0; } +.buddy-about-intro__version { + color: #646970; + font-weight: 400; +} +.buddy-about-intro__cta { + margin-bottom: 0; +} + +.buddy-about-card { + background: #fff; + border: 1px solid #ccd0d4; + border-radius: 4px; + padding: 20px 24px; + margin: 0 0 22px; + max-width: 720px; +} +.buddy-about-card h2 { margin: 0 0 10px; font-size: 16px; } +.buddy-about-card p:last-child { margin-bottom: 0; } +.buddy-about-card ul { margin: 8px 0 0 18px; list-style: disc; } +.buddy-about-card ul li { margin-bottom: 4px; } +.buddy-about-card--versions ul { list-style: none; margin-left: 0; } +.buddy-about-card--versions li { margin-bottom: 12px; } +.buddy-about-card--versions .ver { font-weight: 600; color: #2271b1; } +.buddy-about-card--versions .latest { + display: inline-block; + margin-left: 6px; + padding: 1px 7px; + background: #00a32a; + color: #fff; + border-radius: 9px; + font-size: 11px; + font-weight: 600; +} +.buddy-about-changelog-link { + display: inline-block; + margin-top: 6px; + font-size: 13px; + color: #646970; +} + +/* ── Settings page form + admin-page description ─────────────────── */ + +.buddy-admin-description { + max-width: 720px; +} + +.buddy-settings-form { + max-width: 720px; + background: #fff; + padding: 18px 22px; + border: 1px solid #ccd0d4; + border-radius: 4px; + margin-top: 16px; +} +.buddy-settings-form h2 { + margin-top: 0; +} diff --git a/buddy.php b/buddy.php index c8976c0..4890606 100644 --- a/buddy.php +++ b/buddy.php @@ -5,7 +5,7 @@ * Plugin Name: RangerHQ Buddy * Plugin URI: https://davidtkeane.com/rangerhq-buddy * Description: Adopt a small companion that lives in your WordPress dashboard. Its mood reflects your site's health — published posts feed it, outdated plugins make it sick, clearing spam makes it happy. Gamifies WordPress maintenance with a bit of charm. - * Version: 0.1.4 + * Version: 0.1.5 * Requires at least: 5.0 * Requires PHP: 7.4 * Author: David Keane @@ -20,7 +20,7 @@ if ( ! defined( 'ABSPATH' ) ) { exit; } // Plugin coordinates. -if ( ! defined( 'BUDDY_VERSION' ) ) { define( 'BUDDY_VERSION', '0.1.4' ); } +if ( ! defined( 'BUDDY_VERSION' ) ) { define( 'BUDDY_VERSION', '0.1.5' ); } if ( ! defined( 'BUDDY_FILE' ) ) { define( 'BUDDY_FILE', __FILE__ ); } if ( ! defined( 'BUDDY_PATH' ) ) { define( 'BUDDY_PATH', plugin_dir_path( __FILE__ ) ); } if ( ! defined( 'BUDDY_URL' ) ) { define( 'BUDDY_URL', plugin_dir_url( __FILE__ ) ); } diff --git a/inc/about.php b/inc/about.php index 7038c41..463fa9a 100644 --- a/inc/about.php +++ b/inc/about.php @@ -16,48 +16,6 @@ function buddy_render_about_page() { wp_die( esc_html__( 'You do not have permission to view this page.', 'rangerhq-buddy' ) ); } ?> - -
A friendly little companion that lives in your WordPress dashboard. The idea: keep Buddy's stats up, eventually Buddy's mood will reflect how well you're taking care of your site itself. Gamifies WordPress maintenance with a bit of charm.
-+
+
diff --git a/inc/settings.php b/inc/settings.php index ef0a04f..af17c1a 100644 --- a/inc/settings.php +++ b/inc/settings.php @@ -47,9 +47,9 @@ function buddy_render_settings_page() {