pronamic / wp-pronamic-events Goto Github PK
View Code? Open in Web Editor NEWPronamic Events is a basic plugin to add some Events functionality.
Home Page: http://www.pronamic.eu/plugins/pronamic-events/
Pronamic Events is a basic plugin to add some Events functionality.
Home Page: http://www.pronamic.eu/plugins/pronamic-events/
Add custom endpoints for iCal / Google / Yahoo
https://codex.wordpress.org/Rewrite_API/add_rewrite_endpoint
https://www.example.com/events/test-event/icalendar
https://www.example.com/events/test-event/google-calendar
https://www.example.com/events/test-event/yahoo-calendar
http://carlsednaoui.github.io/add-to-calendar-buttons/generator/generator.html
https://www.google.com/calendar/render?action=TEMPLATE&text=Test&dates=20121212T111200Z/20121212T111200Z&details=&location=Tillewei&sprop=&sprop=name:
http://calendar.yahoo.com/?v=60&view=d&type=20&title=Test&st=20121212T121200Z&dur=0000&desc=&in_loc=Tillewei
data:text/calendar;charset=utf8,BEGIN:VCALENDAR%0AVERSION:2.0%0ABEGIN:VEVENT%0AURL:http://carlsednaoui.github.io/add-to-calendar-buttons/generator/generator.html%0ADTSTART:20121212T111200Z%0ADTEND:20121212T111200Z%0ASUMMARY:Test%0ADESCRIPTION:%0ALOCATION:Tillewei%0AEND:VEVENT%0AEND:VCALENDAR
When an event is saved without an end date the end date is saved to the current time (today). The auto saved end date has to be relevant or equal to the set start date. This is also applies to the start time vs. end time field.
Update description with function names and custom post meta field names.
Function needed to return the location of an event.
Custom post meta field: [_pronamic_location]
Possibility to display only upcomming events on the post type archive and taxonomy pages.
Is it possible to make an option for showing all events? Events in the past included. Maybe we can add an extra class to those specific articles.
I was playing around with how to build multiple blocks within 1 plugin:
Possibility to add widget into sidebar.
Possibility to rename the 'pronamic_event_category' slug within the plugins settings page.
At the moment, that language for the jQuery UI Datepicker has NL set to default. If we were to support more languages this would mean that many excess js files will be loaded.
Intead, move the contents of the object of translation lines, into a wp localize script call, where the contents can be controlled by the WordPress set language, and the localization lines can be loaded from PO/MO files.
Support both methods though. Do a check for a JS translate file based off a naming convention ( that uses WP_LANG ).
Dutch translation bug: Pronamic Evenemeten should be Pronamic Evenementen
We are working on 3 blocks for Pronamic Events:
Currently i use the following naming:
pronamic-events/event-start-date
pronamic-events/event-end-date
pronamic-events/event-location
Documentation:
The name for a block is a unique string that identifies a block. Names have to be structured as
namespace/block-name
, where namespace is the name of your plugin or theme.
This results in the following code:
<!-- wp:pronamic-events/event-start-date {"format":"d.m.Y"} /-->
<!-- wp:pronamic-events/event-end-date {"format":"d.m.Y"} /-->
<!-- wp:pronamic-events/event-location /-->
And the following HTML output:
<div class="wp-block-pronamic-events-event-start-date"><time datetime="2022-05-03T00:00:00+02:00">03.05.2022</time></div>
<div class="wp-block-pronamic-events-event-end-date"><time datetime="2022-05-05T00:00:00+02:00">05.05.2022</time></div>
<div class="wp-block-pronamic-events-event-location">Some location</div>
We could also choose for the following shorter naming:
pronamic-events/start-date
pronamic-events/end-date
pronamic-events/location
I think I prefer the longer notation, WordPress also uses post-date
and not just date
:
<!-- wp:post-date {"format":"F j, Y g:i a"} /-->
@kjtolsma @rvdsteege What do you think?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.