did some touch ups, now the maquee should be actually working

This commit is contained in:
2026-03-17 21:40:11 +01:00
parent f58248a8e7
commit 2b91c368ee
8 changed files with 368 additions and 28 deletions

View File

@@ -133,6 +133,54 @@ class Partnerexpo_Core_User_Fields extends Partnerexpo_Core {
public function add_value_after_reg( $user_id ) {
if ( ! empty( $_POST['first_name'] ) ) {
update_user_meta(
$user_id,
'first_name',
sanitize_text_field( $_POST['first_name'] )
);
}
if ( ! empty( $_POST['last_name'] ) ) {
update_user_meta(
$user_id,
'last_name',
sanitize_text_field( $_POST['last_name'] )
);
}
if ( ! empty( $_POST['phone'] ) ) {
update_user_meta(
$user_id,
'phone',
sanitize_text_field( $_POST['phone'] )
);
}
if ( ! empty( $_POST['phone'] ) ) {
update_user_meta(
$user_id,
'phone',
sanitize_text_field( $_POST['phone'] )
);
}
if ( ! empty( $_POST['gdpr'] ) ) {
update_user_meta(
$user_id,
'gdpr',
sanitize_text_field( $_POST['gdpr'] )
);
}
if ( ! empty( $_POST['newsletter'] ) ) {
update_user_meta(
$user_id,
'newsletter',
sanitize_text_field( $_POST['newsletter'] )
);
}
if ( ! empty( $_POST['company'] ) ) {
update_user_meta(
$user_id,
@@ -140,7 +188,7 @@ class Partnerexpo_Core_User_Fields extends Partnerexpo_Core {
sanitize_text_field( $_POST['company'] )
);
}
if ( ! empty( $_POST['image_attachment_id'] ) ) {
update_user_meta(
$user_id,
@@ -148,15 +196,8 @@ class Partnerexpo_Core_User_Fields extends Partnerexpo_Core {
absint( $_POST['image_attachment_id'] )
);
}
}
function registration_form() {
?>
<p>
<label for="company"><?php _e( 'Cég neve', 'partnerexpo-core' ) ?><br />
<input type="text" name="company" id="company" class="input" value="" size="25" /></label>
</p>
<?php
update_user_meta($user_id, 'user_status', 'inactive');
}
function registration_errors( $errors, $sanitized_user_login, $user_email ) {

View File

@@ -37,8 +37,6 @@ class Partnerexpo_Core_Integration_Comment_Form {
$newsletter_value = 1;
# # # # #
try {
if ( ! $this->client ) {
Logger::log(__("MiniCRM Kliens nem található, Szinkronizálás megszakítása!", 'partnerexpo-core'), [$com_id_text => $comment_id]);
return;