Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- }
- echo '<ul>';
- if ( $notifications ) { ?>
- <?php $counter = 0 ; ?>
- <?php for ( $i = 0; $i < count($notifications); $i++ ) { ?>
- <?php $alt = ( 0 == $counter % 2 ) ? ' class="alt"' : ''; ?>
- <li<?php echo $alt ?>><?php echo $notifications[$i] ?></li>
- <?php $counter++; ?>
- <?php } ?>
- <?php } else { ?>
- <li style="margin-top:5px;padding:10px;"><a href="<?php echo $bp->loggedin_user->domain ?>"><?php _e( 'No new notifications.', 'buddypress' ); ?></a></li>
- <?php
- }
- echo '</ul>';
- endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement