芝麻web文件管理V1.00
编辑当前文件:/home/seolotod/sthwholesaler.com/wp-content/themes/porto/content-portfolio-item.php
ID, 'portfolio_archive_image', true ); if ( $archive_image ) { $featured_images = array(); $featured_image = array( 'thumb' => wp_get_attachment_thumb_url( $archive_image ), 'full' => wp_get_attachment_url( $archive_image ), 'attachment_id' => $archive_image, ); $featured_images[] = $featured_image; } else { $featured_images = porto_get_featured_images(); } $portfolio_link = get_post_meta( $post->ID, 'portfolio_link', true ); $show_external_link = isset( $porto_settings['portfolio-external-link'] ) ? $porto_settings['portfolio-external-link'] : false; $count = count( $featured_images ); $classes = array(); if ( 'full' == $portfolio_view ) { $classes[] = 'thumb-info-no-borders'; } if ( $portfolio_thumb_bg ) { $classes[] = 'thumb-info-' . $portfolio_thumb_bg; } switch ( $portfolio_thumb ) { case 'centered-info': $classes[] = 'thumb-info-centered-info'; break; case 'bottom-info': $classes[] = 'thumb-info-bottom-info'; break; case 'bottom-info-dark': $classes[] = 'thumb-info-bottom-info thumb-info-bottom-info-dark'; break; case 'hide-info-hover': $classes[] = 'thumb-info-centered-info thumb-info-hide-info-hover'; break; } if ( $portfolio_thumb_image ) { $classes[] = 'thumb-info-' . $portfolio_thumb_image; } $ajax_attr = ''; if ( ! ( $show_external_link && $portfolio_link ) && $portfolio_ajax ) { $portfolio_show_zoom = false; if ( $portfolio_ajax_modal ) { $ajax_attr = ' data-ajax-on-modal'; } else { $ajax_attr = ' data-ajax-on-page'; } } if ( $portfolio_show_link && ( 'centered-info' == $portfolio_thumb || 'hide-info-hover' == $portfolio_thumb ) ) { $portfolio_show_zoom = false; } if ( $portfolio_show_zoom ) { $classes[] = 'thumb-info-centered-icons'; } $class = implode( ' ', $classes ); $sub_title = porto_portfolio_sub_title( $post ); if ( $count ) : $attachment_id = $featured_images[0]['attachment_id']; $attachment = porto_get_attachment( $attachment_id ); $attachment_related = porto_get_attachment( $attachment_id, isset( $image_size ) ? $image_size : 'related-portfolio' ); else: $attachment = array( 'src' => PORTO_URI . '/images/placeholder.jpg', 'caption' => esc_html__( 'Porto Placeholder', 'porto' ), ); $attachment_related = array( 'width' => '800', 'height' => '640', 'alt' => esc_html__( 'Porto Placeholder', 'porto' ), 'src' => PORTO_URI . '/images/placeholder.jpg', ); endif; if ( $attachment && $attachment_related ) : ?>
>