remove non ASCII chars

This commit is contained in:
2025-06-02 00:44:43 +01:00
parent 42345c47b9
commit 6fa42e8f45
2 changed files with 9 additions and 9 deletions

View File

@@ -1,11 +1,11 @@
/* space-status.css styles the indicator as a pillshaped button */ /* space-status.css - styles the indicator as a pill-shaped button */
.space-status-indicator { .space-status-indicator {
display:inline-flex; display:inline-flex;
align-items:center; align-items:center;
gap:0.4em; gap:0.4em;
padding:0.25em 0.75em; padding:0.25em 0.75em;
border-radius:1em; /* fullyrounded corners */ border-radius:1em; /* fully-rounded corners */
font-size:0.95em; font-size:0.95em;
font-weight:600; font-weight:600;
line-height:1; line-height:1;

View File

@@ -22,7 +22,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| Constants are expected in wp-spaceapi-consumer-config.php located in the same | Constants are expected in wp-spaceapi-consumer-config.php located in the same
| directory. If that file is missing, sane defaults are used so the plugin | directory. If that file is missing, sane defaults are used so the plugin
| still works outofthebox. | still works out-of-the-box.
*/ */
$config_file = plugin_dir_path( __FILE__ ) . 'wp-spaceapi-consumer-config.php'; $config_file = plugin_dir_path( __FILE__ ) . 'wp-spaceapi-consumer-config.php';
@@ -37,7 +37,7 @@ if ( file_exists( $config_file ) ) {
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| Core fetch & cache | Core - fetch & cache
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
*/ */
@@ -45,8 +45,8 @@ if ( file_exists( $config_file ) ) {
* Retrieves space open status (boolean) with transient caching. * Retrieves space open status (boolean) with transient caching.
* *
* Supported JSON payloads (any case): * Supported JSON payloads (any case):
* true / false (bare boolean) * - true / false (bare boolean)
* {"state": {"open": true}} (SpaceAPI standard) * - {"state": {"open": true}} (SpaceAPI standard)
* *
* @return bool True if open, false if closed (or on error). * @return bool True if open, false if closed (or on error).
*/ */
@@ -117,7 +117,7 @@ add_shortcode( 'door_status', 'ssi_shortcode' );
function ssi_admin_bar( WP_Admin_Bar $bar ) : void { function ssi_admin_bar( WP_Admin_Bar $bar ) : void {
if ( ! current_user_can( 'read' ) ) { if ( ! current_user_can( 'read' ) ) {
return; // Loggedin users only. return; // Logged-in users only.
} }
$open = ssi_get_status(); $open = ssi_get_status();
@@ -135,7 +135,7 @@ add_action( 'admin_bar_menu', 'ssi_admin_bar', 1000 );
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| Frontend inline CSS (kept minimal) | Front-end inline CSS (kept minimal)
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
*/ */
@@ -157,7 +157,7 @@ add_action( 'admin_enqueue_scripts', 'ssi_enqueue_assets' ); // so the Admin Bar
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| WPCLI command (optional) | WP-CLI command (optional)
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
*/ */