Language & Templates

Language
ALL files related to the default language are found in the following directory:

content/language/*
Charset
Character encoding preferences are found in the following file:

content/language/global.php
General Language
ALL general language is found in the PHP files in the above folder:

content/language/2.0.php (Added in 2.0)
content/language/admin.php (Admin)
content/language/emails.php (Email Subjects)
content/language/global.php (Global)
content/language/js.php (Javascript)
content/language/public.php (Frontend)

Use a good text editor to edit, such as CudaText. DO NOT edit in a word processor.

All apostrophes MUST be escaped. Example:

'it\'s christmas time',
Timezones
Timezone text is editable in the following file:

control/timezones.php

DO NOT remove the array keys. Example: Europe/London. If you remove these, the system will fail.
Email Template Language
All the language in the emails is in the email template txt files:

content/language/email-templates/*.txt

Again, use a good text editor to edit. DO NOT remove any data between braces {}.

The html wrapper is "content/language/email-templates/html-wrapper.html" for HTML emails.
Language Packs
Available language packs can be found on the Maian Guardian website.

If you would like to submit a new language pack, please email it to us here.
Templates / Integration
Maian Guardian uses the Twitter Boostrap Web Framework and Font Awesome. You can find more information and tutorials on the relevant website.You'll need a working knowledge of Twitter Bootstrap if you want to make extensive template changes.

Maian Guardian can be adapted into any existing web layout. DO NOT use PHP includes or iframes, it's bad practice. Edit the templates correctly.
Responsive System
Maian Guardian is a responsive system for better performance on mobile phones and tablets. This means that the layout changes dramatically when the viewport changes. For example, viewing on smaller screens (mobiles), where the viewport can be 320px max as opposed to browsers with higher screen areas. The default layout might not quite work for your own content, so adjustments may be required. You'll need a good understanding of responsive practices to make changes.
Platform Detection
Maian Guardian uses the Mobile Detection PHP class. In any PHP template files you can use the following:

constant MSW_PLATFORM_DETECTION = Has values pc, tablet or mobile
object $this->PLAT_DETECT = For any available Mobile Detect class functions. See Mobile Detect website. Example:

if ($this->PLAT_DETECT->isMobile()) {
// do something..
}
Themes
Maian Guardian is theme based. Each theme is located in the 'content' folder and is prefixed '_theme'. The default theme is '_theme_default'. So that upgrades don't break your layout, you should copy this folder and update the admin settings for the new theme. Your theme MUST start '_theme' for the system to pick it up. More default themes may be added in future versions.
Colours & Appearance
For many people, changing the colours and a few default images is good enough. Maian Guardian utilises Cascading Stylesheets for colour display. ALL of the colours you see for the default design are in the stylesheets. Maian Guardian has the following stylesheet locations and all the stylesheets can be edited in a good text editor.

content/*theme*/css/*.css (Frontend)
admin/content/css/*.css (Admin)

Edit these and choose whichever colours you want.
Images
Images are located in the following folders:

content/*theme*/images/ (Frontend)
admin/content/images/ (Admin)

Note that most images are rendered via the Font Awesome class.