From: <ral...@us...> - 2005-03-30 16:16:39
|
Update of /cvsroot/egroupware/phpgwapi/templates/idots In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14855/idots Modified Files: head.inc.php head.tpl Log Message: added language direction flag to the html tag for the idots and jerry template: it can be set now by translating the phrase 'language_direction_rtl' to 'rtl' for a specific language Index: head.inc.php =================================================================== RCS file: /cvsroot/egroupware/phpgwapi/templates/idots/head.inc.php,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 *** head.inc.php 3 Mar 2005 10:43:48 -0000 1.24 --- head.inc.php 30 Mar 2005 16:16:05 -0000 1.25 *************** *** 56,60 **** } ! $tpl = CreateObject('phpgwapi.Template',PHPGW_TEMPLATE_DIR); $tpl->set_unknowns('remove'); $tpl->set_file(array('_head' => 'head.tpl')); --- 56,60 ---- } ! $tpl = CreateObject('phpgwapi.Template',EGW_TEMPLATE_DIR); $tpl->set_unknowns('remove'); $tpl->set_file(array('_head' => 'head.tpl')); *************** *** 75,92 **** $var = Array( ! 'img_icon' => PHPGW_IMAGES_DIR . '/favicon.ico', ! 'img_shortcut' => PHPGW_IMAGES_DIR . '/favicon.ico', 'pngfix' => $pngfix, 'slider_effects' => $slider_effects, 'simple_show_hide' => $simple_show_hide, 'lang_code' => $lang_code, ! 'charset' => $GLOBALS['phpgw']->translation->charset(), 'font_family' => $GLOBALS['egw_info']['theme']['font'], 'website_title' => strip_tags($GLOBALS['egw_info']['server']['site_title']. ($app ? " [$app]" : '')), ! 'body_tags' => $bodyheader .' '. $GLOBALS['phpgw']->common->get_body_attribs(), 'theme_css' => $theme_css, ! 'css' => $GLOBALS['phpgw']->common->get_css(), ! 'java_script' => $GLOBALS['phpgw']->common->get_java_script(), ! 'meta_robots' => $robots ); $tpl->set_var($var); --- 75,93 ---- $var = Array( ! 'img_icon' => EGW_IMAGES_DIR . '/favicon.ico', ! 'img_shortcut' => EGW_IMAGES_DIR . '/favicon.ico', 'pngfix' => $pngfix, 'slider_effects' => $slider_effects, 'simple_show_hide' => $simple_show_hide, 'lang_code' => $lang_code, ! 'charset' => $GLOBALS['egw']->translation->charset(), 'font_family' => $GLOBALS['egw_info']['theme']['font'], 'website_title' => strip_tags($GLOBALS['egw_info']['server']['site_title']. ($app ? " [$app]" : '')), ! 'body_tags' => $bodyheader .' '. $GLOBALS['egw']->common->get_body_attribs(), 'theme_css' => $theme_css, ! 'css' => $GLOBALS['egw']->common->get_css(), ! 'java_script' => $GLOBALS['egw']->common->get_java_script(), ! 'meta_robots' => $robots, ! 'dir_code' => lang('language_direction_rtl') != 'rtl' ? '' : ' dir="rtl"', ); $tpl->set_var($var); Index: head.tpl =================================================================== RCS file: /cvsroot/egroupware/phpgwapi/templates/idots/head.tpl,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** head.tpl 11 Aug 2004 21:59:17 -0000 1.21 --- head.tpl 30 Mar 2005 16:16:05 -0000 1.22 *************** *** 1,4 **** <!-- BEGIN head --><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> ! <html xml:lang="{lang_code}" xmlns="http://www.w3.org/1999/xhtml"> <head> --- 1,4 ---- <!-- BEGIN head --><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> ! <html xml:lang="{lang_code}" xmlns="http://www.w3.org/1999/xhtml"{dir_code}> <head> |