janizde
Forum Replies Created
-
Forum: Plugins
In reply to: [Opening Hours] Insert progress barHi @hailton12 ,
this is kind of UI is not provided with the plugin. I would consider this to be too exotic to become a core component of the Opening Hours plugin (at least I’ve never come across this requirement). You should however be able to query the Opening Hours API with custom PHP code to accomplish what you wish for. You can read more about it in the documentation, more specifically the [developer guide](https://github.com/janizde/WP-Opening-Hours/blob/master/doc/developer-guide.md).
Hope that helps
Forum: Plugins
In reply to: [Opening Hours] Is this plugin still maintained?Hey, it’s partially maintained, in that I sometimes look in the support threads here. I will make a minor release testing it with the latest version of WordPress. Bug fixes contributed by the community might still be shipped, but I don’t have enough time to actively develop it further.
Forum: Plugins
In reply to: [Opening Hours] Ferien und spezielle Öffnungszeiten globalClosing due to inactivity
Forum: Plugins
In reply to: [Opening Hours] hide opening hours today textClosing due to inactivity
Forum: Plugins
In reply to: [Opening Hours] Allow editorsClosing due to inactivity
Forum: Plugins
In reply to: [Opening Hours] do_shortcode() doesn’t work since last WP Update to 5.7Hey @berlinaut , thanks for the report! I’ll close the issue since it seems to work again, I will keep an eye out for issues with WP 5.7 however.
Cheers
JannikForum: Plugins
In reply to: [Opening Hours] Allow editorsHey @chloraldo , do you have a custom permissions plugin? The Set post type has the
pagecapability type, so anyone who’s able to create or edit pages (like Editors) should be able to edit opening hours in Sets as wellForum: Plugins
In reply to: [Opening Hours] Is-Open-Widget bei gecachter Seite per Ajax nachladenHallo ihr beiden, ich glaube leider nicht, dass es eine triviale Lösung zu dem Problem gibt @oliversaar mit “Code” meinte ich PHP oder JS Code der das Nachladen herbeigeführt hätte, da du ja Ansätze verlinkt hast. @nachhaltigejobs ich habe mir deine Seite angeschaut und finde es super, wie das Plugin da eingesetzt wird mit mehreren Standorten!
Als Zwischenlösung könntet ihr die maximale Cachingzeit vielleicht auf 30 min stellen (wenn ihr immer zu halben Stunden öffnet)? Da das Thema öfter aufkommt, überlege ich, die AJAX Variante noch in die aktuelle Version einzubauen, statt auf v3.0 zu warten (ich habe gerade auch wenig Zeit um an der neuen Version zu arbeiten).
Viele Grüße
JannikForum: Plugins
In reply to: [Opening Hours] Custom text between 2 periods[closed due to inactivity]
Forum: Plugins
In reply to: [Opening Hours] hide opening hours today textHey, what do you mean by “Opening Hours today:” ? Do you mean the phrase “We’re currently open / closed”?
As for the date format you can use the
PHP Time Formatoption as documented here: https://github.com/janizde/WP-Opening-Hours#is-open-widget For your purpose you need to enterGainto this option.Cheers
Forum: Plugins
In reply to: [Opening Hours] Öffnungszeiten durch Schema.org auf Google übertragen[Closed due to inactivity]
Forum: Plugins
In reply to: [Opening Hours] Custom text between 2 periodsHi @marius1989 ,
leider aktuell nicht möglich über Standardeinstellungen aber eine Anforderung die schon öfter kam. Die einzige Lösung wäre es über den [
op_shortcode_markupFilter](https://github.com/janizde/WP-Opening-Hours/blob/master/doc/filters.md#op_shortcode_markup) das per regular expression zu ersetzen. Das würde aber bedeuten, dass zwischen jeden zwei Perioden pro Tag eine solche Pause eingesetzt würde (also es wäre zB nicht möglich nur an manchen Tagen an denen es mehrere Perioden gibt eine Pause einzurichten). Wenn das deinen Anforderungen genügt kann ich dir mit dem Snippet helfen.Viele Grüße
Forum: Plugins
In reply to: [Opening Hours] Ferien und spezielle Öffnungszeiten globalHallo @nachhaltigejobs ,
vielen Dank für den Vorschlag, diese Anforderung kam mir so noch nicht unter (und es ist leider mit der aktuellen Version nicht möglich), jedoch wird es mit Version 3.0 eine eher baumartige Struktur der Öffnungszeiten geben, womit das vielleicht sogar möglich wäre. Ich werde es im Hinterkopf behalten
Viele Grüße
Forum: Plugins
In reply to: [Opening Hours] Is-Open-Widget bei gecachter Seite per Ajax nachladenHi @oliversaar, wie du schon richtig beschrieben hast, ist das Problem mit nichtaktuellen Daten (z.B. wann ist die nächste offene Periode, wann ist geschlossen oder nicht) eine direkte Konsequenz aus dem Caching (weil es eben Realtime Daten sind).
Dieses Problem ist aber tatsächlich auf der Liste für die nächste Hauptversion. Die Lösung wäre tatsächlich ein Nachladen durch AJAX (wobei idealerweise im initialen Render nur nicht-kontextabhängige Informationen verarbeitet werden).
Kannst du bitte den Code mit dem du es ausprobiert hast als Gist verlinken (hier kannst du das erstellen: https://gist.github.com/).
Ich kann nicht versprechen dass es funktioniert, aber vielleicht ist der Ansatz ja schon da
Forum: Plugins
In reply to: [Opening Hours] How to change the color of the textHi, you can disable the styling of green and red messages using the
op_use_frontend_stylesfilter, beyond that the plugin doesn’t provide styling so it would have to be done in the theme styles.Please refer to the styling section in the FAQ
https://github.com/janizde/WP-Opening-Hours#how-can-i-change-the-styling-of-the-widgets–shortcodes