Changeset 1749
- Timestamp:
- 07/17/2015 09:34:35 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/translate.wordpress.org/includes/gp-plugins/wporg-routes/routes/locale.php
r1747 r1749 162 162 $screenshot = gp_get_meta( 'wp-themes', $sub_project->id, 'screenshot' ); 163 163 if ( $screenshot ) { 164 return '<div class="theme icon"><img src="https://i0.wp.com/' . $screenshot . '?w=' . $size . '&strip=all"></div>';164 return '<div class="theme icon"><img src="https://i0.wp.com/' . $screenshot . '?w=' . ( $size * 2 ) . '&strip=all" width="' . $size . '" height="' . $size . '"></div>'; 165 165 } else { 166 166 return '<div class="default-icon"><span class="dashicons dashicons-admin-appearance"></span></div>'; … … 171 171 if ( function_exists( 'wporg_get_plugin_icon' ) ) { 172 172 return wporg_get_plugin_icon( $project->slug, $size ); 173 } else { 174 return '<div class="default-icon"><span class="dashicons dashicons-admin-plugins"></span></div>'; 173 175 } 174 176 case 'wp-plugins': … … 176 178 if ( function_exists( 'wporg_get_plugin_icon' ) ) { 177 179 return wporg_get_plugin_icon( $sub_project->slug, $size ); 180 } else { 181 return '<div class="default-icon"><span class="dashicons dashicons-admin-plugins"></span></div>'; 178 182 } 179 183 case 'glotpress':
Note: See TracChangeset
for help on using the changeset viewer.