Ignore:
Timestamp:
11/30/08 12:31:00 (3 years ago)
Author:
WanWizard
Message:

swap left and right panels when using a right-to-left language

File:
1 edited

Legend:

Unmodified
Added
Removed
  • themes/public/BackOff/php-files/themes/BackOff/theme.php

    r2036 r2085  
    141141| Left column (only if not in full-screen mode)        | 
    142142+-----------------------------------------------------*/ 
     143$side = (LOCALEDIR == "LTR" ? "left" : "right"); 
    143144if (!FULL_SCREEN) { 
    144145    // Get the config for all leftside panels 
    145     load_panels('left'); 
     146    load_panels($side); 
    146147    // if any leftside panel found 
    147     if (count_panels('left') > 0) { 
    148         echo "      <td valign='top' width='".SIDE_WIDTH."' class='side-border-left'>\n"; 
     148    if (count_panels($side) > 0) { 
     149        echo "      <td valign='top' width='".SIDE_WIDTH."' class='side-border-$side'>\n"; 
    149150        // load the templates for the left-side column 
    150         load_templates('left', ''); 
     151        load_templates($side, ''); 
    151152        echo "      </td>\n"; 
    152153    } 
     
    181182| Right column (only if not in full-screen mode)       | 
    182183+-----------------------------------------------------*/ 
     184$side = (LOCALEDIR == "LTR" ? "right" : "left"); 
    183185if (!FULL_SCREEN) { 
    184186    // Get the config for all rightside panels 
    185     load_panels('right'); 
     187    load_panels($side); 
    186188    // if any rightside panel found 
    187     if (count_panels('right') > 0) { 
    188         echo "      <td valign='top' width='".SIDE_WIDTH."' class='side-border-right'>\n"; 
     189    if (count_panels($side) > 0) { 
     190        echo "      <td valign='top' width='".SIDE_WIDTH."' class='side-border-$side'>\n"; 
    189191        // load the templates for the right-side column 
    190         load_templates('right', ''); 
     192        load_templates($side, ''); 
    191193        echo "      </td>\n"; 
    192194    } 
Note: See TracChangeset for help on using the changeset viewer.