芝麻web文件管理V1.00
编辑当前文件:/home/digitalh/psaree.com/wp-content/themes/woodmart/content-portfolio.php
$size, 'image_custom_dimension' => $custom_sizes, 'image' => array( 'id' => get_post_thumbnail_id(), ), ), 'image' ); } elseif ( function_exists( 'wpb_getImageBySize' ) ) { $img = wpb_getImageBySize( array( 'attach_id' => get_post_thumbnail_id(), 'thumb_size' => $size, ) ); $img = isset( $img['thumbnail'] ) ? $img['thumbnail'] : ''; } else { $img = get_the_post_thumbnail( $post->ID, $size ); } $classes[] = 'portfolio-entry'; $columns = woodmart_loop_prop( 'portfolio_column' ); $style = woodmart_loop_prop( 'portfolio_style' ); $classes[] = woodmart_get_grid_el_class( 0, $columns, false, 12 ); $classes[] = 'portfolio-single'; $classes[] = 'masonry-item'; $cats = wp_get_post_terms( get_the_ID(), 'project-cat' ); if ( ! empty( $cats ) ) { foreach ( $cats as $key => $cat ) { $classes[] = 'proj-cat-' . $cat->slug; } } $classes[] = 'portfolio-' . $style; $info_classes = ''; if ( 'text-shown' !== $style ) { $info_classes .= ' color-scheme-light'; } woodmart_enqueue_js_library( 'photoswipe-bundle' ); woodmart_enqueue_inline_style( 'photoswipe' ); woodmart_enqueue_js_script( 'portfolio-photoswipe' ); ?>
>
$cat ) : ?> slug; ?>
name ); ?>
'small', 'style' => 'default', 'color' => 'light', ) );} ?>