<?php use INUtils\Helper\PostHelper; use INUtils\Entity\PostEntity; $eventEntity = new PostEntity(get_the_ID()); ?> <div class="panel-body"> <div class="form-group"> <label class="control-label col-lg-2 col-sm-2">Payment Widget</label> <div class="col-lg-10 col-sm-10"> <textarea class="form-control" rows="5" name="payment_url" id="payment_url"><?php echo $eventEntity->getPaymentUrl(); ?> </textarea> </div> </div> </div> <?php echo PostHelper::addStylesAndScripts();
echo tribe_event_featured_image($event_id, 'full', false); ?> <?php while (have_posts()) { the_post(); ?> <?php do_action('tribe_events_single_event_before_the_content'); ?> <?php the_content(); ?> <?php if (get_the_ID() != 0) { $p = new PostEntity(get_the_ID()); if ($p->getPaymentUrl() != "") { ?> <div class="register_iframe"> <h2>Register</h2> <?php echo $p->getPaymentUrl(); ?> </div> <?php } ?> <?php } ?> <?php