Indra is an inplementation of a clever Javascript found on
dhtmlgoodies.com, for rounding boxes corners built by the tag "DIV" in a static html page.
I begin to adapt the JS for working on a dynamic structure, in other words: a
PHP script takes data from an XML file, and use them to write the dynamic portion of JS code.
I made this job in one rainy day and at the end, after a an hard trial with any fool possible acronym to baptize my script, looking on
Wikipedia I decided for
Indra, the east indian God of Storms.
The next step was the script inclusion in the
CMS "Flatnuke", by Simone Vellei, so I redefined the theme functions and some core functions.
Important, from FlatNuke 2.5.8 : To implement Indra any hack to FN core code is required, to redefine those core function you just have to copy the files in a dedicated directory, read installation instructon for further details
Then, assuming that people doesn't have to know XML to live better, I decided also to code a way to edit Indra features on-line, without opening the XML directly: the result was the
Indra Theme Editor.
So, at version 0.1, Indra core files are:
roundedcorners.js : the js found on dhtmlgoodies.com, with some small changes made by me
create_blocks.php,
create_menu.php,
create_news.php : the redefined flatnuke core functions
none_indra/ : this is the CMS section, with:
section.php : contains the
Indra Theme Editor script.
loader.php : the file that loads the variables from the XML file
script_writer.php : the file that writes the dynamic portion of roundedcorners.js
none_files/scrollingpopup.js : an other javascript used in th theme editor, for scrolling edit menus, the js is by:
dhtmlgoodies.com
none_files/colorpicker.js : the js
TIGRA Color Picker, with some small changes made by me
At least one Indra theme: the basic one is relased on the package but is possible download other themes from this site.
Each Indra theme is conventionally named:
indra_(something), and contains the classic FN theme files (
theme.php, structure.php, style.php), rewrote for Indra. Moreover Indra themes contain the
XML config file, that
MUST HAVE THE SAME NAME OF THE FOLDER, namely
THE SAME NAME OF THE THEME.
Important: Indra redefines the name of theme functions for calling header, menu, left and right blocks, so Indra themes aren't compatible with FN classic themes, if you use a theme selector you have to remove classic themes.