WordPress.org

Making WordPress.org

Changeset 2004


Ignore:
Timestamp:
10/25/2015 12:55:01 PM (4 years ago)
Author:
ocean90
Message:

Forums Theme: Add a RTL stylesheet.

Props sa3idho.
Fixes #1357.

Location:
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-forums
Files:
1 added
1 edited

Legend:

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

    r1759 r2004  
    3636    );
    3737
     38    wp_register_style(
     39        'forum-wp4-style-rtl',
     40        get_template_directory_uri() . '/style-rtl.css',
     41        array( 'forum-wp4-style' ),
     42        '20151025'
     43    );
     44
    3845    wp_enqueue_style( 'forum-wp4-style' );
     46
     47    if ( is_rtl() ) {
     48        wp_enqueue_style( 'forum-wp4-style-rtl' );
     49    }
    3950}
    4051add_action( 'wp_enqueue_scripts', 'wporg_support_scripts' );
Note: See TracChangeset for help on using the changeset viewer.