Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2016-01-23 11:51:41

sochicomputerRU
Member
From: Россия
Registered: 2013-01-18
Posts: 61
Website

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

#2 2016-01-23 13:47:27

CeBe
Plugin Author
From: Caen - Fr
Registered: 2010-06-25
Posts: 345
Website

Re: New plugin idea - open hours

It may be a job for smd_calendar.

Offline

#3 2016-01-23 13:57:25

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,578
Website

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

#4 2016-01-23 17:55:51

towndock
Member
From: Oriental, NC USA
Registered: 2007-04-06
Posts: 329
Website

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

Board footer

Powered by FluxBB