did some touch ups, now the maquee should be actually working
This commit is contained in:
@@ -44,6 +44,7 @@ class Partnerexpo_Core_Public {
|
||||
add_shortcode( 'partnerexpo_searchbox', [ $this, 'searchbox_shortcode' ] );
|
||||
add_shortcode( 'partnerexpo_comment_section', [ $this, 'comments_shortcode' ] );
|
||||
add_shortcode( 'partnerexpo_company_head', [ $this, 'company_head_shortcode' ] );
|
||||
add_shortcode( 'partnerexpo_register', [ $this, 'register_shortcode' ] );
|
||||
}
|
||||
|
||||
public function searchbox_shortcode() {
|
||||
@@ -74,6 +75,23 @@ class Partnerexpo_Core_Public {
|
||||
return ob_get_clean();
|
||||
}
|
||||
|
||||
public function register_shortcode() {
|
||||
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
|
||||
|
||||
// $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'] );
|
||||
|
||||
ob_start();
|
||||
include plugin_dir_path( __FILE__ ) . 'partials/partnerexpo-core-public-register.php';
|
||||
return ob_get_clean();
|
||||
}
|
||||
|
||||
public function company_head_shortcode() {
|
||||
wp_enqueue_style( $this->plugin_name . '-company-head-css' );
|
||||
|
||||
@@ -216,6 +234,14 @@ class Partnerexpo_Core_Public {
|
||||
'all'
|
||||
);
|
||||
|
||||
wp_register_style(
|
||||
$this->plugin_name . '-register-css',
|
||||
plugin_dir_url( __FILE__ ) . 'css/comments.css',
|
||||
[],
|
||||
$this->version,
|
||||
'all'
|
||||
);
|
||||
|
||||
wp_register_style(
|
||||
$this->plugin_name . '-multiselect-css',
|
||||
plugin_dir_url( __FILE__ ) . 'css/multiselect.css',
|
||||
@@ -247,15 +273,6 @@ class Partnerexpo_Core_Public {
|
||||
true
|
||||
);
|
||||
|
||||
wp_register_script(
|
||||
$this->plugin_name . '-comments-js',
|
||||
plugin_dir_url( __FILE__ ) . 'js/comments.js',
|
||||
[],
|
||||
$this->version,
|
||||
true
|
||||
);
|
||||
|
||||
|
||||
wp_register_script(
|
||||
$this->plugin_name . '-multiselect-js',
|
||||
plugin_dir_url( __FILE__ ) . 'js/multiselect.js',
|
||||
|
||||
Reference in New Issue
Block a user