Updated registration form and login stuff

This commit is contained in:
2026-03-19 21:08:27 +01:00
parent 2b91c368ee
commit c85761857a
8 changed files with 177 additions and 623 deletions

View File

@@ -75,14 +75,14 @@ class Partnerexpo_Core_Public {
return ob_get_clean();
}
public function register_shortcode() {
public function register_shortcode($atts) {
wp_enqueue_style( $this->plugin_name . '-register-css' );
wp_enqueue_script( $this->plugin_name . '-business-page' ); // TODO for now it references the business page js
wp_enqueue_script( $this->plugin_name . '-register-js' );
// $atts = shortcode_atts( array(
// 'post_id' => get_the_ID(),
// ), $atts );
$atts = shortcode_atts( array(
'post_id' => get_the_ID(),
), $atts );
// // This variable is now scoped and ready for the partial
// $post_id = intval( $atts['post_id'] );
@@ -236,7 +236,7 @@ class Partnerexpo_Core_Public {
wp_register_style(
$this->plugin_name . '-register-css',
plugin_dir_url( __FILE__ ) . 'css/comments.css',
plugin_dir_url( __FILE__ ) . 'css/register.css',
[],
$this->version,
'all'
@@ -281,7 +281,6 @@ class Partnerexpo_Core_Public {
true
);
wp_register_script(
$this->plugin_name . '-comments-js',
plugin_dir_url( __FILE__ ) . 'js/comments.js',
@@ -289,6 +288,14 @@ class Partnerexpo_Core_Public {
$this->version,
true
);
wp_register_script(
$this->plugin_name . '-register-js',
plugin_dir_url( __FILE__ ) . 'js/register.js',
[ 'jquery' ],
$this->version,
true
);
}