$classes .= " one-third"; */ $columns = yit_work_get('columns') ? yit_work_get('columns') : 3; $classes = "work span" . 12 / $columns; if ($i % $columns == 1) { $classes .= ' first'; } $video_url = yit_work_get('video_url'); $image_url = yit_work_get('image_url'); $image_id = yit_work_get('item_id'); $post_permalink = yit_work_permalink($image_id); ?> <li <?php yit_work_class($classes); ?> > <?php $class = ''; 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') { $video_url = 'http://player.vimeo.com/video/' . $video_id; } } $thumb = $video_url; //$class = 'video';
$classes .= " {$term} "; } } if($i % 4 == 1) { $classes .= ' first'; } $video_url = yit_work_get( 'video_url' ); $image_url = yit_work_get( 'image_url' ); $image_id = yit_work_get( 'item_id' ); $post_permalink = yit_work_permalink( $image_id ); ?> <li <?php yit_work_class( $classes ) ?>> <?php $class = ''; 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') { $video_url = 'http://player.vimeo.com/video/' . $video_id; } $thumb = $video_url; //$class = 'video'; } else { $thumb = $image_url;