<commit_before># CI-Theme - CodeIgniter Themes
I tried a lot of templates and themes libraries and I was satisfy with them but I decided to make my own, as simple as it can get. So here is my library, free to use, like **CodeIgniter**.
## What's CI-Theme?
CI-Theme is a library that helps you make your CodeIgniter application themable :D
There are several files to be put so this library would work:
1. **_Theme.php_** library files inside ./application/libraries/
2. **_theme.php_** config file inside ./application/config/
3. **_MY_Config.php_** files to put insie ./application/core/

## How To Install?
Simply drap and drop all given files, do some changes and voilà, tout est prêt :), everything is set.

## What to do after?
You are given a folder names **content** inside which you haves **theme** and **uploades**. All your themes files go under _content/themes__ (simply follow the example of the **default** theme)

This library works as well when in **HMVC**. It will look for views in the following order:
#### Views:
1. themes/**theme_name**/modules/**module_name**/
2. themes/**theme_name**/modules/**module_name**/views/
3. themes/**theme_name**/views/
4. **module_location**/**module_name**/views/
5. **views_path** (with is by default **APPPATH/views/**)

#### Partial Views:
1. themes/**theme_name**/modules/**module_name**/views/partials/
3. themes/**theme_name**/views/partials/
4. **module_location**/**module_name**/views/partials/
5. **views_path**/partials/

#### Master View:
The master view is named **template.php** by default but it can be overriden (4th parameter of Theme::load()).
The library will search inside these folders in the following order:
1. themes/**theme_name**/modules/**module_name**/views/
2. themes/**theme_name**/
3. **module_location**/**module_name**/views/
4. **views_path**/

This was made when using **CodeIgniter ver 3.1.3**. Feel free to report anything and suggest any enhancements.

All credits go to owners of any external files used here.<commit_msg>Editing README and correcting typos<commit_after># CI-Theme - CodeIgniter Themes
I tried a lot of templates and themes libraries and I was satisfy with them but I decided to make my own, as simple as it can get. So here is my library, free to use, like **CodeIgniter**.
## What's CI-Theme?
CI-Theme is a library that helps you make your CodeIgniter application theme-able :D
There are several files to be put so this library would work:
1. **_Theme.php_** library files inside ./application/libraries/
2. **_theme.php_** config file inside ./application/config/
3. **_MY_Config.php_** files to put insdie ./application/core/

## How To Install?
Simply drop all given files, do some changes and voilà, tout est prêt :), everything is set.

## What to do after?
You are given a folder names **content** inside which you haves **theme** and **uploads**. All your themes files go under _content/themes__ (simply follow the example of the **default** theme)

This library works as well when in **HMVC**. It will look for views in the following order:
#### Views:
1. themes/**theme_name**/modules/**module_name**/
2. themes/**theme_name**/modules/**module_name**/views/
3. themes/**theme_name**/views/
4. **module_location**/**module_name**/views/
5. **views_path** (which is by default **APPPATH/views/**)

#### Partial Views:
1. themes/**theme_name**/modules/**module_name**/views/partials/
3. themes/**theme_name**/views/partials/
4. **module_location**/**module_name**/views/partials/
5. **views_path**/partials/

#### Master View:
The master view is named **template.php** by default but it can be overridden (4th parameter of Theme::load()).
The library will search inside these folders in the following order:
1. themes/**theme_name**/modules/**module_name**/views/
2. themes/**theme_name**/
3. **module_location**/**module_name**/views/
4. **views_path**/

This was made when using **CodeIgniter version 3.1.3**. Feel free to report anything and suggest any enhancements.

All credits go to owners of any external files used here.
{'fraction_non_alphanumeric': 0.1343062082611922, 'fraction_numerical': 0.009893643334157804, 'mean_word_length': 4.632311977715878, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3561039', 'n_tokens_mistral': 1155, 'n_tokens_neox': 1163, 'n_words': 503}