- Timestamp:
- 11/10/2015 11:49:53 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/translate.wordpress.org/public_html/gp-templates/stats-overview.php
r2056 r2070 47 47 foreach ( $projects as $slug => $project ) { 48 48 $projecturl = gp_url( gp_url_join( 'locale', $gp_locale->slug, $set_slug, $project->path ) ); 49 $project_name = str_replace( array( 'WordPress.org ', 'WordPress for ', 'WordPress ', 'ectory' ), '', $project->name ); 49 50 50 51 if ( isset( $translation_locale_statuses[ $locale_slug ][ $project->path ] ) ) { … … 59 60 } 60 61 $percent_class = 'percent' . $percent_class; 61 echo '<td data- sort-value="'. esc_attr( $percent ) . '" class="' . $percent_class .'"><a href="' . $projecturl . '">' . number_format( $percent ) . '</a></td>';62 echo '<td data-column-title="' . esc_attr( $project_name ) . '" data-sort-value="'. esc_attr( $percent ) . '" class="' . $percent_class .'"><a href="' . $projecturl . '">' . number_format( $percent ) . '</a></td>'; 62 63 } else { 63 64 $percent_class = 'percent' . (int) ( $percent / 10 ) * 10; 64 echo '<td data- sort-value="' . esc_attr( $percent ) . '" class="' . $percent_class .'"><a href="' . $projecturl . '">' . $percent . '%</a></td>';65 echo '<td data-column-title="' . esc_attr( $project_name ) . '" data-sort-value="' . esc_attr( $percent ) . '" class="' . $percent_class .'"><a href="' . $projecturl . '">' . $percent . '%</a></td>'; 65 66 } 66 67 67 68 } else { 68 echo '<td class="none" data- sort-value="-1">—</td>';69 echo '<td class="none" data-column-title="" data-sort-value="-1">—</td>'; 69 70 } 70 71 }
Note: See TracChangeset
for help on using the changeset viewer.