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-project.php

    r4513 r4996  
    4848                    ?>
    4949                </li>
     50                <?php if ( $locale_glossary ) : ?>
     51                    <li class="locale-glossary">
     52                        <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>
     53                    </li>
     54                <?php elseif ( $can_create_locale_glossary ) : ?>
     55                    <li class="locale-glossary">
     56                        <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>
     57                    </li>
     58                <?php endif; ?>
    5059            </ul>
    5160
Note: See TracChangeset for help on using the changeset viewer.