PageRenderTime 34ms CodeModel.GetById 12ms RepoModel.GetById 0ms app.codeStats 0ms

/wp-content/themes/nonus/templates/content-single-portfolio-ajax.php

https://github.com/alniko009/magic
PHP | 50 lines | 48 code | 2 blank | 0 comment | 22 complexity | 5af4ebd73abcf1e931dc6f8612aceffb MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.1
  1. <?php while (have_posts()) : the_post(); ?>
  2. <?php $custom = get_post_custom(get_the_ID()); ?>
  3. <div class="row-fluid">
  4. <?php if (ct_get_option("portfolio_single_show_image", 1)): ?>
  5. <div class="span9">
  6. <?php get_template_part('templates/portfolio_ajax/content-single-portfolio', ctPortfolioType::getMethodFromMeta($custom)); ?>
  7. </div>
  8. <?php endif;?>
  9. <div class="span3">
  10. <nav>
  11. <a href="#" class="prev">Previous</a>
  12. <a href="#" class="all">All</a>
  13. <a href="#" class="next">Next</a>
  14. </nav>
  15. <?php if (ct_get_option("portfolio_single_show_title", 1)): ?>
  16. <h4><?php the_title();?></h4>
  17. <?php endif;?>
  18. <?php if (ct_get_option("portfolio_single_show_content", 1)): ?>
  19. <?php the_content();?>
  20. <?php endif;?>
  21. <div class="spacer" style="height: 30px;"></div>
  22. <?php if (ct_get_option("portfolio_single_show_date", 1) && isset($custom['date'][0]) && $custom['date'][0]): ?>
  23. <?php $dateIcon = isset($custom['date_icon'][0]) && $custom['date_icon'][0] ? $custom['date_icon'][0] : 'icon-calendar'?>
  24. <h4><i class="<?php echo $dateIcon; ?>"></i> <?php echo $custom['date'][0];?></h4>
  25. <?php endif;?>
  26. <?php if (ct_get_option("portfolio_single_show_client", 1) && isset($custom['client'][0]) && $custom['client'][0]): ?>
  27. <?php $clientIcon = isset($custom['client_icon'][0]) && $custom['client_icon'][0] ? $custom['client_icon'][0] : 'batch user-2'?>
  28. <h4><i class="<?php echo $clientIcon; ?>"></i> <?php echo $custom['client'][0];?></h4>
  29. <?php endif;?>
  30. <?php if (ct_get_option("portfolio_single_show_venue", 1) && isset($custom['venue'][0]) && $custom['venue'][0]): ?>
  31. <?php $venueIcon = isset($custom['venue_icon'][0]) && $custom['venue_icon'][0] ? $custom['venue_icon'][0] : 'icon-map-marker'?>
  32. <h4><i class="<?php echo $venueIcon; ?>"></i> <?php echo $custom['venue'][0];?></h4>
  33. <?php endif;?>
  34. <?php $cats = ct_get_categories_string(get_the_ID(), ', ', 'portfolio_category');?>
  35. <?php if (ct_get_option("portfolio_single_show_cats", 1) && $cats): ?>
  36. <?php if ($cats): ?>
  37. <h4><i class="icon-tag"></i> <?php echo $cats; ?></h4>
  38. <?php endif; ?>
  39. <?php endif;?>
  40. <?php if (isset($custom['external_url'][0]) && $custom['external_url'][0]): ?>
  41. <?php $externalLabel = (isset($custom['external_label'][0]) && $custom['external_label'][0]) ? $custom['external_label'][0] : $custom['external_url'][0]?>
  42. <h4>
  43. <a href="<?php echo $custom['external_url'][0]?>"><i class="icon-link"></i> <?php echo $externalLabel;?></a>
  44. </h4>
  45. <?php endif;?>
  46. </div>
  47. </div>
  48. <?php endwhile; ?>