Make WordPress Core

Ticket #3953: Kubrick-RTL.diff

File Kubrick-RTL.diff, 3.0 KB (added by Sewar, 17 years ago)

RTL support

  • wp-content/themes/default/header.php

     
    1818// Checks to see whether it needs a sidebar or not
    1919if ( !$withcomments && !is_single() ) {
    2020?>
    21         #page { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickbg.jpg") repeat-y top; border: none; }
     21        #page { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickbg-<?php bloginfo('text_direction'); ?>.jpg") repeat-y top; border: none; }
    2222<?php } else { // No sidebar ?>
    2323        #page { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickbgwide.jpg") repeat-y top; border: none; }
    2424<?php } ?>
  • wp-content/themes/default/rtl.css

     
     1/* Based on Arabic (RTL) version of Kubrick theme, converted by Serdal (Serdal.com) */
     2
     3.narrowcolumn, .alignleft, .widecolumn .smallattachment { float: right; }
     4.alignright, #commentform #submit { float: left; }
     5
     6#page, #wp-calendar #prev a { text-align: right; }
     7
     8
     9body, #commentform p { font-family: Tahoma, 'Lucida Grande', Verdana, Arial, Sans-Serif; }
     10
     11small { font-family: Tahoma, Arial, Helvetica, Sans-Serif; }
     12
     13.commentlist li, #commentform input, #commentform textarea { font: 0.9em Tahoma, 'Lucida Grande', Verdana, Arial, Sans-Serif; }
     14
     15#sidebar { font: 1em Tahoma, 'Lucida Grande', Verdana, Arial, Sans-Serif; }
     16
     17#wp-calendar caption { font: bold 1.3em Tahoma, 'Lucida Grande', Verdana, Arial, Sans-Serif; }
     18
     19#header { margin: 0 1px 0 0; }
     20
     21.narrowcolumn { padding: 0 45px 20px 0; }
     22
     23.widecolumn { margin: 5px 150px 0 0; }
     24
     25.widecolumn .smallattachment { margin: 5px 0px 5px 5px; }
     26
     27.postmetadata { clear: right; }
     28
     29img.alignright { margin: 0 7px 2px 0; }
     30
     31img.alignleft { margin: 0 0 2px 7px; }
     32
     33.entry ol { padding: 0 35px 0 0; }
     34
     35#sidebar ul ul, #sidebar ul ol { margin: 5px 10px 0 0; }
     36
     37#sidebar ul ul ul, #sidebar ul ol { margin: 0 10px 0 0; }
     38
     39#commentform input { margin: 5px 0 1px 5px; }
     40
     41.commentlist p { margin: 10px 0 10px 5px; }
     42
     43#sidebar { margin-right: 545px; }
     44
     45#wp-calendar #prev a, html>body .entry ul { padding-right: 10px; }
     46
     47html>body .entry li { margin: 7px 10px 8px 0; }
     48
     49html>body .entry ul {
     50        margin-right: 0px;
     51        padding: 0 30px 0 0;
     52}
     53
     54blockquote {
     55        margin: 15px 10px 0 30px;
     56        padding-right: 20px;
     57        border-right: 5px solid #ddd;
     58}
     59
     60#wp-calendar #next a {
     61        padding-left: 10px;
     62        text-align: left;
     63}
  • wp-includes/locale.php

     
    1212
    1313        var $meridiem;
    1414
    15         var $text_direction = '';
     15        var $text_direction = 'ltr';
    1616        var $locale_vars = array('text_direction');
    1717
    1818        function init() {