daily pastebin goal
30%
SHARE
TWEET

Untitled

BakerMan Feb 27th, 2014 84 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4.         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  5. </head>
  6. <body text="#222222" bgcolor="#ffffff" style="width:100% !important; -webkit-text-size-adjust:100%; -ms-text-size-adjust:100%; margin:0 auto; padding:0; background:#ffffff; min-height:1000px;">
  7. <table align="center" width="100%" style="border-width: 1px; padding:0; border-spacing: 0px; border-style: none; border-color: #cccccc; border-collapse: collapse; background-color: #f7f7f7;">
  8.         <tr>
  9.                 <td align="left" style="padding:20px; background-color: #dddddd;">
  10.                         <h1 style="color:#0a0a0e; margin:0 0 20px 0 !important; font-family: 'Helvetica Neue', Helvetica, sans-serif; font-style:normal; font-weight:700; font-size:32px; letter-spacing:normal; text-align:left; line-height: 100%;"> GO OVERRIDES, IT&#146;S YOUR BIRTHDAY <br/> <?php echo $event->post_title; ?></h1>
  11.                         <h2 style="color:#0a0a0e; margin:0 !important; font-family: 'Helvetica Neue', Helvetica, sans-serif; font-style:normal; font-weight:700; font-size:18px; letter-spacing:normal; text-align:left; line-height: 100%;"><?php _e( 'Attendee List', 'tribe-events-calendar' ); ?></h2>
  12.                 </td>
  13.         </tr>
  14. </table>
  15. <table align="center" cellpadding="5" width="100%" style="border-collapse: collapse; padding:0; font-family: 'Helvetica Neue', Helvetica, sans-serif; font-style:normal; font-weight:400; font-size:13px; letter-spacing:normal; text-align:left; line-height: 100%;">
  16.         <?php
  17.         $count      = 0;
  18.         $head_style  = 'background:#444444; color:#ffffff; padding:15px;';
  19.         $odd_style  = 'background:#eeeeee; color:#222222; padding:15px; border-bottom:1px solid #ccc;';
  20.         $even_style = 'background:#ffffff; color:#222222; padding:15px; border-bottom:1px solid #ccc;';
  21.  
  22.  
  23.         foreach ( $items as $item ) {
  24.                 $count ++;
  25.                 if ( $count === 1 ) {
  26.                         $cell_type = 'th';
  27.                         $style = $head_style;
  28.                         echo '<thead>';
  29.                 }
  30.                 if ( $count === 2 ) {
  31.                         $cell_type = 'td';
  32.                         echo '<tbody>';
  33.                 }
  34.  
  35.                 if ( $count > 1 ) {
  36.                         if ( $count % 2 == 0 )
  37.                                 $style = $odd_style;
  38.                         else
  39.                                 $style = $even_style;
  40.                 }
  41.  
  42.                 echo '<tr>';
  43.  
  44.                 foreach ( $item as $field ) {
  45.                         echo sprintf( '<%1$s valign="top" style="%2$s">%3$s</%1$s>', esc_attr( $cell_type ), esc_attr( $style ), esc_html( $field ) );
  46.                 }
  47.  
  48.                 echo '</tr>';
  49.  
  50.                 if ( $count === 1 ) echo '</thead>';
  51.                 if ( $count === count( $items ) ) echo '</tbody>';
  52.  
  53.         }
  54.         ?>
  55.         </table>
  56. </body>
  57. </html>
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