replaced comment form for a custom one

This commit is contained in:
2026-03-14 19:31:10 +01:00
parent 00c23b43de
commit ef7c5ccec8
5 changed files with 115 additions and 80 deletions

View File

@@ -57,12 +57,19 @@ class Partnerexpo_Core_Public {
return ob_get_clean();
}
public function comments_shortcode() {
public function comments_shortcode($atts) {
wp_enqueue_style( $this->plugin_name . '-comments-css' );
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(),
), $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-comments.php';
return ob_get_clean();