Making WordPress.org

Changeset 8499


Ignore:
Timestamp:
03/24/2019 08:30:22 PM (5 years ago)
Author:
ocean90
Message:

Translate: Add link for per-locale plugin/theme stats to the filter header.

Fixes #2290.

Location:
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates/locale-projects.php

    r8496 r8499  
    7575        }
    7676        ?>
     77        <li class="filter-header-link__sep" aria-hidden="true">|</li>
     78        <li class="has-children">
     79            <a href="#">Stats</a>
     80            <ul>
     81                <li><a href="<?php echo esc_url( gp_url_join( '/locale', $locale_slug, $set_slug, 'stats', 'plugins' ) ); ?>">Plugins</a></li>
     82                <li><a href="<?php echo esc_url( gp_url_join( '/locale', $locale_slug, $set_slug, 'stats', 'themes' ) ); ?>">Themes</a></li>
     83            </ul>
     84        </li>
    7785    </ul>
    7886    <div class="search-form">
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates/stats-plugin-themes-overview.php

    r8256 r8499  
    44
    55$breadcrumb   = array();
    6 $breadcrumb[] = gp_link_get( '/stats', __( 'Locale Stats' ) );
    7 $breadcrumb[] = gp_link_get( '/locale/' . $locale . '/' . $locale_slug, $gp_locale->english_name );
     6$breadcrumb[] = gp_link_get( '/', __( 'Locales' ) );
     7$breadcrumb[] = gp_link_get( gp_url_join( '/locale', $gp_locale->slug, $locale_slug ), esc_html( $gp_locale->english_name ) );
    88$breadcrumb[] = trim( ucwords( $view ), 's' ) . ' translation status overview';
    99gp_breadcrumb( $breadcrumb );
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates/style.css

    r8497 r8499  
    620620    color: #222;
    621621}
     622
     623.filter-header-links li.has-children {
     624    position: relative;
     625}
     626
     627.filter-header-links li.has-children li a {
     628    margin: 0 9px;
     629    padding: 5px 0;
     630}
     631
     632.filter-header-links li.has-children ul {
     633    display: none;
     634}
     635
     636.filter-header-links li.has-children:hover ul {
     637    display: block;
     638    position:absolute;
     639    background: #efefef;
     640    padding: 0;
     641    box-shadow: 0 1px 1px rgba(0,0,0,0.04);
     642    border: 1px solid #dfdfdf;
     643    border-top: 0;
     644    z-index: 1;
     645}
     646
     647.filter-header-link__sep {
     648    color: #ccc;
     649}
     650
    622651
    623652.filter-header .search-form {
Note: See TracChangeset for help on using the changeset viewer.