private function formatUserAsArray(\WP_User $user) { $description = get_user_meta($user->ID, "company_description", true); $companyName = get_user_meta($user->ID, "company_name", true); return array("name" => $user->first_name . " " . $user->last_name, "cropBio" => TextHelper::cropText($description), "permalink" => $user->user_url, "picture" => get_avatar_url($user->ID), "email" => $user->user_login, "organization" => $companyName, "affilates_number" => get_user_meta($user->ID, "affilates_number", true), "account_id" => get_user_meta($user->ID, "account_id", true), "contact_id" => get_user_meta($user->ID, "contact_id", true), "city" => get_user_meta($user->ID, "city", true), "state" => get_user_meta($user->ID, "state", true)); }
<div class="row"> <?php foreach (DirectorController::getSingleton()->getAllMedia() as $media) { ?> <div class="col-md-4"> <div class="media"> <h4><?php echo $media->getTitle(); ?> </h4> <h5><?php echo mysql2date("F j, Y", $media->getDate()); ?> </h5> <p><?php echo TextHelper::cropText($media->getContent(), 100); ?> </p> <div class="board"> <a class="button2" href="<?php echo $media->getFileUrl(); ?> "><i class="fa fa-file-pdf-o"></i>Download press release here!</a> </div> </div> </div> <?php } ?> </div> </div>
?> </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(); ?> </p> <h5>DLD Vice Chair:</h5> <p><?php echo $committee->getViceChairs(); ?> </p> </div>
/** * * @return array */ public function getAsArray() { return array("title" => $this->getTitle(), "description" => $this->getDescription(), "contributors" => $this->getContributors(), "resourceType" => $this->getType()->getOptions(), "areasOfFocus" => $this->getAreasOfFocus()->getOptions(), "stakeholders" => $this->getStakeholders()->clearOptions(), "format" => $this->getResourceFormat(), "license" => $this->getCopyright()->getOptions(), "authors" => $this->getAuthors()->toString(), "file" => array("name" => $this->getFileName(), "size" => $this->getFileSize(), "url" => $this->getFileUrl()), "tags" => $this->getPostEntity()->getTagsAsString(), "url" => $this->getUrl(), "date" => $this->getDate()->getFormattedDate(), "permalink" => $this->getPostEntity()->getPermalink(), "limitedDescription" => TextHelper::cropText($this->getDescription(), 200)); }
<?php } ?> <h4 class="heading-top-space"><?php echo $member->getTitle(); ?> </h4> <h5><?php echo $member->getJobTitle(); ?> </h5> <p><a href="<?php echo $member->getUrl(); ?> "><?php echo TextHelper::cropText($member->getContent()); ?> </a></p> </div> <?php } ?> </div> <br> <div class="row"> <div class="col-md-12 about board-list"> <?php echo $pageEntity->getContent(); ?> </div>