Book Image

OpenCart Theme and Module Development

By : Rupak Nepali
Book Image

OpenCart Theme and Module Development

By: Rupak Nepali

Overview of this book

Table of Contents (13 chapters)
OpenCart Theme and Module Development
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Checklist for the header section


The checklist for the header consists of what we should not forget to include in the header while creating the new theme:

Take care of the direction and the language with <html dir="<?php echo $direction; ?>" lang="<?php echo $lang; ?>">. The direction and language are controlled from the language folder file. For example, for the English language, you can see the settings at catalog/language/english/english.php. At the top, you will see code like this, which controls the direction and the language:

<?php
// Locale
$_['code']                  = 'en';
$_['direction']             = 'ltr';

When the document is rendered, you will see something like this code:

<html dir="ltr" lang="en">

Each page title is different from the others, so we should take care to ensure that the title is written as <title><?php echo $title; ?></title>. Then, it becomes a different title as per the page. You can see the different title on each...