Making WordPress.org


Ignore:
Timestamp:
04/03/2022 03:31:24 PM (3 years ago)
Author:
ocean90
Message:

Translate: Improve projects overview.

  • Use proper grid layout to ensure same heights of boxes.
  • Use three columns on large screens.
  • Reduce icon size and description length since these don't require to be in the focus unlike in the relevant directories.
  • Keep current filters when changing search keywords.
  • Show pagination on top and bottom.

Fixes #5945.
Fixes #6249.
See #6246.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-routes/inc/routes/class-locale.php

    r11092 r11741  
    4444        global $wpdb;
    4545
    46         $per_page = 20;
     46        $per_page = 21;
    4747        $page = (int) gp_get( 'page', 1 );
    4848        $search = gp_get( 's', '' );
     
    267267                    case 'wordcamp':
    268268                        return '<div class="default-icon"><span class="dashicons dashicons-tickets"></span></div>';
     269                    case 'pattern-directory':
     270                        return '<div class="default-icon"><span class="dashicons dashicons-art"></span></div>';
    269271                    case 'browsehappy':
    270272                        return '<div class="icon"><img src="' . plugins_url( 'templates/images/browsehappy.png', 'wporg-gp-customizations/wporg-gp-customizations.php' ) . '" width="' . $size . '" height="' . $size . '"></div>';
     
    298300            case 'apps':
    299301                return '<div class="default-icon"><span class="dashicons dashicons-smartphone"></span></div>';
     302            case 'patterns':
     303                return '<div class="default-icon"><span class="dashicons dashicons-art"></span></div>';
    300304            default:
    301305                return '<div class="default-icon"><span class="dashicons dashicons-translation"></span></div>';
Note: See TracChangeset for help on using the changeset viewer.