Changeset 2085 in ExiteCMS


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

Files:
9 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    } 
  • 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 
  • 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    } 
  • themes/public/Hezo/php-files/themes/Hezo/theme.php

    r2040 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    } 
  • themes/public/Hobugt/php-files/themes/Hobugt/theme.php

    r2062 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    } 
  • 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 
  • themes/public/Localize/php-files/themes/Localize/theme.php

    r2065 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    } 
  • themes/public/Luna/php-files/themes/Luna/theme.php

    r2068 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    } 
  • trunk/themes/ExiteCMS/theme.php

    r2033 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.