SHARE
TWEET

Untitled

a guest Aug 4th, 2013 25 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2.  
  3. <?php
  4. /*
  5. * Template Name: Team
  6. * Description: A Page Template with a darker design.
  7. */
  8.  
  9. ?>
  10. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  11. <html xmlns="http://www.w3.org/1999/xhtml">
  12. <head>
  13. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  14. <title>Power In A Box</title>
  15.  
  16. <link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/Navigation/navBarStylePage.css" media="screen" type="text/css" />
  17. <link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/Team/style.css" media="screen" type="text/css" />
  18.  
  19.  
  20. </head>
  21. <body>
  22. <div id="windowHeight">
  23.   <div id="windowWidth">
  24.       <div id="page">  
  25.           <img id="pageImg" src="<?php bloginfo('template_directory'); ?>/Navigation/pageBGcopy.png" />
  26.          
  27.          
  28.          
  29.        
  30.            
  31.            
  32.          <?php include("$_SERVER[DOCUMENT_ROOT]/powerbox/wp-content/themes/powerbox/Navigation/header.php");?>            
  33.      <div id="PersonBio">jnjnjnjnjn</div>
  34. <div id="mainTextTitle"></div>
  35.  
  36. <div id="mainText">
  37.   <ul class="faces">
  38.   <?php
  39.  $categories = get_categories();
  40.  foreach  ( $categories as $category ) {
  41.    $i = -1;
  42.    echo '<div class="grid-row"><h2>' . $category->name . '</h2></div>';
  43.     $args = array( 'posts_per_page' => -1, 'cat' => $category->term_id );
  44.     $cat_posts = new WP_Query($args);
  45.     if ( $cat_posts->have_posts() ) : while ( $cat_posts->have_posts() ) :
  46.       $i++;
  47.       $cat_posts->the_post();
  48.       $face = get_field( 'face' );
  49.       $name = get_field( 'fullname' );
  50.       if ( $i % 6 == 0 ) echo '<div class="grid-row">';
  51.       echo '<div class="obj" data-id="' . get_the_ID() . '">';
  52.       echo '<div class="faceThumb">';
  53.       echo wp_get_attachment_image($face);
  54.       echo '</div><div class="name">' . $name . '</div></div>';
  55.       if ( ($i % 6 == 5) || $i == ($cat_posts->post_count - 1) ) echo '</div>';
  56.     endwhile; endif;
  57.   }
  58.   wp_reset_postdata();
  59.   ?>
  60.   </ul>
  61. </div>
  62.  
  63.  
  64.     </div>
  65.   </div>
  66. </div>
  67.  
  68. </body>
  69. </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