Want more features on Pastebin? Sign Up, it's FREE!
Guest

Dimas

By: a guest on Sep 2nd, 2010  |  syntax: PHP  |  size: 2.34 KB  |  views: 252  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <div id="right-menu-event-container">
  2. <div id="right-menu-event-title-bar"><img alt="upcoming events" src="/images/events-title-text-upcoming-events.png" width="98" height="9" /></div>
  3. <div id="events">
  4. <div class="selected"><a id="list2" rel="list" href="#"></a></div>
  5. <div><a id="calendar2" rel="eventcal" href="#"></a></div>
  6. </div>
  7. <div id="right-menu-event-entries">
  8. <div id="list" class="tabcontent">
  9.  
  10. <?php query_posts('post_type=events&showposts=3'); ?>
  11.  
  12. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  13.  
  14. <?php
  15.         // when $mb->the_meta() is called, it accesses the current post, so it needs to be called within the loop
  16.  
  17.         global $custom_metabox_event_dates;
  18.         global $custom_metabox_event_details;
  19.         $meta9 = $custom_metabox_event_dates->the_meta();
  20.         $meta2 = $custom_metabox_event_details->the_meta();
  21. ?>
  22.  
  23. <div id="right-menu-event-entry">
  24.         <span id="tabcontent"> - (<?php echo $meta2['event_location_city']; ?>)</span><br />
  25.         <p><a href="<?php the_permalink(); ?>" title="<?php echo substr(get_the_excerpt(),0,100); echo '...' ?>"><?php the_title(); ?></a></p>
  26.         <span id="right-menu-event-entry-time"><b><?php echo $meta9['event_start_date'] ?></b></span>
  27.         <span id="right-menu-event-clock"><img alt="event time" src="<?php bloginfo('template_directory'); ?>/images/events-clock-icon.png" width="11" height="11" /></span>
  28.         <span id="right-menu-event-entry-time"><?php echo $meta9['event_start_time'] ?> - <?php echo $meta9['event_end_time'] ?></span>
  29. </div>
  30. <?php endwhile; else: ?>
  31. <li>Sorry, no upcoming events!</li>
  32. <?php endif; ?>
  33. </div>
  34. <?php wp_reset_query(); ?>
  35. <div id="eventcal" class="tabcontent">
  36. </div>
  37. <div id="right-menu-event-entry-bottom">
  38. <span id="right-menu-event-entry-bottom-register"><a href="/disability-organization/contact/"><img alt="online event registration" src="<?php bloginfo('template_directory'); ?>/images/events-button-register.png" width="89" height="18" /></a></span>
  39. <span id="right-menu-event-entry-bottom-view-all"><a href="/disability-group-events/"><img alt="view all events" src="<?php bloginfo('template_directory'); ?>/images/events-button-view-all-events.png" width="89" height="18" /></a></span>
  40. </div>
  41. </div>
  42. <script type="text/javascript">
  43. var events=new ddtabcontent("events")
  44. events.setpersist(true)
  45. events.setselectedClassTarget("linkparent")
  46. events.init()
  47. </script>
  48. </div>
clone this paste RAW Paste Data