Ejemplo n.º 1
0
			                <h1><?php 
        yit_work_the('title');
        ?>
</h1>
							<?php 
        yit_work_the('content');
        ?>
			                            
			            </div>            

			            <?php 
        if ($skills && $skills_label || $year || $customer || $terms_plain) {
            ?>
				            <div class="work-skillsdate span4">
				                <h4><?php 
            echo yit_work_get('project-label');
            ?>
</h4>
					            <?php 
            if (!empty($skills) && !empty($skills_label)) {
                ?>
<p class="categories paragraph-links"><span class="meta-label"><?php 
                echo $skills_label;
                ?>
:</span> <?php 
                echo $skills;
                ?>
</p><?php 
            }
            ?>
					            <?php 
Ejemplo n.º 2
0
                        </li>       
                        <?php 
    if ($i++ % 4 == 0) {
        echo '<hr />';
    }
}
?>
                        <hr />
                    </ul>
                    <?php 
yit_portfolio_pagination();
?>
               </div>

<?php 
if (yit_work_get('open_slide')) {
    ?>
<script type="text/javascript" charset="utf-8">
jQuery(document).ready(function($){
	
	function isMobile() {
		return navigator.userAgent.match(/iPhone/i) || navigator.userAgent.match(/iPod/i) || ( navigator.userAgent.match(/Android/i) && navigator.userAgent.match(/Mobile/i) );
	}
	
	
	if( !isMobile() ) {

		$('.open_slide').live('click', function(e){
			e.preventDefault();
			
			var li_parent = $(this).parents('li');
Ejemplo n.º 3
0
<?php

/**
 * @package WordPress
 * @subpackage Your Inspiration Themes
 */
$thumbs = '';
$portfolio_type = yit_work_get('portfolio_type');
$item_selected = null;
?>
<script>
jQuery(document).ready(function($){
	$('.sidebar').remove();
	
	if( !$('#primary').hasClass('sidebar-no') ) {
		$('#primary').removeClass().addClass('sidebar-no');
		$('.content').removeClass('span9').addClass('span12');
	}
	
});
</script>

<?php 
if (yit_have_works()) {
    yit_get_template('portfolios/full-description/loop.php');
}
?>
        

<div class="clear"></div>
Ejemplo n.º 4
0
					$terms = yit_work_get('terms');
					$terms_plain = "";
					
					$post_permalink = yit_work_permalink( $image_id );
					
					
					if( $terms ) {
						foreach( $terms as $term ) {
							$terms_plain .= $categories[$term] . ',';
						}
						$terms_plain = substr($terms_plain, 0, strlen( $terms_plain ) - 1);
					}
			?>
			<li data-pile="<?php echo $terms_plain ?>">
				<a href="<?php if($lightbox): echo $image_url ?>" rel="fancy_lightbox"<?php else: echo $post_permalink; ?>" class="nolightbox"<?php endif ?> title="<?php echo yit_work_get('title') ?>">
					<span class="tp-info"><span><?php echo yit_work_get('title') ?></span></span>
					<?php echo wp_get_attachment_image( $image_id, 'thumb_portfolio_fancy' ); ?>
				</a>			
			</li>
			<?php endwhile ?>
		</ul>
	</div>
</div>


<script type="text/javascript" charset="utf-8">
jQuery(document).ready(function($){
	var lightbox = <?php echo $lightbox ? 1 : 0; ?>;


    if( $( '#footer' ).length > 0 )
Ejemplo n.º 5
0
/** 
 * Get list of terms  
 * 
 * @return array        
 * 
 * @since 1.0  
 */
function yit_the_terms($sep = ',')
{
    $terms = yit_work_get('terms');
    if (empty($terms)) {
        $vars = yit_portfolio_query_vars();
        if (!empty($vars->item['terms'])) {
            $terms = $vars->item['terms'];
        } else {
            return;
        }
    }
    $categories = yit_work_get('categories');
    foreach ($terms as $i => $term) {
        $terms[$i] = '<a href="' . yit_term_link($term) . '">' . $categories[$term] . '</a>';
    }
    echo implode("{$sep} ", $terms);
}
Ejemplo n.º 6
0
					<div class="work-description">
						<?php 
            if ($show_title == "1" || $show_title == 'yes') {
                ?>
<h4><a href="<?php 
                echo $post_permalink;
                ?>
"><?php 
                yit_work_the('title');
                ?>
</a></h4><?php 
            }
            ?>
						<?php 
            if ($show_excerpt == "1" || $show_excerpt == 'yes') {
                echo yit_content(yit_work_get('content'), $excerpt_length, '', '[...]');
            }
            ?>
					</div>
				</div>
			<?php 
        }
        ?>
			<?php 
        if ($i == $items) {
            break;
        }
        ?>
			<?php 
    }
    ?>
Ejemplo n.º 7
0
    if ($lightbox) {
        echo $image_url;
        ?>
" rel="fancy_lightbox"<?php 
    } else {
        echo $post_permalink;
        ?>
" class="nolightbox"<?php 
    }
    ?>
 title="<?php 
    echo yit_work_get('title');
    ?>
">
					<span class="tp-info"><span><?php 
    echo yit_work_get('title');
    ?>
</span></span>
					<?php 
    echo wp_get_attachment_image($image_id, 'thumb_portfolio_fancy');
    ?>
				</a>			
			</li>
			<?php 
}
?>
		</ul>
	</div>
</div>

Ejemplo n.º 8
0
			</div>
			
			<!-- portfolio thumbnails -->
			<div class="work-projects span3">
				<div class="row">
                	<h2><?php echo $thumbs_title; ?></h2>
					<ul>
					<?php $works = array(); ?>
					<?php while ( yit_have_works() ) :  ?>
						<?php
							$image_id  = yit_work_get( 'item_id' );
							$works[$image_id] = yit_get_model('portfolio')->_current_item;
							$works[$image_id]['categories'] = yit_work_get('categories');
							$works[$image_id]['post_permalink'] = yit_work_permalink( $image_id );
							$works[$image_id]['thumbs_title'] = yit_work_get( 'thumbs_title' );
							$works[$image_id]['project_description_title'] = yit_work_get( 'project_description_title' );
						?>
						<li class="span1">
							<a href="<?php echo $works[$image_id]['post_permalink'] ?>" data-item="<?php echo $image_id ?>">
							<?php yit_image( "id=$image_id&size=thumb_small_portfolio_thumbs" );//echo wp_get_attachment_image( $image_id, 'thumb_small_portfolio_thumbs' ); ?>
							</a>
						</li>
					
					<?php endwhile ?>
					</ul>
				</div>
			</div>
			
			<!-- portfolio content -->
            <div class="work-content-wrapper span4">
            	<h2><?php echo $project_description_title; ?></h2>
Ejemplo n.º 9
0
                $video_url = 'http://www.youtube.com/embed/' . $video_id . '?width=640&height=480&iframe=true';
            } else {
                if ($video_type == 'vimeo') {
                    $video_url = 'http://player.vimeo.com/video/' . $video_id;
                }
            }
            $thumb = $video_url;
            //$class = 'video';
        } else {
            $thumb = $image_url;
            //$class = 'img';
        }
        $both = 0;
        $lightbox = yit_work_get('event_lightbox');
        $details = yit_work_get('event_details');
        $title = yit_work_get('event_title');
        if ($lightbox && $details) {
            $both = 1;
            $class = $video_url ? 'video' : 'img';
        } elseif ($lightbox) {
            $class = $video_url ? 'video' : 'img';
        } elseif ($details) {
            $class = 'project';
        } elseif ($title) {
            $class = 'onlytitle';
        }
        ?>
								    
								    <div class="related_img">
									  	<div class="picture_overlay">
									  		<?php 
Ejemplo n.º 10
0
					<div class="content"></div>
					<div class="work-meta"></div>
				</div>

				<div class="clear"></div>

				<!-- portfolio thumbnails -->
				<div class="work-projects span<?php echo $sidebar_layout != 'sidebar-no' ? '9' : '12' ?>">
					<div class="row">
						<ul>
						<?php $works = array(); ?>
						<?php while ( yit_have_works() ) :  ?>
							<?php
								$image_id  = yit_work_get( 'item_id' );
								$works[$image_id] = yit_get_model('portfolio')->_current_item;
								$works[$image_id]['categories'] = yit_work_get('categories');
								$works[$image_id]['post_permalink'] = yit_work_permalink( $image_id );
							?>
							<li class="span<?php echo $sidebar_layout != 'sidebar-no' ? '1' : '2' ?>">
								<a href="<?php echo $works[$image_id]['post_permalink'] ?>" data-item="<?php echo $image_id ?>" class="img">
									<?php echo wp_get_attachment_image( $image_id, 'section_portfolio_thumb' ); ?>
								</a>
							</li>
						<?php endwhile ?>
						</ul>
				        <div class="clear"></div>
					</div>
				        <div class="nav">
				            <a class="prev" href="#"></a>
				            <a class="next" href="#"></a>
				        </div>
Ejemplo n.º 11
0
        ?>
		<div class="<?php 
        if (++$i % 6 == 0) {
            ?>
related_project_last <?php 
        }
        ?>
related_project">
			<a class="related_proj related_img" href="<?php 
        echo $post_permalink;
        ?>
" title="<?php 
        echo $title;
        ?>
"><?php 
        echo wp_get_attachment_image(yit_work_get('item_id'), 'thumb_portfolio_fulldesc_related');
        ?>
</a>
			<h4><a href="<?php 
        echo $post_permalink;
        ?>
"><?php 
        echo $title;
        ?>
</a></h4>
		</div>
	<?php 
    }
    ?>
</div>
					
Ejemplo n.º 12
0
<?php

/**
 * Pinterest Portfolio Section Style
 */
$i = $j = 0;
$portfolio_groups = array();
while (yit_have_works()) {
    $portfolio_groups[$i][] = array('title' => yit_work_get('title'), 'terms' => yit_work_get('terms'), 'permalink' => yit_work_permalink(yit_work_get('item_id')), 'image_id' => yit_work_get('item_id'), 'image_url' => yit_work_get('image_url'), 'read_more_text' => yit_work_get('read_more_text'));
    if (++$j % 2 == 0) {
        $i++;
    }
}
?>

<?php 
foreach ($portfolio_groups as $k => $group) {
    ?>
    <div class="section_portfolio_group span3 clearfix<?php 
    if ($k % 4 == 3) {
        ?>
 last_group<?php 
    }
    ?>
">
        <?php 
    foreach ($group as $index => $work) {
        ?>
            <?php 
        $class = '';
        if ($k % 2 == 0) {
Ejemplo n.º 13
0
									<div class="ch-info-text<?php echo $title_class ?>">
										<p class="title"><?php yit_work_the('title') ?></p>
										<p class="subtitle"><?php yit_work_the('subtitle') ?></p>
									</div>
									<?php endif ?>
								</div>
								<?php endif ?>
							</div>
                        </li>       
                        <?php if( ($i++ % 4) == 0 ) echo '<hr />' ; endwhile ?>
                        <hr />
                    </ul>
                    <?php yit_portfolio_pagination() ?>
               </div>

<?php if( yit_work_get('filter_active') ): ?>
<script type="text/javascript">
jQuery(document).ready(function($){
	//filterable
	var container = $('#portfolio');
	
	container.find('hr').remove();
	container.imagesLoaded( function(){
		container.isotope({
			itemSelector: 'li.filterable_item',
			itemPositionDataEnabled: true
		});
	});
	
	$('.filters li a').click(function(){
		$('.filters li a').removeClass('active');
Ejemplo n.º 14
0
                $video_url = 'http://www.youtube.com/embed/' . $video_id . '?width=640&height=480&iframe=true';
            } else {
                if ($video_type == 'vimeo') {
                    $video_url = 'http://player.vimeo.com/video/' . $video_id;
                }
            }
            $thumb = $video_url;
            //$class = 'video';
        } else {
            $thumb = $image_url;
            //$class = 'img';
        }
        $both = 0;
        $lightbox = yit_work_get('event_lightbox_other_projects');
        $details = yit_work_get('event_details_other_projects');
        $title = yit_work_get('event_title_other_projects');
        if ($lightbox && $details) {
            $both = 1;
            $class = $video_url ? 'video' : 'img';
        } elseif ($lightbox) {
            $class = $video_url ? 'video' : 'img';
        } elseif ($details) {
            $class = 'project';
        } elseif ($title) {
            $class = 'onlytitle';
        }
        ?>

		    <div class="related_img">
			  	<div class="picture_overlay">
			  		<?php 
Ejemplo n.º 15
0
            </li>       
            <?php 
    if ($i++ % 4 == 0) {
        echo '<hr />';
    }
}
?>
            <hr />
        </ul>
        <?php 
yit_portfolio_pagination();
?>
   </div>

<?php 
if (yit_work_get('filter_active')) {
    ?>
<script type="text/javascript">
jQuery(document).ready(function($){
	//filterable
	var container = $('#portfolio');
	
	container.find('hr').remove();
	container.imagesLoaded( function(){
		container.isotope({
			itemSelector: 'li.filterable_item',
			itemPositionDataEnabled: true
		});
	});
	
	$('.filters li a').click(function(){
Ejemplo n.º 16
0
            yit_work_the('title');
            ?>
</h2>
                            <?php 
        }
        ?>

                            <?php 
        if (yit_work_get('enable_categories') && yit_work_get('terms')) {
            ?>
                                <!-- categories -->
                                <span class="categories"><img src="<?php 
            echo get_template_directory_uri();
            ?>
/theme/templates/portfolios/pinterest/images/terms.png" alt="" /><?php 
            echo implode(', ', yit_work_get('terms'));
            ?>
</span>
                            <?php 
        }
        ?>
                         </div>
                    </div>
                </div>
            </div>
            <?php 
    }
    ?>

<!--            <span class="detail"></span>-->
            <a href="<?php 
Ejemplo n.º 17
0
    	                            });
    	                            </script>
    							<?php else: ?>
									<?php yit_image( "id=$image_id" );//echo wp_get_attachment_image( $image_id, 'full' ); ?>
								<?php endif ?>
							<?php endif ?>
						</div>

						<div class="work-description span8" style="float: <?php echo $image_position ?>">
			                <h1><?php yit_work_the( 'title' ) ?></h1>
							<?php yit_work_the('content'); ?>			                            
			            </div>            

			            <?php if( ($skills && $skills_label) || $year || $customer || $terms_plain  ): ?>
				            <div class="work-skillsdate span4">
				                <h4><?php echo yit_work_get('project-label'); ?></h4>
					            <?php if( ! empty( $skills ) && ! empty( $skills_label ) ): ?><p class="categories paragraph-links"><span class="meta-label"><?php echo $skills_label  ?>:</span> <?php echo $skills ?></p><?php endif ?>
					            <?php if( ! empty( $customer ) ): ?><p class="customer"><span class="meta-label"><?php echo _e('Customer', 'yit') ?>:</span> <?php echo $customer; ?></p><?php endif ?>
		                        <?php if( ! empty( $terms_plain ) ): ?><p class="categories"><span class="meta-label"><?php echo _e('Categories', 'yit') ?>:</span> <?php echo $terms_plain; ?></p><?php endif ?>
                                
					            <?php if( ! empty( $website ) || ! empty( $website_url ) ): ?><p class="website"><span class="meta-label"><?php echo _e('URL', 'yit') ?>:</span> <a href="<?php echo esc_url( $website_url ) ?>"><?php echo empty( $website ) ? $website_url : $website; ?></a></p><?php endif ?>
								<?php if( ! empty( $year ) ): ?><p class="workdate"><span class="meta-label"><?php echo _e('Date', 'yit') ?>:</span> <?php echo $year; ?></p><?php endif ?>
				            </div>
			            <?php endif ?>
					<?php endif ?>
				</div>
			</div>
		</div>
			

<?php endwhile ?>
Ejemplo n.º 18
0
    if ($count == 0) {
        echo ' first';
    }
    ?>
">
		<div class="classic-thumbnail-wrap<?php 
    echo $show_lightbox_hover === 'yes' ? ' picture_overlay' : '';
    ?>
">
			<span>
				<a href="<?php 
    echo $work_permalink;
    ?>
" title="">
					<?php 
    yit_image('id=' . yit_work_get('item_id') . '&class=zoom-image&size=sc_portfolio_3cols');
    ?>
				</a>

				<?php 
    if ($show_lightbox_hover === 'yes') {
        ?>
				<div class="overlay">
					<div>
						<p>
							<a href="<?php 
        echo $thumb;
        ?>
" title="" rel="lightbox" class="ch-info-lightbox<?php 
        if ($work_video_url) {
            ?>
Ejemplo n.º 19
0
    yit_work_the('title');
    ?>
</a></h4>
                            
                            <?php 
    if (yit_work_get('enable_excerpt')) {
        ?>
	                            <?php 
        echo yit_content(yit_work_get('content'), yit_work_get('excerpt_length'));
        ?>
                            <?php 
    }
    ?>
                            
                			<?php 
    if (yit_work_get('read_more_text') != '') {
        echo yit_sc_more_link("<a class='read-more' href='{$post_permalink}'>" . yit_work_get('read_more_text') . "</a>", yit_work_get('read_more_text'), $post_permalink);
    }
    ?>
                        </li>       
                        <?php 
    $i++;
}
?>
        
                    </ul>
                    <?php 
yit_portfolio_pagination();
?>
               </div>
Ejemplo n.º 20
0
    ?>
  
        
                            <h4><a href="<?php 
    echo $post_permalink;
    ?>
"><?php 
    yit_work_the('title');
    ?>
</a></h4>
                            
                            <?php 
    if (yit_work_get('enable_excerpt')) {
        ?>
	                            <?php 
        echo yit_content(yit_work_get('content'), yit_work_get('excerpt_length'));
        ?>
                            <?php 
    }
    ?>
                            
						    <?php 
    if ($skills && $skills_label || $year || $customer) {
        ?>
                            <div class="work-skillsdate">
                                 <?php 
        if (!empty($skills) && !empty($skills_label)) {
            ?>
<p class="categories paragraph-links"><span class="meta-label"><?php 
            echo $skills_label;
            ?>