uriweb/uri-people-tool 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

uriweb/uri-people-tool

最新稳定版本:v1.5

Composer 安装命令:

composer require uriweb/uri-people-tool

包简介

URI People Tool is a Wordpress plugin that makes it easy to create and edit bibliographic posts for people.

README 文档

README

A tool that makes it easy to create and edit custom bibliographic posts for people in the department. The tool appears in the WordPress admin sidebar.

This project was derived from part of the URI Post Types plugin that is built into the URI Department theme.

People Tool creates a custom post type for people and a taxonomy to go with it. It also provides a short code to display lists of people by group.

Shortcode

The base syntax for the shortcode is as follows: [uri-people-tool]. There are additional attributes that can be used to further customize the shortcode's output.

Shortcode attributes

All of the options below are optional.

# `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>`

Examples

Display a list of people in a "faculty" group in a two column layout:

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

Display a list of people in a "faculty" group as a three column layout, show street address and hide department:

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

Display a list of all people without links to people posts:

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

Display a list of all people with the Accepting Student field information:

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

Theming the output

This plugin includes default templates. The templates will likely require customization to match your site's theme. To customize the templates, copy one or both of uri-people-tool/templates/person-card.php and uri-people-tool/templates/single-people.php to your theme's directory -- either into your theme's root, or into a directory in your theme called templates. person-card handles the shortcode output, and single-people handles the page view of each person.

Edit the files in your theme to taste.

Plugin Details

Contributors: John Pennypacker, Brandon Fuller, Alexandra Gauss Tags: posts, people

统计信息

  • 总下载量: 1.01k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0-only
  • 更新时间: 2023-03-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固