public function save($postId) { $eventEntity = new PostEntity($postId); if ($eventEntity->getType() == EventHelper::POST_TYPE) { $eventEntity->setPaymentUrl($_POST["payment_url"]); } }
public function save($postId) { if (isset($_POST[PostEntity::VIDEO])) { $postEntity = new PostEntity($postId); $postEntity->setVideo($_POST[PostEntity::VIDEO]); } }
<?php use INUtils\Entity\PostEntity; use Staff\Controller\StaffController; /* Template Name: staff */ $pageEntity = new PostEntity(get_the_ID()); $staffs = StaffController::getSingleton()->getAll(); get_header(); ?> <div class="container all-pad-gone"> <?php echo do_shortcode('[slideshow group="about"]'); ?> <?php echo getTopMenu(); ?> </div> <!--start main content here--> <div class="container all-pad-gone"> <div class="row"> <div class="col-md-12 about"> <h2><?php echo $pageEntity->getTitle(); ?> </h2> <p><?php
<?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();
/** * This populates the post entity */ private function populatePostEntity() { $this->postEntity = new PostEntity($this->getId()); if ($this->postEntity->getType() === "revision") { $this->postEntity = new PostEntity(get_the_ID()); } }
<?php 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 use INUtils\Entity\PostEntity; use Committee\Controller\CommitteeController; use Member\Helper\MemberHelper; if (wp_get_current_user()->ID != 0 && wp_get_current_user()->membership_level->name != "unpaid") { header("Location: /editme"); } $pageEntity = new PostEntity(get_the_ID()); get_header(); ?> <div class="container all-pad-gone"> <?php echo getTopMenu(); ?> </div> <div class="container all-pad-gone register" ng-controller="MembershipController" ng-init="getMembershipLevels(); getCurrentUser()" ng-cloak> <div class="row"> <form class="" ng-init="initialize()" ng-hide="isSuccess" ng-submit="register()"> <div class="col-md-12"> <div class="form-group"> <h2><?php echo $pageEntity->getTitle(); ?> </h2> </div> <div class="form-group"> <h3>Create your account</h3> </div>
<?php use INUtils\Entity\PostEntity; $p = new PostEntity(get_the_ID()); get_header(); ?> <div class="container all-pad-gone"> <?php echo do_shortcode('[slideshow group="blog"]'); ?> <?php echo getTopMenu(); ?> </div> <div class="container all-pad-gone"> <div class="row"> <div class="col-md-12 about"> <h2><?php echo $p->getTitle(); ?> </h2> </div> </div> <br> <div class="row"> <div class="col-md-5"> <img class="img-responsive" alt="" src="<?php if ($p->getImage() == "") { echo get_template_directory_uri() . "/img/place-holder.jpg"; } else {
<?php use INUtils\Entity\PostEntity; $postV = get_post(); if ($postV->post_type == "tribe_events") { require_once __DIR__ . '/single-tribe_event.php'; exit; } $pageEntity = new PostEntity(get_the_ID()); get_header(); ?> <p> </p> <div class="container inside-pages"> <div class="breadcrumbs-box"> <a href="/">Home</a><span>></span><a href="/about/">About</a><span>></span> <a href="/<?php echo $pageEntity->getName(); ?> "><?php echo $pageEntity->getTitle(); ?> </a> </div> <p> </p> <div class="container inside-pages"> <div class="row"> <div class="col-md-12"> <form method="post"> <input type="text" name="query"> <input type="submit" value="Search"> <input type="hidden" name="action-type" value="search">
<?php use Member\Helper\MemberHelper; use INUtils\Entity\PostEntity; use Staff\Helper\StaffHelper; use Director\Helper\DirectorHelper; $p = new PostEntity(get_the_ID()); if ($p->getType() == StaffHelper::STAFF_POST_TYPE) { header('location: /about/staff'); } elseif ($p->getType() == "post") { require_once __DIR__ . '/single-blog.php'; exit; } elseif ($p->getType() == "issue" || $p->getType() == "resource") { header('location: /advocacy'); } elseif ($p->getType() == "job") { header('location: /job-bank'); } elseif ($p->getType() == "sponsor") { header('location: /sponsors'); } elseif ($p->getType() == "board_member") { header('location: /about/board'); } elseif (!MemberHelper::isCurrentAccountActive()) { header('location: /renewal'); } get_header(); the_content(); get_footer();