Search
 
SCRIPT & CODE EXAMPLE
 

HTML

html if en change to ltr

<?php
$language = str_replace('_', '-', app()->getLocale());
if ($language == 'ar') {
    $dir = 'rtl';
} else {
    $dir = 'ltr';
}
?>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}" dir="<?php echo $dir; ?>">

</html>
Comment

PREVIOUS NEXT
Code Example
Html :: user cant input somethin ing text bopx 
Html :: use of extends in django 
Html :: button to return to previous page html 
Html :: What is a viewport meta tags 
Html :: tfoot renders after thead and before tbody 
Html :: default checked radio button 
Html :: how to stop button from affecting form submit in html 
Html :: borderless bootstrap table 
Html :: font awesome show password icon 
Html :: country code for continents 
Html :: how to contrast img in html 
Html :: html5 astrix for absolutely required field inside a td tag 
Html :: input cursor color 
Html :: a tag html without href 
Html :: html href click not refresh 
Html :: robots txt disallow all 
Html :: html preload images 
Html :: how to make html open link in new tab 
Html :: pyscript boilerplate 
Html :: switch page html 
Html :: como cambiar la fuente de letra en html 
Html :: html input date validation 
Html :: html website ideas 
Html :: new line html 
Html :: ordered list 
Html :: input type for website in html 
Html :: select all instances vscode 
Html :: html multiplications 
Html :: how to remove fieldset border in html 
Html :: how to change color in html 
ADD CONTENT
Topic
Content
Source link
Name
6+1 =