CI-Theme - Theme Library (Updated) |
Greetings everyone,
UPDATED: I have made a lot of changes to the library, it is not publicly available for the moment but I think I will share it with you : ![]() Now, the theme library is completely independent of the application, all assets, views, partials and layouts are manageable and served from whithin the the themes functions.php file using the same mechanism that WordPress use, I mean filters and actions. To enqueue stylesheet for instance, all you have to do is add and action in your functions.php like so: PHP Code: add_action('enqueue_styles', function(){ Now, the bootstrap.min.css file will be added as <link> tag on your output. There are plenty of other filters and actions and I might add more. Here is a brief list of available ones at the moment: PHP Code: /* The library has a default header, footer and layouts templates. So even if you don't have those files you will still get the full html. These can be overridden by creating header.php and footer.php in your theme's folder. I am still working on the library and enhancing it. Let me know if you're interested ![]() OLD POST: After many modifications and commits, I finally got to version 1.0.0 of my CodeIgniter Theme Library. Here is what's about (read more on github). CodeIgniter Theme Library There are plenty of CodeIgniter template library. I tried most of them and I must say that they rock. Though, I had to make my own that suits my needs and that may be easy to implement, easy to understand and easy to use. What is this library about? It offers you the possibility to implement theming feature to your CodeIgniter applications with simple folders structure and ease of use (It works even when using HMVC). Read more... Feel free to try it and contribute and have a nice day.
Follow me on Github, you may find interesting things!
|
Welcome Guest, Not a member yet? Register Sign In |