這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Pronamic Events

外掛說明

This plugin uses custom post types to add some Events functionality. Pronamic Events allows you to add, edit and remove events.

Template Functions

  • Start Date
    • pronamic_get_the_start_date( $format = null )
    • pronamic_the_start_date( $format = null )
    • pronamic_has_start_date()
  • End Date
    • pronamic_get_the_end_date( $format = null )
    • pronamic_the_end_date( $format = null )
    • pronamic_has_end_date()
  • Location
    • pronamic_get_the_location()
    • pronamic_the_location()
    • pronamic_has_location()

Meta Keys

  • _pronamic_start_date
  • _pronamic_end_date
  • _pronamic_location

Gravity Forms

With Gravity Forms and the Gravity Forms + Custom Post Types
you can create an form to create event posts. In most cases you also want to automatic fill in the event start date, end date
and location. You can set this up by checking one of the options on the date/time fields.

  • Is Event Start Date
  • Is Event Start Time
  • Is Event End Date
  • Is Event End Time

For the other fields you can add Custom Fields from the Post Fields
section and give them the correct custom field names:

  • Location – Field Type = Text, Name = _pronamic_location
  • Website – Field Type = Website, Name = _pronamic_event_url

Developers

  • php ~/wp/svn/i18n-tools/makepot.php wp-plugin ~/wp/git/pronamic-events ~/wp/git/pronamic-events/languages/pronamic_events.pot

Links

Pronamic plugins

螢幕擷圖

  • Add new event

適用於區塊編輯器

這個外掛提供 3 個可供 Gutenberg/區塊編輯器使用的區塊。

  • Event Start Date Add the start date of this event.
  • Event End Date Add the end date of this event.
  • Event Location Add the location of this event.

安裝方式

Upload the Pronamic Events folder to your wp-content/plugins folder.

使用者評論

2016 年 9 月 16 日
The plugin does what is should do. Manage your events, the easy way! The plugin requires some frontend coding to show the events. This gives 100% flexibility.
閱讀全部 2 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Pronamic Events〉的開發相關工作。

參與者

〈Pronamic Events〉外掛目前已有 1 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈Pronamic Events〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.3.0

  • Feature – Added schema.org data via Yoast SEO plugin integration.
  • Feature – Added setting for date format of repeatable events slugs.
  • Feature – Added support for updating time of existing repeatable events.

1.2.5

  • Feature – Custom date slug support for repeatable events.
  • Fixed – Fix non-static method message.

1.2.3

  • Fixed – Make sure to check if $status is a array get_the_terms can also return false or a WP_Error.
  • Tweak – Improved support for non public post types and make sure to add start and end date columns after title column.

1.2.2

  • Fixed – Flush rewrite rules on plugin activation.
  • Tweak – Use Composer for autoload.
  • Feature – Added a template loader for default templates for single event and archive event.
  • Feature – Added default template for archive and singular.
  • Tweak – Removed jQuery date picket language files https://make.wordpress.org/core/2016/07/06/jquery-ui-datepicker-localization-in-4-6/.
  • Tweak – Switched to Bower and use WordPress date picker style from https://github.com/xwp/wp-jquery-ui-datepicker-skins.

1.2.1

  • Tweak – WordPress Coding Standards optimizations.

1.2.0

  • Feature – Added support for ‘All day’ flag.
  • Tweak – Changed text domain from ‘pronamic_events’ to ‘pronamic-events’.

1.1.1

  • Tweak – Added ‘pronamic_events_date_offset’ filter.

1.1.0

  • Tweak – Moved event details meta box from the side to the normal part of the edit post screen.
  • Tweak – WordPress Coding Standards optimizations.
  • Feature – Added support for recurring event, create daily, weekly, monthly and yearly event patterns.
  • Tweak – Use post type supports to enable event meta boxes.
  • Tweak – Replaced custom menu icon with an WordPress dash icon.
  • Tweak – Removed the deprecated WordPress screen icon.
  • Feature – Added event status and automatisch upcoming and passed event status updater.

1.0.0

  • Added French translations thanks to Gwendal Leriche.
  • Added a new filter to the Pronamic Events Archive timestamp. ‘pronamic_event_parse_query_timestamp’. It expects a timestamp returned.
  • Display events sorted by start date with a fallback to publication date.

0.2.2

  • Added Brazilian Portuguese translation thanks to Gustavo Magalhães

0.2.1

  • Improved support for Gravity Forms + Custom Post Types plugin

0.2.0

  • Improved saving of start and end dates
  • Added an “Pronamic Events” widget
  • jQuery UI datepicker i18n
  • Events query filter end date greater then today (midnight) instead of -1 day

0.1.3

  • Improved start and end date columns
  • Moved functions into classes and seperated files

0.1.2

  • Added template functions for the location
  • Improved the documentation in the readme.txt file
  • Added admin sortable columns for start and end date
  • Added settings page for events base slug

0.1.1

  • Added datepicker

0.1

  • Initial release