WordPress.org

Making WordPress.org


Ignore:
Timestamp:
02/23/2017 11:42:12 PM (3 years ago)
Author:
ocean90
Message:

Translate: Show link to locale glossary on project overviews.

File:
1 edited

Legend:

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

    r2865 r4996  
    4141                ?>
    4242            </li>
     43            <?php if ( $locale_glossary ) : ?>
     44                <li class="locale-glossary">
     45                    <a href="<?php echo esc_url( gp_url_join( gp_url( '/locale' ), $locale_slug, $set_slug, 'glossary' ) ); ?>" class="glossary-link"><?php _e( 'Locale Glossary', 'glotpress' ); ?></a>
     46                </li>
     47            <?php elseif ( $can_create_locale_glossary ) : ?>
     48                <li class="locale-glossary">
     49                    <a href="<?php echo esc_url( gp_url_join( gp_url( '/locale' ), $locale_slug, $set_slug, 'glossary' ) ); ?>" class="glossary-link"><?php _e( 'Create Locale Glossary', 'glotpress' ); ?></a>
     50                </li>
     51            <?php endif; ?>
    4352        </ul>
    4453        <div class="contributors">
Note: See TracChangeset for help on using the changeset viewer.