Connections template


/ Published in: PHP
Save to your folder(s)

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.


Copy this code and paste it in your HTML
  1. <?php $cssid = uniqid(); ?>
  2. <div class="cn-entry"
  3. style="-moz-border-radius:4px; background-color:#FFFFFF; border:1px solid #E3E3E3; margin:8px 0px; padding:6px; position: relative; float: left;">
  4. <a href="#cn-entry-<?php echo $cssid ?>" rel="prettyPhoto"><?php echo $entry->getCardImage(); ?></a>
  5. <div id="cn-entry-<?php echo $cssid; ?>" class="hide">
  6. <span style="font-size:larger;font-variant: small-caps">
  7. <strong><?php echo $entry->getFullFirstLastName() ?></strong>
  8. </span>
  9. <br />
  10. <?php echo $entry->getTitle() ?>
  11. <?php echo $entry->getDepartment() ?>
  12. <div style="margin-bottom: 20px;">
  13. <ul class="icons">
  14. <?php
  15. $entryVars = $entry->getEmailAddresses();
  16. foreach($eVar in $entryVars) { ?>
  17. <li><img src="emailIcon.png" title="<?php echo $eVar['address']; ?>" /></li>
  18. <?php }
  19. $entryVars = $entry->getSocialMedia();
  20. foreach($eVar in $entryVars) { ?>
  21. <li><a href="<?php echo $eVar['url']; ?>" target="_blank"><img
  22. src="<?php echo $eVar['type']; ?>Icon.png" title="<?php echo $eVar['name']; ?>" /></a></li>
  23. <?php }
  24. $entryVars = $entry->getIm();
  25. foreach($eVar in $entryVars) { ?>
  26. <li><img src="<?php echo $eVar['type']; ?>Icon.png" title="<?php echo $eVar['id']; ?>" /></li>
  27. <?php }
  28. $entryVars = $entry->getWebsite();
  29. foreach($eVar in $entryVars) { ?>
  30. <li><a href="<?php echo $eVar['url']; ?>" target="_blank"><img
  31. src="websiteIcon.png" title="<?php echo $eVar['name']; ?>" /></a></li>
  32. <?php } ?>
  33. </ul >
  34. </div>
  35. <div style="clear:both"></div>
  36. <?php echo $entry->getBio() ?>
  37. <div style="clear:both"></div>
  38. <div class="cn-meta" align="left" style="margin-top: 6px">
  39. <?php echo $vCard->download() ?>
  40. </div>
  41. </div><!-- #cn-entry-<?php echo $cssid; ?> -->
  42. </div><!-- #cn-entry -->

URL: http://wordpress.org/support/topic/plugin-connections-where-is-the-documentation-for-creating-new-templates

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.