Joomla 2.5 Templates – $this->direction Updated on August 16, 2021 by Brad Markle 0 Minutes, 38 Seconds to Read The 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="https://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="https://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. Share this Article Related Articles How to Use the Free Mini Frontpage Extension for Joomla 4.0 How to Change a Joomla 2.5 User’s Email Address How to Configure Joomla 2.5 to Send Email Using SMTP How to Edit a Joomla 3 Template How to install Phoca Gallery for Joomla 2.5 Creating a Menu Item for your Joomla 3 Component Changing Email Settings in Joomla 3.1 Using the Redirect Manager in Joomla 3.1 How to add Bootstrap to a Joomla 3.1 Template How to Use Bootstrap 5.0 Alerts in Joomla 4.0