Giter Site home page Giter Site logo

pronamic / wp-pronamic-events Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 3.0 4.64 MB

Pronamic Events is a basic plugin to add some Events functionality.

Home Page: http://www.pronamic.eu/plugins/pronamic-events/

CSS 28.35% PHP 63.91% JavaScript 7.73%

wp-pronamic-events's People

Contributors

dependabot[bot] avatar jelkeboonstra avatar kjtolsma avatar remcotolsma avatar rvdsteege avatar zogot avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

fritids auke1810

wp-pronamic-events's Issues

Saved end date/end time when empty

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.

Events archive

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.

Add custom endpoints for iCal / Google / Yahoo

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

Update description

Update description with function names and custom post meta field names.

Block type naming?

We are working on 3 blocks for Pronamic Events:

  • Start Date
  • End Date
  • Location

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?

Move jQuery UI languages to be easily translatable

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 ).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.