/wp-content/themes/nonus/templates/content-single-portfolio-ajax.php
PHP | 50 lines | 48 code | 2 blank | 0 comment | 22 complexity | 5af4ebd73abcf1e931dc6f8612aceffb MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.1
- <?php while (have_posts()) : the_post(); ?>
- <?php $custom = get_post_custom(get_the_ID()); ?>
- <div class="row-fluid">
- <?php if (ct_get_option("portfolio_single_show_image", 1)): ?>
- <div class="span9">
- <?php get_template_part('templates/portfolio_ajax/content-single-portfolio', ctPortfolioType::getMethodFromMeta($custom)); ?>
- </div>
- <?php endif;?>
- <div class="span3">
- <nav>
- <a href="#" class="prev">Previous</a>
- <a href="#" class="all">All</a>
- <a href="#" class="next">Next</a>
- </nav>
- <?php if (ct_get_option("portfolio_single_show_title", 1)): ?>
- <h4><?php the_title();?></h4>
- <?php endif;?>
- <?php if (ct_get_option("portfolio_single_show_content", 1)): ?>
- <?php the_content();?>
- <?php endif;?>
- <div class="spacer" style="height: 30px;"></div>
- <?php if (ct_get_option("portfolio_single_show_date", 1) && isset($custom['date'][0]) && $custom['date'][0]): ?>
- <?php $dateIcon = isset($custom['date_icon'][0]) && $custom['date_icon'][0] ? $custom['date_icon'][0] : 'icon-calendar'?>
- <h4><i class="<?php echo $dateIcon; ?>"></i> <?php echo $custom['date'][0];?></h4>
- <?php endif;?>
- <?php if (ct_get_option("portfolio_single_show_client", 1) && isset($custom['client'][0]) && $custom['client'][0]): ?>
- <?php $clientIcon = isset($custom['client_icon'][0]) && $custom['client_icon'][0] ? $custom['client_icon'][0] : 'batch user-2'?>
- <h4><i class="<?php echo $clientIcon; ?>"></i> <?php echo $custom['client'][0];?></h4>
- <?php endif;?>
- <?php if (ct_get_option("portfolio_single_show_venue", 1) && isset($custom['venue'][0]) && $custom['venue'][0]): ?>
- <?php $venueIcon = isset($custom['venue_icon'][0]) && $custom['venue_icon'][0] ? $custom['venue_icon'][0] : 'icon-map-marker'?>
- <h4><i class="<?php echo $venueIcon; ?>"></i> <?php echo $custom['venue'][0];?></h4>
- <?php endif;?>
- <?php $cats = ct_get_categories_string(get_the_ID(), ', ', 'portfolio_category');?>
- <?php if (ct_get_option("portfolio_single_show_cats", 1) && $cats): ?>
- <?php if ($cats): ?>
- <h4><i class="icon-tag"></i> <?php echo $cats; ?></h4>
- <?php endif; ?>
- <?php endif;?>
- <?php if (isset($custom['external_url'][0]) && $custom['external_url'][0]): ?>
- <?php $externalLabel = (isset($custom['external_label'][0]) && $custom['external_label'][0]) ? $custom['external_label'][0] : $custom['external_url'][0]?>
- <h4>
- <a href="<?php echo $custom['external_url'][0]?>"><i class="icon-link"></i> <?php echo $externalLabel;?></a>
- </h4>
- <?php endif;?>
- </div>
- </div>
- <?php endwhile; ?>