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

    r2053 r2085  
    136136| Left column (only if not in full-screen mode)        | 
    137137+-----------------------------------------------------*/ 
     138$side = (LOCALEDIR == "LTR" ? "left" : "right"); 
    138139if (!FULL_SCREEN) { 
    139140    // Get the config for all leftside panels 
    140     load_panels('left'); 
     141    load_panels($side); 
    141142    // if any leftside panel found 
    142     if (count_panels('left') > 0) { 
    143         echo "      <td valign='top' width='".SIDE_WIDTH."' class='side-border-left'>\n"; 
     143    if (count_panels($side) > 0) { 
     144        echo "      <td valign='top' width='".SIDE_WIDTH."' class='side-border-$side'>\n"; 
    144145        // load the templates for the left-side column 
    145         load_templates('left', ''); 
     146        load_templates($side, ''); 
    146147        echo "      </td>\n"; 
    147148    } 
    148     echo "      <td valign='top' class='main-bg' width='3'></td>\n"; 
    149149} 
    150150/*-----------------------------------------------------+ 
     
    177177| Right column (only if not in full-screen mode)       | 
    178178+-----------------------------------------------------*/ 
     179$side = (LOCALEDIR == "LTR" ? "right" : "left"); 
    179180if (!FULL_SCREEN) { 
    180181    // Get the config for all rightside panels 
    181     load_panels('right'); 
     182    load_panels($side); 
    182183    // if any rightside panel found 
    183     if (count_panels('right') > 0) { 
    184         echo "      <td valign='top' width='".SIDE_WIDTH."' class='side-border-right'>\n"; 
     184    if (count_panels($side) > 0) { 
     185        echo "      <td valign='top' width='".SIDE_WIDTH."' class='side-border-$side'>\n"; 
    185186        // load the templates for the right-side column 
    186         load_templates('right', ''); 
     187        load_templates($side, ''); 
    187188        echo "      </td>\n"; 
    188189    } 
     
    201202$variables = array(); 
    202203 
    203 // define the footer panel 
     204// load the footer panels 
     205load_panels('footer'); 
     206 
     207// get MySQL host info 
     208$variables['MySQLinfo'] = mysql_get_server_info(); 
     209 
     210// define the footer template 
    204211$template_panels[] = array('type' => 'footer', 'name' => '_footer', 'template' => '_footer.tpl'); 
    205212$template_variables['_footer'] = $variables; 
    206213 
     214// load the footer templates 
    207215load_templates('footer', ''); 
    208216 
Note: See TracChangeset for help on using the changeset viewer.