Skip to content
This repository was archived by the owner on Dec 17, 2024. It is now read-only.

Releases: bkader/ci-theme

CI-Theme v1.1.0

14 Jan 04:15

Choose a tag to compare

CI-Theme v1.1.0 Pre-release
Pre-release

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.
}

CI-Theme v1.0.1

25 Nov 16:03

Choose a tag to compare

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

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

CI-Theme v1.0.0

13 Nov 09:14

Choose a tag to compare

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