Closed arif-rh closed 9 years ago
I like it! Can you do the same for the jsi18n files? Also, can you update the readme file to reflect the new methods?
I'd loved to do the same for the jsi18n files and update the readme.
Now I still prepare another simple function to add css or js from out of active theme folder, after I pull this and colud be merge, I will update the readme.
I have added function for jsi18n file and updated the README
_add_css_theme( $css_files )_
This function used to easily add css files to be included in a template. With this function, we can just add css name as parameter and it will use default css path in active theme.
We can add one or more css files as parameter, either as string or array. If using parameter as string, it must use comma separator between css file name.
Example:
_add_js_theme( $js_files )_
This function used to easily add js files to be included in a template. With this function, we can just add js name as parameter and it will use default js path in active theme.
We can add one or more js files as parameter, either as string or array. If using parameter as string, it must use comma separator between js file name.
Example:
With return as chained object we can simply do like this: