<ul> <?php foreach ($userData as $key => $value) { ?> <?php if ($userData['gender'] == 'male' && $key == "women-weight") { continue; } ?> <?php if ($userData['gender'] == 'female' && $key == "men-weight") { continue; } ?> <li><?php echo App\Helper::mapRegistrationFieldNames($key); ?> : <?php echo $value; ?> </li> <?php } ?> </ul> </div> <div class="img"><strong>Important!</strong><p>Dont forget to click the return button after you pay!</p><img src="/img/paypal-comeback.jpg" alt=""></div> <br> <?php if (new DateTime() < App\Helper::eventData("promoUntil")) {