Thanks to everybody for a good set ideas and suggestions.
I still think, that such plug-in might be useful for people. So, the show is going on.
In this version the following functionality was implemented:
- added functionality to close comments on shabat and open on ordinary day.
Thanks to Autoclose plugin by Ajay D’Souza for idea on implementation.
- added selector for Full lock and Only comments.
Now, Administrator can select how to lock the site.
There are only two options for now:
- Full lock. As it was introduced before, site will be locked fully with proper message
- Comments lock. This will lock possibility to write comments on all posts and re-enable after Shabat will finish.
1. Download it from here.
2. unpack to wp-content/plugins
3. Enable it
4. Go to Settings -> Shabat Keeper and change settings.