Index: class-theme-directory-compat.php
===================================================================
--- class-theme-directory-compat.php	(revision 13167)
+++ class-theme-directory-compat.php	(working copy)
@@ -114,51 +114,67 @@ class Theme_Directory_Compat extends Dir
 
 		return true;
 	}
 
 	public function do_view_sidebar() {
 
 		$this->do_topic_sidebar();
 
 	}
 
 	public function do_topic_sidebar() {
 		if ( ! $this->theme ) {
 			return;
 		}
 
+		$icon       = ''; 
 		$theme      = sprintf( '<a href="//wordpress.org/themes/%s/">%s</a>', esc_attr( $this->slug() ), esc_html( $this->theme->post_title ) );
 		$support    = sprintf( '<a href="%s">%s</a>', home_url( '/theme/' . esc_attr( $this->slug() ) . '/' ), __( 'Support Threads', 'wporg-forums' ) );
 		$active     = sprintf( '<a href="%s">%s</a>', home_url( '/theme/' . esc_attr( $this->slug() ) . '/active/' ), __( 'Active Topics', 'wporg-forums' ) );
 		$unresolved = sprintf( '<a href="%s">%s</a>', home_url( '/theme/' . esc_attr( $this->slug() ) . '/unresolved/' ), __( 'Unresolved Topics', 'wporg-forums' ) );
 		$reviews    = sprintf( '<a href="%s">%s</a>', home_url( '/theme/' . esc_attr( $this->slug() ) . '/reviews/' ), __( 'Reviews', 'wporg-forums' ) );
 		$create     = '';
 
 		$create_label = '';
 		if ( isset( $this->ratings ) && $this->ratings->is_rating_view() && bbp_current_user_can_access_create_topic_form() ) {
 			$create_label = $this->ratings->review_exists() ?
 				__( 'Edit Review', 'wporg-forums' ) :
 				__( 'Add Review', 'wporg-forums' );
 		} elseif ( bbp_is_single_forum() && bbp_current_user_can_access_create_topic_form() ) {
 			$create_label = __( 'Create Topic', 'wporg-forums' );
 		}
 		if ( $create_label ) {
 			$create = sprintf( '<a href="#new-post">%s</a>', $create_label );
 		}
+
+		if ( file_exists( WPORGPATH . 'wp-content/plugins/theme-directory/class-wporg-themes-repo-package.php' ) ) {
+			include_once WPORGPATH . 'wp-content/plugins/theme-directory/class-wporg-themes-repo-package.php';
+		
+			if ( class_exists( 'WPORG_Themes_Repo_Package' ) ) {
+				switch_to_blog( WPORG_THEME_DIRECTORY_BLOGID );
+				$repo_package = new \WPORG_Themes_Repo_Package( $this->theme->ID );
+				$icon = $repo_package->screenshot_url();
+				restore_current_blog();
+			}
+		}
+
 		?>
 		<div>
 			<ul>
+				<?php if ( ! empty( $icon ) ) : ?>
+					<li class="theme-meta-icon"><img src="<?php echo esc_url( $icon ); ?>"></li> 
+				<?php endif; ?>
 				<li><?php echo $theme; ?></li>
 				<li><?php echo $support; ?></li>
 				<li><?php echo $active; ?></li>
 				<li><?php echo $unresolved; ?></li>
 				<li><?php echo $reviews; ?></li>
 				<?php if ( $create ) : ?>
 				<li class="create-topic"><?php echo $create; ?></li>
 				<?php endif; ?>
 			</ul>
 		</div>
 		<?php
 	}
 
 	public function do_view_header() {
 	}
