Compare commits

..

4 Commits

4 changed files with 6 additions and 4 deletions

View File

@@ -1,3 +1,5 @@
# wp-api-consumer
# WordPress SpaceAPI Consumer
Small WprdPress plugin to consume an API
# wp-spaceapi-consumer
Small WordPress plugin to consume an SpaceAPI endpoint and indicate on the WordPress website if the Space is Open or Closed

View File

@@ -24,7 +24,7 @@ if ( ! defined( 'ABSPATH' ) ) {
| still works outofthebox.
*/
$config_file = plugin_dir_path( __FILE__ ) . 'door-status-config.php';
$config_file = plugin_dir_path( __FILE__ ) . 'wp-spaceapi-consumer-config.php';
if ( file_exists( $config_file ) ) {
require_once $config_file;
}
@@ -139,7 +139,7 @@ function dsi_enqueue_assets() : void {
// register & enqueue the standalone CSS file
wp_enqueue_style(
'door-status-indicator',
plugins_url( 'door-status.css', __FILE__ ),
plugins_url( 'wp-spaceapi-consumer-style.css', __FILE__ ),
[], // no dependencies
'1.0.0' // file version
);