daily pastebin goal
22%
SHARE
TWEET

Untitled

a guest Apr 15th, 2011 116 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. activity loop:
  2. `       <?php if ( empty( $_POST['page'] ) ) : ?>
  3.                 <ul id="activity-stream" class="activity-list item-list">
  4.         <?php endif; ?>
  5.    
  6.         <?php /* Line above */ ?>
  7.                 <?php $zebra_class = 'even'; ?>
  8.  
  9.         <?php while ( bp_activities() ) : bp_the_activity(); ?>
  10.  
  11.         <?php /* Line below */ ?>
  12. <?php $zebra_class = ($zebra_class == 'even') ? 'odd' : 'even'; ?>
  13.  
  14.                 <?php include( locate_template( array( 'activity/entry.php' ), false ) ) ?>`
  15.  
  16. entry:
  17. `<?php /* print out the zebra class */ ?>
  18. <li class="<?php bp_activity_css_class() ?><?php print $zebra_class; ?>" id="activity-<?php bp_activity_id() ?>">`
  19.  
  20. css:
  21. `div.activity ul.item-list li:nth-child(odd) { background: #F4F4F4; }`
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top