?> <script> jQuery(document).ready(function($){ $('.sidebar').remove(); if( !$('#primary').hasClass('sidebar-no') ) { $('#primary').removeClass().addClass('sidebar-no'); $('.content').removeClass('span9').addClass('span12'); } }); </script> <div class="portfolio-<?php echo $portfolio_type ?>"> <?php while ( yit_have_works() ) : $video_url = yit_work_get( 'video_url' ); $image_url = yit_work_get( 'image_url' ); $image_id = yit_work_get( 'item_id' ); //list( $thumbnail_url, $thumbnail_width, $thumbnail_height ) = wp_get_attachment_image_src( $image_id, 'thumb_portfolio_bigimage' ); $post_permalink = yit_work_permalink( $image_id ); if ( ! empty( $video_url ) ) { list( $video_type, $video_id ) = explode( ':', yit_video_type_by_url( $video_url ) ); if( $video_type == 'youtube' ) { $video_url = 'http://www.youtube.com/embed/' . $video_id . '?width=640&height=480&iframe=true'; } else if( $video_type == 'vimeo') {
if( !$('#primary').hasClass('sidebar-no') ) { $('#primary').removeClass().addClass('sidebar-no'); $('.content').removeClass('span9').addClass('span12'); } }); </script> <div class="row"> <ul id="portfolio" class="<?php echo $portfolio_type; ?> columns thumbnails"> <?php $i = 1; while (yit_have_works()) { /* if($i % 3 == 0) { $classes = 'last group'; } elseif($i % 3 == 1) { $classes = 'first'; } else { $classes = ''; } $classes .= " one-third"; */ $columns = yit_work_get('columns') ? yit_work_get('columns') : 3; $classes = "work span" . 12 / $columns; if ($i % $columns == 1) { $classes .= ' first';
<?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>