Compare commits
4 Commits
bfca0c8fa4
...
f52a1a60e3
| Author | SHA1 | Date | |
|---|---|---|---|
| f52a1a60e3 | |||
| 7bdb9df5f4 | |||
| 310cc2a009 | |||
| a1e856c008 |
@@ -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
|
||||||
@@ -24,7 +24,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||||||
| still works out‑of‑the‑box.
|
| still works out‑of‑the‑box.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$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 ) ) {
|
if ( file_exists( $config_file ) ) {
|
||||||
require_once $config_file;
|
require_once $config_file;
|
||||||
}
|
}
|
||||||
@@ -139,7 +139,7 @@ function dsi_enqueue_assets() : void {
|
|||||||
// register & enqueue the standalone CSS file
|
// register & enqueue the standalone CSS file
|
||||||
wp_enqueue_style(
|
wp_enqueue_style(
|
||||||
'door-status-indicator',
|
'door-status-indicator',
|
||||||
plugins_url( 'door-status.css', __FILE__ ),
|
plugins_url( 'wp-spaceapi-consumer-style.css', __FILE__ ),
|
||||||
[], // no dependencies
|
[], // no dependencies
|
||||||
'1.0.0' // file version
|
'1.0.0' // file version
|
||||||
);
|
);
|
||||||
Reference in New Issue
Block a user