- Implement singleton pattern for HVAC_Enhanced_Settings to prevent duplicate initialization - Fix jQuery selector error by checking for valid hash selectors before using $(href) - Add default email templates with professional copy for trainer notifications - Update plugin version to 1.0.1 for cache busting - Remove duplicate Enhanced Settings initialization from HVAC_Community_Events - Add force cache refresh suffix to admin scripts This resolves the duplicate content issue on email templates page and fixes JavaScript errors in the admin interface. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
56 lines
No EOL
1.5 KiB
PHP
56 lines
No EOL
1.5 KiB
PHP
<?php
|
|
/**
|
|
* Template Name: HVAC Community Login
|
|
*
|
|
* This is the custom template for the community login page.
|
|
*
|
|
* @package HVAC_Community_Events
|
|
*/
|
|
|
|
// Exit if accessed directly.
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
|
exit;
|
|
}
|
|
|
|
get_header(); ?>
|
|
|
|
<style>
|
|
/* Override theme constraints for login page */
|
|
#primary, #main, .content-area, .site-main {
|
|
max-width: none !important;
|
|
width: 100% !important;
|
|
margin: 0 !important;
|
|
padding: 0 !important;
|
|
}
|
|
|
|
/* Hide default page title */
|
|
.entry-header {
|
|
display: none !important;
|
|
}
|
|
|
|
/* Ensure full-width wrapper */
|
|
.hvac-community-login-wrapper {
|
|
width: 100vw !important;
|
|
margin-left: calc(-50vw + 50%) !important;
|
|
padding: 60px 20px !important;
|
|
min-height: 70vh !important;
|
|
background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
|
|
}
|
|
</style>
|
|
|
|
<div id="primary" class="content-area">
|
|
<main id="main" class="site-main" role="main">
|
|
<?php
|
|
// Process the shortcode directly
|
|
// First instantiate the login handler class to ensure shortcode is registered
|
|
if (!class_exists('\\HVAC_Community_Events\\Community\\Login_Handler')) {
|
|
require_once HVAC_PLUGIN_DIR . 'includes/community/class-login-handler.php';
|
|
}
|
|
$login_handler = new \HVAC_Community_Events\Community\Login_Handler();
|
|
// Now call the render method directly
|
|
echo $login_handler->render_login_form(array());
|
|
?>
|
|
</main><!-- #main -->
|
|
</div><!-- #primary -->
|
|
|
|
<?php get_footer(); ?>
|