diff options
| author | fisharebest <fisharebest@gmail.com> | 2011-11-19 13:02:05 +0000 |
|---|---|---|
| committer | fisharebest <fisharebest@gmail.com> | 2011-11-19 13:02:05 +0000 |
| commit | 36d622e2f0357189c696693bb232f60bc03db5bd (patch) | |
| tree | e80770ec4a95da77e07898190649f92b56a94574 /includes | |
| parent | f85972b3daea251aa15187e3b60d7d2b94493c57 (diff) | |
| download | webtrees-36d622e2f0357189c696693bb232f60bc03db5bd.tar.gz webtrees-36d622e2f0357189c696693bb232f60bc03db5bd.tar.bz2 webtrees-36d622e2f0357189c696693bb232f60bc03db5bd.zip | |
Remove classes .rtl and .lrt - these exist to correct the alignment when we apply "center" at a parent element. We have now removed the "center", and no longer need this markup.
Diffstat (limited to 'includes')
| -rw-r--r-- | includes/functions/functions_charts.php | 2 | ||||
| -rw-r--r-- | includes/functions/functions_edit.php | 22 | ||||
| -rw-r--r-- | includes/functions/functions_mediadb.php | 53 | ||||
| -rw-r--r-- | includes/functions/functions_print.php | 14 | ||||
| -rw-r--r-- | includes/functions/functions_print_lists.php | 22 | ||||
| -rw-r--r-- | includes/media_reorder.php | 6 |
6 files changed, 56 insertions, 63 deletions
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 { |
