Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
New plugin idea - open hours
Let’s say you have a site for your business, and your work schedule is Mon – Fri from 9am until 6pm, Saturday from 10am until 4pm, Sunday is off. Plus you can have holidays, and can take time off – for example today I could take 1 hour off to go to bank from 1pm until 2pm.
Wouldn’t it be great to have a powerful calendar interface in your textpattern control panel?
Just put a few tags into your site code and on contacts page you could have a time table, holidays, special announcements (today closed from 1pm until 2pm), etc. Put another tag into banner it it displays a simple line, Open until 6pm with a drop down thingy, click on it, and entire time table is displayed in javascript window.
There are a top of scripts out there, majority are javascript, I know, but integration into textpattern control panel would be beautiful, and present new coding opportunities. Programmers could construct their code based on open hours, etc.
Take a look at this link
https://2gis.ru/sochi/search/%D0%A1%D0%BE%D1%87%D0%B8%D0%BA%D0%BE%D0%BC%D0%BF%D1%8C%D1%8E%D1%82%D0%B5%D1%80/firm/70000001018811880/tab/firms?queryState=center%2F39.485035%2C43.577468%2Fzoom%2F10
Click on working hours, a table will popup. Isn’t that cool?
Offline
Re: New plugin idea - open hours
It may be a job for smd_calendar.
Offline
Re: New plugin idea - open hours
thg_if_time can also be used to output different infos conditional on the time of day.
I’m pretty sure you could also use normal variables in combination with smd_if or smd_case (example) and compare that against your server NOW time.
etc_date and smd_countdown do date comparisons and maybe also time comparisons.
TXP Builders – finely-crafted code, design and txp
Offline
Re: New plugin idea - open hours
jakob wrote #297546:
thg_if_time can also be used to output different infos conditional on the time of day.
Agreed. I’ve use it on several sites to show “today’s hours” for businesses. It is simple, it already exists, it works.
Last edited by towndock (2016-01-23 17:56:31)
Offline
Pages: 1