Skip Navigation

[Résolu] Timetable (schedule, opening hours)

This support ticket is created Il y a 6 années et 5 mois. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

Marqué : 

Ce sujet contient 34 réponses, a 4 voix.

Dernière mise à jour par Ljuba Il y a 6 années et 2 mois.

Assisté par: Nigel.

Auteur
Publications
#1110553

Hi Nigel,

Nope, unfortunately nothing new. It all the time display 'Abierto'.

P.S. - You have allowed access to main site with same credentials as you used to use (to see did I done something wrong - I doubt).

#1110658

Nigel
Supporter

Les langues: Anglais (English ) Espagnol (Español )

Fuseau horaire: Europe/London (GMT+00:00)

You said before that it always displays "Cerrado*", so if it is showing Abierto, that sounds like progress.

#1112113

Yeah, I didn't noticed that, but you are right. However, after today update to 3.1.1 (or you did something) now, IT'S WORKING!!!!!!

Thanks a lot.

P.S. As Abierto/Cerrado is within your function, how to set color switch for that (green/red)? I guess that I can add the class to - return "Cerrado"; (something like --> return "Cerrado".addClass("bg-danger");), and (bg-success) for Abierto, but I'm not sure how to do it.

#1112215

Nigel
Supporter

Les langues: Anglais (English ) Espagnol (Español )

Fuseau horaire: Europe/London (GMT+00:00)

Shortcodes return strings, but the string can include markup.

So you would modify it to return something like:

return "<span class='bg-success'>Abierto!</span>";
#1112366

Thank you!