GSoC Template Manager

This is the code for the the project "Improvements to the Template Manager for CMS 3". I've changed the way the Template Manager functions. It is fully dynamic, has new UI, supports all the template files formats and supports all the major file operations. I've also updated the CodeMirror plugin to version 3.16. CodeMirror now supports many additional features that may prove to be very handy when editing the files. The overall aim is to dramatically reduce the effort required for editing (or even creating new ones, yes it can be done!) the templates on a live site. I've listed below the features that need to be tested.

Tracker Item - http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_id=8549&tracker_item_id=31266


__Pull the master before testing this. Otherwise it will throw an error.__

__Since the database has been modified, first do a dry save inside `Options` in com_templates and also inside CodeMirror `Plugin Settings` to update the tables`__

->Template Manager

1) Extensions->Template Manager->Templates
2) Select a Template
3) Check the behavior of the following is as expected

* Collapsible Tree
* Editing of files
* Save
* Save & Close
* Copy
* Tree Inside ‘Manage Folders’ & ‘New File’ buttons
* Create Folder
* Delete Folder
* Create File
* Upload File
* Delete File
* Rename File
* Repeat points 6-11 doing testing inside a particular folder
* Create Module, Component, Layout overrides
* Compile LESS - Find the `/less/template.less`, find the `.site-title` and change or add a style (eg, `color:pink`). Save, compile and refresh site. Check the site title has changed style.
* Generate LESS error - Add random text after any semi-colon.
* Cropping
* Resizing
* Upload Font
* Font Preview
* Copy File
* Upload Zip file
* Extract Zip file

## CodeMirror Plugin update

For testing the features of codemirror, you first need to go to the codemirror plugin settings and do a dry save for updating the database table. After that come back to a template and test the following features.

Automatic Tag closing
Automatic bracket/braces/quotes closing
Tag matching in code
braces matching in code
code folding
Full Screen Editing
Light and Dark Themes
Code Maker Gutter
Auto focus

## Change log - since 17/09/2013

* Fixed hyphen bug
* Added tabstate
* Added copy file feature
* Modified button names
* Added an extra file type
* Added upload limit in configuration file
* Added file formats in configuration file
* Corrected the regex to include a-z, A-Z, 0-9, '-', '_'
* Changed the position of tree in modal windows
* Changed the button for full screen mode
* Corrected line wrapping in collapsible tree when text is long
* Updated SQL
* Added feature for uploading, preview and extracting zip files
* Added all the language strings
* Added Hathor override
* SQL update file
* Fixed a tree error
* Added view overrides