diff --git a/include/staff/category.inc.php b/include/staff/category.inc.php index 5db7361544640f300a17ce61740037a075deb4a1..5ac65cc2131e550dd05bf61f60e602c7fd981829 100644 --- a/include/staff/category.inc.php +++ b/include/staff/category.inc.php @@ -69,12 +69,10 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info); <div class="tab_content" id="info"> -<table width="100%"><tr> <?php $langs = Internationalization::getConfiguredSystemLanguages(); if (count($langs) > 1) { ?> - <td valign="top"> - <ul class="vertical tabs left" id="trans" style="margin-top:10px;"> + <ul class="alt tabs clean" id="trans"> <li class="empty"><i class="icon-globe" title="This content is translatable"></i></li> <?php foreach ($langs as $tag=>$i) { list($lang, $locale) = explode('_', $tag); @@ -86,12 +84,10 @@ if (count($langs) > 1) { ?> </a></li> <?php } ?> </ul> - </td> <?php } ?> -<td id="trans_container"> <?php foreach ($langs as $tag=>$i) { $code = $i['code']; $cname = 'name'; @@ -106,7 +102,7 @@ if (count($langs) > 1) { ?> $cname = "trans[$code][$cname]"; $dname = "trans[$code][$dname]"; } ?> - <div class="tab_content left <?php + <div class="tab_content <?php if ($code != $cfg->getPrimaryLanguage()) echo "hidden"; ?>" id="lang-<?php echo $tag; ?>" <?php if ($i['direction'] == 'rtl') echo 'dir="rtl" class="rtl"'; ?> @@ -131,7 +127,6 @@ if (count($langs) > 1) { ?> echo $desc; ?></textarea> </div> <?php } ?> - </td></tr></table> </div> diff --git a/include/staff/dynamic-form.inc.php b/include/staff/dynamic-form.inc.php index 831f7c7b10e82cb3725fb10019cb8139419be79f..24361af87eeefb20e3dc3dec8d8f2504fc1855c4 100644 --- a/include/staff/dynamic-form.inc.php +++ b/include/staff/dynamic-form.inc.php @@ -53,13 +53,12 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info); </tr> </thead> <tbody style="vertical-align:top"> - <tr> - <td colspan="2"> - <table class="full-width"><tbody><tr><td style="vertical-align:top"> + <tr> + <td colspan="2"> <?php $langs = Internationalization::getConfiguredSystemLanguages(); if ($form && count($langs) > 1) { ?> - <ul class="vertical tabs" id="translations"> + <ul class="alt tabs clean" id="translations"> <li class="empty"><i class="icon-globe" title="This content is translatable"></i></li> <?php foreach ($langs as $tag=>$nfo) { ?> <li class="<?php if ($tag == $cfg->getPrimaryLanguage()) echo "active"; @@ -71,8 +70,7 @@ if ($form && count($langs) > 1) { ?> </ul> <?php } ?> - </td> - <td id="translations_container"> + <div id="translations_container"> <div id="translation-<?php echo $cfg->getPrimaryLanguage(); ?>" class="tab_content" lang="<?php echo $cfg->getPrimaryLanguage(); ?>"> <div class="required"><?php echo __('Title'); ?>:</div> @@ -106,13 +104,13 @@ if ($form && count($langs) > 1) { ?> <i class="help-tip icon-question-sign" href="#form_instructions"></i> </div> <textarea name="trans[<?php echo $tag; ?>][instructions]" cols="21" rows="12" - style="width:100%" class="richtext"><?php + style="width:100%" class="richtext small"><?php echo $info['trans'][$tag]['instructions']; ?></textarea> </div> <?php } } ?> - </td></tr></tbody></table> - </td></tr> + </td> + </tr> </tbody> </table> <table class="form_table" width="940" border="0" cellspacing="0" cellpadding="2">