Advertisement
Guest User

Untitled

a guest
Apr 18th, 2014
394
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.33 KB | None | 0 0
  1. <?php include (TEMPLATEPATH . '/headerAdmin.php'); ?>
  2. <div id="primary" class="content-area">
  3. <main id="main" class="site-main" role="main">
  4. <?php get_sidebar(); ?>
  5. <section id="wrap">
  6. <div id="tableFilter">
  7. <span class="list-style-buttons">
  8. <ul>
  9. <li><h2>Projects</h2></li>
  10. <li class="gridButton"><a href="#" id="listview" class="switcher active"><img src="<?php bloginfo('template_url'); ?>/images/list-view-active.png" alt="List"></a></li>
  11. <li class="gridButton"><a href="#" id="gridview" class="switcher"><img src="<?php bloginfo('template_url'); ?>/images/grid-view.png" alt="Grid"></a></li>
  12. <li class="gridButton"><span>View</span></li>
  13. </ul>
  14. </span>
  15. </div>
  16. <section id="products" class="list clearfix">
  17. <?php
  18. $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
  19. $project = new WP_Query( array(
  20. 'post_type' => array( 'projects'),
  21. 'posts_per_page' => -1,
  22. 'paged' => $paged,
  23. 'meta_query' => array(
  24. array(
  25. 'key' => 'a_client', // name of custom field
  26. 'value' => '"' . get_the_ID() . '"',
  27. 'compare' => 'LIKE'
  28. )
  29. )
  30. ));
  31.  
  32. ?>
  33. <?php $firstClass = 'firstpost'; ?>
  34. <?php while ( $project->have_posts() ) : $project->the_post(); ?>
  35. <article id="post-<?php the_ID(); ?>"<?php post_class(); ?>>
  36.  
  37. <div class="left">
  38. <h5 id="<?php echo $firstClass; ?><?php $firstClass = ""; ?>">New</h5>
  39. <h3><?php the_title( '' ); ?></h3>
  40. <span>Project Type: <?php $terms_as_text = get_the_term_list( $post->ID, 'tagwork', '', ', ', '' ) ; echo strip_tags($terms_as_text);?></span>
  41. </div>
  42. <div class="left">
  43. <h4>Date Added</h4>
  44. <span><?php the_time('l, F jS, Y') ?></span>
  45. </div>
  46. <div class="left">
  47. <h4>Project Status</h4>
  48. <span><?php echo get_post_meta($post->ID, 'status_element_grid_class_meta_box', true); ?></span>
  49. </div>
  50. <div class="right">
  51. <ul>
  52. <li><a href="<?php echo get_permalink(); ?>">View</a></li>
  53. <li>Download</li>
  54. <li>Comment</li>
  55. </ul>
  56. </div>
  57. </article>
  58. <?php endwhile; ?>
  59. </ul>
  60. </section>
  61. </main><!-- #main -->
  62. </div><!-- #primary -->
  63. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement