PageRenderTime 42ms CodeModel.GetById 15ms RepoModel.GetById 1ms app.codeStats 0ms

/pastrybox/parts/complementary/coming-next.php

https://github.com/drecodeam/pastrybox
PHP | 38 lines | 38 code | 0 blank | 0 comment | 0 complexity | 79d789c00ac5c48365743ecb5916a877 MD5 | raw file
  1. <div class="coming-next">
  2. <div class="container">
  3. <h2 class="h-beta">
  4. <span>What's coming next</span>
  5. </h2>
  6. <ul class="row">
  7. <?php foreach( pastry_get_thoughts( 9, 'future', 'ASC' ) as $theThought ): ?>
  8. <?php
  9. $category = get_the_category( $theThought->ID );
  10. $theBaker = $bakers->get_by_slug( $category[0]->slug );
  11. ?>
  12. <li class="span4">
  13. <h3 class="coming-next-date">
  14. <?php pastry_the_thought_title_to_date( $theThought->post_title ); ?>
  15. </h3>
  16. <h4 class="baked-by a-area-b">
  17. <a href="<?php echo $theBaker->profile_url;?>"><?php echo $theBaker->name; ?></a>
  18. </h4>
  19. <p>
  20. <img src="<?php echo $theBaker->portrait_small_url; ?>" alt="<?php echo $theBaker->portrait_alt; ?>" class="portrait-small">
  21. </p>
  22. </li>
  23. <?php endforeach; ?>
  24. </ul>
  25. <p class="a-area-b">
  26. <a href="#top" class="jump pull-right">Back To Top</a>
  27. </p>
  28. </div>
  29. </div>