Joomla 2.5 Templates - $this->direction
Written by Brad MarkleThe last use of $this in the Joomla 2.5 Beez2 template that will review is $this->direction. We can see it being used in the following section of code in the template's PHP file:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>" >
When we look at the result of the following code in our Joomla 2.5 site's HTML, it looks like the following:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es-es" lang="es-es" dir="ltr" >
As you can see, $this->direction specifies the direction of text in the template. In our example, the value is ltr, left to right.
Like this Article?
Tweet
Joomla 2.5 Template Development Tutorial
Latest Questions
If you need some help, submit your question to our Community!
We guarantee a response within 60 minutes (8am - 9pm EST, Monday - Friday)
Recent QuestionsNeed more Help?
Search
Ask the Community!
Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.
Current Customers
| Chat: | Click to Chat Now | E-mail: | support@InMotionHosting.com |
|---|---|---|---|
| Call: | 888-321-HOST (4678) | Ticket: | Submit a Support Ticket |

