function __construct() { $this->committeeController = CommitteeController::getSingleton(); $this->createCommitteePostType(); add_action('add_meta_boxes_committee', array(&$this, 'addMetaBoxesForCommittee')); add_action('save_post', array(&$this->committeeController, 'save')); $this->createCommitteeTaxonomy(); }
<input type="text" class="form-control" placeholder="Last name" ng-model="user.last_name"> </div> <div class="form-group"> <label>E-Mail</label> <input type="email" class="form-control" placeholder="E-Mail" ng-model="user.email" ng-change="checkEmailForAffiliates($index)"> <div class="alert alert-danger" ng-show="user.isTaken">This email belongs to a member</div> </div> <div class="form-group"> <label>Password</label> <input type="password" class="form-control" placeholder="Password" ng-model="user.password"> </div> <div class="form-group"> <label>Committee</label> <select class="form-control new-select-checkout" ng-model="user.committee"> <?php foreach (CommitteeController::getSingleton()->getCommitteeTerms() as $committee) { ?> <option value="<?php echo $committee->getTermId(); ?> "><?php echo $committee->getName(); ?> </option> <?php } ?> </select> </div> <div class="btn btn-danger" ng-click="remove(user.id)">Remove Affiliate</div> </div>
<div class="container all-pad-gone"> <div class="row"> <div class="col-md-12 about"> <h2><?php echo $pageEntity->getTitle(); ?> </h2> <p><?php echo $pageEntity->getContent(); ?> </p> </div> </div> <div class="row"> <?php foreach (CommitteeController::getSingleton()->getAll() as $committee) { ?> <div class="col-md-6"> <div class="committees"> <h4><?php echo $committee->getTitle(); ?> </h4> <p><?php echo TextHelper::cropText($committee->getContent(), 400); ?> </p> <h5>Co-Chairs:</h5> <p><?php echo $committee->getCoChairs();