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

    r2002 r2085  
    145145| Left column (only if not in full-screen mode)        | 
    146146+-----------------------------------------------------*/ 
     147$side = (LOCALEDIR == "LTR" ? "left" : "right"); 
    147148if (!FULL_SCREEN) { 
    148149    // Get the config for all leftside panels 
    149     load_panels('left'); 
     150    load_panels($side); 
    150151    // if any leftside panel found 
    151     if (count_panels('left') > 0) { 
    152         echo "      <td valign='top' width='".SIDE_WIDTH."' class='side-border-left'>\n"; 
     152    if (count_panels($side) > 0) { 
     153        echo "      <td valign='top' width='".SIDE_WIDTH."' class='side-border-$side'>\n"; 
    153154        // load the templates for the left-side column 
    154         load_templates('left', ''); 
     155        load_templates($side, ''); 
    155156        echo "      </td>\n"; 
    156157    } 
     
    159160| Center column                                        | 
    160161+-----------------------------------------------------*/ 
    161 echo "      <td valign='top' class='main-bg'>"; 
     162echo "      <td valign='top' class='main-bg'>\n"; 
    162163 
    163164// if in full-screen mode, activate the navigation header panel 
     
    185186| Right column (only if not in full-screen mode)       | 
    186187+-----------------------------------------------------*/ 
     188$side = (LOCALEDIR == "LTR" ? "right" : "left"); 
    187189if (!FULL_SCREEN) { 
    188190    // Get the config for all rightside panels 
    189     load_panels('right'); 
     191    load_panels($side); 
    190192    // if any rightside panel found 
    191     if (count_panels('right') > 0) { 
    192         echo "      <td valign='top' width='".SIDE_WIDTH."' class='side-border-right'>\n"; 
     193    if (count_panels($side) > 0) { 
     194        echo "      <td valign='top' width='".SIDE_WIDTH."' class='side-border-$side'>\n"; 
    193195        // load the templates for the right-side column 
    194         load_templates('right', ''); 
     196        load_templates($side, ''); 
    195197        echo "      </td>\n"; 
    196198    } 
     
    209211$variables = array(); 
    210212 
    211 // define the footer panel 
     213// load the footer panels 
     214load_panels('footer'); 
     215 
     216// get MySQL host info 
     217$variables['MySQLinfo'] = mysql_get_server_info(); 
     218 
     219// define the footer template 
    212220$template_panels[] = array('type' => 'footer', 'name' => '_footer', 'template' => '_footer.tpl'); 
    213221$template_variables['_footer'] = $variables; 
    214222 
     223// load the footer templates 
    215224load_templates('footer', ''); 
    216225 
Note: See TracChangeset for help on using the changeset viewer.