/** * It creates the Staff post type */ public function createStaffPostType() { PostHelper::createPostType(self::STAFF_POST_TYPE, self::STAFF_SINGULAR, self::STAFF_PLURAL); }
<?php use INUtils\Helper\PostHelper; $directorEntity = dcbia::getEntity("director"); ?> <div class="panel-body"> <div class="form-group"> <label class="control-label col-lg-2 col-sm-2">PDF</label> <div class="col-lg-10 col-sm-10"> <input type="file" class="form-control" name="file" id="file"/> </div> </div> <?php if ($directorEntity->getFileName() != "") { ?> <a href="<?php echo $directorEntity->getFileUrl(); ?> "><?php echo $directorEntity->getFileName(); ?> </a> <?php } ?> </div> <?php echo PostHelper::addStylesAndScripts();
/** * It creates the Job post type */ public function createJobPostType() { PostHelper::createPostType(self::JOB_POST_TYPE, self::JOB_SINGULAR, self::JOB_PLURAL); }
/** * It creates the Staff post type */ public function createDirectorPostType() { PostHelper::createPostType(self::DIRECTOR_POST_TYPE, self::DIRECTOR_SINGULAR, self::DIRECTOR_PLURAL); }
/** * It creates the Staff post type */ public function createSponsorPostType() { PostHelper::createPostType(self::POST_TYPE, self::SINGULAR, self::PLURAL); }
/** * It creates the Job post type */ public function createResourcePostType() { PostHelper::createPostType(self::POST_TYPE, self::POST_SINGULAR, self::POST_PLURAL); }
/** * It creates the Staff post type */ public function createHomePostType() { PostHelper::createPostType(self::HOME_POST_TYPE, self::HOME_SINGULAR, self::HOME_PLURAL); }