Skip to:
Content

bbPress.org


Ignore:
Timestamp:
10/16/2006 06:26:02 PM (20 years ago)
Author:
mdawaffe
Message:

RTL support props Sewar. Fixes #440

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bb-includes/functions.php

    r480 r482  
    305305    case 'edit_lock' :
    306306        return $bb->edit_lock;
     307        break;
     308    case 'language':
     309        return str_replace('_', '-', get_locale());
     310        break;
     311    case 'text_direction':
     312        global $bb_locale;
     313        return $bb_locale->text_direction;
    307314        break;
    308315    case 'version' :
     
    14351442
    14361443function bb_die($message, $title = '') {
     1444    global $bb_locale;
     1445
    14371446    header('Content-Type: text/html; charset=utf-8');
    14381447
     
    14411450?>
    14421451<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    1443 <html xmlns="http://www.w3.org/1999/xhtml">
     1452<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
    14441453<head>
    14451454    <title><?php echo $title ?></title>
    14461455    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    1447     <style media="screen" type="text/css">
    1448     <!--
    1449     html {
    1450         background: #eee;
    1451     }
    1452     body {
    1453         background: #fff;
    1454         color: #000;
    1455         font-family: Georgia, "Times New Roman", Times, serif;
    1456         margin-left: 25%;
    1457         margin-right: 25%;
    1458         padding: .2em 2em;
    1459     }
    1460 
    1461     h1 {
    1462         color: #060;
    1463         font-size: 18px;
    1464         font-weight: lighter;
    1465     }
    1466 
    1467     h2 {
    1468         font-size: 16px;
    1469     }
    1470 
    1471     p, li, dt {
    1472         line-height: 140%;
    1473         padding-bottom: 2px;
    1474     }
    1475 
    1476     ul, ol {
    1477         padding: 5px 5px 5px 20px;
    1478     }
    1479     #logo {
    1480         margin-bottom: 2em;
    1481     }
    1482     -->
    1483     </style>
     1456    <link rel="stylesheet" href="<?php option('uri'); ?>bb-admin/install.css" type="text/css" />
     1457<?php if ( ('rtl' == $bb_locale->text_direction) ) : ?>
     1458    <link rel="stylesheet" href="<?php option('uri'); ?>bb-admin/install-rtl.css" type="text/css" />
     1459<?php endif; ?>
    14841460</head>
    14851461<body>
Note: See TracChangeset for help on using the changeset viewer.