內容簡介
這個外掛允許您在 WordPress 網站上創建會議日程。您可以創建演講者和會議場次的頁面,並顯示自動生成的日程表。
參與者頁面可以使用不同的角色創建,例如演講者、工作坊主持人等,每個角色都有一個包含自動生成縮略圖的圖像。使用簡碼 ([participants]) 可以列出所有演講者,並鏈接到有關他們的更多信息。
會議場次會設定開始和結束時間,並允許您指定地點和演講者。主日程表和每個地點的日程表都會自動生成。
該外掛帶有一個Twenty Ten子主題(有關子主題的更多信息),您可以直接使用它或參考它來創建自己的會議主題。
該外掛負責描述和安排您的會議和關鍵參與者,而不處理售票。
模板標籤
最終我計劃將會議日程主題模板中的大部分原始 PHP 抽象為模板標籤。目前這裡有一些模板標籤,表示我的意圖:
<?php the_sessions( $before, $sep, $after ); ?> - 類似於內置模板標籤 `[https://codex.wordpress.org/Function_Reference/the_tags](the_tags)`,在參與者循環內使用,可列出當前參與者參加的場次。開發人員:請注意,您可以在此模板標籤的輸出上使用過濾器 `cs_the_sessions`。
<?php get_the_sessions( $before, $sep, $after ); ?> - 類似於內置模板標籤 `[https://codex.wordpress.org/Function_Reference/get_the_tags](get_the_tags)`,在參與者循環內使用,可返回當前參與者參加的場次列表。開發人員:請注意,您可以在此模板標籤的輸出上使用過濾器 `cs_session_links`。
<?php has_schedule(); ?> - 在會議場次循環中使用的 Session 貼文上,將告訴您當前場次是否有設定日程表。
<?php the_start_time( $time_format, $short_time_format ); ?> - 在會議場次循環中使用的 Session 貼文上,將顯示預定會議開始時間。`time_format` 和 `short_time_format` 字符串是可選的,用於提供日期格式,它們預設為 WordPress 管理區 Settings 部分下的 Conference 管理界面中的值。如果時間是整點,則使用`short_time_format`,這使您可以輸出 `10am` 而不是 `10:00am`,從而節省空間。開發人員:請注意,您可以在此模板標籤的輸出上使用過濾器 `cs_the_start_time`。
<?php get_the_start_time( $time_format, $short_time_format, $post ); ?> - 與 `the_start_time` 模板標籤相同,但它返回時間而不是打印它。開發人員:請注意,您可以在此函數的輸出上使用過濾器 `cs_get_the_start_time`。
<?php the_end_time( $time_format, $short_time_format ); ?> - 在會議場次循環中使用的 Session 貼文上,將顯示該會議結束時間的預定時間。其他方面與上面的 `the_start_time` 相同。開發人員:請注意,您可以在此模板標籤的輸出上使用過濾器 `cs_the_start_time`。
<?php get_the_end_time( $time_format, $short_time_format, $post ); ?> - 與 `the_end_time` 模板標籤相同,只不過它返回時間而不是打印它。開發人員:請注意,您可以在此函數的輸出上使用過濾器 `cs_get_the_end_time`。
外掛標籤
開發者團隊
原文外掛簡介
This plugin allows you to create a conference schedule in your WordPress website. You can create pages for speakers and sessions, and display an automatically created schedule of what’s on.
The participant pages can be created with different roles, e.g. Speaker, Workshop Leader, etc, and each have an image with automatically created thumbnails. A shortcode ([participants]) allows you to list all your speakers, with links through to read more about them.
Sessions are created with start and end times, and allow you to specify a location and speaker. The main schedule and schedules for each location are automatically generated.
The plugin comes with a Twenty Ten child theme (more on child themes), which you can use out of the box or as a reference to create your own conference theme.
This plugin handles describing and scheduling your conference and the key participants, it does not handle the ticketing.
Template Tags
Eventually I plan to abstract much of the raw PHP in the Conference Schedule theme templates into template tags. For now here’s a few template tags as a statement of intent:
- Very similar to the built-in template tag `[https://codex.wordpress.org/Function_Reference/the_tags](the_tags)`, used within a participant loop this will list the sessions the current participant is taking part in. Devs: note that there is a filter `cs_the_sessions` you can use on the output of this template tag.
- Very similar to the built-in template tag `[https://codex.wordpress.org/Function_Reference/get_the_tags](get_the_tags)`, used within a participant loop this will return a list of the sessions the current participant is taking part in. Devs: note that there is a filter `cs_session_links` you can use on the output of this template tag.
- When used on a Session post in a Session loop, this will tell you whether the current session has a schedule set.
- When used on a Session post in a Session loop, this will show the scheduled session start time. The `time_format` and `short_time_format` strings are optional and are used to provide a date format, they default to the values on the Conference admin screen under the Settings section of the WordPress admin area. If the time is on the hour then the `short_time_format` is used, this enables you to output `10am` instead of `10:00am`, thus saving space. Devs: Note that there is a `cs_the_start_time` filter you can use on the output of this template tag.
- The same as the `the_start_time` template tag, except it returns the time rather than printing it. Devs: Note that there is a `cs_get_the_start_time` filter you can use on the output of this function.
- When used on a Session post in a Session loop, this will show the scheduled end time for this session. Otherwise identical to `the_start_time` above. Devs: Note that there is a `cs_the_start_time` filter you can use on the output of this template tag.
- The same as the `the_end_time` template tag, except it returns the time rather than printing it. Devs: Note that there is a `cs_get_the_end_time` filter you can use on the output of this function.
