/** * @access public * @since unknown * * @param cnOutput $entry */ public static function card($entry) { $entry->getNameBlock(array('link' => TRUE)); }
/** * @param cnOutput $entry * @param cnTemplate $template * @param array $atts */ public static function card($entry, $template, $atts) { ?> <div class="cn-entry" style="-moz-border-radius:4px; background-color:#FFFFFF; border:1px solid #E3E3E3; color: #000000; margin:8px 0; padding:6px; position: relative;"> <div style="width:49%; float:<?php echo is_rtl() ? 'right' : 'left'; ?> "> <?php $entry->getImage(); ?> <div style="clear:both;"></div> <div style="margin-bottom: 10px;"> <div style="font-size:larger;font-variant: small-caps"><strong><?php echo $entry->getNameBlock(); ?> </strong></div> <?php $entry->getTitleBlock(); ?> <?php $entry->getOrgUnitBlock(); ?> <?php $entry->getContactNameBlock(); ?> </div> <?php $entry->getAddressBlock(); ?> </div> <div align="right"> <?php $entry->getFamilyMemberBlock(); ?> <?php $entry->getPhoneNumberBlock(); ?> <?php $entry->getEmailAddressBlock(); ?> <?php $entry->getImBlock(); ?> <?php $entry->getSocialMediaBlock(); ?> <?php $entry->getLinkBlock(); ?> <?php $entry->getDateBlock(); ?> </div> <div style="clear:both"></div> <div class="cn-meta" align="left" style="margin-top: 6px"> <?php $entry->getContentBlock($atts['content'], $atts, $template); ?> <div style="display: block; margin-bottom: 8px;"><?php $entry->getCategoryBlock(array('separator' => ', ', 'before' => '<span>', 'after' => '</span>')); ?> </div> <?php if (cnSettingsAPI::get('connections', 'connections_display_entry_actions', 'vcard')) { $entry->vcard(array('before' => '<span>', 'after' => '</span>')); } ?> <?php cnTemplatePart::updated(array('timestamp' => $entry->getUnixTimeStamp(), 'style' => array('font-size' => 'x-small', 'font-variant' => 'small-caps', 'position' => 'absolute', 'right' => '36px', 'bottom' => '8px'))); cnTemplatePart::returnToTop(array('style' => array('position' => 'absolute', 'right' => '8px', 'bottom' => '5px'))); ?> </div> </div> <?php }