Update dashboard JS and frontend class

This commit is contained in:
stack_admn committed 2026-10-31 18:17:55 -07:00
1 parent 48c7d23261
commit 2b1424d127
8 files changed
+245 -98

No files matched your search

+20 -2
View File
@@ -3,7 +3,7 @@
* Plugin Name: Hi-School Slide Manager
* Plugin URI: https://hi-school.com/slide-manager
* Description: Multi-site slide management system for Hi-School websites. Allows staff to create and schedule slides on the main site, display them as headers on companion sites via REST API, with advanced preview and editing capabilities.
* Version: 1.1.1
* Version: 1.1.2
* Author: Hi-School Development Team
* Author URI: https://hi-school.com
* License: GPL v2 or later
@@ -22,7 +22,7 @@ if ( ! defined( 'ABSPATH' ) ) {
}
// Plugin constants
define( 'HSSM_VERSION', '1.1.1' );
define( 'HSSM_VERSION', '1.1.2' );
define( 'HSSM_PLUGIN_FILE', __FILE__ );
define( 'HSSM_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
define( 'HSSM_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
@@ -32,6 +32,24 @@ define( 'HSSM_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
// define( 'HSSM_SLIDES_TABLE', 'hssm_slides' );
// define( 'HSSM_SITES_TABLE', 'hssm_companion_sites' );
/**
* Write a debug log line only when WP_DEBUG and WP_DEBUG_LOG are enabled.
*
* @since 1.1.2
* @param mixed $message Message or data to log.
*/
function hssm_debug_log( $message ) {
if ( ! defined( 'WP_DEBUG' ) || ! WP_DEBUG || ! defined( 'WP_DEBUG_LOG' ) || ! WP_DEBUG_LOG ) {
return;
}
if ( ! is_string( $message ) ) {
$message = print_r( $message, true );
}
error_log( 'HSSM: ' . $message );
}
// Include core files
require_once HSSM_PLUGIN_DIR . 'includes/class-hssm-autoloader.php';
require_once HSSM_PLUGIN_DIR . 'includes/class-hssm-main.php';