New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes required for accessibility page #325
Conversation
I'll grant that I've not followed the incorporation into zc200, but shouldn't there be a means for a site to "not include" that page in the sitemap/information-sidebox even if the page exists? |
efed852
to
1882c9e
Compare
You can hide it with a flag that exists in the new site_specific storefront file. I have added a check if they wish to add this setting to their copy of the file. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use !empty()
in both places.
|
Basically: falsey, null, empty, blank, missing That's why we use it in a lot of places. Especially for backward compatibility. Doesn't work on "undefined constants" though. Those will throw an error about undefined constant before passing thru to empty(). |
So is this ready to merge then? |
It appears to me that |
1882c9e
to
e940de8
Compare
@dennisns7d is correct in his first statement. Thank you! |
I'm still not liking this and still believe that If running on zc157/zc158, then the site has to take additional actions (i.e. both defining that FILENAME_ACCESSIBILITY, setting the "soft" setting, copying over the |
e940de8
to
f7bb2b9
Compare
Done. Please merge. |
Addresses issue #327. |
Checks if FILENAME_ACCESSIBILITY is defined for backwards compatibility and compatibility with older Zen Cart versions that have used the accessibility page plugin. Tested on 2.0.0-b1 with plugin installed (the build was done before Zen Cart PR zencart/zencart#6269 was merged.)