示例#1
0
        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 0px; 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->getSocialMediaBlock();
            ?>
					<?php 
            $entry->getImBlock();
            ?>
					<?php 
            $entry->getLinkBlock();
            ?>
					<?php 
            $entry->getDateBlock();
            ?>

				</div>

				<div style="clear:both"></div>

				<?php 
            echo $entry->getBioBlock();
            ?>

				<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 
        }
 /**
  *
  *
  * @access public
  * @since unknown
  * @version 1.0
  * @deprecated
  * @return string|null
  */
 public function returnToTopAnchor()
 {
     cnTemplatePart::returnToTop();
 }
示例#3
0
}
?>

	<div class="cn-meta" style="margin-top: 6px">
		<?php 
$entry->getContentBlock($atts['content'], $atts, $template);
?>
	</div>

	<div class="cn-clear" style="display:table;width:100%;">
		<div style="display:table-cell;vertical-align:middle;">
			<?php 
if ($atts['show_categories']) {
    $entry->getCategoryBlock(array('separator' => ', '));
}
?>
		</div>
		<div style="display:table-cell;text-align:right;vertical-align:middle;">
			<?php 
if ($atts['show_last_updated']) {
    cnTemplatePart::updated(array('timestamp' => $entry->getUnixTimeStamp(), 'style' => array('font-size' => '10px', 'font-variant' => 'small-caps', 'margin-right' => '10px')));
}
if ($atts['show_return_to_top']) {
    cnTemplatePart::returnToTop();
}
?>
		</div>
	</div>

</div>
        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 0px; padding:6px; position: relative;">
			<table width="100%" border="0px" bgcolor="#FFFFFF" bordercolor="#E3E3E3" cellspacing="0px" cellpadding="0px" style="margin: 0; vertical-align: top;">
			    <tr>
			        <td align="left" width="50%" valign="top" style="vertical-align: top;">
			        	<?php 
            echo $entry->getImage();
            ?>

						<div style="clear:both; margin: 0 5px;">
							<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>
			        </td>
			        <td align="right" valign="top" style="vertical-align: top;">
			        	<div style="clear:both; margin: 5px 5px;">
				        	<?php 
            $entry->getConnectionGroupBlock();
            ?>

							<?php 
            $entry->getPhoneNumberBlock();
            ?>
							<?php 
            $entry->getEmailAddressBlock();
            ?>

							<?php 
            $entry->getImBlock();
            ?>
							<?php 
            $entry->getSocialMediaBlock();
            ?>
							<?php 
            $entry->getLinkBlock();
            ?>
							<?php 
            $entry->getDateBlock();
            ?>

						</div>
			        </td>
			    </tr>

			    <tr>
			    	<td colspan="2">

			    		<?php 
            $entry->getContentBlock($atts['content'], $atts, $template);
            ?>

			    		<div style="display: block; margin-bottom: 8px;"><?php 
            $entry->getCategoryBlock(array('separator' => ', ', 'before' => '<span>', 'after' => '</span>'));
            ?>
</div>

			    	</td>
			    </tr>

			    <tr>
			        <td valign="bottom" style="vertical-align: top;">
			        	<?php 
            if (cnSettingsAPI::get('connections', 'connections_display_entry_actions', 'vcard')) {
                $entry->vcard(array('before' => '<span>', 'after' => '</span>'));
            }
            ?>
			        </td>
					<td align="right" valign="bottom" style="vertical-align: top;">

						<?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')));
            ?>

			        </td>
			    </tr>
			</table>
			</div>

			<?php 
        }