diff options
| author | Łukasz Wilenski <wooc@gazeta.pl> | 2011-07-19 18:31:41 +0000 |
|---|---|---|
| committer | Łukasz Wilenski <wooc@gazeta.pl> | 2011-07-19 18:31:41 +0000 |
| commit | 3bae2dd3c1c5a78e3ee8a78e2f55760817ef19d6 (patch) | |
| tree | 0c73ff8a6686e97c07bc73c2336da57cbd472eba /index_edit.php | |
| parent | d767a361970a4b58dc64ec5e833aa3bcf4b93198 (diff) | |
| download | webtrees-3bae2dd3c1c5a78e3ee8a78e2f55760817ef19d6.tar.gz webtrees-3bae2dd3c1c5a78e3ee8a78e2f55760817ef19d6.tar.bz2 webtrees-3bae2dd3c1c5a78e3ee8a78e2f55760817ef19d6.zip | |
Bug #789994 - RTL home and my page configuration forms - arrow icons wrong direction
Diffstat (limited to 'index_edit.php')
| -rw-r--r-- | index_edit.php | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/index_edit.php b/index_edit.php index a089c3e3f9..140482b810 100644 --- a/index_edit.php +++ b/index_edit.php @@ -61,12 +61,21 @@ if (!isset($index)) $index=1; $block_id=safe_REQUEST($_REQUEST, 'block_id'); // Define all the icons we're going to use -$IconUarrow = "<img src=\"".$WT_IMAGES['uarrow']."\" width=\"20\" height=\"20\" alt=\"\" />"; -$IconDarrow = "<img src=\"".$WT_IMAGES['darrow']."\" width=\"20\" height=\"20\" alt=\"\" />"; -$IconRarrow = "<img src=\"".$WT_IMAGES['rarrow']."\" width=\"20\" height=\"20\" alt=\"\" />"; -$IconLarrow = "<img src=\"".$WT_IMAGES['larrow']."\" width=\"20\" height=\"20\" alt=\"\" />"; -$IconRDarrow = "<img src=\"".$WT_IMAGES['rdarrow']."\" width=\"20\" height=\"20\" alt=\"\" />"; -$IconLDarrow = "<img src=\"".$WT_IMAGES['ldarrow']."\" width=\"20\" height=\"20\" alt=\"\" />"; +if($TEXT_DIRECTION=='ltr') { + $IconUarrow = '<img src="'.$WT_IMAGES['uarrow'].'" width="20" height="20" alt="" />'; + $IconDarrow = '<img src="'.$WT_IMAGES['darrow'].'" width="20" height="20" alt="" />'; + $IconRarrow = '<img src="'.$WT_IMAGES['rarrow'].'" width="20" height="20" alt="" />'; + $IconLarrow = '<img src="'.$WT_IMAGES['larrow'].'" width="20" height="20" alt="" />'; + $IconRDarrow = '<img src="'.$WT_IMAGES['rdarrow'].'" width="20" height="20" alt="" />'; + $IconLDarrow = '<img src="'.$WT_IMAGES['ldarrow'].'" width="20" height="20" alt="" />'; +} else { + $IconUarrow = '<img src="'.$WT_IMAGES['uarrow'].'" width="20" height="20" alt="" />'; + $IconDarrow = '<img src="'.$WT_IMAGES['darrow'].'" width="20" height="20" alt="" />'; + $IconRarrow = '<img src="'.$WT_IMAGES['larrow'].'" width="20" height="20" alt="" />'; + $IconLarrow = '<img src="'.$WT_IMAGES['rarrow'].'" width="20" height="20" alt="" />'; + $IconRDarrow = '<img src="'.$WT_IMAGES['ldarrow'].'" width="20" height="20" alt="" />'; + $IconLDarrow = '<img src="'.$WT_IMAGES['rdarrow'].'" width="20" height="20" alt="" />'; +} $all_blocks=array(); foreach (WT_Module::getActiveBlocks() as $name=>$block) { |
