This repository was archived by the owner on Dec 17, 2024. It is now read-only.
Releases: bkader/ci-theme
Releases · 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.
}
CI-Theme v1.0.1
CI-Theme v1.0.0
After many commits I finally got to the most stable version I could get.