| 50 |
return t("Bidi filter"); |
return t("Bidi filter"); |
| 51 |
case "process": |
case "process": |
| 52 |
return _bidi_filter_process($text); |
return _bidi_filter_process($text); |
|
case "settings": |
|
|
return _bidi_filter_settings($text); |
|
| 53 |
default: |
default: |
| 54 |
return $text; |
return $text; |
| 55 |
} |
} |
| 95 |
// should this return a bool instead? |
// should this return a bool instead? |
| 96 |
if ($english || $arabic) { |
if ($english || $arabic) { |
| 97 |
if ($english > $arabic) |
if ($english > $arabic) |
| 98 |
return ' class="left2right"'; |
return ' dir="LTR" '; |
| 99 |
else |
else |
| 100 |
return ' class="right2left"'; |
return ' dir="RTL" '; |
| 101 |
} |
} |
| 102 |
else { |
else { |
| 103 |
return ""; |
return ""; |
| 218 |
return $output; |
return $output; |
| 219 |
} |
} |
| 220 |
|
|
|
/** |
|
|
* Filter settings. |
|
|
* |
|
|
* @return |
|
|
* HTML form for filter settings. |
|
|
*/ |
|
|
function _bidi_filter_settings() { |
|
|
return form_group(t("Bidi filter"), t("automatic bidi")); |
|
|
} |
|
|
|
|
| 221 |
?> |
?> |