Closed DeanStr closed 11 years ago
is $options['head_file'] on a fresh install if you have never visited the options page?
I just tested it on a fresh install and its blank, you have to click reset to defaults to get the default value, my understanding from the NHP Options was that 'std' is the default value but it appears to only work on reset to defaults
That isn't very intuitive :) Change it to default to the 'std' value if it isn't set
That should do it
should be done in filter_headjs, not that way. calling ->get just results in unnecessary database hits
I fixed the unnecessary db hits. I also added a check to filter_headjs, but I kept it in the admin function too because what if the user opens the admin settings first, they would have an empty field there, so it seems to me that its needed in both.
not quite what I meant, but I will merge and tweak, thanks for contributing!
I wanted the ability to use the full head.js file (head.min.js) rather than the asset loader version (head.load.min.js), this change adds the option in the admin settings and adds the appropriate file into the js folder.
I initially thought of using a check box, but instead went with a textbox so other versions of head.js can also be put in the js folder and then loaded instead, if the user so wishes.