uriweb/uri-people-tool

URI People Tool 是一个Wordpress插件,可以轻松创建和编辑关于人员的文献记录帖子。

安装: 474

依赖项: 0

建议者: 0

安全: 0

星星: 2

关注者: 2

分支: 0

开放问题: 1

类型:wordpress-plugin

v1.5 2023-09-22 17:48 UTC

This package is auto-updated.

Last update: 2024-09-22 19:57:12 UTC


README

这是一个工具,可以轻松创建和编辑部门内人员的自定义文献记录帖子。该工具出现在WordPress管理侧边栏中。

此项目是从URI Post Types插件的一部分衍生而来,该插件内置在URI部门主题中。

人员工具创建了一个针对人员的自定义帖子类型以及相应的分类法。它还提供了一个简码来按组显示人员列表。

简码

简码的基本语法如下:[uri-people-tool]。还可以使用其他属性来进一步自定义简码的输出。

简码属性

以下所有选项都是可选的。

# `group` expects the slug of a valid peoplegroup category.
# `posts_per_page` expects a whole number. It limits the results to the specified amount. Default is 200
# `thumbnail` expects the name of an image format e.g. "medium" or "third_column"  Set to "false" to hide thumbnails.
# `link` controls whether or not the card lists link to posts.  Set to "false" to not link (default: true)
# `phone` controls whether or not to display the phone number on card lists (default: true)
# `department` controls whether or not to display the department on card lists (default: true)
# `website` controls whether or not to display the website on card lists (default: false)
# `address` controls whether or not to display the street address on card lists (default: false)
# `email` controls whether or not to display the email address on card lists (default: true)
# `before` allows HTML to be inserted before the list of people. It defaults to `<div class="uri-people-tool">`
# `after` allows HTML to be inserted after the list of people. It defaults to `</div>`

示例

以两列布局显示“教职员工”组的人员列表

[uri-people-tool group="faculty" before='<div class="uri-people-tool cl-tiles halves">' after="</div>"]

以三列布局显示“教职员工”组的人员列表,显示街道地址并隐藏部门

[uri-people-tool group="faculty" department="false" address="true" before='<div class="uri-people-tool cl-tiles thirds">' after="</div>"]

显示所有人员的列表,不显示人员帖子的链接

[uri-people-tool link="false"]

显示所有人员列表,包含接受学生的字段信息

[uri-people-tool accepting_students="true"]

定制输出

此插件包含默认模板。模板可能需要根据您的网站主题进行自定义。要自定义模板,将uri-people-tool/templates/person-card.phpuri-people-tool/templates/single-people.php复制到您的主题目录中——可以是主题的根目录,也可以是主题中的templates目录。 person-card处理简码输出,而single-people处理每个人员的页面视图。

根据您的喜好编辑主题中的文件。

插件详细信息

贡献者:John Pennypacker, Brandon Fuller, Alexandra Gauss 标签:帖子,人员