/ Published in: PHP
I need to create a new template that just show the photo ordered by «department» and «title». It should also include an hidden with full name, email, social links and bio.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<div class="cn-entry" style="-moz-border-radius:4px; background-color:#FFFFFF; border:1px solid #E3E3E3; margin:8px 0px; padding:6px; position: relative; float: left;"> <a href="#cn-entry-<?php echo $cssid ?>" rel="prettyPhoto"><?php echo $entry->getCardImage(); ?></a> <div id="cn-entry-<?php echo $cssid; ?>" class="hide"> <span style="font-size:larger;font-variant: small-caps"> <strong><?php echo $entry->getFullFirstLastName() ?></strong> </span> <br /> <?php echo $entry->getTitle() ?> <?php echo $entry->getDepartment() ?> <div style="margin-bottom: 20px;"> <ul class="icons"> <?php $entryVars = $entry->getEmailAddresses(); foreach($eVar in $entryVars) { ?> <li><img src="emailIcon.png" title="<?php echo $eVar['address']; ?>" /></li> <?php } $entryVars = $entry->getSocialMedia(); foreach($eVar in $entryVars) { ?> <li><a href="<?php echo $eVar['url']; ?>" target="_blank"><img src="<?php echo $eVar['type']; ?>Icon.png" title="<?php echo $eVar['name']; ?>" /></a></li> <?php } $entryVars = $entry->getIm(); foreach($eVar in $entryVars) { ?> <li><img src="<?php echo $eVar['type']; ?>Icon.png" title="<?php echo $eVar['id']; ?>" /></li> <?php } $entryVars = $entry->getWebsite(); foreach($eVar in $entryVars) { ?> <li><a href="<?php echo $eVar['url']; ?>" target="_blank"><img src="websiteIcon.png" title="<?php echo $eVar['name']; ?>" /></a></li> <?php } ?> </ul > </div> <div style="clear:both"></div> <?php echo $entry->getBio() ?> <div style="clear:both"></div> <div class="cn-meta" align="left" style="margin-top: 6px"> <?php echo $vCard->download() ?> </div> </div><!-- #cn-entry-<?php echo $cssid; ?> --> </div><!-- #cn-entry -->