finished comment integration, it should be working now
This commit is contained in:
@@ -59,9 +59,8 @@ class Partnerexpo_Core_Public {
|
||||
|
||||
public function comments_shortcode($atts) {
|
||||
wp_enqueue_style( $this->plugin_name . '-comments-css' );
|
||||
wp_enqueue_script('jquery');
|
||||
wp_enqueue_script( $this->plugin_name . '-comments-js' );
|
||||
// wp_enqueue_style( $this->plugin_name . '-multiselect-css' );
|
||||
// wp_enqueue_script( $this->plugin_name . '-multiselect-js' );
|
||||
|
||||
$atts = shortcode_atts( array(
|
||||
'post_id' => get_the_ID(),
|
||||
@@ -264,6 +263,15 @@ class Partnerexpo_Core_Public {
|
||||
$this->version,
|
||||
true
|
||||
);
|
||||
|
||||
|
||||
wp_register_script(
|
||||
$this->plugin_name . '-comments-js',
|
||||
plugin_dir_url( __FILE__ ) . 'js/comments.js',
|
||||
[ 'jquery' ],
|
||||
$this->version,
|
||||
true
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user