<div class="section portfolio"><!-- section blog wrapper -->

	<?php 
if (!empty($title)) {
    yit_string('<h3 class="title">', $title, '</h3>');
}
?>
	<?php 
if (!empty($description)) {
    yit_string('<p class="description">', $description, '</p>');
}
?>

    
	<?php 
if (!yit_is_portfolio_empty()) {
    ?>
		
		<?php 
    if ($show_featured == "1" || $show_featured == 'yes') {
        ?>
		<?php 
        while (yit_have_works()) {
            ?>
			<?php 
            if (yit_work_get('is_sticky')) {
                ?>
<!-- sticky portfolio -->
			<div class="row">
				<div <?php 
                post_class('work group portfolio-sticky portfolio-full-description');
예제 #2
0
global $yit_portfolio_index;
if ( ! isset( $yit_portfolio_index )  ) $yit_portfolio_index = 0;

$var['posts_per_page'] = (!is_null( $items )) ? $items : -1;

yit_get_model( 'portfolio' )->shortcode_atts = $var;
yit_set_portfolio_loop( $portfolio );

$sidebar_layout = yit_get_sidebar_layout();


?>
<div id="section-portfolio-<?php echo $yit_portfolio_index ?>" class="section portfolio"><!-- section blog wrapper -->
    
	<?php if( ! yit_is_portfolio_empty() ): ?>
	
		<?php if( $portfolio_style == "slider" ) : ?>
            
            <?php if( !empty( $title ) ) { yit_string( '<h2 class="title section-portfolio-title">', yit_decode_title($title), '</h2>' ); } ?>            
            <?php if( !empty( $description ) ) { yit_string( '<p class="description section-portfolio-description">', $description, '</p>' ); } ?>
            
			<div class="portfolio-projects section-portfolio-slider margin-bottom">
				<a class="prev span1" href="#"><img src="<?php echo get_template_directory_uri() . '/theme/assets/images/section-video-left.png' ?>" /></a>
				<div  class="section-portfolio-carousel span<?php echo $sidebar_layout != 'sidebar-no' ? '7' : '10' ?>">
					<ul class="section-portfolio-slides">
						<?php while( yit_have_works() ) : ?>
							<?php
								$image_id  = yit_work_get( 'item_id' );
								$video_url = yit_work_get( 'video_url' );