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/DIV/php-files/themes/DIV/theme.php

    r2038 r2085  
    137137| Left column (only if not in full-screen mode)        | 
    138138+-----------------------------------------------------*/ 
     139$side = (LOCALEDIR == "LTR" ? "left" : "right"); 
    139140if (!FULL_SCREEN) { 
    140141    // Get the config for all leftside panels 
    141     load_panels('left'); 
     142    load_panels($side); 
    142143    // if any leftside panel found 
    143     if (count_panels('left') > 0) { 
    144         echo "      <td valign='top' width='".SIDE_WIDTH."' class='side-border-left'>\n"; 
     144    if (count_panels($side) > 0) { 
     145        echo "      <td valign='top' width='".SIDE_WIDTH."' class='side-border-$side'>\n"; 
    145146        // load the templates for the left-side column 
    146         load_templates('left', ''); 
     147        load_templates($side, ''); 
    147148        echo "      </td>\n"; 
    148149    } 
     
    177178| Right column (only if not in full-screen mode)       | 
    178179+-----------------------------------------------------*/ 
     180$side = (LOCALEDIR == "LTR" ? "right" : "left"); 
    179181if (!FULL_SCREEN) { 
    180182    // Get the config for all rightside panels 
    181     load_panels('right'); 
     183    load_panels($side); 
    182184    // if any rightside panel found 
    183     if (count_panels('right') > 0) { 
    184         echo "      <td valign='top' width='".SIDE_WIDTH."' class='side-border-right'>\n"; 
     185    if (count_panels($side) > 0) { 
     186        echo "      <td valign='top' width='".SIDE_WIDTH."' class='side-border-$side'>\n"; 
    185187        // load the templates for the right-side column 
    186         load_templates('right', ''); 
     188        load_templates($side, ''); 
    187189        echo "      </td>\n"; 
    188190    } 
Note: See TracChangeset for help on using the changeset viewer.