예제 #1
0
<div id="portfolio-<?php 
the_ID();
?>
" class="col-md-4 col-sm-6 project image-holder <?php 
echo ebor_the_terms('portfolio_category', ' ', 'slug');
?>
">
	<div class="ebor-project-container">

		<div class="background-image-holder">
			<?php 
the_post_thumbnail('full', array('class' => 'background-image'));
?>
		</div>
		
		<div class="hover-state">
			<div class="align-vertical">
				<?php 
the_title('<h3 class="text-white"><strong>', '</strong></h3>');
?>
				<a href="<?php 
the_permalink();
?>
" class="btn btn-primary btn-white">
					<?php 
echo get_option('portfolio_continue', 'See Project');
?>
				</a>
			</div>
		</div>
	
예제 #2
0
	
	<section class="portfolio-item">
		<div class="container">
			<div class="row">
				
				<div class="col-sm-8 col-sm-offset-1">
					<div <?php 
    post_class('article-body');
    ?>
>
						<?php 
    get_template_part('postformats/format', get_post_format());
    if (!is_array($header_images)) {
        echo '<header class="title">';
        the_title('<h1>', '</h1>');
        echo '<span class="sub alt-font">' . ebor_the_terms('portfolio_category', ', ', 'name') . '</span></header>';
    }
    the_content();
    wp_link_pages();
    ?>
					</div>
				</div>
			
			</div>
		</div>
	</section>

<?php 
}
//end the template shortcode check
/**
예제 #3
0
<?php

global $post;
$header_images = array_keys(get_post_meta($post->ID, '_ebor_header_images', 1));
$sub = is_singular('portfolio') ? '<span class="sub alt-font text-white">' . ebor_the_terms('portfolio_category', ', ', 'name') . '</span>' : '<span class="sub alt-font text-white">' . get_the_date() . ' - ' . ebor_post_reading_time() . '</span>';
if (!isset($header_images[1])) {
    ?>

	<header class="title ebor-pad-me">
			
		<div class="background-image-holder parallax-background">
			<?php 
    echo wp_get_attachment_image($header_images[0], 'full', false, array('class' => 'background-image'));
    ?>
		</div>
		
		<div class="container align-bottom">
			<div class="row">
				<div class="col-xs-12">
					<?php 
    the_title('<h1 class="text-white">', '</h1>');
    echo $sub;
    ?>
				</div>
			</div>
		</div>
			
	</header>

<?php 
} else {
예제 #4
0
<div class="container">

	<?php 
get_template_part('inc/content', 'thumbnail');
?>
	
	<div class="col1-3 col2-3m">
		<?php 
the_title('<h2><strong>', '</strong></h2>');
?>
		<p class="small">
			<?php 
_e('Category', 'huntington');
?>
 <span class="divider"></span> <?php 
echo ebor_the_terms('portfolio_category', ' / ', 'name');
?>
 <br />
			<?php 
_e('Date', 'huntington');
?>
 <span class="divider"></span> <?php 
the_time(get_option('date_format'));
?>
		</p>
	</div>
		
	<div class="col2-3">
		<?php 
the_content();
wp_link_pages();