diff options
80 files changed, 342 insertions, 436 deletions
diff --git a/admin_media.php b/admin_media.php index 67854a6087..4452f68997 100644 --- a/admin_media.php +++ b/admin_media.php @@ -462,7 +462,7 @@ if (check_media_structure()) { * @name $action->thumbnail */ if ($action == "thumbnail") { - echo "<table class=\"media_items $TEXT_DIRECTION\">"; + echo "<table class=\"media_items\">"; echo "<tr><td class=\"messagebox wrap\">"; // TODO: add option to generate thumbnails for all images on page // Cycle through $medialist and skip all exisiting thumbs @@ -511,7 +511,7 @@ if (check_media_structure()) { // Move single file and optionally its corresponding thumbnail to protected dir if ($action == "moveprotected") { - echo "<table class=\"media_items $TEXT_DIRECTION\">"; + echo "<table class=\"media_items\">"; echo "<tr><td class=\"messagebox wrap\">"; if (strpos($filename, "../") !== false) { // don't allow user to access directories outside of media dir @@ -533,7 +533,7 @@ if (check_media_structure()) { // Move single file and its corresponding thumbnail to standard dir if ($action == "movestandard") { - echo "<table class=\"media_items $TEXT_DIRECTION\">"; + echo "<table class=\"media_items\">"; echo "<tr><td class=\"messagebox wrap\">"; if (strpos($filename, "../") !== false) { // don't allow user to access directories outside of media dir @@ -553,7 +553,7 @@ if (check_media_structure()) { // Move entire dir and all subdirs to protected dir if ($action == "movedirprotected") { - echo "<table class=\"media_items $TEXT_DIRECTION\">"; + echo "<table class=\"media_items\">"; echo "<tr><td class=\"messagebox wrap\">"; echo "<strong>".WT_I18N::translate('Move to protected')."<br />"; move_files(substr($directory, 0, -1), true); @@ -563,7 +563,7 @@ if (check_media_structure()) { // Move entire dir and all subdirs to standard dir if ($action == "movedirstandard") { - echo "<table class=\"media_items $TEXT_DIRECTION\">"; + echo "<table class=\"media_items\">"; echo "<tr><td class=\"messagebox wrap\">"; echo "<strong>".WT_I18N::translate('Move to standard')."<br />"; move_files(substr(get_media_firewall_path($directory), 0, -1), false); @@ -572,7 +572,7 @@ if (check_media_structure()) { } if ($action == "setpermsfix") { - echo "<table class=\"media_items $TEXT_DIRECTION\">"; + echo "<table class=\"media_items\">"; echo "<tr><td class=\"messagebox wrap\">"; echo "<strong>".WT_I18N::translate('Correct read/write/execute permissions')."<br />"; set_perms(substr($directory, 0, -1)); @@ -606,7 +606,7 @@ if (check_media_structure()) { // Delete file if ($action == "deletefile") { - echo "<table class=\"media_items $TEXT_DIRECTION\">"; + echo "<table class=\"media_items\">"; echo "<tr><td class=\"messagebox wrap\">"; $xrefs = array($xref); $onegedcom = true; @@ -786,7 +786,7 @@ if (check_media_structure()) { <input type="hidden" name="level" value="<?php echo $level; ?>" /> <input type="hidden" name="all" value="true" /> <input type="hidden" name="subclick" value="<?php echo $subclick; ?>"/> - <table class="media_items <?php echo $TEXT_DIRECTION; ?>"> + <table class="media_items"> <tr align="center"> <td class="wrap"><?php echo /* I18N: Label for list of sort options */ WT_I18N::translate('Sort order'); ?> <select name="sortby"> @@ -816,7 +816,7 @@ if (check_media_structure()) { </tr> <!-- </table> - <table class="media_items <?php echo $TEXT_DIRECTION; ?>">--> + <table class="media_items">--> <tr align="center"> <td colspan="2"> <?php echo WT_I18N::translate('Folder')."</td><td>". WT_I18N::translate('Filter'), help_link('simple_filter'); ?> @@ -854,7 +854,7 @@ if (check_media_structure()) { if (empty($directory)) $directory = $MEDIA_DIRECTORY; // Start of media directory table - echo "<table class=\"media_items $TEXT_DIRECTION\">"; + echo "<table class=\"media_items\">"; // Tell the user where he is echo "<tr>"; echo "<td colspan=\"4\">"; @@ -984,7 +984,7 @@ if (check_media_structure()) { echo "<td class=\" center\" width=\"10\">"; echo $uplink2; echo "</td>"; - echo "<td class=\"$TEXT_DIRECTION\">"; + echo "<td>"; echo $uplink; echo "</td>"; echo "</tr>"; @@ -1011,7 +1011,7 @@ if (check_media_structure()) { echo "</form>"; // echo "</td>"; - echo "<td class=\"$TEXT_DIRECTION\">"; + echo "<td>"; echo "<a href=\"".WT_SCRIPT_NAME."?directory=".rawurlencode($directory.$dir)."/&sortby={$sortby}&level=".($level+1).$thumbget."&subclick={$subclick}\">"; if ($TEXT_DIRECTION=="rtl") echo getRLM(); echo $dir; @@ -1108,7 +1108,7 @@ if (check_media_structure()) { // Show column with file operations options $printDone = true; - echo "<tr><td class=\" $changeClass $TEXT_DIRECTION\">"; + echo "<tr><td>"; if ($media["CHANGE"]!="delete") { // Edit File @@ -1220,7 +1220,7 @@ if (check_media_structure()) { //-- Thumbnail field if ($showthumb) { - echo "<td class=\" $changeClass $TEXT_DIRECTION\">"; + echo "<td>"; // if Streetview object if (strpos($media["FILE"], 'http://maps.google.')===0) { echo '<iframe style="float:left; padding:5px;" width="264" height="176" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="', $media["FILE"], '&output=svembed"></iframe>'; @@ -1234,7 +1234,7 @@ if (check_media_structure()) { } //-- name and size field - echo "<td class=\" $changeClass $TEXT_DIRECTION wrap\">"; + echo "<td>"; if ($media["TITL"]!="") echo "<b>".PrintReady($media["TITL"])."</b><br />"; if (!$isExternal && !$media["EXISTS"]) echo "<span dir=\"ltr\">".PrintReady($media["FILE"])."</span><br /><span class=\"error\">".WT_I18N::translate('The filename entered does not exist.')."</span><br />"; else { diff --git a/admin_module_blocks.php b/admin_module_blocks.php index 5453d9dc16..3fb903523f 100644 --- a/admin_module_blocks.php +++ b/admin_module_blocks.php @@ -89,8 +89,8 @@ $controller->pageHeader(); echo '<tr class="rela">'; } ?> - <td class="<?php echo $TEXT_DIRECTION; ?>" ><?php echo $module->getTitle(); ?></td> - <td class="<?php echo $TEXT_DIRECTION; ?>" ><?php echo $module->getDescription(); ?></td> + <td><?php echo $module->getTitle(); ?></td> + <td><?php echo $module->getDescription(); ?></td> <td> <table class="modules_table2"> <?php diff --git a/admin_module_menus.php b/admin_module_menus.php index 5487513bd8..e9de61624e 100644 --- a/admin_module_menus.php +++ b/admin_module_menus.php @@ -109,8 +109,8 @@ echo WT_JS_START; ?> echo '<tr class="sortme rela">'; } ?> - <td class="<?php echo $TEXT_DIRECTION; ?>" ><?php echo $module->getTitle(); ?></td> - <td class="<?php echo $TEXT_DIRECTION; ?>" ><?php echo $module->getDescription(); ?></td> + <td><?php echo $module->getTitle(); ?></td> + <td><?php echo $module->getDescription(); ?></td> <td><input type="text" size="3" value="<?php echo $order; ?>" name="menuorder-<?php echo $module->getName(); ?>" /> </td> <td> diff --git a/admin_module_reports.php b/admin_module_reports.php index fba2754489..e9441d2e6e 100644 --- a/admin_module_reports.php +++ b/admin_module_reports.php @@ -89,8 +89,8 @@ $controller->pageHeader(); echo '<tr class="rela">'; } ?> - <td class="<?php echo $TEXT_DIRECTION; ?>" ><?php echo $module->getTitle(); ?></td> - <td class="<?php echo $TEXT_DIRECTION; ?>" ><?php echo $module->getDescription(); ?></td> + <td><?php echo $module->getTitle(); ?></td> + <td><?php echo $module->getDescription(); ?></td> <td> <table class="modules_table2"> <?php diff --git a/admin_module_sidebar.php b/admin_module_sidebar.php index a34179d61f..866c0fb3ec 100644 --- a/admin_module_sidebar.php +++ b/admin_module_sidebar.php @@ -110,8 +110,8 @@ echo WT_JS_START; ?> echo '<tr class="sortme rela">'; } ?> - <td class="<?php echo $TEXT_DIRECTION; ?>" ><?php echo $module->getTitle(); ?></td> - <td class="<?php echo $TEXT_DIRECTION; ?>" ><?php echo $module->getDescription(); ?></td> + <td ><?php echo $module->getTitle(); ?></td> + <td><?php echo $module->getDescription(); ?></td> <td><input type="text" size="3" value="<?php echo $order; ?>" name="sidebarorder-<?php echo $module->getName(); ?>" /></td> <td> <table class="modules_table2"> diff --git a/admin_module_tabs.php b/admin_module_tabs.php index 394c542448..7adabecdaf 100644 --- a/admin_module_tabs.php +++ b/admin_module_tabs.php @@ -110,8 +110,8 @@ echo WT_JS_START; ?> echo '<tr class="sortme rela">'; } ?> - <td class="<?php echo $TEXT_DIRECTION; ?>" ><?php echo $module->getTitle(); ?></td> - <td class="<?php echo $TEXT_DIRECTION; ?>" ><?php echo $module->getDescription(); ?></td> + <td><?php echo $module->getTitle(); ?></td> + <td><?php echo $module->getDescription(); ?></td> <td><input type="text" size="3" value="<?php echo $order; ?>" name="taborder-<?php echo $module->getName(); ?>" /> </td> <td> diff --git a/admin_site_merge.php b/admin_site_merge.php index b3c37df371..1f784b996a 100644 --- a/admin_site_merge.php +++ b/admin_site_merge.php @@ -273,7 +273,7 @@ if ($action=='choose') { <form method="post" name="merge" action="admin_site_merge.php"> <input type="hidden" name="action" value="select" /> <p>', WT_I18N::translate('Select two GEDCOM records to merge. The records must be of the same type.'), '</p> - <table class="', $TEXT_DIRECTION, '"><tr> + <table><tr> <td>', WT_I18N::translate('Merge To ID:'), '</td><td> diff --git a/admin_trees_config.php b/admin_trees_config.php index d628a49489..5ab08f952b 100644 --- a/admin_trees_config.php +++ b/admin_trees_config.php @@ -387,7 +387,7 @@ echo WT_JS_START;?> $i = 0; ?> -<table class="center <?php echo $TEXT_DIRECTION; ?>"> +<table class="center"> <tr> <td colspan="2"> <div id="tabs" style="display:none"> diff --git a/admin_users.php b/admin_users.php index ee90c6141c..f5fb7b75c5 100644 --- a/admin_users.php +++ b/admin_users.php @@ -559,7 +559,7 @@ case 'createform': case 'cleanup': ?> <form name="cleanupform" method="post" action="admin_users.php?action=cleanup2"> - <table id="clean" class="<?php echo $TEXT_DIRECTION; ?>"> + <table id="clean"> <?php // Check for idle users //if (!isset($month)) $month = 1; diff --git a/admin_users_bulk.php b/admin_users_bulk.php index 3e6e6978d0..24a695a188 100644 --- a/admin_users_bulk.php +++ b/admin_users_bulk.php @@ -37,7 +37,7 @@ $controller require_once WT_ROOT.'includes/functions/functions_edit.php';
?>
-<div id="users_bulk" class="<?php echo $TEXT_DIRECTION; ?>">
+<div id="users_bulk">
<p><a href="#" onclick="message('all', 'messaging2', '', ''); return false;"><?php echo WT_I18N::translate('Send message to all users'); ?></a></p>
<p><a href="#" onclick="message('never_logged', 'messaging2', '', ''); return false;"><?php echo WT_I18N::translate('Send message to users who have never logged in'); ?></a></p>
<p><a href="#" onclick="message('last_6mo', 'messaging2', '', ''); return false;"><?php echo WT_I18N::translate('Send message to users who have not logged in for 6 months'); ?></a></p>
diff --git a/ancestry.php b/ancestry.php index a8255a8e39..e096f47ba9 100644 --- a/ancestry.php +++ b/ancestry.php @@ -60,7 +60,7 @@ echo WT_JS_START, 'var pastefield; function paste_id(value) {pastefield.value=va </td><td width="50px"> </td><td><form name="people" id="people" method="get" action="?"> <input type="hidden" name="show_full" value="<?php echo $controller->show_full; ?>" /> <input type="hidden" name="show_cousins" value="<?php echo $controller->show_cousins; ?>" /> -<table class="list_table <?php echo $TEXT_DIRECTION; ?>"> +<table class="list_table"> <!-- // NOTE: Root ID --> <tr> diff --git a/branches.php b/branches.php index 50a74904f2..2de3002df8 100644 --- a/branches.php +++ b/branches.php @@ -62,9 +62,9 @@ if ($ENABLE_AUTOCOMPLETE) { <form name="surnlist" id="surnlist" action="?"> <table class="center facts_table width50"> <tr> - <td class="descriptionbox <?php echo $TEXT_DIRECTION; ?>"> + <td class="descriptionbox"> <?php echo WT_Gedcom_Tag::getLabel('SURN'), help_link('surname'); ?></td> - <td class="optionbox <?php echo $TEXT_DIRECTION; ?>"> + <td class="optionbox"> <input type="text" name="surn" id="SURN" value="<?php echo $surn; ?>" /> <input type="hidden" name="ged" id="ged" value="<?php echo $ged; ?>" /> <input type="submit" value="<?php echo WT_I18N::translate('View'); ?>" /> @@ -104,7 +104,7 @@ if ($surn) { } function print_fams($person, $famid=null) { - global $UNKNOWN_NN, $surn, $surn_script, $TEXT_DIRECTION, $user_ancestors; + global $UNKNOWN_NN, $surn, $surn_script, $user_ancestors; // select person name according to searched surname $person_name = ""; foreach ($person->getAllNames() as $n=>$name) { diff --git a/calendar.php b/calendar.php index 17d5727ccc..4f060b3b54 100644 --- a/calendar.php +++ b/calendar.php @@ -119,7 +119,7 @@ echo "<input type=\"hidden\" name=\"action\" value=\"{$action}\" />"; echo "<input type=\"hidden\" name=\"filterev\" value=\"{$filterev}\" />"; echo "<input type=\"hidden\" name=\"filtersx\" value=\"{$filtersx}\" />"; echo "<input type=\"hidden\" name=\"filterof\" value=\"{$filterof}\" />"; -echo '<table class="facts_table '.$TEXT_DIRECTION.' width100">'; +echo '<table class="facts_table width100">'; echo '<tr><td class="facts_label" colspan="4"><h2>'; // All further uses of $cal are to generate URLs @@ -278,7 +278,7 @@ echo '</select>'; echo '</td></tr>'; echo '</table></form>'; -echo "<table class=\"center {$TEXT_DIRECTION} width100\">"; +echo "<table class=\"center width100\">"; // Day/Month/Year and calendar selector echo '<tr><td class="topbottombar width50">'; @@ -414,7 +414,7 @@ case 'calendar': switch ($action) { case 'year': case 'today': - echo "<table class=\"center {$TEXT_DIRECTION} width100\"><tr>"; + echo "<table class=\"center width100\"><tr>"; // Table headings echo "<td class=\"descriptionbox center width50\">"; if (isset($WT_IMAGES['indis'])) echo "<img id=\"calendar_img_indi\" src=\"{$WT_IMAGES['indis']}\" title=\"", WT_I18N::translate('Individuals'), "\" alt=\"", WT_I18N::translate('Individuals'), "\"> "; @@ -427,7 +427,7 @@ case 'today': $males=0; $females=0; $numfams=0; - echo "<td class=\"optionbox {$TEXT_DIRECTION} wrap\">"; + echo "<td class=\"optionbox wrap\">"; // Avoid an empty unordered list ob_start(); @@ -438,7 +438,7 @@ case 'today': } echo '</td>'; - echo "<td class=\"optionbox {$TEXT_DIRECTION} wrap\">"; + echo "<td class=\"optionbox wrap\">"; // Avoid an empty unordered list ob_start(); @@ -470,7 +470,7 @@ case 'calendar': if ($days_in_week==10) { $week_start=0; } - echo "<table class=\"list_table width100 $TEXT_DIRECTION\"><tr>"; + echo "<table class=\"list_table width100\"><tr>"; for ($week_day=0; $week_day<$days_in_week; ++$week_day) { $day_name=$cal_date->LONG_DAYS_OF_WEEK(($week_day+$week_start) % $days_in_week); echo "<td class=\"descriptionbox\" width=\"".floor(100/$days_in_week)."%\">{$day_name}</td>"; diff --git a/descendancy.php b/descendancy.php index bb85413681..7c005284a2 100644 --- a/descendancy.php +++ b/descendancy.php @@ -59,7 +59,7 @@ echo WT_JS_END; $gencount=0; echo '</td><td width="50px"> </td><td><form method="get" name="people" action="?">'; echo '<input type="hidden" name="show_full" value="', $controller->show_full, '" />'; -echo '<table class="list_table ', $TEXT_DIRECTION, '">'; +echo '<table class="list_table">'; echo '<tr><td class="descriptionbox">'; echo WT_I18N::translate('Root Person ID'), help_link('desc_rootid'), '</td>'; echo '<td class="optionbox">'; diff --git a/edit_changes.php b/edit_changes.php index a7273920e3..01812448c2 100644 --- a/edit_changes.php +++ b/edit_changes.php @@ -156,7 +156,7 @@ if ($changed_gedcoms) { } $prev_xref =$change->xref; $prev_gedcom_id=$change->gedcom_id; - $output.='<tr><td class="list_value '.$TEXT_DIRECTION.'">'; + $output.='<tr><td class="list_value">'; $GEDCOM=$change->gedcom_name; $record=WT_GedcomRecord::getInstance($change->xref); if (!$record) { diff --git a/edit_interface.php b/edit_interface.php index 0333259dcc..f728242a02 100644 --- a/edit_interface.php +++ b/edit_interface.php @@ -190,25 +190,17 @@ if (!isset($type)) { $level0type = $type; if ($type=='INDI') { $record=WT_Person::getInstance($pid); - echo '<b>', $record->getFullName(), '</b><br />'; + echo '<b>', $record->getFullName(), '</b><br>'; } elseif ($type=='FAM') { if (!empty($pid)) { $record=WT_Family::getInstance($pid); } else { $record=WT_Family::getInstance($famid); } - echo '<b>', $record->getFullName(), '</b><br />'; + echo '<b>', $record->getFullName(), '</b><br>'; } elseif ($type=='SOUR') { $record=WT_Source::getInstance($pid); - echo '<b>', $record->getFullName(), ' '; - if ($TEXT_DIRECTION=='rtl') { - echo getRLM(); - } - echo '(', $pid, ')'; - if ($TEXT_DIRECTION=='rtl') { - echo getRLM(); - } - echo '</b><br />'; + echo '<b>', $record->getFullName(), '</b><br>'; } if (strstr($action, 'addchild')) { @@ -288,7 +280,7 @@ case 'editraw': echo '<textarea name="newgedrec2" rows="20" cols="80" dir="ltr">', $gedrec2, "</textarea><br />"; if (WT_USER_IS_ADMIN) { echo '<table class="facts_table">'; - echo '<tr><td class="descriptionbox ', $TEXT_DIRECTION, ' wrap width25">'; + echo '<tr><td class="descriptionbox wrap width25">'; echo WT_Gedcom_Tag::getLabel('CHAN'), '</td><td class="optionbox wrap">'; echo '<input type="checkbox" name="preserve_last_changed"'; if ($NO_UPDATE_CHAN) { @@ -331,7 +323,7 @@ case 'edit': echo "<table class=\"facts_table\">"; $level1type = create_edit_form($gedrec, $linenum, $level0type); if (WT_USER_IS_ADMIN) { - echo '<tr><td class="descriptionbox ', $TEXT_DIRECTION, ' wrap width25">'; + echo '<tr><td class="descriptionbox wrap width25">'; echo WT_Gedcom_Tag::getLabel('CHAN'), '</td><td class="optionbox wrap">'; echo '<input type="checkbox" name="preserve_last_changed"'; if ($NO_UPDATE_CHAN) { @@ -406,7 +398,7 @@ case 'add': create_add_form($fact); if (WT_USER_IS_ADMIN) { - echo '<tr><td class="descriptionbox ', $TEXT_DIRECTION, ' wrap width25">'; + echo '<tr><td class="descriptionbox wrap width25">'; echo WT_Gedcom_Tag::getLabel('CHAN'), '</td><td class="optionbox wrap">'; echo '<input type="checkbox" name="preserve_last_changed"'; if ($NO_UPDATE_CHAN) { @@ -481,7 +473,7 @@ case 'addfamlink': echo '</td></tr>'; } if (WT_USER_IS_ADMIN) { - echo '<tr><td class="descriptionbox ', $TEXT_DIRECTION, ' wrap width25">'; + echo '<tr><td class="descriptionbox wrap width25">'; echo WT_Gedcom_Tag::getLabel('CHAN'), '</td><td class="optionbox wrap">'; echo '<input type="checkbox" name="preserve_last_changed"'; if ($NO_UPDATE_CHAN) { @@ -520,7 +512,7 @@ case 'linkspouse': add_simple_tag("0 DATE", "MARR"); add_simple_tag("0 PLAC", "MARR"); if (WT_USER_IS_ADMIN) { - echo "<tr><td class=\"descriptionbox ", $TEXT_DIRECTION, " wrap width25\">"; + echo "<tr><td class=\"descriptionbox wrap width25\">"; echo WT_Gedcom_Tag::getLabel('CHAN'), '</td><td class="optionbox wrap">'; echo '<input type="checkbox" name="preserve_last_changed"'; if ($NO_UPDATE_CHAN) { @@ -649,29 +641,29 @@ case 'addnewsource': <input type="hidden" name="action" value="addsourceaction" /> <input type="hidden" name="pid" value="newsour" /> <table class="facts_table"> - <tr><td class="descriptionbox <?php echo $TEXT_DIRECTION; ?> wrap width25"><?php echo WT_Gedcom_Tag::getLabel('ABBR'), help_link('ABBR'); ?></td> + <tr><td class="descriptionbox wrap width25"><?php echo WT_Gedcom_Tag::getLabel('ABBR'), help_link('ABBR'); ?></td> <td class="optionbox wrap"><input type="text" name="ABBR" id="ABBR" value="" size="40" maxlength="255" /> <?php print_specialchar_link("ABBR", false); ?></td></tr> - <tr><td class="descriptionbox <?php echo $TEXT_DIRECTION; ?> wrap width25"><?php echo WT_Gedcom_Tag::getLabel('TITL'), help_link('TITL'); ?></td> + <tr><td class="descriptionbox wrap width25"><?php echo WT_Gedcom_Tag::getLabel('TITL'), help_link('TITL'); ?></td> <td class="optionbox wrap"><input type="text" name="TITL" id="TITL" value="" size="60" /> <?php print_specialchar_link("TITL", false); ?></td></tr> <?php if (strstr($ADVANCED_NAME_FACTS, "_HEB")!==false) { ?> - <tr><td class="descriptionbox <?php echo $TEXT_DIRECTION; ?> wrap width25"><?php echo WT_Gedcom_Tag::getLabel('_HEB'), help_link('_HEB'); ?></td> + <tr><td class="descriptionbox wrap width25"><?php echo WT_Gedcom_Tag::getLabel('_HEB'), help_link('_HEB'); ?></td> <td class="optionbox wrap"><input type="text" name="_HEB" id="_HEB" value="" size="60" /> <?php print_specialchar_link("_HEB", false); ?></td></tr> <?php } ?> <?php if (strstr($ADVANCED_NAME_FACTS, "ROMN")!==false) { ?> - <tr><td class="descriptionbox <?php echo $TEXT_DIRECTION; ?> wrap width25"><?php echo WT_Gedcom_Tag::getLabel('ROMN'), help_link('ROMN'); ?></td> + <tr><td class="descriptionbox wrap width25"><?php echo WT_Gedcom_Tag::getLabel('ROMN'), help_link('ROMN'); ?></td> <td class="optionbox wrap"><input type="text" name="ROMN" id="ROMN" value="" size="60" /> <?php print_specialchar_link("ROMN", false); ?></td></tr> <?php } ?> - <tr><td class="descriptionbox <?php echo $TEXT_DIRECTION; ?> wrap width25"><?php echo WT_Gedcom_Tag::getLabel('AUTH'), help_link('AUTH'); ?></td> + <tr><td class="descriptionbox wrap width25"><?php echo WT_Gedcom_Tag::getLabel('AUTH'), help_link('AUTH'); ?></td> <td class="optionbox wrap"><input type="text" name="AUTH" id="AUTH" value="" size="40" maxlength="255" /> <?php print_specialchar_link("AUTH", false); ?></td></tr> - <tr><td class="descriptionbox <?php echo $TEXT_DIRECTION; ?> wrap width25"><?php echo WT_Gedcom_Tag::getLabel('PUBL'), help_link('PUBL'); ?></td> + <tr><td class="descriptionbox wrap width25"><?php echo WT_Gedcom_Tag::getLabel('PUBL'), help_link('PUBL'); ?></td> <td class="optionbox wrap"><textarea name="PUBL" id="PUBL" rows="5" cols="60"></textarea><br /><?php print_specialchar_link("PUBL", true); ?></td></tr> - <tr><td class="descriptionbox <?php echo $TEXT_DIRECTION; ?> wrap width25"><?php echo WT_Gedcom_Tag::getLabel('REPO'), help_link('REPO'); ?></td> + <tr><td class="descriptionbox wrap width25"><?php echo WT_Gedcom_Tag::getLabel('REPO'), help_link('REPO'); ?></td> <td class="optionbox wrap"><input type="text" name="REPO" id="REPO" value="" size="10" /> <?php print_findrepository_link("REPO"); echo help_link('REPO'); print_addnewrepository_link("REPO"); ?></td></tr> - <tr><td class="descriptionbox <?php echo $TEXT_DIRECTION; ?> wrap width25"><?php echo WT_Gedcom_Tag::getLabel('CALN'), help_link('CALN'); ?></td> + <tr><td class="descriptionbox wrap width25"><?php echo WT_Gedcom_Tag::getLabel('CALN'), help_link('CALN'); ?></td> <td class="optionbox wrap"><input type="text" name="CALN" id="CALN" value="" /></td></tr> <?php if (WT_USER_IS_ADMIN) { - echo '<tr><td class="descriptionbox ', $TEXT_DIRECTION, ' wrap width25">'; + echo '<tr><td class="descriptionbox wrap width25">'; echo WT_Gedcom_Tag::getLabel('CHAN'), '</td><td class="optionbox wrap">'; echo '<input type="checkbox" name="preserve_last_changed"'; if ($NO_UPDATE_CHAN) { @@ -688,7 +680,7 @@ case 'addnewsource': <div id="events" style="display: none;"> <table class="facts_table"> <tr> - <td class="descriptionbox <?php echo $TEXT_DIRECTION; ?> wrap width25"><?php echo WT_I18N::translate('Select Events'), help_link('edit_SOUR_EVEN'); ?></td> + <td class="descriptionbox wrap width25"><?php echo WT_I18N::translate('Select Events'), help_link('edit_SOUR_EVEN'); ?></td> <td class="optionbox wrap"><select name="EVEN[]" multiple="multiple" size="5"> <?php $parts = explode(',', get_gedcom_setting(WT_GED_ID, 'INDI_FACTS_ADD')); @@ -775,7 +767,7 @@ case 'addnewnote': <?php echo '<table class="facts_table">'; echo '<tr>'; - echo '<td class="descriptionbox" ', $TEXT_DIRECTION, ' wrap=\"nowrap\">'; + echo '<td class="descriptionbox nowrap">'; echo WT_I18N::translate('Shared note'), help_link('SHARED_NOTE'); echo '</td>'; echo '<td class="optionbox wrap" ><textarea name="NOTE" id="NOTE" rows="15" cols="87"></textarea>'; @@ -783,7 +775,7 @@ case 'addnewnote': echo '</td>'; echo '</tr>'; if (WT_USER_IS_ADMIN) { - echo '<tr><td class="descriptionbox ', $TEXT_DIRECTION, ' wrap width25">'; + echo '<tr><td class="descriptionbox wrap width25">'; echo WT_Gedcom_Tag::getLabel('CHAN'), '</td><td class="optionbox wrap">'; echo '<input type="checkbox" name="preserve_last_changed"'; if ($NO_UPDATE_CHAN) { @@ -962,7 +954,7 @@ case 'editsource': } if (WT_USER_IS_ADMIN) { - echo '<tr><td class="descriptionbox ', $TEXT_DIRECTION, ' wrap width25">'; + echo '<tr><td class="descriptionbox wrap width25">'; echo WT_Gedcom_Tag::getLabel('CHAN'), '</td><td class="optionbox wrap">'; echo '<input type="checkbox" name="preserve_last_changed"'; if ($NO_UPDATE_CHAN) { @@ -1010,7 +1002,7 @@ case 'editnote': ?> <table class="facts_table"> <tr> - <td class="descriptionbox <?php echo $TEXT_DIRECTION; ?> wrap width25"><?php echo WT_I18N::translate('Shared note'), help_link('SHARED_NOTE'); ?></td> + <td class="descriptionbox wrap width25"><?php echo WT_I18N::translate('Shared note'), help_link('SHARED_NOTE'); ?></td> <td class="optionbox wrap"> <textarea name="NOTE" id="NOTE" rows="15" cols="90"><?php echo htmlspecialchars($note_content); @@ -1019,7 +1011,7 @@ case 'editnote': </tr> <?php if (WT_USER_IS_ADMIN) { - echo '<tr><td class="descriptionbox ', $TEXT_DIRECTION, ' wrap width25">'; + echo '<tr><td class="descriptionbox wrap width25">'; echo WT_Gedcom_Tag::getLabel('CHAN'), '</td><td class="optionbox wrap">'; echo '<input type="checkbox" name="preserve_last_changed"'; if ($NO_UPDATE_CHAN) { @@ -1061,29 +1053,29 @@ case 'addnewrepository': <input type="hidden" name="action" value="addrepoaction" /> <input type="hidden" name="pid" value="newrepo" /> <table class="facts_table"> - <tr><td class="descriptionbox <?php echo $TEXT_DIRECTION; ?> wrap width25"><?php echo WT_I18N::translate('Repository name'), help_link('edit_REPO_NAME'); ?></td> + <tr><td class="descriptionbox wrap width25"><?php echo WT_I18N::translate('Repository name'), help_link('edit_REPO_NAME'); ?></td> <td class="optionbox wrap"><input type="text" name="NAME" id="NAME" value="" size="40" maxlength="255" /> <?php print_specialchar_link("NAME", false); ?></td></tr> <?php if (strstr($ADVANCED_NAME_FACTS, "_HEB")!==false) { ?> - <tr><td class="descriptionbox <?php echo $TEXT_DIRECTION; ?> wrap width25"><?php echo WT_Gedcom_Tag::getLabel('_HEB'), help_link('_HEB'); ?></td> + <tr><td class="descriptionbox wrap width25"><?php echo WT_Gedcom_Tag::getLabel('_HEB'), help_link('_HEB'); ?></td> <td class="optionbox wrap"><input type="text" name="_HEB" id="_HEB" value="" size="40" maxlength="255" /> <?php print_specialchar_link("_HEB", false); ?></td></tr> <?php } ?> <?php if (strstr($ADVANCED_NAME_FACTS, "ROMN")!==false) { ?> - <tr><td class="descriptionbox <?php echo $TEXT_DIRECTION; ?> wrap width25"><?php echo WT_Gedcom_Tag::getLabel('ROMN'), help_link('ROMN'); ?></td> + <tr><td class="descriptionbox wrap width25"><?php echo WT_Gedcom_Tag::getLabel('ROMN'), help_link('ROMN'); ?></td> <td class="optionbox wrap"><input type="text" name="ROMN" id="ROMN" value="" size="40" maxlength="255" /> <?php print_specialchar_link("ROMN", false); ?></td></tr> <?php } ?> - <tr><td class="descriptionbox <?php echo $TEXT_DIRECTION; ?> wrap width25"><?php echo WT_Gedcom_Tag::getLabel('ADDR'), help_link('ADDR'); ?></td> + <tr><td class="descriptionbox wrap width25"><?php echo WT_Gedcom_Tag::getLabel('ADDR'), help_link('ADDR'); ?></td> <td class="optionbox wrap"><textarea name="ADDR" id="ADDR" rows="5" cols="60"></textarea><?php print_specialchar_link("ADDR", true); ?> </td></tr> - <tr><td class="descriptionbox <?php echo $TEXT_DIRECTION; ?> wrap width25"><?php echo WT_Gedcom_Tag::getLabel('PHON'), help_link('PHON'); ?></td> + <tr><td class="descriptionbox wrap width25"><?php echo WT_Gedcom_Tag::getLabel('PHON'), help_link('PHON'); ?></td> <td class="optionbox wrap"><input type="text" name="PHON" id="PHON" value="" size="40" maxlength="255" /> </td></tr> - <tr><td class="descriptionbox <?php echo $TEXT_DIRECTION; ?> wrap width25"><?php echo WT_Gedcom_Tag::getLabel('FAX'), help_link('FAX'); ?></td> + <tr><td class="descriptionbox wrap width25"><?php echo WT_Gedcom_Tag::getLabel('FAX'), help_link('FAX'); ?></td> <td class="optionbox wrap"><input type="text" name="FAX" id="FAX" value="" size="40" /></td></tr> - <tr><td class="descriptionbox <?php echo $TEXT_DIRECTION; ?> wrap width25"><?php echo WT_Gedcom_Tag::getLabel('EMAIL'), help_link('EMAIL'); ?></td> + <tr><td class="descriptionbox wrap width25"><?php echo WT_Gedcom_Tag::getLabel('EMAIL'), help_link('EMAIL'); ?></td> <td class="optionbox wrap"><input type="text" name="EMAIL" id="EMAIL" value="" size="40" maxlength="255" /></td></tr> - <tr><td class="descriptionbox <?php echo $TEXT_DIRECTION; ?> wrap width25"><?php echo WT_Gedcom_Tag::getLabel('WWW'), help_link('URL'); ?></td> + <tr><td class="descriptionbox wrap width25"><?php echo WT_Gedcom_Tag::getLabel('WWW'), help_link('URL'); ?></td> <td class="optionbox wrap"><input type="text" name="WWW" id="WWW" value="" size="40" maxlength="255" /> </td></tr> <?php if (WT_USER_IS_ADMIN) { - echo '<tr><td class="descriptionbox ', $TEXT_DIRECTION, ' wrap width25">'; + echo '<tr><td class="descriptionbox wrap width25">'; echo WT_Gedcom_Tag::getLabel('CHAN'), '</td><td class="optionbox wrap">'; echo '<input type="checkbox" name="preserve_last_changed"'; if ($NO_UPDATE_CHAN) { @@ -1928,8 +1920,8 @@ case 'reorder_children': } echo '</ul>'; if (WT_USER_IS_ADMIN) { - echo "<center><table width=93%><tr><td class=\"descriptionbox ", $TEXT_DIRECTION, " wrap width25\">"; - echo WT_Gedcom_Tag::getLabel('CHAN'), "</td><td class=\"optionbox ", $TEXT_DIRECTION, " wrap\">"; + echo "<center><table width=93%><tr><td class=\"descriptionbox wrap width25\">"; + echo WT_Gedcom_Tag::getLabel('CHAN'), "</td><td class=\"optionbox wrap\">"; echo '<input type="checkbox" name="preserve_last_changed"'; if ($NO_UPDATE_CHAN) { echo ' checked="checked"'; @@ -2018,23 +2010,23 @@ case 'changefamily': <form name="changefamform" method="post" action="edit_interface.php"> <input type="hidden" name="action" value="changefamily_update" /> <input type="hidden" name="famid" value="<?php echo $famid; ?>" /> - <table class="width50 <?php echo $TEXT_DIRECTION; ?>"> + <table class="width50"> <tr><td colspan="3" class="topbottombar"><?php echo WT_I18N::translate('Change Family Members'); ?></td></tr> <tr> <?php if (!is_null($father)) { ?> - <td class="descriptionbox <?php echo $TEXT_DIRECTION; ?>"><b><?php echo $father->getLabel(); ?></b><input type="hidden" name="HUSB" value="<?php echo $father->getXref(); ?>" /></td> - <td id="HUSBName" class="optionbox wrap <?php echo $TEXT_DIRECTION; ?>"><?php echo $father->getFullName(); ?></td> + <td class="descriptionbox"><b><?php echo $father->getLabel(); ?></b><input type="hidden" name="HUSB" value="<?php echo $father->getXref(); ?>" /></td> + <td id="HUSBName" class="optionbox wrap"><?php echo $father->getFullName(); ?></td> <?php } else { ?> - <td class="descriptionbox <?php echo $TEXT_DIRECTION; ?>"><b><?php echo WT_I18N::translate('spouse'); ?></b><input type="hidden" name="HUSB" value="" /></td> - <td id="HUSBName" class="optionbox wrap <?php echo $TEXT_DIRECTION; ?>"></td> + <td class="descriptionbox"><b><?php echo WT_I18N::translate('spouse'); ?></b><input type="hidden" name="HUSB" value="" /></td> + <td id="HUSBName" class="optionbox wrap"></td> <?php } ?> - <td class="optionbox wrap <?php echo $TEXT_DIRECTION; ?>"> + <td class="optionbox wrap"> <a href="#" id="husbrem" style="display: <?php echo is_null($father) ? 'none':'block'; ?>;" onclick="document.changefamform.HUSB.value=''; document.getElementById('HUSBName').innerHTML=''; this.style.display='none'; return false;"><?php echo WT_I18N::translate('Remove'); ?></a> <a href="#" onclick="nameElement = document.getElementById('HUSBName'); remElement = document.getElementById('husbrem'); return findIndi(document.changefamform.HUSB);"><?php echo WT_I18N::translate('Change'); ?></a><br /> </td> @@ -2043,17 +2035,17 @@ case 'changefamily': <?php if (!is_null($mother)) { ?> - <td class="descriptionbox <?php echo $TEXT_DIRECTION; ?>"><b><?php echo $mother->getLabel(); ?></b><input type="hidden" name="WIFE" value="<?php echo $mother->getXref(); ?>" /></td> - <td id="WIFEName" class="optionbox wrap <?php echo $TEXT_DIRECTION; ?>"><?php echo $mother->getFullName(); ?></td> + <td class="descriptionbox"><b><?php echo $mother->getLabel(); ?></b><input type="hidden" name="WIFE" value="<?php echo $mother->getXref(); ?>" /></td> + <td id="WIFEName" class="optionbox wrap"><?php echo $mother->getFullName(); ?></td> <?php } else { ?> - <td class="descriptionbox <?php echo $TEXT_DIRECTION; ?>"><b><?php echo WT_I18N::translate('spouse'); ?></b><input type="hidden" name="WIFE" value="" /></td> - <td id="WIFEName" class="optionbox wrap <?php echo $TEXT_DIRECTION; ?>"></td> + <td class="descriptionbox"><b><?php echo WT_I18N::translate('spouse'); ?></b><input type="hidden" name="WIFE" value="" /></td> + <td id="WIFEName" class="optionbox wrap"></td> <?php } ?> - <td class="optionbox wrap <?php echo $TEXT_DIRECTION; ?>"> + <td class="optionbox wrap"> <a href="#" id="wiferem" style="display: <?php echo is_null($mother) ? 'none':'block'; ?>;" onclick="document.changefamform.WIFE.value=''; document.getElementById('WIFEName').innerHTML=''; this.style.display='none'; return false;"><?php echo WT_I18N::translate('Remove'); ?></a> <a href="#" onclick="nameElement = document.getElementById('WIFEName'); remElement = document.getElementById('wiferem'); return findIndi(document.changefamform.WIFE);"><?php echo WT_I18N::translate('Change'); ?></a><br /> </td> @@ -2064,9 +2056,9 @@ case 'changefamily': if (!is_null($child)) { ?> <tr> - <td class="descriptionbox <?php echo $TEXT_DIRECTION; ?>"><b><?php echo $child->getLabel(); ?></b><input type="hidden" name="CHIL<?php echo $i; ?>" value="<?php echo $child->getXref(); ?>" /></td> + <td class="descriptionbox"><b><?php echo $child->getLabel(); ?></b><input type="hidden" name="CHIL<?php echo $i; ?>" value="<?php echo $child->getXref(); ?>" /></td> <td id="CHILName<?php echo $i; ?>" class="optionbox wrap"><?php echo $child->getFullName(); ?></td> - <td class="optionbox wrap <?php echo $TEXT_DIRECTION; ?>"> + <td class="optionbox wrap"> <a href="#" id="childrem<?php echo $i; ?>" style="display: block;" onclick="document.changefamform.CHIL<?php echo $i; ?>.value=''; document.getElementById('CHILName<?php echo $i; ?>').innerHTML=''; this.style.display='none'; return false;"><?php echo WT_I18N::translate('Remove'); ?></a> <a href="#" onclick="nameElement = document.getElementById('CHILName<?php echo $i; ?>'); remElement = document.getElementById('childrem<?php echo $i; ?>'); return findIndi(document.changefamform.CHIL<?php echo $i; ?>);"><?php echo WT_I18N::translate('Change'); ?></a><br /> </td> @@ -2077,9 +2069,9 @@ case 'changefamily': } ?> <tr> - <td class="descriptionbox <?php echo $TEXT_DIRECTION; ?>"><b><?php echo WT_I18N::translate('child'); ?></b><input type="hidden" name="CHIL<?php echo $i; ?>" value="" /></td> + <td class="descriptionbox"><b><?php echo WT_I18N::translate('child'); ?></b><input type="hidden" name="CHIL<?php echo $i; ?>" value="" /></td> <td id="CHILName<?php echo $i; ?>" class="optionbox wrap"></td> - <td class="optionbox wrap <?php echo $TEXT_DIRECTION; ?>"> + <td class="optionbox wrap"> <a href="#" id="childrem<?php echo $i; ?>" style="display: none;" onclick="document.changefamform.CHIL<?php echo $i; ?>.value=''; document.getElementById('CHILName<?php echo $i; ?>').innerHTML=''; this.style.display='none'; return false;"><?php echo WT_I18N::translate('Remove'); ?></a> <a href="#" onclick="nameElement = document.getElementById('CHILName<?php echo $i; ?>'); remElement = document.getElementById('childrem<?php echo $i; ?>'); return findIndi(document.changefamform.CHIL<?php echo $i; ?>);"><?php echo WT_I18N::translate('Add'); ?></a><br /> </td> diff --git a/edituser.php b/edituser.php index 3cf4fcbc32..915512276b 100644 --- a/edituser.php +++ b/edituser.php @@ -142,7 +142,7 @@ function paste_id(value) { $tab=0; echo '<form name="editform" method="post" action="" onsubmit="return checkform(this);">'; echo '<input type="hidden" name="form_action" value="update" />'; -echo '<table class="list_table center ', $TEXT_DIRECTION, '">'; +echo '<table class="list_table center">'; echo '<tr><td class="topbottombar" colspan="2"><h2>', WT_I18N::translate('My account'), '</h2></td></tr>'; diff --git a/familybook.php b/familybook.php index 2d493ffd42..0b4f9fd36e 100644 --- a/familybook.php +++ b/familybook.php @@ -314,7 +314,7 @@ if ($show_spouse) echo " checked=\"checked\""; ?> /> echo '<div id="familybook_chart', ($TEXT_DIRECTION=="ltr")?"":"_rtl", - '" style="width:98%; direction:"', $TEXT_DIRECTION, ';z-index:1;">'; + '" style="width:98%; z-index:1;">'; print_family_book($person, $descent); diff --git a/fanchart.php b/fanchart.php index 2b85bb7f36..478ef75867 100644 --- a/fanchart.php +++ b/fanchart.php @@ -95,7 +95,7 @@ function split_align_text($data, $maxlen) { * @param int $fandeg fan size in deg (default=270) */ function generate_fan_chart($treeid, $fanw=640, $fandeg=270) { - global $PEDIGREE_GENERATIONS, $fan_width, $fan_style, $name, $TEXT_DIRECTION; + global $PEDIGREE_GENERATIONS, $fan_width, $fan_style, $name; global $WT_IMAGES, $GEDCOM, $fanChart; $html=''; @@ -399,7 +399,7 @@ if ($ENABLE_AUTOCOMPLETE) require WT_ROOT.'js/autocomplete.js.htm'; /*if (strlen($title)<30) $cellwidth="420"; else $cellwidth=(strlen($title)*7);*/ $cellwidth = max(strlen($title)*4, "420"); -echo "<table class=\"list_table $TEXT_DIRECTION\"><tr><td width=\"".$cellwidth."px\" valign=\"top\">"; +echo "<table class=\"list_table\"><tr><td width=\"".$cellwidth."px\" valign=\"top\">"; echo '<h2>', $controller->getPageTitle(), '</h2>'; // -- print the form to change the number of displayed generations @@ -407,7 +407,7 @@ echo WT_JS_START; echo "var pastefield; function paste_id(value) { pastefield.value=value; }"; echo WT_JS_END; echo "</td><td><form name=\"people\" method=\"get\" action=\"?\">"; -echo "<table class=\"list_table $TEXT_DIRECTION\"><tr>"; +echo "<table class=\"list_table\"><tr>"; // NOTE: rootid echo "<td class=\"descriptionbox\">"; @@ -205,7 +205,7 @@ $options["form"][]= "formsource"; $options["form"][]= "formspecialchar"; echo "<div align=\"center\">"; -echo "<table class=\"list_table $TEXT_DIRECTION width90\" border=\"0\">"; +echo "<table class=\"list_table width90\" border=\"0\">"; echo "<tr><td style=\"padding: 10px;\" valign=\"top\" class=\"facts_label03 width90\">"; // start column for find text header switch ($type) { @@ -251,7 +251,7 @@ if ($type == "indi") { echo "<input type=\"hidden\" name=\"action\" value=\"filter\" />"; echo "<input type=\"hidden\" name=\"type\" value=\"indi\" />"; echo "<input type=\"hidden\" name=\"multiple\" value=\"$multiple\" />"; - echo "<table class=\"list_table $TEXT_DIRECTION width100\" border=\"0\">"; + echo "<table class=\"list_table width100\" border=\"0\">"; echo "<tr><td class=\"list_label width10\" style=\"padding: 5px;\">"; echo WT_I18N::translate('Name contains:'), " <input type=\"text\" name=\"filter\" value=\""; if ($filter) echo $filter; @@ -271,7 +271,7 @@ if ($type == "fam") { echo "<input type=\"hidden\" name=\"type\" value=\"fam\" />"; echo "<input type=\"hidden\" name=\"callback\" value=\"$callback\" />"; echo "<input type=\"hidden\" name=\"multiple\" value=\"$multiple\" />"; - echo "<table class=\"list_table $TEXT_DIRECTION width100\" border=\"0\">"; + echo "<table class=\"list_table width100\" border=\"0\">"; echo "<tr><td class=\"list_label width10\" style=\"padding: 5px;\">"; echo WT_I18N::translate('Name contains:'), " <input type=\"text\" name=\"filter\" value=\""; if ($filter) echo $filter; @@ -295,7 +295,7 @@ if ($type == 'media') { echo "<input type=\"hidden\" name=\"type\" value=\"media\" />"; echo "<input type=\"hidden\" name=\"callback\" value=\"$callback\" />"; echo "<input type=\"hidden\" name=\"subclick\">"; // This is for passing the name of which submit button was clicked - echo "<table class=\"list_table $TEXT_DIRECTION width100\" border=\"0\">"; + echo "<table class=\"list_table width100\" border=\"0\">"; echo "<tr><td class=\"list_label width10\" style=\"padding: 5px;\">"; echo WT_I18N::translate('Media contains:'), " <input type=\"text\" name=\"filter\" value=\""; if ($filter) echo $filter; @@ -322,7 +322,7 @@ if ($type == "place") { echo "<input type=\"hidden\" name=\"type\" value=\"place\" />"; echo "<input type=\"hidden\" name=\"callback\" value=\"$callback\" />"; echo "<input type=\"hidden\" name=\"subclick\">"; // This is for passing the name of which submit button was clicked - echo "<table class=\"list_table $TEXT_DIRECTION width100\" border=\"0\">"; + echo "<table class=\"list_table width100\" border=\"0\">"; echo "<tr><td class=\"list_label width10\" style=\"padding: 5px;\">"; echo WT_I18N::translate('Place contains:'), " <input type=\"text\" name=\"filter\" value=\""; if ($filter) echo $filter; @@ -343,7 +343,7 @@ if ($type == "repo") { echo "<input type=\"hidden\" name=\"type\" value=\"repo\" />"; echo "<input type=\"hidden\" name=\"callback\" value=\"$callback\" />"; echo "<input type=\"hidden\" name=\"subclick\">"; // This is for passing the name of which submit button was clicked - echo "<table class=\"list_table $TEXT_DIRECTION width100\" border=\"0\">"; + echo "<table class=\"list_table width100\" border=\"0\">"; echo "<tr><td class=\"list_label width10\" style=\"padding: 5px;\">"; echo WT_I18N::translate('Repository contains:'), " <input type=\"text\" name=\"filter\" value=\""; if ($filter) echo $filter; @@ -364,7 +364,7 @@ if ($type == "note") { echo "<input type=\"hidden\" name=\"type\" value=\"note\" />"; echo "<input type=\"hidden\" name=\"callback\" value=\"$callback\" />"; echo "<input type=\"hidden\" name=\"subclick\">"; // This is for passing the name of which submit button was clicked - echo "<table class=\"list_table $TEXT_DIRECTION width100\" border=\"0\">"; + echo "<table class=\"list_table width100\" border=\"0\">"; echo "<tr><td class=\"list_label width10\" style=\"padding: 5px;\">"; echo WT_I18N::translate('Shared Note contains:'), " <input type=\"text\" name=\"filter\" value=\""; if ($filter) echo $filter; @@ -385,7 +385,7 @@ if ($type == "source") { echo "<input type=\"hidden\" name=\"type\" value=\"source\" />"; echo "<input type=\"hidden\" name=\"callback\" value=\"$callback\" />"; echo "<input type=\"hidden\" name=\"subclick\">"; // This is for passing the name of which submit button was clicked - echo "<table class=\"list_table $TEXT_DIRECTION width100\" border=\"0\">"; + echo "<table class=\"list_table width100\" border=\"0\">"; echo "<tr><td class=\"list_label width10\" style=\"padding: 5px;\">"; echo WT_I18N::translate('Source contains:'), " <input type=\"text\" name=\"filter\" value=\""; if ($filter) echo $filter; @@ -430,8 +430,8 @@ if ($type == "facts") { echo "<input type=\"hidden\" name=\"type\" value=\"facts\" />"; echo "<input type=\"hidden\" name=\"tags\" value=\"$qs\" />"; echo "<input type=\"hidden\" name=\"callback\" value=\"$callback\" />"; - echo "<table class=\"list_table $TEXT_DIRECTION width100\" border=\"0\">"; - echo "<tr><td class=\"list_label $TEXT_DIRECTION\" style=\"padding: 5px; font-weight: normal; white-space: normal;\">"; + echo "<table class=\"list_table width100\" border=\"0\">"; + echo "<tr><td class=\"list_label\" style=\"padding: 5px; font-weight: normal; white-space: normal;\">"; getPreselectedTags($preselDefault, $preselCustom); ?> <?php echo WT_JS_START; ?> @@ -614,10 +614,10 @@ if ($action=="filter") { // Output Individual if ($type == "indi") { - echo "<table class=\"tabs_table $TEXT_DIRECTION width90\"><tr>"; + echo "<table class=\"tabs_table width90\"><tr>"; $myindilist=search_indis_names($filter_array, array(WT_GED_ID), 'AND'); if ($myindilist) { - echo "<td class=\"list_value_wrap $TEXT_DIRECTION\"><ul>"; + echo "<td class=\"list_value_wrap\"><ul>"; usort($myindilist, array('WT_GedcomRecord', 'Compare')); foreach ($myindilist as $indi) { echo $indi->format_list('li', true); @@ -633,7 +633,7 @@ if ($action=="filter") { // Output Family if ($type == "fam") { - echo "<table class=\"tabs_table $TEXT_DIRECTION width90\"><tr>"; + echo "<table class=\"tabs_table width90\"><tr>"; // Get the famrecs with hits on names from the family table // Get the famrecs with hits in the gedcom record from the family table $myfamlist = array_unique(array_merge( @@ -643,7 +643,7 @@ if ($action=="filter") { if ($myfamlist) { $curged = $GEDCOM; - echo "<td class=\"list_value_wrap $TEXT_DIRECTION\"><ul>"; + echo "<td class=\"list_value_wrap\"><ul>"; usort($myfamlist, array('WT_GedcomRecord', 'Compare')); foreach ($myfamlist as $family) { echo $family->format_list('li', true); @@ -663,7 +663,7 @@ if ($action=="filter") { $medialist = get_medialist(true, $directory); - echo "<table class=\"tabs_table $TEXT_DIRECTION width90\">"; + echo "<table class=\"tabs_table width90\">"; // Show link to previous folder if ($level>0) { $levels = explode("/", $directory); @@ -676,7 +676,7 @@ if ($action=="filter") { } // Start of media directory table - echo "<table class=\"list_table $TEXT_DIRECTION width90\">"; + echo "<table class=\"list_table width90\">"; // Tell the user where he is echo "<tr>"; @@ -691,19 +691,19 @@ if ($action=="filter") { if (count($dirs) || $level) { sort($dirs); if ($level) { - echo "<tr><td class=\"list_value $TEXT_DIRECTION\" colspan=\"2\">"; + echo "<tr><td class=\"list_value\" colspan=\"2\">"; echo $uplink, "</td></tr>"; } - echo "<tr><td class=\"descriptionbox $TEXT_DIRECTION\" colspan=\"2\">"; + echo "<tr><td class=\"descriptionbox\" colspan=\"2\">"; echo "<a href=\"find.php?directory={$directory}&thumbdir=".str_replace($MEDIA_DIRECTORY, $MEDIA_DIRECTORY."thumbs/", $directory)."&level={$level}{$thumbget}&external_links=http&type=media&choose={$choose}\">", WT_I18N::translate('External objects'), "</a>"; echo "</td></tr>"; foreach ($dirs as $indexval => $dir) { - echo "<tr><td class=\"list_value $TEXT_DIRECTION\" colspan=\"2\">"; + echo "<tr><td class=\"list_value\" colspan=\"2\">"; echo "<a href=\"find.php?directory={$directory}{$dir}/&thumbdir={$directory}{$dir}/&level=".($level+1)."{$thumbget}&type=media&choose={$choose}\"><span dir=\"ltr\">", $dir, "</span></a>"; echo "</td></tr>"; } } - echo "<tr><td class=\"descriptionbox $TEXT_DIRECTION\" colspan=\"2\"></td></tr>"; + echo "<tr><td class=\"descriptionbox\" colspan=\"2\"></td></tr>"; /** * This action generates a thumbnail for the file @@ -747,19 +747,15 @@ if ($action=="filter") { //-- thumbnail field if ($showthumb) { - echo "<td class=\"list_value $TEXT_DIRECTION width10\">"; + echo "<td class=\"list_value width10\">"; if (isset($media["THUMB"])) echo "<a href=\"#\" onclick=\"return openImage('", rawurlencode($media["FILE"]), "', $imgwidth, $imgheight);\"><img src=\"", filename_decode($media["THUMB"]), "\" border=\"0\" width=\"50\" alt=\"\" /></a>"; else echo " "; } //-- name and size field - echo "<td class=\"list_value $TEXT_DIRECTION\">"; + echo "<td class=\"list_value\">"; if ($media["TITL"] != "") { - echo "<b>", PrintReady($media["TITL"]), "</b> "; - if ($TEXT_DIRECTION=="rtl") echo getRLM(); - echo "(", $media["XREF"], ")"; - if ($TEXT_DIRECTION=="rtl") echo getRLM(); - echo "<br />"; + echo "<b>", PrintReady($media["TITL"]), "</b><br>"; } if (!$embed) { echo "<a href=\"#\" onclick=\"pasteid('", addslashes($media["FILE"]), "');\"><span dir=\"ltr\">", $media["FILE"], "</span></a> -- "; @@ -810,7 +806,7 @@ if ($action=="filter") { // Output Places if ($type == "place") { - echo "<table class=\"tabs_table $TEXT_DIRECTION width90\"><tr>"; + echo "<table class=\"tabs_table width90\"><tr>"; $placelist = array(); if ($all || $filter) { $placelist=find_place_list($filter); @@ -830,7 +826,7 @@ if ($action=="filter") { $revplacelist[] = $placetext; } uasort($revplacelist, "utf8_strcasecmp"); - echo "<td class=\"list_value_wrap $TEXT_DIRECTION\"><ul>"; + echo "<td class=\"list_value_wrap\"><ul>"; foreach ($revplacelist as $place) { echo "<li><a href=\"#\" onclick=\"pasteid('", str_replace(array("'", '"'), array("\'", '"'), $place), "');\">", PrintReady($place), "</a></li>"; } @@ -839,7 +835,7 @@ if ($action=="filter") { echo "</td></tr>"; } else { - echo "<tr><td class=\"list_value_wrap $TEXT_DIRECTION\"><ul>"; + echo "<tr><td class=\"list_value_wrap\"><ul>"; echo WT_I18N::translate('No results found.'); echo "</td></tr>"; } @@ -849,7 +845,7 @@ if ($action=="filter") { // Output Repositories if ($type == "repo") { - echo "<table class=\"tabs_table $TEXT_DIRECTION width90\"><tr>"; + echo "<table class=\"tabs_table width90\"><tr>"; $repo_list = get_repo_list(WT_GED_ID); if ($repo_list) { echo "<td class=\"list_value_wrap\"><ul>"; @@ -870,7 +866,7 @@ if ($action=="filter") { // Output Shared Notes if ($type=="note") { - echo '<table class="tabs_table ', $TEXT_DIRECTION, ' width90">'; + echo '<table class="tabs_table width90">'; if ($filter) { $mynotelist = search_notes($filter_array, array(WT_GED_ID), 'AND', true); } else { @@ -892,7 +888,7 @@ if ($action=="filter") { // Output Sources if ($type=="source") { - echo '<table class="tabs_table ', $TEXT_DIRECTION, ' width90">'; + echo '<table class="tabs_table width90">'; if ($filter) { $mysourcelist = search_sources($filter_array, array(WT_GED_ID), 'AND', true); } else { @@ -914,7 +910,7 @@ if ($action=="filter") { // Output Special Characters if ($type == "specialchar") { - echo "<table class=\"tabs_table $TEXT_DIRECTION width90\"><tr><td class=\"list_value center wrap\" dir=\"$TEXT_DIRECTION\"><br/>"; + echo "<table class=\"tabs_table width90\"><tr><td class=\"list_value center wrap\"><br>"; // lower case special characters foreach ($lcspecialchars as $key=>$value) { echo '<a class="largechars" href="#" onclick="return window.opener.paste_char(\'', $value, '\');">', $key, '</a> '; diff --git a/gedcheck.php b/gedcheck.php index 3089cf040c..5f09c2946d 100644 --- a/gedcheck.php +++ b/gedcheck.php @@ -82,7 +82,7 @@ $context_lines=safe_POST('context_lines','[0-5]', '2'); // Lines of context t $showall =safe_POST('showall', '[01]', '0'); // Show details of records with no problems echo '<form method="post" name="gedcheck" action="gedcheck.php">'; -echo '<table class="list_table ', $TEXT_DIRECTION, '">'; +echo '<table class="list_table">'; echo '<tr><td class="list_label">', WT_I18N::translate('GEDCOM File:'), '</td>'; echo '<td class="optionbox"><select name="ged">'; foreach ($all_geds as $key=>$value) { diff --git a/includes/functions/functions_charts.php b/includes/functions/functions_charts.php index 483d49dd06..31bed418e8 100644 --- a/includes/functions/functions_charts.php +++ b/includes/functions/functions_charts.php @@ -76,7 +76,7 @@ function print_sosa_number($sosa, $pid = "", $arrowDirection = "up") { * @param string $gparid optional gd-parent ID (descendancy booklet) */ function print_family_parents($famid, $sosa = 0, $label="", $parid="", $gparid="", $personcount="1") { - global $show_full, $TEXT_DIRECTION, $SHOW_EMPTY_BOXES, $pbwidth, $pbheight, $WT_IMAGES, $GEDCOM; + global $show_full, $SHOW_EMPTY_BOXES, $pbwidth, $pbheight, $WT_IMAGES, $GEDCOM; $ged_id=get_id_from_gedcom($GEDCOM); diff --git a/includes/functions/functions_edit.php b/includes/functions/functions_edit.php index 380d3c0238..2afa46ff19 100644 --- a/includes/functions/functions_edit.php +++ b/includes/functions/functions_edit.php @@ -543,7 +543,7 @@ function remove_subline($oldrecord, $linenum) { function print_indi_form($nextaction, $famid, $linenum='', $namerec='', $famtag="CHIL", $sextag='') { global $pid, $WT_IMAGES, $WORD_WRAPPED_NOTES; global $NPFX_accept, $SPFX_accept, $NSFX_accept, $FILE_FORM_accept; - global $bdm, $TEXT_DIRECTION, $STANDARD_NAME_FACTS, $REVERSED_NAME_FACTS, $ADVANCED_NAME_FACTS, $ADVANCED_PLAC_FACTS; + global $bdm, $STANDARD_NAME_FACTS, $REVERSED_NAME_FACTS, $ADVANCED_NAME_FACTS, $ADVANCED_PLAC_FACTS; global $QUICK_REQUIRED_FACTS, $QUICK_REQUIRED_FAMFACTS, $NO_UPDATE_CHAN; $SURNAME_TRADITION=get_gedcom_setting(WT_GED_ID, 'SURNAME_TRADITION'); @@ -865,7 +865,7 @@ function print_indi_form($nextaction, $famid, $linenum='', $namerec='', $famtag= } } if (WT_USER_IS_ADMIN) { - echo "<tr><td class=\"descriptionbox ", $TEXT_DIRECTION, " wrap width25\">"; + echo "<tr><td class=\"descriptionbox wrap width25\">"; echo WT_Gedcom_Tag::getLabel('CHAN'), "</td><td class=\"optionbox wrap\">"; if ($NO_UPDATE_CHAN) { echo "<input type=\"checkbox\" checked=\"checked\" name=\"preserve_last_changed\" />"; @@ -1397,9 +1397,9 @@ function add_simple_tag($tag, $upperlevel='', $label='', $readOnly='', $noClose= echo " >"; if (in_array($fact, $subnamefacts) || $fact=="LATI" || $fact=="LONG") { - echo "<td class=\"optionbox $TEXT_DIRECTION wrap width25\">"; + echo "<td class=\"optionbox wrap width25\">"; } else { - echo "<td class=\"descriptionbox $TEXT_DIRECTION wrap width25\">"; + echo "<td class=\"descriptionbox wrap width25\">"; } @@ -1814,7 +1814,7 @@ function print_add_layer($tag, $level=2, $printSaveButton=true) { echo "<br />"; echo "<div id=\"newsource\" style=\"display: none;\">"; if ($printSaveButton) echo "<input type=\"submit\" value=\"", WT_I18N::translate('Save'), "\" />"; - echo "<table class=\"facts_table center $TEXT_DIRECTION\">"; + echo "<table class=\"facts_table center\">"; // 2 SOUR $source = "SOUR @"; add_simple_tag("$level $source"); @@ -1851,7 +1851,7 @@ function print_add_layer($tag, $level=2, $printSaveButton=true) { echo "<div id=\"newasso2\" style=\"display: none;\">"; } if ($printSaveButton) echo "<input type=\"submit\" value=\"", WT_I18N::translate('Save'), "\" />"; - echo "<table class=\"facts_table center $TEXT_DIRECTION\">"; + echo "<table class=\"facts_table center\">"; // 2 ASSO add_simple_tag(($level)." ASSO @"); // 3 RELA @@ -1870,7 +1870,7 @@ function print_add_layer($tag, $level=2, $printSaveButton=true) { echo "<br />"; echo "<div id=\"newnote\" style=\"display: none;\">"; if ($printSaveButton) echo "<input type=\"submit\" value=\"", WT_I18N::translate('Save'), "\" />"; - echo "<table class=\"facts_table center $TEXT_DIRECTION\">"; + echo "<table class=\"facts_table center\">"; // 2 NOTE add_simple_tag(($level)." NOTE ".$text); echo "</table></div>"; @@ -1883,7 +1883,7 @@ function print_add_layer($tag, $level=2, $printSaveButton=true) { echo "<br />"; echo "<div id=\"newshared_note\" style=\"display: none;\">"; if ($printSaveButton) echo "<input type=\"submit\" value=\"", WT_I18N::translate('Save'), "\" />"; - echo "<table class=\"facts_table center $TEXT_DIRECTION\">"; + echo "<table class=\"facts_table center\">"; // 2 SHARED NOTE add_simple_tag(($level)." SHARED_NOTE "); @@ -1896,7 +1896,7 @@ function print_add_layer($tag, $level=2, $printSaveButton=true) { echo "<br />"; echo "<div id=\"newobje\" style=\"display: none;\">"; if ($printSaveButton) echo "<input type=\"submit\" value=\"", WT_I18N::translate('Save'), "\" />"; - echo "<table class=\"facts_table center $TEXT_DIRECTION\">"; + echo "<table class=\"facts_table center\">"; add_simple_tag($level." OBJE"); echo "</table></div>"; } @@ -1908,7 +1908,7 @@ function print_add_layer($tag, $level=2, $printSaveButton=true) { echo "<br />"; echo "<div id=\"newresn\" style=\"display: none;\">"; if ($printSaveButton) echo "<input type=\"submit\" value=\"", WT_I18N::translate('Save'), "\" />"; - echo "<table class=\"facts_table center $TEXT_DIRECTION\">"; + echo "<table class=\"facts_table center\">"; // 2 RESN add_simple_tag(($level)." RESN ".$text); echo "</table></div>"; @@ -2373,7 +2373,7 @@ function create_add_form($fact) { function create_edit_form($gedrec, $linenum, $level0type) { global $WORD_WRAPPED_NOTES; global $pid, $tags, $ADVANCED_PLAC_FACTS, $date_and_time; - global $FULL_SOURCES, $TEXT_DIRECTION; + global $FULL_SOURCES; $tags=array(); $gedlines = explode("\n", $gedrec); // -- find the number of lines in the record diff --git a/includes/functions/functions_mediadb.php b/includes/functions/functions_mediadb.php index 823105209a..68e64996e8 100644 --- a/includes/functions/functions_mediadb.php +++ b/includes/functions/functions_mediadb.php @@ -1183,11 +1183,10 @@ function get_media_folders() { * process the form for uploading media files */ function process_uploadMedia_form() { - global $TEXT_DIRECTION; global $MEDIA_DIRECTORY, $USE_MEDIA_FIREWALL, $MEDIA_FIREWALL_THUMBS, $MEDIATYPE; global $thumbnail, $whichFile1, $whichFile2; - echo "<table class=\"list_table $TEXT_DIRECTION width100\">"; + echo "<table class=\"list_table width100\">"; echo "<tr><td class=\"messagebox wrap\">"; for ($i=1; $i<6; $i++) { if (!empty($_FILES['mediafile'.$i]["name"]) || !empty($_FILES['thumbnail'.$i]["name"])) { @@ -1307,7 +1306,7 @@ function process_uploadMedia_form() { * @param bool $showthumb the setting of the "show thumbnail" option (required by admin_media.php) */ function show_mediaUpload_form($URL, $showthumb=false) { - global $MEDIA_DIRECTORY_LEVELS, $MEDIA_DIRECTORY, $TEXT_DIRECTION; + global $MEDIA_DIRECTORY_LEVELS, $MEDIA_DIRECTORY; $AUTO_GENERATE_THUMBS=get_gedcom_setting(WT_GED_ID, 'AUTO_GENERATE_THUMBS'); @@ -1340,48 +1339,48 @@ function show_mediaUpload_form($URL, $showthumb=false) { // Print 5 forms for uploading images for ($i=1; $i<6; $i++) { - echo '<table class="upload_media ', $TEXT_DIRECTION, '">'; + echo '<table class="upload_media">'; echo '<tr><th>', WT_I18N::translate('Media file'), ': ', $i, '</th></tr>'; - echo '<tr><td class="', $TEXT_DIRECTION, '">'; + echo '<tr><td>'; echo WT_I18N::translate('Media file to upload'), help_link('upload_media_file'); echo '</td>'; - echo '<td class="', $TEXT_DIRECTION, '">'; + echo '<td>'; echo '<input name="mediafile', $i, '" type="file" size="40" />'; echo '</td></tr>'; if ($thumbSupport != "") { - echo '<tr><td class="', $TEXT_DIRECTION, '">'; + echo '<tr><td>'; echo WT_I18N::translate('Automatic thumbnail'), help_link('generate_thumb'); - echo '</td><td class="', $TEXT_DIRECTION, '">'; + echo '</td><td>'; echo '<input type="checkbox" name="genthumb', $i, '" value="yes" checked="checked" />'; echo ' ', WT_I18N::translate('Generate thumbnail automatically from '), $thumbSupport; echo '</td></tr>'; } - echo '<tr><td class="', $TEXT_DIRECTION, '">'; + echo '<tr><td>'; echo WT_I18N::translate('Thumbnail to upload'), help_link('upload_thumbnail_file'); echo '</td>'; - echo '<td class="', $TEXT_DIRECTION, '">'; + echo '<td>'; echo '<input name="thumbnail', $i, '" type="file" size="40" />'; echo '</td></tr>'; if (WT_USER_GEDCOM_ADMIN) { - echo '<tr><td class="', $TEXT_DIRECTION, '">'; + echo '<tr><td>'; echo WT_I18N::translate('File name on server'), help_link('upload_server_file'); echo '</td>'; - echo '<td class="', $TEXT_DIRECTION, '">'; + echo '<td>'; echo '<input name="filename', $i, '" type="text" size="40" />'; if ($i==1) echo "<br /><sub>", WT_I18N::translate('Do not change to keep original file name.'), "</sub>"; echo '</td></tr>'; } else { - echo '<tr style="display:none;"><td class="', $TEXT_DIRECTION, '"><input type="hidden" name="filename', $i, '" value="" /></td></tr>'; + echo '<tr style="display:none;"><td><input type="hidden" name="filename', $i, '" value="" /></td></tr>'; } if (WT_USER_GEDCOM_ADMIN && $MEDIA_DIRECTORY_LEVELS>0) { - echo '<tr><td class="', $TEXT_DIRECTION, '">'; + echo '<tr><td>'; echo WT_I18N::translate('Folder name on server'), help_link('upload_server_folder'); echo '</td>'; - echo '<td class="', $TEXT_DIRECTION, '">'; + echo '<td>'; echo '<span dir="ltr"><select name="folder_list', $i, '" onchange="document.uploadmedia.folder', $i, '.value=this.options[this.selectedIndex].value;">'; echo '<option'; @@ -1423,7 +1422,7 @@ function show_mediaUpload_form($URL, $showthumb=false) { * @param int $line The line number in the GEDCOM record where this media item belongs */ function show_media_form($pid, $action = "newentry", $filename = "", $linktoid = "", $level = 1, $line = 0) { - global $TEXT_DIRECTION, $WORD_WRAPPED_NOTES, $ADVANCED_NAME_FACTS, $MEDIA_DIRECTORY_LEVELS, $MEDIA_DIRECTORY, $THUMBNAIL_WIDTH, $NO_UPDATE_CHAN; + global $WORD_WRAPPED_NOTES, $ADVANCED_NAME_FACTS, $MEDIA_DIRECTORY_LEVELS, $MEDIA_DIRECTORY, $THUMBNAIL_WIDTH, $NO_UPDATE_CHAN; $AUTO_GENERATE_THUMBS=get_gedcom_setting(WT_GED_ID, 'AUTO_GENERATE_THUMBS'); @@ -1436,7 +1435,7 @@ function show_media_form($pid, $action = "newentry", $filename = "", $linktoid = echo "<input type=\"hidden\" name=\"linktoid\" value=\"", $linktoid, "\" />"; } echo "<input type=\"hidden\" name=\"level\" value=\"", $level, "\" />"; - echo "<table class=\"facts_table center ", $TEXT_DIRECTION, "\">"; + echo "<table class=\"facts_table center\">"; echo "<tr><td class=\"topbottombar\" colspan=\"2\">"; if ($action == "newentry") { echo WT_I18N::translate('Add a new media object'); @@ -1447,7 +1446,7 @@ function show_media_form($pid, $action = "newentry", $filename = "", $linktoid = echo "</td></tr>"; echo "<tr><td colspan=\"2\" class=\"descriptionbox\"><input type=\"submit\" value=\"", WT_I18N::translate('Save'), "\" /></td></tr>"; if ($linktoid == "new" || ($linktoid == "" && $action != "update")) { - echo "<tr><td class=\"descriptionbox ", $TEXT_DIRECTION, "wrap width25\">"; + echo "<tr><td class=\"descriptionbox wrap width25\">"; echo WT_I18N::translate('Enter a Person, Family, or Source ID'), help_link('add_media_linkid'); echo "</td><td class=\"optionbox wrap\"><input type=\"text\" name=\"gid\" id=\"gid\" size=\"6\" value=\"\" />"; print_findindi_link("gid", ""); @@ -1477,7 +1476,7 @@ function show_media_form($pid, $action = "newentry", $filename = "", $linktoid = } if ($gedfile == "FILE") { // Box for user to choose to upload file from local computer - echo "<tr><td class=\"descriptionbox $TEXT_DIRECTION wrap width25\">"; + echo "<tr><td class=\"descriptionbox wrap width25\">"; echo WT_I18N::translate('Media file to upload').help_link('upload_media_file')."</td><td class=\"optionbox wrap\"><input type=\"file\" name=\"mediafile\" onchange=\"updateFormat(this.value);\" size=\"40\" /></td></tr>"; // Check for thumbnail generation support if (WT_USER_GEDCOM_ADMIN) { @@ -1495,14 +1494,14 @@ function show_media_form($pid, $action = "newentry", $filename = "", $linktoid = if ($thumbSupport != "") { $thumbSupport = substr($thumbSupport, 2); // Trim off first ", " - echo "<tr><td class=\"descriptionbox $TEXT_DIRECTION wrap width25\">"; + echo "<tr><td class=\"descriptionbox wrap width25\">"; echo WT_I18N::translate('Automatic thumbnail'), help_link('generate_thumb'); echo "</td><td class=\"optionbox wrap\">"; echo "<input type=\"checkbox\" name=\"genthumb\" value=\"yes\" checked=\"checked\" />"; echo " " . WT_I18N::translate('Generate thumbnail automatically from ') . $thumbSupport; echo "</td></tr>"; } - echo "<tr><td class=\"descriptionbox $TEXT_DIRECTION wrap width25\">"; + echo "<tr><td class=\"descriptionbox wrap width25\">"; echo WT_I18N::translate('Thumbnail to upload').help_link('upload_thumbnail_file')."</td><td class=\"optionbox wrap\"><input type=\"file\" name=\"thumbnail\" size=\"40\" /></td></tr>"; } else echo "<input type=\"hidden\" name=\"genthumb\" value=\"yes\" />"; @@ -1528,11 +1527,11 @@ function show_media_form($pid, $action = "newentry", $filename = "", $linktoid = } echo "<tr>"; - echo "<td class=\"descriptionbox $TEXT_DIRECTION wrap width25\">"; + echo "<td class=\"descriptionbox wrap width25\">"; echo "<input name=\"oldFilename\" type=\"hidden\" value=\"" . htmlspecialchars($fileName) . "\" />"; echo WT_I18N::translate('File name on server'), help_link('upload_server_file'); echo "</td>"; - echo "<td class=\"optionbox wrap $TEXT_DIRECTION wrap\">"; + echo "<td class=\"optionbox wrap wrap\">"; if (WT_USER_GEDCOM_ADMIN) { echo "<input name=\"filename\" type=\"text\" value=\"" . htmlspecialchars($fileName) . "\" size=\"40\""; if ($isExternal) @@ -1542,7 +1541,7 @@ function show_media_form($pid, $action = "newentry", $filename = "", $linktoid = } else { /* $thumbnail = thumbnail_file($fileName, true, false, $pid); if (!empty($thumbnail)) { - echo "<img src=\"".$thumbnail."\" border=\"0\" align=\"" . ($TEXT_DIRECTION== "rtl"?"right": "left") . "\" class=\"thumbnail\""; + echo "<img src=\"".$thumbnail."\" border=\"0\" class=\"thumbnail\""; if ($isExternal) echo " width=\"".$THUMBNAIL_WIDTH."\""; echo " alt=\"\" title=\"\" />"; } */ @@ -1556,7 +1555,7 @@ function show_media_form($pid, $action = "newentry", $filename = "", $linktoid = // Box for user to choose the folder to store the image if (!$isExternal && $MEDIA_DIRECTORY_LEVELS > 0) { - echo '<tr><td class="descriptionbox ', $TEXT_DIRECTION, 'wrap width25">'; + echo '<tr><td class="descriptionbox wrap width25">'; if (empty($folder)) { if (!empty($_SESSION['upload_folder'])) $folder = $_SESSION['upload_folder']; else $folder = ''; @@ -1747,7 +1746,7 @@ function show_media_form($pid, $action = "newentry", $filename = "", $linktoid = } } if (WT_USER_IS_ADMIN) { - echo "<tr><td class=\"descriptionbox ", $TEXT_DIRECTION, " wrap width25\">"; + echo "<tr><td class=\"descriptionbox wrap width25\">"; echo WT_Gedcom_Tag::getLabel('CHAN'), "</td><td class=\"optionbox wrap\">"; if ($NO_UPDATE_CHAN) { echo "<input type=\"checkbox\" checked=\"checked\" name=\"preserve_last_changed\" />"; @@ -1811,8 +1810,6 @@ function findImageSize($file) { */ function PrintMediaLinks($links, $size = "small") { - global $TEXT_DIRECTION; - if (count($links) == 0) return false; diff --git a/includes/functions/functions_print.php b/includes/functions/functions_print.php index 1a7fc33d95..71bf6c7553 100644 --- a/includes/functions/functions_print.php +++ b/includes/functions/functions_print.php @@ -1110,17 +1110,15 @@ function format_fact_place(WT_Event $event, $anchor=false, $sub=false, $lds=fals * @param string $key indi pid */ function format_first_major_fact($key, $majorfacts = array("BIRT", "CHR", "BAPM", "DEAT", "BURI", "BAPL", "ADOP")) { - global $TEXT_DIRECTION; - $html=''; $person = WT_GedcomRecord::getInstance($key); if (is_null($person)) return; foreach ($majorfacts as $indexval => $fact) { $event = $person->getFactByType($fact); if (!is_null($event) && $event->hasDatePlace() && $event->canShow()) { - $html.='<span dir="'.$TEXT_DIRECTION.'"><br /><em>'; + $html.='<br /><em>'; $html .= $event->getLabel(); - $html.=' '.format_fact_date($event, $person, false, false).format_fact_place($event).'</em></span>'; + $html.=' '.format_fact_date($event, $person, false, false).format_fact_place($event).'</em>'; break; } } @@ -1162,7 +1160,7 @@ function CheckFactUnique($uniquefacts, $recfacts, $type) { * @param string $type the type of record INDI, FAM, SOUR etc */ function print_add_new_fact($id, $usedfacts, $type) { - global $TEXT_DIRECTION, $WT_SESSION; + global $WT_SESSION; // -- Add from clipboard if ($WT_SESSION->clipboard) { @@ -1171,7 +1169,7 @@ function print_add_new_fact($id, $usedfacts, $type) { if ($fact["type"]==$type || $fact["type"]=='all') { if ($newRow) { $newRow = false; - echo '<tr><td class="descriptionbox ', $TEXT_DIRECTION, '">'; + echo '<tr><td class="descriptionbox">'; echo help_link('add_from_clipboard'); echo WT_I18N::translate('Add from clipboard'), '</td>'; echo '<td class="optionbox wrap"><form method="get" name="newFromClipboard" action="" onsubmit="return false;">'; @@ -1234,10 +1232,10 @@ function print_add_new_fact($id, $usedfacts, $type) { $translated_addfacts[$addfact] = WT_Gedcom_Tag::getLabel($addfact); } uasort($translated_addfacts, 'factsort'); - echo '<tr><td class="descriptionbox ', $TEXT_DIRECTION, '">'; + echo '<tr><td class="descriptionbox">'; echo WT_I18N::translate('Add new fact'); echo help_link('add_facts'), '</td>'; - echo '<td class="optionbox wrap ', $TEXT_DIRECTION, '">'; + echo '<td class="optionbox wrap">'; echo "<form method=\"get\" name=\"newfactform\" action=\"\" onsubmit=\"return false;\">"; echo '<select id="newfact" name="newfact">'; foreach ($translated_addfacts as $fact=>$fact_name) { diff --git a/includes/functions/functions_print_lists.php b/includes/functions/functions_print_lists.php index 300553295e..1c2b743574 100644 --- a/includes/functions/functions_print_lists.php +++ b/includes/functions/functions_print_lists.php @@ -35,7 +35,7 @@ require_once WT_ROOT.'includes/functions/functions_places.php'; // print a table of individuals function print_indi_table($datalist, $option='') { - global $GEDCOM, $SHOW_LAST_CHANGE, $TEXT_DIRECTION, $WT_IMAGES, $SEARCH_SPIDER, $MAX_ALIVE_AGE, $controller; + global $GEDCOM, $SHOW_LAST_CHANGE, $WT_IMAGES, $SEARCH_SPIDER, $MAX_ALIVE_AGE, $controller; $table_id = 'ID'.floor(microtime()*1000000); // lists requires a unique ID in case there are multiple lists per page $SHOW_EST_LIST_DATES=get_gedcom_setting(WT_GED_ID, 'SHOW_EST_LIST_DATES'); @@ -458,7 +458,7 @@ function print_indi_table($datalist, $option='') { // print a table of families function print_fam_table($datalist, $option='') { - global $GEDCOM, $SHOW_LAST_CHANGE, $TEXT_DIRECTION, $WT_IMAGES, $SEARCH_SPIDER, $controller; + global $GEDCOM, $SHOW_LAST_CHANGE, $WT_IMAGES, $SEARCH_SPIDER, $controller; $table_id = 'ID'.floor(microtime()*1000000); // lists requires a unique ID in case there are multiple lists per page if ($option=='BIRT_PLAC' || $option=='DEAT_PLAC') return; if (count($datalist)<1) return; @@ -912,7 +912,7 @@ function print_fam_table($datalist, $option='') { // print a table of sources function print_sour_table($datalist) { - global $SHOW_LAST_CHANGE, $TEXT_DIRECTION, $WT_IMAGES, $controller; + global $SHOW_LAST_CHANGE, $WT_IMAGES, $controller; $table_id = "ID".floor(microtime()*1000000); // lists requires a unique ID in case there are multiple lists per page $controller @@ -1047,7 +1047,7 @@ function print_sour_table($datalist) { // print a table of shared notes function print_note_table($datalist) { - global $SHOW_LAST_CHANGE, $TEXT_DIRECTION, $WT_IMAGES, $controller; + global $SHOW_LAST_CHANGE, $WT_IMAGES, $controller; if (count($datalist)<1) { return; @@ -1146,7 +1146,7 @@ function print_note_table($datalist) { // print a table of repositories function print_repo_table($repos) { - global $SHOW_LAST_CHANGE, $TEXT_DIRECTION, $WT_IMAGES, $SEARCH_SPIDER, $controller; + global $SHOW_LAST_CHANGE, $WT_IMAGES, $SEARCH_SPIDER, $controller; if (!$repos) { return; @@ -1244,7 +1244,7 @@ function print_repo_table($repos) { // print a table of media objects function print_media_table($datalist) { - global $SHOW_LAST_CHANGE, $TEXT_DIRECTION, $WT_IMAGES, $controller; + global $SHOW_LAST_CHANGE, $WT_IMAGES, $controller; if (count($datalist)<1) return; $table_id = 'ID'.floor(microtime()*1000000); // lists requires a unique ID in case there are multiple lists per page @@ -1503,7 +1503,7 @@ function format_surname_tagcloud($surnames, $script, $totals) { // @param $totals, boolean, show totals after each name // @param $type string, indilist or famlist function format_surname_list($surnames, $style, $totals, $script) { - global $TEXT_DIRECTION, $GEDCOM; + global $GEDCOM; $html=array(); foreach ($surnames as $surn=>$surns) { @@ -1614,7 +1614,7 @@ function print_changes_list($change_ids, $sort) { // print a table of recent changes function print_changes_table($change_ids, $sort) { - global $TEXT_DIRECTION, $WT_IMAGES, $controller; + global $WT_IMAGES, $controller; $return = ''; $n = 0; @@ -1734,7 +1734,7 @@ function print_changes_table($change_ids, $sort) { // print a table of events function print_events_table($startjd, $endjd, $events='BIRT MARR DEAT', $only_living=false, $sort_by='anniv') { - global $TEXT_DIRECTION, $WT_IMAGES, $controller; + global $WT_IMAGES, $controller; $table_id = "ID".floor(microtime()*1000000); // each table requires a unique ID $controller @@ -1909,8 +1909,6 @@ function print_events_table($startjd, $endjd, $events='BIRT MARR DEAT', $only_li * This performs the same function as print_events_table(), but formats the output differently. */ function print_events_list($startjd, $endjd, $events='BIRT MARR DEAT', $only_living=false, $sort_by='anniv') { - global $TEXT_DIRECTION; - // Did we have any output? Did we skip anything? $output = 0; $filter = 0; @@ -1968,7 +1966,7 @@ function print_events_list($startjd, $endjd, $events='BIRT MARR DEAT', $only_liv } foreach ($filtered_events as $value) { - $return .= "<a href=\"".$value['url']."\" class=\"list_item name2\" dir=\"".$TEXT_DIRECTION."\">".$value['name']."</a>".$value['sex']; + $return .= "<a href=\"".$value['url']."\" class=\"list_item name2\">".$value['name']."</a>".$value['sex']; $return .= "<br /><div class=\"indent\">"; $return .= WT_Gedcom_Tag::getLabel($value['fact']).' - '.$value['date']->Display(true); if ($value['anniv']!=0) $return .= " (" . WT_I18N::translate('%s year anniversary', $value['anniv']).")"; diff --git a/includes/media_reorder.php b/includes/media_reorder.php index 055802d8f1..8d1810d65c 100644 --- a/includes/media_reorder.php +++ b/includes/media_reorder.php @@ -48,7 +48,7 @@ echo WT_JS_START; ?> echo "  --- " . WT_I18N::translate('Click a row, then drag-and-drop to re-order media '); global $MEDIA_EXTERNAL, $MEDIATYPE; - global $WORD_WRAPPED_NOTES, $MEDIA_DIRECTORY, $WT_IMAGES, $TEXT_DIRECTION; + global $WORD_WRAPPED_NOTES, $MEDIA_DIRECTORY, $WT_IMAGES; global $is_media, $cntm1, $cntm2, $cntm3, $cntm4, $t, $mgedrec; global $edit, $tabno, $currtab; global $ids, $pid, $related, $level, $gedrec, $media_data, $order, $order1, $order2, $j; @@ -181,8 +181,8 @@ echo WT_JS_START; ?> <center> <?php if (WT_USER_IS_ADMIN) { - echo "<table width=97%><tr><td class=\"descriptionbox ", $TEXT_DIRECTION, " wrap width25\">"; - echo WT_Gedcom_Tag::getLabel('CHAN'), "</td><td class=\"optionbox ", $TEXT_DIRECTION, " wrap\">"; + echo "<table width=97%><tr><td class=\"descriptionbox wrap width25\">"; + echo WT_Gedcom_Tag::getLabel('CHAN'), "</td><td class=\"optionbox wrap\">"; if ($NO_UPDATE_CHAN) { echo "<input type=\"checkbox\" checked=\"checked\" name=\"preserve_last_changed\" />"; } else { diff --git a/inverselink.php b/inverselink.php index bccd305127..68e14eb7fe 100644 --- a/inverselink.php +++ b/inverselink.php @@ -83,7 +83,7 @@ if (WT_USER_IS_ADMIN && $linkto=='manage' && array_key_exists('GEDFact_assistant } echo '<input type="hidden" name="linkto" value="', $linkto, '" />'; echo '<input type="hidden" name="ged" value="', $GEDCOM, '" />'; - echo '<table class="facts_table center ', $TEXT_DIRECTION, '">'; + echo '<table class="facts_table center">'; echo '<tr><td class="topbottombar" colspan="2">'; echo WT_I18N::translate('Link media'), help_link('add_media_linkid'); echo '</td></tr><tr><td class="descriptionbox width20 wrap">', WT_I18N::translate('Media'), '</td>'; diff --git a/library/WT/Controller/Ancestry.php b/library/WT/Controller/Ancestry.php index 4279e049c1..f3cbae1335 100644 --- a/library/WT/Controller/Ancestry.php +++ b/library/WT/Controller/Ancestry.php @@ -97,7 +97,7 @@ class WT_Controller_Ancestry extends WT_Controller_Chart { * @param int $depth the ascendancy depth to show */ function print_child_ascendancy($person, $sosa, $depth) { - global $TEXT_DIRECTION, $OLD_PGENS, $WT_IMAGES, $Dindent, $SHOW_EMPTY_BOXES, $pidarr, $box_width; + global $OLD_PGENS, $WT_IMAGES, $Dindent, $SHOW_EMPTY_BOXES, $pidarr, $box_width; if ($person) { $pid=$person->getXref(); diff --git a/library/WT/Controller/Pedigree.php b/library/WT/Controller/Pedigree.php index 05effc3f33..2f33b1ac52 100644 --- a/library/WT/Controller/Pedigree.php +++ b/library/WT/Controller/Pedigree.php @@ -54,7 +54,7 @@ class WT_Controller_Pedigree extends WT_Controller_Chart { global $PEDIGREE_FULL_DETAILS, $PEDIGREE_LAYOUT, $MAX_PEDIGREE_GENERATIONS; global $DEFAULT_PEDIGREE_GENERATIONS, $SHOW_EMPTY_BOXES; global $bwidth, $bheight, $baseyoffset, $basexoffset, $byspacing, $bxspacing; - global $TEXT_DIRECTION, $BROWSER_TYPE, $show_full, $talloffset; + global $BROWSER_TYPE, $show_full, $talloffset; parent::__construct(); $this->log2 = log(2); diff --git a/library/WT/Media.php b/library/WT/Media.php index 33594f6be7..a8916bc0c4 100644 --- a/library/WT/Media.php +++ b/library/WT/Media.php @@ -323,7 +323,7 @@ class WT_Media extends WT_GedcomRecord { * @return array */ public function getImageAttributes($which='main',$addWidth=0,$addHeight=0) { - global $THUMBNAIL_WIDTH, $TEXT_DIRECTION; + global $THUMBNAIL_WIDTH; $var=$which.'imagesize'; if (!empty($this->$var)) return $this->$var; $imgsize = array(); diff --git a/library/WT/Person.php b/library/WT/Person.php index 4cc3577a22..d2376ca1ad 100644 --- a/library/WT/Person.php +++ b/library/WT/Person.php @@ -678,7 +678,7 @@ class WT_Person extends WT_GedcomRecord { * @return string */ function getLabel($elderdate='', $counter=0) { - global $TEXT_DIRECTION, $WT_IMAGES; + global $WT_IMAGES; $label = ''; $gap = 0; @@ -686,7 +686,7 @@ class WT_Person extends WT_GedcomRecord { $p2 = $this->getBirthDate(); if ($p2->isOK()) { $gap = $p2->MinJD()-$elderdate->MinJD(); // days - $label .= "<div class=\"elderdate age $TEXT_DIRECTION\">"; + $label .= "<div class=\"elderdate age\">"; // warning if negative gap : wrong order if ($gap<0 && $counter>0) $label .= '<img alt="" src="'.$WT_IMAGES['warning'].'" /> '; // warning if gap<6 months @@ -710,7 +710,7 @@ class WT_Person extends WT_GedcomRecord { } } // I18N: This is an abbreviation for a number. i.e. #7 means number 7 - if ($counter) $label .= '<div class="'.$TEXT_DIRECTION.'">'.WT_I18N::translate('#%d', $counter).'</div>'; + if ($counter) $label .= '<div>'.WT_I18N::translate('#%d', $counter).'</div>'; $label .= $this->label; if ($gap!=0 && $counter<1) $label .= '<br /> '; return $label; diff --git a/library/WT/Stats.php b/library/WT/Stats.php index ea12e73df3..6f055c20eb 100644 --- a/library/WT/Stats.php +++ b/library/WT/Stats.php @@ -631,7 +631,7 @@ class WT_Stats { } function chartSex($params=null) { - global $TEXT_DIRECTION, $WT_STATS_S_CHART_X, $WT_STATS_S_CHART_Y; + global $WT_STATS_S_CHART_X, $WT_STATS_S_CHART_Y; if ($params === null) {$params = array();} if (isset($params[0]) && $params[0] != '') {$size = strtolower($params[0]);} else {$size = $WT_STATS_S_CHART_X."x".$WT_STATS_S_CHART_Y;} if (isset($params[1]) && $params[1] != '') {$color_female = strtolower($params[1]);} else {$color_female = 'ffd1dc';} @@ -693,7 +693,7 @@ class WT_Stats { } function chartMortality($params=null) { - global $TEXT_DIRECTION, $WT_STATS_S_CHART_X, $WT_STATS_S_CHART_Y; + global $WT_STATS_S_CHART_X, $WT_STATS_S_CHART_Y; if ($params === null) {$params = array();} if (isset($params[0]) && $params[0] != '') {$size = strtolower($params[0]);} else {$size = $WT_STATS_S_CHART_X."x".$WT_STATS_S_CHART_Y;} if (isset($params[1]) && $params[1] != '') {$color_living = strtolower($params[1]);} else {$color_living = 'ffffff';} @@ -776,7 +776,7 @@ class WT_Stats { function totalMediaUnknown() {return $this->_totalMediaType('unknown');} function chartMedia($params=null) { - global $TEXT_DIRECTION, $WT_STATS_CHART_COLOR1, $WT_STATS_CHART_COLOR2, $WT_STATS_S_CHART_X, $WT_STATS_S_CHART_Y; + global $WT_STATS_CHART_COLOR1, $WT_STATS_CHART_COLOR2, $WT_STATS_S_CHART_X, $WT_STATS_S_CHART_Y; if ($params === null) {$params = array();} if (isset($params[0]) && $params[0] != '') {$size = strtolower($params[0]);} else {$size = $WT_STATS_S_CHART_X."x".$WT_STATS_S_CHART_Y;} if (isset($params[1]) && $params[1] != '') {$color_from = strtolower($params[1]);} else {$color_from = $WT_STATS_CHART_COLOR1;} @@ -838,7 +838,7 @@ class WT_Stats { /////////////////////////////////////////////////////////////////////////////// function _mortalityQuery($type='full', $life_dir='ASC', $birth_death='BIRT') { - global $listDir, $TEXT_DIRECTION; + global $listDir; if ($birth_death == 'MARR') { //$query_field = "'".str_replace('|', "','", WT_EVENTS_MARR)."'"; $query_field = "'MARR'"; @@ -1160,7 +1160,6 @@ class WT_Stats { } function commonCountriesList() { - global $TEXT_DIRECTION; $countries = $this->_statsPlaces(); if (!is_array($countries)) return ''; $top10 = array(); @@ -1202,7 +1201,6 @@ class WT_Stats { } function commonBirthPlacesList() { - global $TEXT_DIRECTION; $places = $this->_statsPlaces('INDI', 'BIRT'); $top10 = array(); $i = 1; @@ -1217,7 +1215,6 @@ class WT_Stats { } function commonDeathPlacesList() { - global $TEXT_DIRECTION; $places = $this->_statsPlaces('INDI', 'DEAT'); $top10 = array(); $i = 1; @@ -1232,7 +1229,6 @@ class WT_Stats { } function commonMarriagePlacesList() { - global $TEXT_DIRECTION; $places = $this->_statsPlaces('FAM', 'MARR'); $top10 = array(); $i = 1; @@ -3371,7 +3367,7 @@ class WT_Stats { /////////////////////////////////////////////////////////////////////////////// static function _commonSurnamesQuery($type='list', $show_tot=false, $params=null) { - global $TEXT_DIRECTION, $SURNAME_LIST_STYLE, $GEDCOM; + global $SURNAME_LIST_STYLE, $GEDCOM; $ged_id=get_id_from_gedcom($GEDCOM); if (is_array($params) && isset($params[0]) && $params[0] != '') {$threshold = strtolower($params[0]);} else {$threshold = get_gedcom_setting($ged_id, 'COMMON_NAMES_THRESHOLD');} @@ -186,12 +186,12 @@ echo '</td></tr></table><br /><br />'; <table class="center facts_table width50"> <tr><td class="topbottombar" colspan="2"><?php echo WT_I18N::translate('Login'); ?></td></tr> <tr> - <td class="descriptionbox <?php echo $TEXT_DIRECTION; ?> wrap width50"><label for="username"><?php echo WT_I18N::translate('Username'), '</label>', help_link('username'); ?></td> - <td class="optionbox <?php echo $TEXT_DIRECTION; ?>"><input type="text" id="username" name="username" value="<?php echo htmlspecialchars($username); ?>" size="20" class="formField" /></td> + <td class="descriptionbox wrap width50"><label for="username"><?php echo WT_I18N::translate('Username'), '</label>', help_link('username'); ?></td> + <td class="optionbox"><input type="text" id="username" name="username" value="<?php echo htmlspecialchars($username); ?>" size="20" class="formField" /></td> </tr> <tr> - <td class="descriptionbox <?php echo $TEXT_DIRECTION; ?> wrap width50"><label for="password"><?php echo WT_I18N::translate('Password'), '</label>', help_link('password'); ?></td> - <td class="optionbox <?php echo $TEXT_DIRECTION; ?>"><input type="password" id="password" name="password" size="20" class="formField" /></td> + <td class="descriptionbox wrap width50"><label for="password"><?php echo WT_I18N::translate('Password'), '</label>', help_link('password'); ?></td> + <td class="optionbox"><input type="password" id="password" name="password" size="20" class="formField" /></td> </tr> <tr> <td class="topbottombar" colspan="2"> @@ -205,10 +205,10 @@ echo '</td></tr></table><br /><br />'; if (get_site_setting('USE_REGISTRATION_MODULE')) { ?> <table class="center facts_table width50"> <tr><td class="topbottombar" colspan="2"><?php echo WT_I18N::translate('Account Information'); ?></td></tr> - <tr><td class="descriptionbox <?php echo $TEXT_DIRECTION; ?> wrap width50"><?php echo WT_I18N::translate('No account?'), help_link('new_user'); ?></td> - <td class="optionbox <?php echo $TEXT_DIRECTION; ?> wrap"><a href="login_register.php?action=register"><?php echo WT_I18N::translate('Request new user account'); ?></a></td></tr> - <tr><td class="descriptionbox <?php echo $TEXT_DIRECTION; ?> wrap width50"><?php echo WT_I18N::translate('Lost your password?'), help_link('new_password'); ?></td> - <td class="optionbox <?php echo $TEXT_DIRECTION; ?> wrap"><a href="login_register.php?action=pwlost"><?php echo WT_I18N::translate('Request new password'); ?></a></td></tr> + <tr><td class="descriptionbox wrap width50"><?php echo WT_I18N::translate('No account?'), help_link('new_user'); ?></td> + <td class="optionbox wrap"><a href="login_register.php?action=register"><?php echo WT_I18N::translate('Request new user account'); ?></a></td></tr> + <tr><td class="descriptionbox wrap width50"><?php echo WT_I18N::translate('Lost your password?'), help_link('new_password'); ?></td> + <td class="optionbox wrap"><a href="login_register.php?action=pwlost"><?php echo WT_I18N::translate('Request new password'); ?></a></td></tr> <tr><td class="topbottombar" colspan="2"> </td></tr> </table> <?php diff --git a/login_register.php b/login_register.php index 6188d317ff..da873944c8 100644 --- a/login_register.php +++ b/login_register.php @@ -75,7 +75,7 @@ switch ($action) { <span class="warning"><?php echo $message; ?></span> <table class="center facts_table width25"> <tr><td class="topbottombar" colspan="2"><?php echo WT_I18N::translate('Lost password request'), help_link('pls_note11'); ?></td></tr> - <tr><td class="descriptionbox wrap <?php echo $TEXT_DIRECTION; ?>"><label for="username"><?php echo WT_I18N::translate('Username'); ?></label></td><td class="optionbox <?php echo $TEXT_DIRECTION; ?>"><input type="text" id="username" name="user_name" value="" /></td></tr> + <tr><td class="descriptionbox wrap"><label for="username"><?php echo WT_I18N::translate('Username'); ?></label></td><td class="optionbox"><input type="text" id="username" name="user_name" value="" /></td></tr> <tr><td class="topbottombar" colspan="2"><input type="submit" value="<?php echo WT_I18N::translate('Lost password request'); ?>" /></td></tr> </table> </form> @@ -136,7 +136,7 @@ switch ($action) { ?> <table class="center facts_table"> - <tr><td class="wrap <?php echo $TEXT_DIRECTION; ?>"><?php echo WT_I18N::translate('Hello...<br /><br />An email with your new password was sent to the address we have on file for <b>%s</b>.<br /><br />Please check your email account; you should receive our message soon.<br /><br />Recommendation:<br />You should login to this site with your new password as soon as possible, and you should change your password to maintain your data\'s security.', $user_name); ?></td></tr> + <tr><td class="wrap"><?php echo WT_I18N::translate('Hello...<br /><br />An email with your new password was sent to the address we have on file for <b>%s</b>.<br /><br />Please check your email account; you should receive our message soon.<br /><br />Recommendation:<br />You should login to this site with your new password as soon as possible, and you should change your password to maintain your data\'s security.', $user_name); ?></td></tr> </table> <?php AddToLog('Password request was sent to user: '.$user_name, 'auth'); @@ -257,7 +257,7 @@ switch ($action) { </script> <?php if ($SHOW_REGISTER_CAUTION) { - echo '<center><table class="width50 ', $TEXT_DIRECTION, '"><tr><td>'; + echo '<center><table class="width50"><tr><td>'; echo WT_I18N::translate('<div class="largeError">Notice:</div><div class="error">By completing and submitting this form, you agree:<ul><li>to protect the privacy of living people listed on our site;</li><li>and in the text box below, to explain to whom you are related, or to provide us with information on someone who should be listed on our site.</li></ul></div>'); echo '<br />'; echo '</td></tr></table></center>'; @@ -269,19 +269,19 @@ switch ($action) { <input type="hidden" name="time" value="" /> <table class="center facts_table width50"> <tr><td class="topbottombar" colspan="2"><?php echo WT_I18N::translate('Request new user account'); ?><br /><?php if (strlen($message) > 0) echo $message; ?></td></tr> - <tr><td class="descriptionbox wrap <?php echo $TEXT_DIRECTION; ?>"><label for="user_realname"><?php echo WT_I18N::translate('Real name'), '</label>', help_link('real_name'); ?></td><td class="optionbox <?php echo $TEXT_DIRECTION; ?>"><input type="text" id="user_realname" name="user_realname" value="<?php if (!$user_realname_false) echo $user_realname; ?>" /> *</td></tr> - <tr><td class="descriptionbox wrap <?php echo $TEXT_DIRECTION; ?>"><label for="user_email"><?php echo WT_I18N::translate('Email address'), '</label>', help_link('email'); ?></td><td class="optionbox <?php echo $TEXT_DIRECTION; ?>"><input type="text" size="30" id="user_email" name="user_email" value="<?php if (!$user_email_false) echo $user_email; ?>" /> *</td></tr> - <tr><td class="descriptionbox wrap <?php echo $TEXT_DIRECTION; ?>"><label for="username"><?php echo WT_I18N::translate('Desired user name'), '</label>', help_link('username'); ?></td><td class="optionbox <?php echo $TEXT_DIRECTION; ?>"><input type="text" id="username" name="user_name" value="<?php if (!$user_name_false) echo $user_name; ?>" /> *</td></tr> - <tr><td class="descriptionbox wrap <?php echo $TEXT_DIRECTION; ?>"><label for="user_password01"><?php echo WT_I18N::translate('Desired password'), '</label>', help_link('password'); ?></td><td class="optionbox <?php echo $TEXT_DIRECTION; ?>"><input type="password" id="user_password01" name="user_password01" value="" /> *</td></tr> - <tr><td class="descriptionbox wrap <?php echo $TEXT_DIRECTION; ?>"><label for="user_password02"><?php echo WT_I18N::translate('Confirm password'), '</label>', help_link('edituser_conf_password'); ?></td><td class="optionbox <?php echo $TEXT_DIRECTION; ?>"><input type="password" id="user_password02" name="user_password02" value="" /> *</td></tr> + <tr><td class="descriptionbox wrap"><label for="user_realname"><?php echo WT_I18N::translate('Real name'), '</label>', help_link('real_name'); ?></td><td class="optionbox"><input type="text" id="user_realname" name="user_realname" value="<?php if (!$user_realname_false) echo $user_realname; ?>" /> *</td></tr> + <tr><td class="descriptionbox wrap"><label for="user_email"><?php echo WT_I18N::translate('Email address'), '</label>', help_link('email'); ?></td><td class="optionbox"><input type="text" size="30" id="user_email" name="user_email" value="<?php if (!$user_email_false) echo $user_email; ?>" /> *</td></tr> + <tr><td class="descriptionbox wrap"><label for="username"><?php echo WT_I18N::translate('Desired user name'), '</label>', help_link('username'); ?></td><td class="optionbox"><input type="text" id="username" name="user_name" value="<?php if (!$user_name_false) echo $user_name; ?>" /> *</td></tr> + <tr><td class="descriptionbox wrap"><label for="user_password01"><?php echo WT_I18N::translate('Desired password'), '</label>', help_link('password'); ?></td><td class="optionbox"><input type="password" id="user_password01" name="user_password01" value="" /> *</td></tr> + <tr><td class="descriptionbox wrap"><label for="user_password02"><?php echo WT_I18N::translate('Confirm password'), '</label>', help_link('edituser_conf_password'); ?></td><td class="optionbox"><input type="password" id="user_password02" name="user_password02" value="" /> *</td></tr> <?php - echo '<tr><td class="descriptionbox wrap ', $TEXT_DIRECTION, '">'; + echo '<tr><td class="descriptionbox wrap">'; echo '<label for="user_language">', WT_I18N::translate('Language'), '</label>', help_link('edituser_change_lang'); - echo '</td><td class="optionbox ', $TEXT_DIRECTION, '">'; + echo '</td><td class="optionbox">'; echo edit_field_language('user_language', WT_LOCALE); echo '</td></tr>'; ?> - <tr><td class="descriptionbox wrap <?php echo $TEXT_DIRECTION; ?>"><label for="user_comments"><?php echo WT_I18N::translate('Comments'), '</label>', help_link('register_comments'); ?></td><td class="optionbox <?php echo $TEXT_DIRECTION; ?>" valign="top" ><textarea cols="50" rows="5" id="user_comments" name="user_comments"><?php if (!$user_comments_false) echo $user_comments; ?></textarea> *</td></tr> + <tr><td class="descriptionbox wrap"><label for="user_comments"><?php echo WT_I18N::translate('Comments'), '</label>', help_link('register_comments'); ?></td><td class="optionbox" valign="top" ><textarea cols="50" rows="5" id="user_comments" name="user_comments"><?php if (!$user_comments_false) echo $user_comments; ?></textarea> *</td></tr> <tr><td class="topbottombar" colspan="2"><input type="submit" value="<?php echo WT_I18N::translate('Request new user account'); ?>" /></td></tr> <tr><td align="left" colspan="2" ><?php echo WT_I18N::translate('Fields marked with * are mandatory.'); ?></td></tr> </table> diff --git a/medialist.php b/medialist.php index 1a72a2baa9..34366780cb 100644 --- a/medialist.php +++ b/medialist.php @@ -180,7 +180,7 @@ if (WT_USE_LIGHTBOX) { <form action="medialist.php" method="get"> <input type="hidden" name="action" value="filter" /> <input type="hidden" name="search" value="yes" /> - <table class="list-table center width75 <?php echo $TEXT_DIRECTION; ?>"> + <table class="list-table width75"> <!-- Build the form cells --> <tr> <!-- // NOTE: Row 1, left: --> @@ -352,7 +352,7 @@ if ($show == 'yes') { echo '<tr><td colspan="2">'; echo '<table class="list_table width100">'; echo '<tr>'; - echo '<td class="width30" align="', $TEXT_DIRECTION == 'ltr'?'left':'right', '">'; + echo '<td class="width30">'; if ($TEXT_DIRECTION=='ltr') { if ($ct>$max) { if ($currentPage > 1) { @@ -379,7 +379,7 @@ if ($show == 'yes') { } echo '</td>'; echo '<td align="center">', WT_I18N::translate('Page %s of %s', $currentPage, $lastPage), '</td>'; - echo '<td class="width30" align="', $TEXT_DIRECTION == 'ltr'?'right':'left', '">'; + echo '<td class="width30">'; if ($TEXT_DIRECTION=='ltr') { if ($ct>$max) { if ($start+$max < $ct) { @@ -420,7 +420,7 @@ if ($show == 'yes') { if ($columns == '1') echo '<td class="list_value_wrap" width="80%">'; if ($columns == '2') echo '<td class="list_value_wrap" width="50%">'; - echo '<table class="', $TEXT_DIRECTION, '"><tr><td valign="top" style="white-space: normal;">'; + echo '<table><tr><td valign="top" style="white-space: normal;">'; //-- Thumbnail field if ($show_thumbnail) { @@ -504,7 +504,7 @@ Plus other Media Options - MediaViewer page'), '" />'; echo '<tr><td colspan="2">'; echo '<table class="list_table width100">'; echo '<tr>'; - echo '<td class="width30" align="', $TEXT_DIRECTION == 'ltr'?'left':'right', '">'; + echo '<td class="width30">'; if ($TEXT_DIRECTION=='ltr') { if ($ct>$max) { if ($currentPage > 1) { @@ -531,7 +531,7 @@ Plus other Media Options - MediaViewer page'), '" />'; } echo '</td>'; echo '<td align="center">', WT_I18N::translate('Page %s of %s', $currentPage, $lastPage), '</td>'; - echo '<td class="width30" align="', $TEXT_DIRECTION == 'ltr'?'right':'left', '">'; + echo '<td class="width30">'; if ($TEXT_DIRECTION=='ltr') { if ($ct>$max) { if ($start+$max < $ct) { diff --git a/mediaviewer.php b/mediaviewer.php index e020e4139b..41a0de800c 100644 --- a/mediaviewer.php +++ b/mediaviewer.php @@ -138,7 +138,7 @@ echo '</ul>'; <table width="100%"> <tr> <td> - <table class="facts_table', $TEXT_DIRECTION=='ltr'?'':'_rtl', '">'; + <table class="facts_table">'; $facts = $controller->getFacts(WT_USER_CAN_EDIT || WT_USER_CAN_ACCEPT); foreach ($facts as $f=>$fact) { print_fact($fact, $controller->record); diff --git a/modules_v3/GEDFact_assistant/_CENS/census_2_source_input.php b/modules_v3/GEDFact_assistant/_CENS/census_2_source_input.php index a2e08abb4d..79074dd6aa 100644 --- a/modules_v3/GEDFact_assistant/_CENS/census_2_source_input.php +++ b/modules_v3/GEDFact_assistant/_CENS/census_2_source_input.php @@ -33,7 +33,7 @@ if (!defined('WT_WEBTREES')) { header('HTTP/1.0 403 Forbidden'); exit; } -global $TEXT_DIRECTION; + ?> <script> diff --git a/modules_v3/GEDFact_assistant/_CENS/census_3_find.php b/modules_v3/GEDFact_assistant/_CENS/census_3_find.php index dd6310ecce..b9f2127b24 100644 --- a/modules_v3/GEDFact_assistant/_CENS/census_3_find.php +++ b/modules_v3/GEDFact_assistant/_CENS/census_3_find.php @@ -25,7 +25,7 @@ $controller=new WT_Controller_Simple(); -global $MEDIA_DIRECTORY, $MEDIA_DIRECTORY_LEVELS, $TEXT_DIRECTION, $ABBREVIATE_CHART_LABELS; +global $MEDIA_DIRECTORY, $MEDIA_DIRECTORY_LEVELS, $ABBREVIATE_CHART_LABELS; $type =safe_GET('type', WT_REGEX_ALPHA, 'indi'); $filter =safe_GET('filter'); @@ -206,7 +206,7 @@ $options["form"][]= "formsource"; $options["form"][]= "formspecialchar"; echo "<div align=\"center\">"; -echo "<table class=\"list_table $TEXT_DIRECTION width90\" border=\"0\">"; +echo "<table class=\"list_table width90\" border=\"0\">"; echo "<tr><td style=\"padding: 10px;\" valign=\"top\" class=\"facts_label03 width90\">"; // start column for find text header switch ($type) { @@ -253,7 +253,7 @@ if ($type == "indi") { echo "<input type=\"hidden\" name=\"type\" value=\"indi\" />"; echo "<input type=\"hidden\" name=\"multiple\" value=\"$multiple\" />"; /* - echo "<table class=\"list_table $TEXT_DIRECTION width100\" border=\"0\">"; + echo "<table class=\"list_table width100\" border=\"0\">"; echo "<tr><td class=\"list_label width10\" style=\"padding: 5px;\">"; echo WT_I18N::translate('Name contains:'), " <input type=\"text\" name=\"filter\" value=\""; if ($filter) echo $filter; @@ -274,7 +274,7 @@ if ($type == "fam") { echo "<input type=\"hidden\" name=\"type\" value=\"fam\" />"; echo "<input type=\"hidden\" name=\"callback\" value=\"$callback\" />"; echo "<input type=\"hidden\" name=\"multiple\" value=\"$multiple\" />"; - echo "<table class=\"list_table $TEXT_DIRECTION width100\" border=\"0\">"; + echo "<table class=\"list_table width100\" border=\"0\">"; echo "<tr><td class=\"list_label width10\" style=\"padding: 5px;\">"; echo WT_I18N::translate('Name contains:'), " <input type=\"text\" name=\"filter\" value=\""; if ($filter) echo $filter; @@ -298,7 +298,7 @@ if ($type == 'media') { echo "<input type=\"hidden\" name=\"type\" value=\"media\" />"; echo "<input type=\"hidden\" name=\"callback\" value=\"$callback\" />"; echo "<input type=\"hidden\" name=\"subclick\">"; // This is for passing the name of which submit button was clicked - echo "<table class=\"list_table $TEXT_DIRECTION width100\" border=\"0\">"; + echo "<table class=\"list_table width100\" border=\"0\">"; echo "<tr><td class=\"list_label width10\" style=\"padding: 5px;\">"; echo WT_I18N::translate('Media contains:'), " <input type=\"text\" name=\"filter\" value=\""; if ($filter) echo $filter; @@ -325,7 +325,7 @@ if ($type == "place") { echo "<input type=\"hidden\" name=\"type\" value=\"place\" />"; echo "<input type=\"hidden\" name=\"callback\" value=\"$callback\" />"; echo "<input type=\"hidden\" name=\"subclick\">"; // This is for passing the name of which submit button was clicked - echo "<table class=\"list_table $TEXT_DIRECTION width100\" border=\"0\">"; + echo "<table class=\"list_table width100\" border=\"0\">"; echo "<tr><td class=\"list_label width10\" style=\"padding: 5px;\">"; echo WT_I18N::translate('Place contains:'), " <input type=\"text\" name=\"filter\" value=\""; if ($filter) echo $filter; @@ -346,7 +346,7 @@ if ($type == "repo") { echo "<input type=\"hidden\" name=\"type\" value=\"repo\" />"; echo "<input type=\"hidden\" name=\"callback\" value=\"$callback\" />"; echo "<input type=\"hidden\" name=\"subclick\">"; // This is for passing the name of which submit button was clicked - echo "<table class=\"list_table $TEXT_DIRECTION width100\" border=\"0\">"; + echo "<table class=\"list_table width100\" border=\"0\">"; echo "<tr><td class=\"list_label width10\" style=\"padding: 5px;\">"; echo WT_I18N::translate('Repository contains:'), " <input type=\"text\" name=\"filter\" value=\""; if ($filter) echo $filter; @@ -367,7 +367,7 @@ if ($type == "note") { echo "<input type=\"hidden\" name=\"type\" value=\"note\" />"; echo "<input type=\"hidden\" name=\"callback\" value=\"$callback\" />"; echo "<input type=\"hidden\" name=\"subclick\">"; // This is for passing the name of which submit button was clicked - echo "<table class=\"list_table $TEXT_DIRECTION width100\" border=\"0\">"; + echo "<table class=\"list_table width100\" border=\"0\">"; echo "<tr><td class=\"list_label width10\" style=\"padding: 5px;\">"; echo WT_I18N::translate('Shared Note contains:'), " <input type=\"text\" name=\"filter\" value=\""; if ($filter) echo $filter; @@ -388,7 +388,7 @@ if ($type == "source") { echo "<input type=\"hidden\" name=\"type\" value=\"source\" />"; echo "<input type=\"hidden\" name=\"callback\" value=\"$callback\" />"; echo "<input type=\"hidden\" name=\"subclick\">"; // This is for passing the name of which submit button was clicked - echo "<table class=\"list_table $TEXT_DIRECTION width100\" border=\"0\">"; + echo "<table class=\"list_table width100\" border=\"0\">"; echo "<tr><td class=\"list_label width10\" style=\"padding: 5px;\">"; echo WT_I18N::translate('Source contains:'), " <input type=\"text\" name=\"filter\" value=\""; if ($filter) echo $filter; @@ -408,7 +408,7 @@ if ($type == "specialchar") { echo "<input type=\"hidden\" name=\"action\" value=\"filter\" />"; echo "<input type=\"hidden\" name=\"type\" value=\"specialchar\" />"; echo "<input type=\"hidden\" name=\"callback\" value=\"$callback\" />"; - echo "<table class=\"list_table $TEXT_DIRECTION width100\" border=\"0\">"; + echo "<table class=\"list_table width100\" border=\"0\">"; echo "<tr><td class=\"list_label\" style=\"padding: 5px;\">"; echo "<select id=\"language_filter\" name=\"language_filter\" onchange=\"submit();\">"; echo "<option value=\"\">", WT_I18N::translate('Change language'), "</option>"; @@ -430,8 +430,8 @@ if ($type == "facts") { echo "<input type=\"hidden\" name=\"type\" value=\"facts\" />"; echo "<input type=\"hidden\" name=\"tags\" value=\"$qs\" />"; echo "<input type=\"hidden\" name=\"callback\" value=\"$callback\" />"; - echo "<table class=\"list_table $TEXT_DIRECTION width100\" border=\"0\">"; - echo "<tr><td class=\"list_label $TEXT_DIRECTION\" style=\"padding: 5px; font-weight: normal; white-space: normal;\">"; + echo "<table class=\"list_table width100\" border=\"0\">"; + echo "<tr><td class=\"list_label\" style=\"padding: 5px; font-weight: normal; white-space: normal;\">"; getPreselectedTags($preselDefault, $preselCustom); ?> <?php echo WT_JS_START; ?> @@ -616,10 +616,10 @@ if ($action=="filter") { // Output Individual fot GEDFact Assistant ====================== if ($type == "indi") { - echo "<table class=\"tabs_table $TEXT_DIRECTION width90\"><tr>"; + echo "<table class=\"tabs_table width90\"><tr>"; $myindilist=search_indis_names($filter_array, array(WT_GED_ID), 'AND'); if ($myindilist) { - echo "<td class=\"list_value_wrap $TEXT_DIRECTION\"><ul>"; + echo "<td class=\"list_value_wrap\"><ul>"; usort($myindilist, array('WT_GedcomRecord', 'Compare')); foreach ($myindilist as $indi ) { // echo $indi->format_list('li', true); @@ -735,7 +735,7 @@ if ($action=="filter") { // Output Family if ($type == "fam") { - echo "<table class=\"tabs_table $TEXT_DIRECTION width90\"><tr>"; + echo "<table class=\"tabs_table width90\"><tr>"; // Get the famrecs with hits on names from the family table // Get the famrecs with hits in the gedcom record from the family table $myfamlist = array_unique(array_merge( @@ -744,7 +744,7 @@ if ($action=="filter") { )); if ($myfamlist) { $curged = $GEDCOM; - echo "<td class=\"list_value_wrap $TEXT_DIRECTION\"><ul>"; + echo "<td class=\"list_value_wrap\"><ul>"; usort($myfamlist, array('WT_GedcomRecord', 'Compare')); foreach ($myfamlist as $family) { echo $family->format_list('li', true); @@ -764,7 +764,7 @@ if ($action=="filter") { $medialist = get_medialist(true, $directory); - echo "<table class=\"tabs_table $TEXT_DIRECTION width90\">"; + echo "<table class=\"tabs_table width90\">"; // Show link to previous folder if ($level>0) { $levels = explode("/", $directory); @@ -777,7 +777,7 @@ if ($action=="filter") { } // Start of media directory table - echo "<table class=\"list_table $TEXT_DIRECTION width90\">"; + echo "<table class=\"list_table width90\">"; // Tell the user where he is echo "<tr>"; @@ -792,19 +792,19 @@ if ($action=="filter") { if (count($dirs) || $level) { sort($dirs); if ($level) { - echo "<tr><td class=\"list_value $TEXT_DIRECTION\" colspan=\"2\">"; + echo "<tr><td class=\"list_value\" colspan=\"2\">"; echo $uplink, "</td></tr>"; } - echo "<tr><td class=\"descriptionbox $TEXT_DIRECTION\" colspan=\"2\">"; + echo "<tr><td class=\"descriptionbox\" colspan=\"2\">"; echo "<a href=\"find.php?directory={$directory}&thumbdir=".str_replace($MEDIA_DIRECTORY, $MEDIA_DIRECTORY."thumbs/", $directory)."&level={$level}{$thumbget}&external_links=http&type=media&choose={$choose}\">", WT_I18N::translate('External objects'), "</a>"; echo "</td></tr>"; foreach ($dirs as $indexval => $dir) { - echo "<tr><td class=\"list_value $TEXT_DIRECTION\" colspan=\"2\">"; + echo "<tr><td class=\"list_value\" colspan=\"2\">"; echo "<a href=\"find.php?directory={$directory}{$dir}/&thumbdir={$directory}{$dir}/&level=".($level+1)."{$thumbget}&type=media&choose={$choose}\"><span dir=\"ltr\">", $dir, "</span></a>"; echo "</td></tr>"; } } - echo "<tr><td class=\"descriptionbox $TEXT_DIRECTION\" colspan=\"2\"></td></tr>"; + echo "<tr><td class=\"descriptionbox\" colspan=\"2\"></td></tr>"; /** * This action generates a thumbnail for the file @@ -848,19 +848,15 @@ if ($action=="filter") { //-- thumbnail field if ($showthumb) { - echo "<td class=\"list_value $TEXT_DIRECTION width10\">"; + echo "<td class=\"list_value width10\">"; if (isset($media["THUMB"])) echo "<a href=\"#\" onclick=\"return openImage('", rawurlencode($media["FILE"]), "', $imgwidth, $imgheight);\"><img src=\"", filename_decode($media["THUMB"]), "\" border=\"0\" width=\"50\" alt=\"\" /></a>"; else echo " "; } //-- name and size field - echo "<td class=\"list_value $TEXT_DIRECTION\">"; + echo "<td class=\"list_value\">"; if ($media["TITL"] != "") { - echo "<b>", PrintReady($media["TITL"]), "</b> "; - if ($TEXT_DIRECTION=="rtl") echo getRLM(); - echo "(", $media["XREF"], ")"; - if ($TEXT_DIRECTION=="rtl") echo getRLM(); - echo "<br />"; + echo "<b>", PrintReady($media["TITL"]), "</b><br>"; } if (!$embed) { echo "<a href=\"#\" onclick=\"pasteid('", addslashes($media["FILE"]), "');\"><span dir=\"ltr\">", $media["FILE"], "</span></a> -- "; @@ -911,7 +907,7 @@ if ($action=="filter") { // Output Places if ($type == "place") { - echo "<table class=\"tabs_table $TEXT_DIRECTION width90\"><tr>"; + echo "<table class=\"tabs_table width90\"><tr>"; $placelist = array(); if ($all || $filter) { $placelist=find_place_list($filter); @@ -931,7 +927,7 @@ if ($action=="filter") { $revplacelist[] = $placetext; } uasort($revplacelist, "utf8_strcasecmp"); - echo "<td class=\"list_value_wrap $TEXT_DIRECTION\"><ul>"; + echo "<td class=\"list_value_wrap\"><ul>"; foreach ($revplacelist as $place) { echo "<li><a href=\"#\" onclick=\"pasteid('", str_replace(array("'", '"'), array("\'", '"'), $place), "');\">", PrintReady($place), "</a></li>"; } @@ -940,7 +936,7 @@ if ($action=="filter") { echo "</td></tr>"; } else { - echo "<tr><td class=\"list_value_wrap $TEXT_DIRECTION\"><ul>"; + echo "<tr><td class=\"list_value_wrap\"><ul>"; echo WT_I18N::translate('No results found.'); echo "</td></tr>"; } @@ -950,7 +946,7 @@ if ($action=="filter") { // Output Repositories if ($type == "repo") { - echo "<table class=\"tabs_table $TEXT_DIRECTION width90\"><tr>"; + echo "<table class=\"tabs_table width90\"><tr>"; $repo_list = get_repo_list(WT_GED_ID); if ($repo_list) { echo "<td class=\"list_value_wrap\"><ul>"; @@ -971,7 +967,7 @@ if ($action=="filter") { // Output Shared Notes if ($type=="note") { - echo '<table class="tabs_table ', $TEXT_DIRECTION, ' width90">'; + echo '<table class="tabs_table width90">'; if ($filter) { $mynotelist = search_notes($filter_array, array(WT_GED_ID), 'AND', true); } else { @@ -993,7 +989,7 @@ if ($action=="filter") { // Output Sources if ($type=="source") { - echo '<table class="tabs_table ', $TEXT_DIRECTION, ' width90">'; + echo '<table class="tabs_table width90">'; if ($filter) { $mysourcelist = search_sources($filter_array, array(WT_GED_ID), 'AND', true); } else { @@ -1015,7 +1011,7 @@ if ($action=="filter") { // Output Special Characters if ($type == "specialchar") { - echo "<table class=\"tabs_table $TEXT_DIRECTION width90\"><tr><td class=\"list_value center wrap\" dir=\"$TEXT_DIRECTION\"><br/>"; + echo "<table class=\"tabs_table width90\"><tr><td class=\"list_value center wrap\"><br>"; // lower case special characters foreach ($lcspecialchars as $key=>$value) { echo '<a class="largechars" href="#" onclick="return window.opener.paste_char(\'', $value, '\');">', $key, '</a> '; diff --git a/modules_v3/GEDFact_assistant/_CENS/census_3_search_add.php b/modules_v3/GEDFact_assistant/_CENS/census_3_search_add.php index 85f894f624..ac12816c3e 100644 --- a/modules_v3/GEDFact_assistant/_CENS/census_3_search_add.php +++ b/modules_v3/GEDFact_assistant/_CENS/census_3_search_add.php @@ -71,7 +71,7 @@ if (!defined('WT_WEBTREES')) { <?php //-- Add Family Members to Census ------------------------------------------- - global $WT_IMAGES, $spouselinks, $parentlinks, $DeathYr, $BirthYr, $TEXT_DIRECTION; + global $WT_IMAGES, $spouselinks, $parentlinks, $DeathYr, $BirthYr; ?> <tr> @@ -2042,7 +2042,7 @@ function print_pedigree_person_nav2($pid, $style=1, $count=0, $personcount="1", } // Children ------------------------------------- - $spouselinks .= "<ul class=\"clist ".$TEXT_DIRECTION."\">"; + $spouselinks .= "<ul class=\"clist\">"; foreach ($children as $c=>$child) { $cpid = $child->getXref(); if ($child) { diff --git a/modules_v3/GEDFact_assistant/_CENS/census_4_text.php b/modules_v3/GEDFact_assistant/_CENS/census_4_text.php index c43cd03785..84393e3aa1 100644 --- a/modules_v3/GEDFact_assistant/_CENS/census_4_text.php +++ b/modules_v3/GEDFact_assistant/_CENS/census_4_text.php @@ -43,7 +43,7 @@ if (!defined('WT_WEBTREES')) { <span><b><?php echo WT_I18N::translate('Proposed Census Text '); ?></b></span> <span><input type="submit" value="<?php echo WT_I18N::translate('Save'); ?>" onclick="caSave();" /></span> <br /><br /> - <span class="descriptionbox width15 nowrap <?php $TEXT_DIRECTION; ?>"> + <span class="descriptionbox width15 nowrap"> <?php echo WT_I18N::translate('Shared note'), help_link('SHARED_NOTE'); ?> diff --git a/modules_v3/GEDFact_assistant/_MEDIA/media_0_inverselink.php b/modules_v3/GEDFact_assistant/_MEDIA/media_0_inverselink.php index 2d9d425bab..30ec7395b9 100644 --- a/modules_v3/GEDFact_assistant/_MEDIA/media_0_inverselink.php +++ b/modules_v3/GEDFact_assistant/_MEDIA/media_0_inverselink.php @@ -90,7 +90,7 @@ if ($action == "choose" && $paramok) { } echo '<input type="hidden" name="linkto" value="', $linkto, '" />'; echo '<input type="hidden" name="ged" value="', $GEDCOM, '" />'; - echo '<table class="facts_table center ', $TEXT_DIRECTION, '">'; + echo '<table class="facts_table center">'; echo '<tr><td class="topbottombar" colspan="2">'; echo WT_I18N::translate('Link media'), help_link('add_media_linkid'); echo '</td></tr><tr><td class="descriptionbox width20 wrap">', WT_I18N::translate('Media'), '</td>'; @@ -577,7 +577,7 @@ function openInNewWindow(frm) echo '</td></tr>'; // Admin Option CHAN log update override ======================= if (WT_USER_IS_ADMIN) { - echo "<tr><td class=\"descriptionbox ", $TEXT_DIRECTION, " wrap width25\">"; + echo "<tr><td class=\"descriptionbox wrap width25\">"; echo WT_Gedcom_Tag::getLabel('CHAN'), "</td><td class=\"optionbox wrap\">"; if ($NO_UPDATE_CHAN) { echo "<input type=\"checkbox\" checked=\"checked\" name=\"preserve_last_changed\" />"; diff --git a/modules_v3/GEDFact_assistant/_MEDIA/media_1_ctrl.php b/modules_v3/GEDFact_assistant/_MEDIA/media_1_ctrl.php index a6b959f6cd..16663e2a7a 100644 --- a/modules_v3/GEDFact_assistant/_MEDIA/media_1_ctrl.php +++ b/modules_v3/GEDFact_assistant/_MEDIA/media_1_ctrl.php @@ -31,7 +31,7 @@ if (!defined('WT_WEBTREES')) { } require_once WT_ROOT.'includes/functions/functions_charts.php'; -global $summary, $TEXT_DIRECTION, $censyear, $censdate; +global $summary, $censyear, $censdate; $pid = safe_get('pid'); @@ -65,7 +65,7 @@ if ($pid=="") { } $currpid=$pid; - echo '<table width=400 class="facts_table center ', $TEXT_DIRECTION, '">'; + echo '<table width=400 class="facts_table center">'; echo '<tr><td class="topbottombar" colspan="1">'; echo '<b>', WT_I18N::translate('Family navigator'), '</b>'; echo '</td></tr>'; @@ -118,7 +118,7 @@ if ($pid=="") { <?php //-- Add Family Members to Census ------------------------------------------- - global $WT_IMAGES, $spouselinks, $parentlinks, $DeathYr, $BirthYr, $TEXT_DIRECTION, $censyear, $censdate; + global $WT_IMAGES, $spouselinks, $parentlinks, $DeathYr, $BirthYr, $censyear, $censdate; // echo "CENS = " . $censyear; ?> <tr> @@ -1356,7 +1356,7 @@ function print_pedigree_person_nav2($pid, $style=1, $count=0, $personcount="1", // Children ------------------------------ @var $child Person $spouselinks .= "<div id='spouseFam'>"; - $spouselinks .= "<ul class=\"clist ".$TEXT_DIRECTION."\">"; + $spouselinks .= "<ul class=\"clist\">"; foreach ($children as $c=>$child) { $cpid = $child->getXref(); if ($child) { diff --git a/modules_v3/GEDFact_assistant/module.php b/modules_v3/GEDFact_assistant/module.php index c8aab93325..fa05c3089d 100644 --- a/modules_v3/GEDFact_assistant/module.php +++ b/modules_v3/GEDFact_assistant/module.php @@ -59,7 +59,7 @@ class GEDFact_assistant_WT_Module extends WT_Module { } private static function media_3_find() { - global $MEDIA_DIRECTORY, $MEDIA_DIRECTORY_LEVELS, $TEXT_DIRECTION, $ABBREVIATE_CHART_LABELS; + global $MEDIA_DIRECTORY, $MEDIA_DIRECTORY_LEVELS, $ABBREVIATE_CHART_LABELS; $controller=new WT_Controller_Simple(); @@ -214,7 +214,7 @@ class GEDFact_assistant_WT_Module extends WT_Module { $options["form"][]= "formspecialchar"; echo "<div align=\"center\">"; - echo "<table class=\"list_table $TEXT_DIRECTION width90\" border=\"0\">"; + echo "<table class=\"list_table width90\" border=\"0\">"; echo "<tr><td style=\"padding: 10px;\" valign=\"top\" class=\"facts_label03 width90\">"; // start column for find text header switch ($type) { @@ -258,7 +258,7 @@ class GEDFact_assistant_WT_Module extends WT_Module { echo "<input type=\"hidden\" name=\"type\" value=\"indi\" />"; echo "<input type=\"hidden\" name=\"multiple\" value=\"$multiple\" />"; /* - echo "<table class=\"list_table $TEXT_DIRECTION width100\" border=\"0\">"; + echo "<table class=\"list_table width100\" border=\"0\">"; echo "<tr><td class=\"list_label width10\" style=\"padding: 5px;\">"; echo WT_I18N::translate('Name contains:'), " <input type=\"text\" name=\"filter\" value=\""; if ($filter) echo $filter; @@ -279,7 +279,7 @@ class GEDFact_assistant_WT_Module extends WT_Module { echo "<input type=\"hidden\" name=\"type\" value=\"fam\" />"; echo "<input type=\"hidden\" name=\"callback\" value=\"$callback\" />"; echo "<input type=\"hidden\" name=\"multiple\" value=\"$multiple\" />"; - echo "<table class=\"list_table $TEXT_DIRECTION width100\" border=\"0\">"; + echo "<table class=\"list_table width100\" border=\"0\">"; echo "<tr><td class=\"list_label width10\" style=\"padding: 5px;\">"; echo WT_I18N::translate('Name contains:'), " <input type=\"text\" name=\"filter\" value=\""; if ($filter) echo $filter; @@ -303,7 +303,7 @@ class GEDFact_assistant_WT_Module extends WT_Module { echo "<input type=\"hidden\" name=\"type\" value=\"media\" />"; echo "<input type=\"hidden\" name=\"callback\" value=\"$callback\" />"; echo "<input type=\"hidden\" name=\"subclick\">"; // This is for passing the name of which submit button was clicked - echo "<table class=\"list_table $TEXT_DIRECTION width100\" border=\"0\">"; + echo "<table class=\"list_table width100\" border=\"0\">"; echo "<tr><td class=\"list_label width10\" style=\"padding: 5px;\">"; echo WT_I18N::translate('Media contains:'), " <input type=\"text\" name=\"filter\" value=\""; if ($filter) echo $filter; @@ -330,7 +330,7 @@ class GEDFact_assistant_WT_Module extends WT_Module { echo "<input type=\"hidden\" name=\"type\" value=\"place\" />"; echo "<input type=\"hidden\" name=\"callback\" value=\"$callback\" />"; echo "<input type=\"hidden\" name=\"subclick\">"; // This is for passing the name of which submit button was clicked - echo "<table class=\"list_table $TEXT_DIRECTION width100\" border=\"0\">"; + echo "<table class=\"list_table width100\" border=\"0\">"; echo "<tr><td class=\"list_label width10\" style=\"padding: 5px;\">"; echo WT_I18N::translate('Place contains:'), " <input type=\"text\" name=\"filter\" value=\""; if ($filter) echo $filter; @@ -351,7 +351,7 @@ class GEDFact_assistant_WT_Module extends WT_Module { echo "<input type=\"hidden\" name=\"type\" value=\"repo\" />"; echo "<input type=\"hidden\" name=\"callback\" value=\"$callback\" />"; echo "<input type=\"hidden\" name=\"subclick\">"; // This is for passing the name of which submit button was clicked - echo "<table class=\"list_table $TEXT_DIRECTION width100\" border=\"0\">"; + echo "<table class=\"list_table width100\" border=\"0\">"; echo "<tr><td class=\"list_label width10\" style=\"padding: 5px;\">"; echo WT_I18N::translate('Repository contains:'), " <input type=\"text\" name=\"filter\" value=\""; if ($filter) echo $filter; @@ -372,7 +372,7 @@ class GEDFact_assistant_WT_Module extends WT_Module { echo "<input type=\"hidden\" name=\"type\" value=\"note\" />"; echo "<input type=\"hidden\" name=\"callback\" value=\"$callback\" />"; echo "<input type=\"hidden\" name=\"subclick\">"; // This is for passing the name of which submit button was clicked - echo "<table class=\"list_table $TEXT_DIRECTION width100\" border=\"0\">"; + echo "<table class=\"list_table width100\" border=\"0\">"; echo "<tr><td class=\"list_label width10\" style=\"padding: 5px;\">"; echo WT_I18N::translate('Shared Note contains:'), " <input type=\"text\" name=\"filter\" value=\""; if ($filter) echo $filter; @@ -393,7 +393,7 @@ class GEDFact_assistant_WT_Module extends WT_Module { echo "<input type=\"hidden\" name=\"type\" value=\"source\" />"; echo "<input type=\"hidden\" name=\"callback\" value=\"$callback\" />"; echo "<input type=\"hidden\" name=\"subclick\">"; // This is for passing the name of which submit button was clicked - echo "<table class=\"list_table $TEXT_DIRECTION width100\" border=\"0\">"; + echo "<table class=\"list_table width100\" border=\"0\">"; echo "<tr><td class=\"list_label width10\" style=\"padding: 5px;\">"; echo WT_I18N::translate('Source contains:'), " <input type=\"text\" name=\"filter\" value=\""; if ($filter) echo $filter; @@ -414,7 +414,7 @@ class GEDFact_assistant_WT_Module extends WT_Module { echo "<input type=\"hidden\" name=\"type\" value=\"specialchar\" />"; echo "<input type=\"hidden\" name=\"callback\" value=\"", $callback, "\" />"; echo "<input type=\"hidden\" name=\"magnify\" value=\"", $magnify, "\" />"; - echo "<table class=\"list_table $TEXT_DIRECTION width100\" border=\"0\">"; + echo "<table class=\"list_table width100\" border=\"0\">"; echo "<tr><td class=\"list_label\" style=\"padding: 5px;\">"; echo "<select id=\"language_filter\" name=\"language_filter\" onchange=\"submit();\">"; echo "<option value=\"\">", WT_I18N::translate('Change language'), "</option>"; @@ -442,10 +442,10 @@ class GEDFact_assistant_WT_Module extends WT_Module { // Output Individual if ($type == "indi") { - echo "<table class=\"tabs_table $TEXT_DIRECTION width90\"><tr>"; + echo "<table class=\"tabs_table width90\"><tr>"; $myindilist=search_indis_names($filter_array, array(WT_GED_ID), 'AND'); if ($myindilist) { - echo "<td class=\"list_value_wrap $TEXT_DIRECTION\"><ul>"; + echo "<td class=\"list_value_wrap\"><ul>"; usort($myindilist, array('WT_GedcomRecord', 'Compare')); foreach ($myindilist as $indi) { //echo $indi->format_list('li', true); @@ -481,7 +481,7 @@ class GEDFact_assistant_WT_Module extends WT_Module { // Output Family if ($type == "fam") { - echo "<table class=\"tabs_table $TEXT_DIRECTION width90\"><tr>"; + echo "<table class=\"tabs_table width90\"><tr>"; // Get the famrecs with hits on names from the family table // Get the famrecs with hits in the gedcom record from the family table $myfamlist = array_unique(array_merge( @@ -490,7 +490,7 @@ class GEDFact_assistant_WT_Module extends WT_Module { )); if ($myfamlist) { $curged = $GEDCOM; - echo "<td class=\"list_value_wrap $TEXT_DIRECTION\"><ul>"; + echo "<td class=\"list_value_wrap\"><ul>"; usort($myfamlist, array('WT_GedcomRecord', 'Compare')); foreach ($myfamlist as $family) { echo $family->format_list('li', true); @@ -510,7 +510,7 @@ class GEDFact_assistant_WT_Module extends WT_Module { $medialist = get_medialist(true, $directory); - echo "<table class=\"tabs_table $TEXT_DIRECTION width90\">"; + echo "<table class=\"tabs_table width90\">"; // Show link to previous folder if ($level>0) { $levels = explode("/", $directory); @@ -523,7 +523,7 @@ class GEDFact_assistant_WT_Module extends WT_Module { } // Start of media directory table - echo "<table class=\"list_table $TEXT_DIRECTION width90\">"; + echo "<table class=\"list_table width90\">"; // Tell the user where he is echo "<tr>"; @@ -538,19 +538,19 @@ class GEDFact_assistant_WT_Module extends WT_Module { if (count($dirs) || $level) { sort($dirs); if ($level) { - echo "<tr><td class=\"list_value $TEXT_DIRECTION\" colspan=\"2\">"; + echo "<tr><td class=\"list_value\" colspan=\"2\">"; echo $uplink, "</td></tr>"; } - echo "<tr><td class=\"descriptionbox $TEXT_DIRECTION\" colspan=\"2\">"; + echo "<tr><td class=\"descriptionbox\" colspan=\"2\">"; echo "<a href=\"find.php?directory=".rawurlencode($directory)."&thumbdir=".str_replace($MEDIA_DIRECTORY, $MEDIA_DIRECTORY."thumbs/", $directory)."&level={$level}{$thumbget}&external_links=http&type=media&choose={$choose}\">", WT_I18N::translate('External objects'), "</a>"; echo "</td></tr>"; foreach ($dirs as $indexval => $dir) { - echo "<tr><td class=\"list_value $TEXT_DIRECTION\" colspan=\"2\">"; + echo "<tr><td class=\"list_value\" colspan=\"2\">"; echo "<a href=\"find.php?directory=".rawurlencode($directory.$dir)."/&thumbdir=".rawurlencode($directory.$dir)."/&level=".($level+1)."{$thumbget}&type=media&choose={$choose}\"><span dir=\"ltr\">", $dir, "</span></a>"; echo "</td></tr>"; } } - echo "<tr><td class=\"descriptionbox $TEXT_DIRECTION\" colspan=\"2\"></td></tr>"; + echo "<tr><td class=\"descriptionbox\" colspan=\"2\"></td></tr>"; /** * This action generates a thumbnail for the file @@ -594,19 +594,15 @@ class GEDFact_assistant_WT_Module extends WT_Module { //-- thumbnail field if ($showthumb) { - echo "<td class=\"list_value $TEXT_DIRECTION width10\">"; + echo "<td class=\"list_value width10\">"; if (isset($media["THUMB"])) echo "<a href=\"#\" onclick=\"return openImage('", rawurlencode($media["FILE"]), "', $imgwidth, $imgheight);\"><img src=\"", filename_decode($media["THUMB"]), "\" border=\"0\" width=\"50\" alt=\"\" /></a>"; else echo " "; } //-- name and size field - echo "<td class=\"list_value $TEXT_DIRECTION\">"; + echo "<td class=\"list_value\">"; if ($media["TITL"] != "") { - echo "<b>", PrintReady($media["TITL"]), "</b> "; - if ($TEXT_DIRECTION=="rtl") echo getRLM(); - echo "(", $media["XREF"], ")"; - if ($TEXT_DIRECTION=="rtl") echo getRLM(); - echo "<br />"; + echo "<b>", PrintReady($media["TITL"]), "</b><br>"; } if (!$embed) { echo "<a href=\"#\" onclick=\"pasteid('", addslashes($media["FILE"]), "');\"><span dir=\"ltr\">", $media["FILE"], "</span></a> -- "; @@ -657,7 +653,7 @@ class GEDFact_assistant_WT_Module extends WT_Module { // Output Places if ($type == "place") { - echo "<table class=\"tabs_table $TEXT_DIRECTION width90\"><tr>"; + echo "<table class=\"tabs_table width90\"><tr>"; $placelist = array(); if ($all || $filter) { $placelist=find_place_list($filter); @@ -677,7 +673,7 @@ class GEDFact_assistant_WT_Module extends WT_Module { $revplacelist[] = $placetext; } uasort($revplacelist, "utf8_strcasecmp"); - echo "<td class=\"list_value_wrap $TEXT_DIRECTION\"><ul>"; + echo "<td class=\"list_value_wrap\"><ul>"; foreach ($revplacelist as $place) { echo "<li><a href=\"#\" onclick=\"pasteid('", str_replace(array("'", '"'), array("\'", '"'), $place), "');\">", PrintReady($place), "</a></li>"; } @@ -686,7 +682,7 @@ class GEDFact_assistant_WT_Module extends WT_Module { echo "</td></tr>"; } else { - echo "<tr><td class=\"list_value_wrap $TEXT_DIRECTION\"><ul>"; + echo "<tr><td class=\"list_value_wrap\"><ul>"; echo WT_I18N::translate('No results found.'); echo "</td></tr>"; } @@ -696,7 +692,7 @@ class GEDFact_assistant_WT_Module extends WT_Module { // Output Repositories if ($type == "repo") { - echo "<table class=\"tabs_table $TEXT_DIRECTION width90\"><tr>"; + echo "<table class=\"tabs_table width90\"><tr>"; $repo_list = get_repo_list(WT_GED_ID); if ($repo_list) { echo "<td class=\"list_value_wrap\"><ul>"; @@ -717,7 +713,7 @@ class GEDFact_assistant_WT_Module extends WT_Module { // Output Shared Notes if ($type=="note") { - echo '<table class="tabs_table ', $TEXT_DIRECTION, ' width90">'; + echo '<table class="tabs_table width90">'; if ($filter) { $mynotelist = search_notes($filter_array, array(WT_GED_ID), 'AND', true); } else { @@ -739,7 +735,7 @@ class GEDFact_assistant_WT_Module extends WT_Module { // Output Sources if ($type=="source") { - echo '<table class="tabs_table ', $TEXT_DIRECTION, ' width90">'; + echo '<table class="tabs_table width90">'; if ($filter) { $mysourcelist = search_sources($filter_array, array(WT_GED_ID), 'AND', true); } else { @@ -761,7 +757,7 @@ class GEDFact_assistant_WT_Module extends WT_Module { // Output Special Characters if ($type == "specialchar") { - echo "<table class=\"tabs_table $TEXT_DIRECTION width90\"><tr><td class=\"list_value center wrap\" dir=\"$TEXT_DIRECTION\"><br/>"; + echo "<table class=\"tabs_table width90\"><tr><td class=\"list_value center wrap\"><br>"; // lower case special characters foreach ($lcspecialchars as $key=>$value) { echo '<a class="largechars" href="#" onclick="return window.opener.paste_char(\'', $value, '\');">', $key, '</a> '; diff --git a/modules_v3/clippings/module.php b/modules_v3/clippings/module.php index 8d81eddced..fc1df8cd19 100644 --- a/modules_v3/clippings/module.php +++ b/modules_v3/clippings/module.php @@ -52,7 +52,7 @@ class clippings_WT_Module extends WT_Module implements WT_Module_Menu, WT_Module echo $this->getSidebarAjaxContent(); break; case 'index': - global $ENABLE_AUTOCOMPLETE, $MAX_PEDIGREE_GENERATIONS, $TEXT_DIRECTION, $WT_IMAGES, $controller, $WT_SESSION; + global $ENABLE_AUTOCOMPLETE, $MAX_PEDIGREE_GENERATIONS, $WT_IMAGES, $controller, $WT_SESSION; require_once WT_ROOT.WT_MODULES_DIR.'clippings/clippings_ctrl.php'; require_once WT_ROOT.'includes/functions/functions_export.php'; diff --git a/modules_v3/family_nav/module.php b/modules_v3/family_nav/module.php index f26a3f8caf..bdc9642673 100644 --- a/modules_v3/family_nav/module.php +++ b/modules_v3/family_nav/module.php @@ -76,7 +76,7 @@ class family_nav_WT_Module extends WT_Module implements WT_Module_Sidebar { // Start Family Nav Table ---------------------------- echo '<table class="nav_content">'; - global $WT_IMAGES, $spouselinks, $parentlinks, $TEXT_DIRECTION; + global $WT_IMAGES, $spouselinks, $parentlinks; $personcount=0; $families = $controller->record->getChildFamilies(); @@ -534,7 +534,7 @@ class family_nav_WT_Module extends WT_Module implements WT_Module_Sidebar { function print_pedigree_person_nav($pid, $style=1, $count=0, $personcount="1") { global $HIDE_LIVE_PEOPLE, $SHOW_LIVING_NAMES, $SCRIPT_NAME, $GEDCOM; global $SHOW_HIGHLIGHT_IMAGES, $bwidth, $bheight, $PEDIGREE_FULL_DETAILS, $SHOW_PEDIGREE_PLACES; - global $TEXT_DIRECTION, $DEFAULT_PEDIGREE_GENERATIONS, $OLD_PGENS, $talloffset, $PEDIGREE_LAYOUT, $MEDIA_DIRECTORY; + global $DEFAULT_PEDIGREE_GENERATIONS, $OLD_PGENS, $talloffset, $PEDIGREE_LAYOUT, $MEDIA_DIRECTORY; global $WT_IMAGES, $ABBREVIATE_CHART_LABELS, $USE_MEDIA_VIEWER; global $chart_style, $box_width, $generations, $show_spouse, $show_full; global $CHART_BOX_TAGS, $SHOW_LDS_AT_GLANCE, $PEDIGREE_SHOW_GENDER; @@ -677,7 +677,7 @@ class family_nav_WT_Module extends WT_Module implements WT_Module_Sidebar { $hasChildren = true; } $persons="Yes"; - $spouselinks .= "<ul class=\"clist ".$TEXT_DIRECTION."\">"; + $spouselinks .= "<ul class=\"clist\">"; $spouselinks .= "<li class=\"flyout3\">"; $spouselinks .= "<a href=\"".$child->getHtmlUrl()."\">"; $spouselinks .= $child->getFullName(); diff --git a/modules_v3/faq/module.php b/modules_v3/faq/module.php index 9feccc7d73..983f44135f 100644 --- a/modules_v3/faq/module.php +++ b/modules_v3/faq/module.php @@ -98,8 +98,6 @@ class faq_WT_Module extends WT_Module implements WT_Module_Block, WT_Module_Conf // Action from the configuration page private function edit() { - global $TEXT_DIRECTION; - require_once WT_ROOT.'includes/functions/functions_edit.php'; if (safe_POST_bool('save')) { @@ -377,7 +375,7 @@ class faq_WT_Module extends WT_Module implements WT_Module_Block, WT_Module_Conf foreach ($faqs as $faq) { echo '<tr>'; // NOTE: Print the position of the current item - echo '<td class="descriptionbox width20 $TEXT_DIRECTION">'; + echo '<td class="descriptionbox width20">'; echo WT_I18N::translate('Position item'), ': ', $faq->block_order, ', '; if ($faq->gedcom_id==null) { echo WT_I18N::translate('All'); diff --git a/modules_v3/gedcom_favorites/module.php b/modules_v3/gedcom_favorites/module.php index 9e325b16cf..bc196094b1 100644 --- a/modules_v3/gedcom_favorites/module.php +++ b/modules_v3/gedcom_favorites/module.php @@ -43,7 +43,7 @@ class gedcom_favorites_WT_Module extends WT_Module implements WT_Module_Block { // Implement class WT_Module_Block public function getBlock($block_id, $template=true, $cfg=null) { - global $WT_IMAGES, $ctype, $TEXT_DIRECTION; + global $WT_IMAGES, $ctype; global $show_full, $PEDIGREE_FULL_DETAILS, $BROWSERTYPE, $ENABLE_AUTOCOMPLETE; self::updateSchema(); // make sure the favorites table has been created @@ -142,7 +142,7 @@ class gedcom_favorites_WT_Module extends WT_Module implements WT_Module_Block { $cellSpacing = '3px'; } if ($userfavs) { - $content .= "<table width=\"{$tableWidth}\" style=\"border:none\" cellspacing=\"{$cellSpacing}\" class=\"center $TEXT_DIRECTION\">"; + $content .= "<table width=\"{$tableWidth}\" style=\"border:none\" cellspacing=\"{$cellSpacing}\" class=\"center\">"; foreach ($userfavs as $key=>$favorite) { if (isset($favorite['id'])) $key=$favorite['id']; $removeFavourite = "<a class=\"font9\" href=\"index.php?ctype={$ctype}&action=deletefav&fv_id={$key}\" onclick=\"return confirm('".WT_I18N::translate('Are you sure you want to remove this item from your list of Favorites?')."');\">".WT_I18N::translate('Remove')."</a><br />"; @@ -204,7 +204,7 @@ class gedcom_favorites_WT_Module extends WT_Module implements WT_Module_Block { $content .= "<input type=\"hidden\" name=\"action\" value=\"addfav\" />"; $content .= "<input type=\"hidden\" name=\"ctype\" value=\"$ctype\" />"; $content .= "<input type=\"hidden\" name=\"ged\" value=\"".WT_GEDCOM."\" />"; - $content .= "<table width=\"{$tableWidth}\" style=\"border:none\" cellspacing=\"{$cellSpacing}\" class=\"center {$TEXT_DIRECTION}\">"; + $content .= "<table width=\"{$tableWidth}\" style=\"border:none\" cellspacing=\"{$cellSpacing}\" class=\"center\">"; $content .= "<tr><td>".WT_I18N::translate('Enter a Person, Family, or Source ID')." <br />"; $content .= "<input class=\"pedigree_form\" type=\"text\" name=\"gid\" id=\"gid{$uniqueID}\" size=\"5\" value=\"\" />"; diff --git a/modules_v3/googlemap/pedigree_map.php b/modules_v3/googlemap/pedigree_map.php index 961b2fb423..6422ab78db 100644 --- a/modules_v3/googlemap/pedigree_map.php +++ b/modules_v3/googlemap/pedigree_map.php @@ -35,7 +35,7 @@ if (!defined('WT_WEBTREES')) { require WT_ROOT.WT_MODULES_DIR.'googlemap/defaultconfig.php'; -global $PEDIGREE_GENERATIONS, $MAX_PEDIGREE_GENERATIONS, $ENABLE_AUTOCOMPLETE, $SHOW_HIGHLIGHT_IMAGES, $WT_IMAGES, $TEXT_DIRECTION; +global $PEDIGREE_GENERATIONS, $MAX_PEDIGREE_GENERATIONS, $ENABLE_AUTOCOMPLETE, $SHOW_HIGHLIGHT_IMAGES, $WT_IMAGES; // Default is show for both of these. @@ -85,7 +85,7 @@ echo '<h2>', $controller->getPageTitle(), '</h2>'; <form name="people" method="get" action="module.php?ged=<?php echo WT_GEDURL; ?>&mod=googlemap&mod_action=pedigree_map"> <input type="hidden" name="mod" value="googlemap" /> <input type="hidden" name="mod_action" value="pedigree_map" /> - <table class="pedigree_table <?php echo $TEXT_DIRECTION; ?>" width="555"> + <table class="pedigree_table" width="555"> <tr> <td class="descriptionbox wrap"> <?php echo WT_I18N::translate('Root Person ID'), help_link('rootid'); ?> diff --git a/modules_v3/login_block/module.php b/modules_v3/login_block/module.php index 6f1d444b44..7a7649cef2 100644 --- a/modules_v3/login_block/module.php +++ b/modules_v3/login_block/module.php @@ -41,8 +41,6 @@ class login_block_WT_Module extends WT_Module implements WT_Module_Block { // Implement class WT_Module_Block public function getBlock($block_id, $template=true, $cfg=null) { - global $TEXT_DIRECTION; - $id=$this->getName().$block_id; $class=$this->getName().'_block'; if (WT_USER_ID) { @@ -73,23 +71,23 @@ class login_block_WT_Module extends WT_Module implements WT_Module_Block { // Row 1: Userid $content .= "<tr><td "; $content .= write_align_with_textdir_check("right", true); - $content .= " class=\"{$TEXT_DIRECTION} wrap width50\">"; + $content .= " class=\"wrap width50\">"; $content .= WT_I18N::translate('Username'); $content .= help_link('username'); $content .= "</td><td "; $content .= write_align_with_textdir_check("left", true); - $content .= " class=\"{$TEXT_DIRECTION}\"><input type=\"text\" name=\"username\" size=\"20\" class=\"formField\" />"; + $content .= "><input type=\"text\" name=\"username\" size=\"20\" class=\"formField\" />"; $content .= "</td></tr>"; // Row 2: Password $content .= "<tr><td "; $content .= write_align_with_textdir_check("right", true); - $content .= " class=\"{$TEXT_DIRECTION} wrap width50\">"; + $content .= " wrap width50\">"; $content .= WT_I18N::translate('Password'); $content .= help_link('password'); $content .= "</td><td "; $content .= write_align_with_textdir_check("left", true); - $content .= " class=\"{$TEXT_DIRECTION}\"><input type=\"password\" name=\"password\" size=\"20\" class=\"formField\" />"; + $content .= "><input type=\"password\" name=\"password\" size=\"20\" class=\"formField\" />"; $content .= "</td></tr>"; // Row 3: "Login" link @@ -102,12 +100,12 @@ class login_block_WT_Module extends WT_Module implements WT_Module_Block { // Row 4: "Request Account" link $content .= "<tr><td "; $content .= write_align_with_textdir_check("right", true); - $content .= " class=\"{$TEXT_DIRECTION} wrap width50\"><br />"; + $content .= " class=\"wrap width50\"><br />"; $content .= WT_I18N::translate('No account?'); $content .= help_link('new_user'); $content .= "</td><td "; $content .= write_align_with_textdir_check("left", true); - $content .= " class=\"{$TEXT_DIRECTION}\"><br />"; + $content .= "><br>"; $content .= "<a href=\"login_register.php?action=register\">"; $content .= WT_I18N::translate('Request new user account'); $content .= "</a>"; @@ -116,12 +114,12 @@ class login_block_WT_Module extends WT_Module implements WT_Module_Block { // Row 5: "Lost Password" link $content .= "<tr><td "; $content .= write_align_with_textdir_check("right", true); - $content .= " class=\"{$TEXT_DIRECTION} wrap width50\">"; + $content .= " wrap width50\">"; $content .= WT_I18N::translate('Lost your password?'); $content .= help_link('new_password'); $content .= "</td><td "; $content .= write_align_with_textdir_check("left", true); - $content .= " class=\"{$TEXT_DIRECTION}\">"; + $content .= ">"; $content .= "<a href=\"login_register.php?action=pwlost\">"; $content .= WT_I18N::translate('Request new password'); $content .= "</a>"; diff --git a/modules_v3/stories/module.php b/modules_v3/stories/module.php index dd95332b82..802ebae4ff 100644 --- a/modules_v3/stories/module.php +++ b/modules_v3/stories/module.php @@ -173,7 +173,7 @@ class stories_WT_Module extends WT_Module implements WT_Module_Block, WT_Module_ // Action from the configuration page private function edit() { - global $TEXT_DIRECTION, $ENABLE_AUTOCOMPLETE; + global $ENABLE_AUTOCOMPLETE; require_once WT_ROOT.'includes/functions/functions_edit.php'; if (WT_USER_CAN_EDIT) { @@ -272,7 +272,7 @@ class stories_WT_Module extends WT_Module implements WT_Module_Block, WT_Module_ echo '<th>', WT_I18N::translate('Show this block for which languages?'), '</th>'; echo '</tr>'; echo '<tr>'; - echo '<td class="optionbox ', $TEXT_DIRECTION, '">'; + echo '<td class="optionbox">'; echo '<input type="text" name="xref" id="pid" size="4" value="'.$xref.'" />'; print_findindi_link("pid", "xref"); if ($xref) { @@ -283,7 +283,7 @@ class stories_WT_Module extends WT_Module implements WT_Module_Block, WT_Module_ } echo '</td>'; $languages=get_block_setting($block_id, 'languages'); - echo '<td class="optionbox ', $TEXT_DIRECTION, '">'; + echo '<td class="optionbox">'; echo edit_language_checkboxes('lang_', $languages); echo '</td></tr></table>'; echo '<p><input type="submit" value="', WT_I18N::translate('Save'), '" tabindex="5"/>'; @@ -321,7 +321,7 @@ class stories_WT_Module extends WT_Module implements WT_Module_Block, WT_Module_ } private function config() { - global $WT_IMAGES, $TEXT_DIRECTION; + global $WT_IMAGES; if (WT_USER_GEDCOM_ADMIN) { @@ -372,7 +372,7 @@ class stories_WT_Module extends WT_Module implements WT_Module_Block, WT_Module_ } private function show_list() { - global $controller, $WT_IMAGES, $TEXT_DIRECTION; + global $controller, $WT_IMAGES; $controller=new WT_Controller_Base(); $controller->setPageTitle($this->getTitle()); @@ -124,7 +124,7 @@ echo '<div id="note-tabs"> echo '<div id="note-edit">'; echo '<table class="facts_table">'; - echo '<tr><td align="left" class="descriptionbox ', $TEXT_DIRECTION, '">'; + echo '<tr><td align="left" class="descriptionbox">'; if (WT_USER_CAN_EDIT) { echo '<a href="#" onclick="edit_note()" title="', WT_I18N::translate('Edit'), '">'; if (!empty($WT_IMAGES['note']) && $SHOW_FACT_ICONS) echo '<img src="', $WT_IMAGES['note'], '" alt="" align="top" />'; @@ -136,7 +136,7 @@ echo '<div id="note-tabs"> if (!empty($WT_IMAGES['note']) && $SHOW_FACT_ICONS) echo '<img src="', $WT_IMAGES['note'], '" alt="" align="top" />'; echo WT_I18N::translate('Shared note'); } - echo '</td><td class="optionbox wrap width80 ', $TEXT_DIRECTION, '">'; + echo '</td><td class="optionbox wrap width80">'; echo $note; echo "<br />"; echo "</td></tr>"; diff --git a/pedigree.php b/pedigree.php index dd5e7f363b..6118c0d319 100644 --- a/pedigree.php +++ b/pedigree.php @@ -54,7 +54,7 @@ echo '<h2>', WT_I18N::translate('Pedigree tree of %s', $controller->name), help_ </script> </td><td width="50px"> </td><td><form name="people" id="people" method="get" action="?"> <input type="hidden" name="show_full" value="<?php echo $controller->show_full; ?>" /> - <table class="list_table <?php echo $TEXT_DIRECTION; ?>" width="500" align="center"> + <table class="list_table" width="500" align="center"> <tr> <td colspan="4" class="topbottombar" style="text-align:center; "> <?php echo WT_I18N::translate('Options:'); ?> diff --git a/placelist.php b/placelist.php index 874b55a6b4..72704cd5fe 100644 --- a/placelist.php +++ b/placelist.php @@ -218,7 +218,7 @@ if ($display=='hierarchy') { // -- echo the array foreach ($placelist as $key => $value) { if ($i==0) { - echo '<table id="place_hierarchy" class="list_table ', $TEXT_DIRECTION, '" '; + echo '<table id="place_hierarchy" class="list_table" '; echo '><tr><td class="list_label" '; if ($ct1 > 20) { echo 'colspan="3"'; @@ -352,7 +352,7 @@ if ($display=='list') { if (count($placelist)==0) { echo '<b>', WT_I18N::translate('No results found.'), '</b><br />'; } else { - echo '<table class="list_table ', $TEXT_DIRECTION, '"'; + echo '<table class="list_table"'; echo '><tr><td class="list_label" '; $ct = count($placelist); echo ' colspan="', $ct>20 ? 3 : 2, '"> '; diff --git a/relationship.php b/relationship.php index 69cb0d139b..5f81e6eb0f 100644 --- a/relationship.php +++ b/relationship.php @@ -121,7 +121,7 @@ function paste_id(value) { <form name="people" method="get" action="relationship.php"> <input type="hidden" name="path_to_find" value="<?php echo $path_to_find; ?>" /> - <table class="list_table <?php echo $TEXT_DIRECTION; ?>" style="text-align:<?php echo ($TEXT_DIRECTION=="ltr"?"left":"right"); ?>; margin:0;"> + <table class="list_table"> <!-- // Relationship header --> <tr><td colspan="2" class="topbottombar center"> diff --git a/reportengine.php b/reportengine.php index b508aa5fcd..5239b39b6c 100644 --- a/reportengine.php +++ b/reportengine.php @@ -197,7 +197,7 @@ elseif ($action=='setup') { echo '<input type="hidden" name="action" value="run" />'; echo '<input type="hidden" name="report" value="', $report, '" />'; - echo '<table class="facts_table width50 center ', $TEXT_DIRECTION, ' ">'; + echo '<table class="facts_table width50 center">'; echo '<tr><td class="topbottombar" colspan="2">', WT_I18N::translate('Enter report values'), '</td></tr>'; echo '<tr><td class="descriptionbox width30 wrap">', WT_I18N::translate('Selected Report'), '</td><td class="optionbox">', $report_array['title'], '<br/>', $report_array['description'], '</td></tr>'; diff --git a/search_advanced.php b/search_advanced.php index e77dc899bd..30e5b9a3dc 100644 --- a/search_advanced.php +++ b/search_advanced.php @@ -133,7 +133,7 @@ echo WT_JS_END; <form method="post" name="searchform" onsubmit="return checknames(this);" action="search_advanced.php"> <input type="hidden" name="action" value="<?php echo $controller->action; ?>" /> <input type="hidden" name="isPostBack" value="true" /> -<table id="field_table" class="list_table <?php echo $TEXT_DIRECTION; ?>" width="35%" border="0"> +<table id="field_table" class="list_table" width="35%" border="0"> <tr> <td colspan="4" class="facts_label03" style="text-align:center;"> <?php echo WT_I18N::translate('Advanced search'); ?> diff --git a/themes/_administration/style.css b/themes/_administration/style.css index 3056e354e8..6ffbc70f23 100644 --- a/themes/_administration/style.css +++ b/themes/_administration/style.css @@ -38,8 +38,6 @@ td {vertical-align:top;} .warning, .error, .red {font-weight:bold; color:red;} .accepted, a.accepted {font-weight:bold; color:green;} .center {text-align:center;} -.ltr {text-align:left;} -.rtl {text-align:right;} .nowrap {white-space:nowrap;} .indent {padding-left:15px;} html[dir='rtl'] .indent {padding-right:15px;} diff --git a/themes/clouds/style.css b/themes/clouds/style.css index 7b6ae7b859..441d0c9474 100644 --- a/themes/clouds/style.css +++ b/themes/clouds/style.css @@ -276,7 +276,7 @@ html[dir='rtl'] .makeMenu li ul li {text-align:right;} .facts_label .date, .facts_label03, .facts_table h2, -.facts_table .ltr .descriptionbox a, +.facts_table .descriptionbox a, .blockcontent .facts_label { background:#95B8E0; color: #003399; diff --git a/themes/colors/css/aquamarine.css b/themes/colors/css/aquamarine.css index 2852f242df..1bd420feae 100644 --- a/themes/colors/css/aquamarine.css +++ b/themes/colors/css/aquamarine.css @@ -47,7 +47,7 @@ .facts_label .date, .facts_label03, .facts_table h2, -.facts_table .ltr .descriptionbox a, +.facts_table .descriptionbox a, .blockcontent .facts_label { background:#00A9C7; diff --git a/themes/colors/css/ash.css b/themes/colors/css/ash.css index 06880f95ae..5562df56cb 100644 --- a/themes/colors/css/ash.css +++ b/themes/colors/css/ash.css @@ -47,7 +47,7 @@ .facts_label .date, .facts_label03, .facts_table h2, -.facts_table .ltr .descriptionbox a, +.facts_table .descriptionbox a, .blockcontent .facts_label { background:#9DA5B4; diff --git a/themes/colors/css/belgianchocolate.css b/themes/colors/css/belgianchocolate.css index 582049c9a5..785c3ba6f5 100644 --- a/themes/colors/css/belgianchocolate.css +++ b/themes/colors/css/belgianchocolate.css @@ -47,7 +47,7 @@ .facts_label .date, .facts_label03, .facts_table h2, -.facts_table .ltr .descriptionbox a, +.facts_table .descriptionbox a, .blockcontent .facts_label { background:#af2604; diff --git a/themes/colors/css/bluelagoon.css b/themes/colors/css/bluelagoon.css index 30146956b5..6688e51c1f 100644 --- a/themes/colors/css/bluelagoon.css +++ b/themes/colors/css/bluelagoon.css @@ -47,7 +47,7 @@ .facts_label .date, .facts_label03, .facts_table h2, -.facts_table .ltr .descriptionbox a, +.facts_table .descriptionbox a, .blockcontent .facts_label { background:#5ab5ee; diff --git a/themes/colors/css/bluemarine.css b/themes/colors/css/bluemarine.css index f9456e8124..a62cd30ac9 100644 --- a/themes/colors/css/bluemarine.css +++ b/themes/colors/css/bluemarine.css @@ -47,7 +47,7 @@ .facts_label .date, .facts_label03, .facts_table h2, -.facts_table .ltr .descriptionbox a, +.facts_table .descriptionbox a, .blockcontent .facts_label { background:#6598cb; diff --git a/themes/colors/css/coffeeandcream.css b/themes/colors/css/coffeeandcream.css index 72972b606d..cb42fbbab1 100644 --- a/themes/colors/css/coffeeandcream.css +++ b/themes/colors/css/coffeeandcream.css @@ -47,7 +47,7 @@ .facts_label .date, .facts_label03, .facts_table h2, -.facts_table .ltr .descriptionbox a, +.facts_table .descriptionbox a, .blockcontent .facts_label { background:#93724f; diff --git a/themes/colors/css/coldday.css b/themes/colors/css/coldday.css index cc648a7120..17f7935882 100644 --- a/themes/colors/css/coldday.css +++ b/themes/colors/css/coldday.css @@ -47,7 +47,7 @@ .facts_label .date, .facts_label03, .facts_table h2, -.facts_table .ltr .descriptionbox a, +.facts_table .descriptionbox a, .blockcontent .facts_label { background:#5997E3; diff --git a/themes/colors/css/colors.css b/themes/colors/css/colors.css index 0022a3092c..9c3fc8c635 100644 --- a/themes/colors/css/colors.css +++ b/themes/colors/css/colors.css @@ -434,11 +434,11 @@ height:auto; width:99%; } -#random_picture .blockheader .ltr { +#random_picture .blockheader { text-align:left; } -#random_picture .blockheader .rtl { +#random_picture .blockheader { text-align:right; } @@ -1157,10 +1157,6 @@ font-weight:bold; font-weight:bold; } -form .rtl { -text-align:right; -} - /* Standard Markup */ .favmenuitem { @@ -1223,15 +1219,6 @@ white-space:nowrap; text-align:left; } -.ltr { -text-align: left; -} - -.rtl { -text-align:right; -direction: rtl; -} - .width10 {width:10%;} .width20 {width:20%;} .width25 {width:25%;} diff --git a/themes/colors/css/greenbeam.css b/themes/colors/css/greenbeam.css index 8664b1b594..e56efc066f 100644 --- a/themes/colors/css/greenbeam.css +++ b/themes/colors/css/greenbeam.css @@ -47,7 +47,7 @@ .facts_label .date, .facts_label03, .facts_table h2, -.facts_table .ltr .descriptionbox a, +.facts_table .descriptionbox a, .blockcontent .facts_label { background:#04AF23; diff --git a/themes/colors/css/mediterranio.css b/themes/colors/css/mediterranio.css index d4d6dfb1da..21f5faa7b5 100644 --- a/themes/colors/css/mediterranio.css +++ b/themes/colors/css/mediterranio.css @@ -47,7 +47,7 @@ .facts_label .date, .facts_label03, .facts_table h2, -.facts_table .ltr .descriptionbox a, +.facts_table .descriptionbox a, .blockcontent .facts_label { background:#D23014; diff --git a/themes/colors/css/mercury.css b/themes/colors/css/mercury.css index b5aa5e835d..1ba035ae69 100644 --- a/themes/colors/css/mercury.css +++ b/themes/colors/css/mercury.css @@ -47,7 +47,7 @@ .facts_label .date, .facts_label03, .facts_table h2, -.facts_table .ltr .descriptionbox a, +.facts_table .descriptionbox a, .blockcontent .facts_label { background:#C6C8D2; diff --git a/themes/colors/css/nocturnal.css b/themes/colors/css/nocturnal.css index f17d82009d..9fba61137d 100644 --- a/themes/colors/css/nocturnal.css +++ b/themes/colors/css/nocturnal.css @@ -47,7 +47,7 @@ .facts_label .date, .facts_label03, .facts_table h2, -.facts_table .ltr .descriptionbox a, +.facts_table .descriptionbox a, .blockcontent .facts_label { background:#6A78BE; diff --git a/themes/colors/css/olivia.css b/themes/colors/css/olivia.css index 5ab5012bf2..1608d72a21 100644 --- a/themes/colors/css/olivia.css +++ b/themes/colors/css/olivia.css @@ -47,7 +47,7 @@ .facts_label .date, .facts_label03, .facts_table h2, -.facts_table .ltr .descriptionbox a, +.facts_table .descriptionbox a, .blockcontent .facts_label { background:#7db323; diff --git a/themes/colors/css/pinkplastic.css b/themes/colors/css/pinkplastic.css index 04809cb3b5..46f616dae2 100644 --- a/themes/colors/css/pinkplastic.css +++ b/themes/colors/css/pinkplastic.css @@ -47,7 +47,7 @@ .facts_label .date, .facts_label03, .facts_table h2, -.facts_table .ltr .descriptionbox a, +.facts_table .descriptionbox a, .blockcontent .facts_label { background:#F75993; diff --git a/themes/colors/css/shinytomato.css b/themes/colors/css/shinytomato.css index 1372fba9ed..76846998a2 100644 --- a/themes/colors/css/shinytomato.css +++ b/themes/colors/css/shinytomato.css @@ -47,7 +47,7 @@ .facts_label .date, .facts_label03, .facts_table h2, -.facts_table .ltr .descriptionbox a, +.facts_table .descriptionbox a, .blockcontent .facts_label { background:#F96058; diff --git a/themes/colors/css/tealtop.css b/themes/colors/css/tealtop.css index 3ee3bbf9ea..081aa47bb6 100644 --- a/themes/colors/css/tealtop.css +++ b/themes/colors/css/tealtop.css @@ -47,7 +47,7 @@ .facts_label .date, .facts_label03, .facts_table h2, -.facts_table .ltr .descriptionbox a, +.facts_table .descriptionbox a, .blockcontent .facts_label { background:#51B389; diff --git a/themes/fab/style.css b/themes/fab/style.css index 0b30953214..2b5859eea1 100644 --- a/themes/fab/style.css +++ b/themes/fab/style.css @@ -744,16 +744,6 @@ left:auto; opacity:0.67; } -/* Text direction */ -.ltr { - text-align:left; -} - -.rtl { - text-align:right; - direction:rtl; -} - /* Width settings */ .width10 { width:10%; diff --git a/themes/minimal/style.css b/themes/minimal/style.css index 5614bb60f5..87b2e32ac7 100644 --- a/themes/minimal/style.css +++ b/themes/minimal/style.css @@ -1037,16 +1037,6 @@ left:auto; opacity: 0.67; } -/* Text direction */ -.ltr { - text-align: left; -} - -.rtl { - text-align: right; - direction: rtl; -} - /* Width settings */ .width10 { width: 10%; diff --git a/themes/webtrees/style.css b/themes/webtrees/style.css index 8ebaabc6d7..acf59859bf 100644 --- a/themes/webtrees/style.css +++ b/themes/webtrees/style.css @@ -923,16 +923,6 @@ html[dir='rtl'] .header_search { opacity:0.67; } -/* Text direction */ -.ltr { - text-align:left; -} - -.rtl { - text-align:right; - direction:rtl; -} - /* Width settings */ .width10 { width:10%; diff --git a/themes/xenea/style.css b/themes/xenea/style.css index 85a4f9cacf..62d9855c4e 100644 --- a/themes/xenea/style.css +++ b/themes/xenea/style.css @@ -1284,10 +1284,6 @@ h4 { white-space:nowrap; } -.ltr { - text-align:left; -} - .vmiddle { vertical-align:middle; } @@ -1301,16 +1297,6 @@ h4 { opacity:0.67; } -/* Text direction */ -.ltr { - text-align:left; -} - -.rtl { - text-align:right; - direction:rtl; -} - /* Width settings */ .width10 { width:10%; diff --git a/timeline.php b/timeline.php index 4f808ba58c..59f1629a6e 100644 --- a/timeline.php +++ b/timeline.php @@ -244,7 +244,7 @@ document.onmouseup = MU; <?php $controller->checkPrivacy(); ?> -<table class="<?php echo $TEXT_DIRECTION; ?>"> +<table> <tr> <?php $i=0; |
