Making WordPress.org

Changeset 4095


Ignore:
Timestamp:
09/19/2016 09:14:19 AM (10 years ago)
Author:
ocean90
Message:

Breathe: Show a notice when JavaScript is disabled.

Location:
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe/functions.php

    r3975 r4095  
    5757}
    5858add_action( 'wporg_breathe_after_header', __NAMESPACE__ . '\welcome_box' );
     59
     60function javascript_notice() {
     61        ?>
     62        <noscript class="js-disabled-notice">
     63                <?php _e( 'Please enable JavaScript to view this page properly.', 'o2' ); ?>
     64        </noscript>
     65        <?php
     66}
     67add_action( 'wp_footer', __NAMESPACE__ . '\javascript_notice' );
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe/style.css

    r3751 r4095  
    440440}
    441441
     442.js-disabled-notice {
     443        position: fixed;
     444        bottom: 0;
     445        left: 0;
     446        right: 0;
     447        padding: 1em 0;
     448        background: #fbeaea;
     449        border-top: 2px solid #dc3232;
     450        text-align: center;
     451        font-size: 18px;
     452        color: #333;
     453}
     454
    442455/*
    443456 * Handbook
Note: See TracChangeset for help on using the changeset viewer.