Recent Releases of https://github.com/bkader/ci-theme

https://github.com/bkader/ci-theme - CI-Theme v1.1.0

In this release, I have added Events library to the package as well as few useful functions that you can use on your themes functions.php files.

In fact, by adding the events library, theme are now able to enqueue their sylesheets, javascripts and meta tags. They can also manipulate and tags classes. Check provided themes to see how it' done.

Few checkers have been added so you can check where you are on the application and do your manipulation. Example:

if (is_module('name') {}
if (is_module('one, two, three') {}
if (is_controller(...)) {}
if (is_method(...)) {}

On your theme's functions.php file, you can use these checkers combined to added functions. Example:

if (is_controller('admin'))
{
    add_style('admin'); // Outputs the <link ....> tag and the css must be in theme's folder.
    add_style(get_common_url('css/commonfile'));  // In case of using a css from common folder.
    add_style('http//....'); // In case of a CDN.
}

- PHP
Published by bkader over 8 years ago

https://github.com/bkader/ci-theme - CI-Theme v1.0.1

The line below was removed from the library because it clears global variables as well.

$this->CI->load->clear_vars();

- PHP
Published by bkader over 8 years ago

https://github.com/bkader/ci-theme - CI-Theme v1.0.0

After many commits I finally got to the most stable version I could get.

- PHP
Published by bkader over 8 years ago