Advertisement
Guest User

Untitled

a guest
Sep 30th, 2013
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.46 KB | None | 0 0
  1. <div id="entry-id-<?php echo $entry->getRuid(); ?>" class="cn-entry">
  2.  
  3. <div class="cn-left">
  4.  
  5. <?php
  6.  
  7. $entry->getImage( array(
  8. 'image' => $atts['image'] ,
  9. 'height' => $atts['image_height'] ,
  10. 'width' => $atts['image_width'] ,
  11. 'fallback' => array(
  12. 'type' => $atts['image_fallback'] ,
  13. 'string' => $atts['str_image']
  14. )
  15. )
  16. );
  17.  
  18. ?>
  19.  
  20. </div>
  21.  
  22. <div class="cn-right">
  23.  
  24. <div style="margin-bottom: 5px;">
  25.  
  26. <h3> <?php $entry->getNameBlock( array( 'format' => $atts['name_format'], 'link' => $atts['link'] ) ); ?></h3>
  27. <?php if ( $atts['show_title'] ) $entry->getTitleBlock(); ?>
  28. <?php if ( $atts['show_org'] ) $entry->getOrgUnitBlock(); ?>
  29. <?php if ( $atts['show_contact_name'] ) $entry->getContactNameBlock( array( 'format' => $atts['contact_name_format'] , 'label' => $atts['str_contact'] ) ); ?>
  30.  
  31. </div>
  32.  
  33. <?php
  34.  
  35. if ( $atts['show_addresses'] ) $entry->getAddressBlock( array( 'format' => $atts['addr_format'] , 'type' => $atts['address_types'] ) );
  36.  
  37. if ( $atts['show_phone_numbers'] ) $entry->getPhoneNumberBlock( array( 'format' => $atts['phone_format'] , 'type' => $atts['phone_types'] ) );
  38.  
  39. if ( $atts['show_email'] ) $entry->getEmailAddressBlock( array( 'format' => $atts['email_format'] , 'type' => $atts['email_types'] ) );
  40.  
  41. if ( $atts['show_im'] ) $entry->getImBlock();
  42.  
  43. if ( $atts['show_dates'] ) $entry->getDateBlock( array( 'format' => $atts['date_format'] ) );
  44.  
  45. if ( $atts['show_links'] ) $entry->getLinkBlock( array( 'format' => $atts['link_format'] ) );
  46.  
  47. if ( $atts['show_social_media'] ) $entry->getSocialMediaBlock();
  48.  
  49. if ( $atts['show_family'] )$entry->getFamilyMemberBlock();
  50.  
  51. ?>
  52.  
  53. </div>
  54.  
  55. <div class="cn-clear"></div>
  56.  
  57. <div class="cn-left">
  58.  
  59. <?php
  60.  
  61. if ( $atts['enable_bio'] && $entry->getBio() != '' ) {
  62.  
  63. printf( '<a class="cn-bio-anchor toggle-div" id="bio-anchor-%1$s" href="#" data-uuid="%1$s" data-div-id="bio-block-%1$s" data-str-show="%2$s" data-str-hide="%3$s">%2$s</a>',
  64. $entry->getRuid(),
  65. $atts['str_bio_show'],
  66. $atts['str_bio_hide']
  67. );
  68. }
  69.  
  70. if ( ( $atts['enable_note'] && $entry->getNotes() != '' ) && ( $atts['enable_bio'] && $entry->getBio() != '' ) ) {
  71. echo ' | ';
  72. }
  73.  
  74. if ( $atts['enable_note'] && $entry->getNotes() != '' ) {
  75.  
  76. printf( '<a class="cn-note-anchor toggle-div" id="note-anchor-%1$s" href="#" data-uuid="%1$s" data-div-id="note-block-%1$s" data-str-show="%2$s" data-str-hide="%3$s">%2$s</a>',
  77. $entry->getRuid(),
  78. $atts['str_note_show'],
  79. $atts['str_note_hide']
  80. );
  81. }
  82.  
  83. ?>
  84.  
  85. </div>
  86.  
  87. <div class="cn-right">
  88. <?php
  89.  
  90. if ( $atts['enable_map'] ) {
  91.  
  92. $gMap = $entry->getMapBlock( array(
  93. 'height' => $atts['map_frame_height'] ,
  94. 'width' => ( $atts['map_frame_width'] ) ? $atts['map_frame_width'] : NULL ,
  95. 'return' => TRUE ,
  96. 'zoom' => $atts['map_zoom']
  97. )
  98. );
  99.  
  100. if ( ! empty( $gMap ) ) {
  101.  
  102. $mapDiv = '<div class="cn-gmap" id="map-container-' . $entry->getRuid() . '" style="display: none;">' . $gMap . '</div>';
  103.  
  104. printf( '<a class="cn-map-anchor toggle-map" id="map-anchor-%1$s" href="#" data-uuid="%1$s" data-str-show="%2$s" data-str-hide="%3$s">%2$s</a> | ',
  105. $entry->getRuid(),
  106. $atts['str_map_show'],
  107. $atts['str_map_hide']
  108. );
  109. }
  110. }
  111.  
  112. ?>
  113.  
  114. <span class="cn-return-to-top"><?php cnTemplatePart::returnToTop() ?></span>
  115. </div>
  116.  
  117. <div class="cn-clear"></div>
  118.  
  119. <?php
  120.  
  121. if ( $atts['enable_bio'] && $entry->getBio() != '' ) {
  122.  
  123. echo '<div class="cn-bio" id="bio-block-' , $entry->getRuid() , '" style="display: none;">';
  124.  
  125. if ( $atts['enable_bio_head'] ) echo '<h4>' , $atts['str_bio_head'] , '</h4>';
  126.  
  127. $entry->getImage( array(
  128. 'image' => $atts['tray_image'] ,
  129. 'height' => $atts['tray_image_height'] ,
  130. 'width' => $atts['tray_image_width'] ,
  131. 'fallback' => array(
  132. 'type' => $atts['tray_image_fallback'] ,
  133. 'string' => $atts['str_tray_image']
  134. )
  135. )
  136. );
  137.  
  138. $entry->getBioBlock();
  139.  
  140. echo '<div class="cn-clear"></div>';
  141.  
  142. echo '</div>';
  143. }
  144.  
  145. if ( $atts['enable_note'] && $entry->getNotes() != '' ) {
  146.  
  147. echo '<div class="cn-notes" id="note-block-' , $entry->getRuid() , '" style="display: none;">';
  148.  
  149. if ( $atts['enable_note_head'] ) echo '<h4>' , $atts['str_note_head'] , '</h4>';
  150.  
  151. $entry->getNotesBlock();
  152.  
  153. echo '<div class="cn-clear"></div>';
  154.  
  155. echo '</div>';
  156. }
  157.  
  158. ?>
  159.  
  160. <?php if ( isset($mapDiv) ) echo $mapDiv; ?>
  161. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement