[wordpress插件] Conference Schedule会议日程

wordpress 插件 文章 2020-03-30 08:00 543 0 全屏看文

AI助手支持GPT4.0

评分
20
描述

This plugin allows you to create a conference schedule in your WordPress website.

此插件可让您在WordPress网站中创建会议时间表。

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 (<

该插件随附二十个子主题(<

a href="https://codex.wordpress.org/Child_Themes" title="The codex pages explaining WordPress child themes" rel="nofollow">more on child themes), which you can use out of the

a href =“ https://codex.wordpress.org/Child_Themes” title =“解释WordPress子主题的Codex页面” rel =“ nofollow”>有关子主题的更多信息),您可以在其中使用

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.

最终,我计划将Conference Schedule主题模板中的许多原始PHP抽象为模板标签。

For now here’s a few template tags as a statement of intent:

现在,这里有一些模板标签作为意图说明:

  <?php the_sessions($ before,$ sep,$ after);复制代码

?> - 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

?>-与内置模板标签`[https://codex.wordpress.org/Function_Reference/the_tags](the_tags)`非常相似,它在参与者循环中使用,它将列出当前参与者正在参加的会议

. Devs: note that there is a filter `cs_the_sessions` you can use on the output of this template tag.

开发人员:请注意,可以在此模板标签的输出中使用过滤器`cs_the_sessions`。

<?php get_the_sessions($ before,$ sep,$ after);

?> - 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

?>-与内置模板标签`[https://codex.wordpress.org/Function_Reference/get_the_tags](get_the_tags)`非常相似,它在参与者循环中使用,它将返回当前参与者所在的会话列表

taking part in. Devs: note that there is a filter `cs_session_links` you can use on the output of this template tag.

参与。开发人员:请注意,可以在此模板标签的输出中使用过滤器`cs_session_links`。

<?php has_schedule();

?> - When used on a Session post in a Session loop, this will tell you whether the current session has a schedule set.

?>-在会话循环中的“会话”帖子上使用时,它将告诉您当前会话是否设置了时间表。

<?php the_start_time($ time_format,$ short_time_format);

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

“ time_format”和“ short_time_format”字符串是可选的,用于提供日期格式,它们默认为WordPress管理区域“设置”部分下“会议管理”屏幕上的值。

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.

如果时间是小时,则使用short_time_format,这使您可以输出10am而不是10:00 am,从而节省了空间。

Devs: Note that there is a `cs_the_start_time` filter you can use on the output of this template tag.

开发人员:请注意,可以在此模板标签的输出中使用`cs_the_start_time`过滤器。

<?php get_the_start_time($ time_format,$ short_time_format,$ post);

?> - The same as the `the_start_time` template tag, except it returns the time rather than printing it.

?>-与`the_start_time`模板标签相同,除了它返回时间而不是打印时间。

Devs: Note that there is a `cs_get_the_start_time` filter you can use on the output of this function.

开发人员:请注意,可以在此函数的输出中使用`cs_get_the_start_time`过滤器。

<?php the_end_time($ time_format,$ short_time_format);

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

否则与上述`the_start_time`相同。

Devs: Note that there is a `cs_the_start_time` filter you can use on the output of this template tag.

开发人员:请注意,可以在此模板标签的输出中使用`cs_the_start_time`过滤器。

<?php get_the_end_time($ time_format,$ short_time_format,$ post);

?> - The same as the `the_end_time` template tag, except it returns the time rather than printing it.

?>-与`the_end_time`模板标签相同,除了它返回时间而不是打印时间。

Devs: Note that there is a `cs_get_the_end_time` filter you can use on the output of this function.

开发人员:请注意,可以在此函数的输出中使用`cs_get_the_end_time`过滤器。

安装步骤

    1. Upload plugin-name.php to the /wp-content/plugins/ directory
    2. plugin-name.php 上载到 / wp-content / plugins / 目录

    3. Activate the plugin through the ‘Plugins’ menu in the WordPress admin area
    4. 通过WordPress管理区域中的“插件”菜单激活插件

    5. Go to ‘Conference’ under ‘Settings’ in the WordPress admin area and set the days for your conference
    6. 转到WordPress管理区域“设置”下的“会议”,并设置会议日期

    7. If you’re using the TwentyTen theme, use the copy functionality to load the conference theme into place
    8. 如果您使用的是TwentyTen主题,请使用复制功能将会议主题加载到位

下载地址
https://downloads.wordpress.org/plugin/conference-schedule.0.52.zip
-EOF-

AI助手支持GPT4.0