finished comment integration, it should be working now

This commit is contained in:
2026-03-17 13:47:55 +01:00
parent 76eb96666b
commit f58248a8e7
10 changed files with 689 additions and 29 deletions

View File

@@ -10,6 +10,8 @@
* @subpackage Partnerexpo_Core/public/partials
*/
$complience_url = "rendszerepito.hu/adatkezeles";
?>
<div class="pexpo-core-comments" id="pexpo-core-comments">
@@ -40,14 +42,14 @@
<?php echo get_comment_text( $comment ); ?>
</div>
<div class="pexpo-core-comment-said_by">
<?php if ( get_comment_meta( $comment->comment_ID, 'author', true ) ): ?>
<?php if ( get_comment_meta( $comment->comment_ID, 'first_name', true ) && get_comment_meta( $comment->comment_ID, 'last_name', true ) ): ?>
<div class="pexpo-core-comment-author">
<p><?php echo get_comment_meta( $comment->comment_ID, 'author', true ); ?></p>
<p><?php echo esc_html( get_comment_meta( $comment->comment_ID, 'first_name', true ) ); ?> <?php echo esc_html( get_comment_meta( $comment->comment_ID, 'last_name', true ) ); ?></p>
</div>
<p>-</p>
<?php endif; ?>
<div class="pexpo-core-comment-business">
<p><?php echo get_comment_meta( $comment->comment_ID, 'company', true ); ?></p>
<p><?php echo esc_html( get_comment_meta( $comment->comment_ID, 'company', true ) ); ?></p>
</div>
</div>
</div>
@@ -69,13 +71,23 @@
<div class="pexpo-core-com-form-wrapper">
<h2 class="pexpo-core-com-form-title"><?php echo esc_html_x( 'Visszajelzés küldése', 'partnerexpo_core' ); ?></h2>
<p class="pexpo-core-com-field">
<label for="author"><?php echo esc_html_x( 'Kitöltő neve', 'partnerexpo_core' ); ?></label><br />
<input type="text" id="author" name="author" aria-required="true" required>
<label for="last_name"><?php echo esc_html_x( 'Vezetéknév', 'partnerexpo_core' ); ?></label><br />
<input type="text" id="last_name" name="last_name" aria-required="true" required>
</p>
<p class="pexpo-core-com-field">
<label for="email"><?php echo esc_html_x( 'Email cím', 'partnerexpo_core' ); ?></label><br />
<input type="email" id="email" name="email" aria-required="true" required>
<label for="first_name"><?php echo esc_html_x( 'Keresztnév', 'partnerexpo_core' ); ?></label><br />
<input type="text" id="first_name" name="first_name" aria-required="true" required>
</p>
<p class="pexpo-core-com-field">
<label for="mail"><?php echo esc_html_x( 'Email cím', 'partnerexpo_core' ); ?></label><br />
<input type="mail" id="mail" name="mail" aria-required="true" required>
</p>
<p class="pexpo-core-com-field">
<label for="phone"><?php echo esc_html_x( 'Telefonszám', 'partnerexpo_core' ); ?></label><br />
<input type="tel" id="phone" name="phone" aria-required="true" required>
</p>
<p class="pexpo-core-com-field">
@@ -87,8 +99,13 @@
<label for="comment"><?php echo esc_html_x( 'Hozzászólás / Visszajelzés', 'partnerexpo_core' ); ?></label><br />
<textarea id="comment" name="comment" aria-required="true" maxlength="600" required></textarea>
</p>
<div><input type="hidden" name="comment_post_ID" value="<?php echo esc_attr( $post_id ); ?>" id="comment_post_ID"></div>
<div><input type="hidden" name="comment_parent" id="comment_parent" value="0"></div></div>
<div class="pexpo-core-com-consent">
<div><input type="checkbox" id="gdpr" name="gdpr" aria-required="true" maxlength="600" required>GDPR <a href="https://<?php echo esc_url( $complience_url ) ?>"><?php echo __( $complience_url ) ?></a> - <?php echo esc_html_x( 'Elfogadom', 'partnerexpo_core' ); ?></input></div>
<div><input type="checkbox" id="newsletter" name="newsletter" aria-required="true" maxlength="600"> <?php echo esc_html_x( 'Feliratkozom a hírlevélre.', 'partnerexpo_core' ); ?></input></div></div>
<div><input type="hidden" name="comment_post_ID" value="<?php echo esc_attr( $post_id ); ?>" id="comment_post_ID" aria-hidden></div>
<div><input type="hidden" name="comment_parent" id="comment_parent" value="0" aria-hidden></div></div>
<div class="pexpo-core-submit-wrapper">
<button type="submit" name="submit" id="submit" class="submit"><?php _e( 'Küldés', 'partnerexpo-core' ); ?></button>
</div>