Skip to content

About

WordPress plugin for Orbis that adds persons, with personal details such as birth date and gender, built on top of Orbis Contacts.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Orbis Persons

WordPress plugin for Orbis that adds persons, with personal details such as birth date and gender, built on top of Orbis Contacts.

Requirements

Installation

composer install
npm install

Development

This plugin follows the SolveBeam WordPress Plugin Boilerplate conventions.

Local environment (wp-env)

npx wp-env start
npx wp-env stop

The .wp-env.json maps the plugin twice into the WordPress environment:

Mount path Source Purpose
wp-content/plugins/orbis-persons-dev ./ Live development (including dev files)
wp-content/plugins/orbis-persons ./build/orbis-persons/ Built distribution version

Build

composer run build

Deploy

vendor/bin/dep deploy

Translations

composer run make-pot

Linting & analysis

composer run phpcs
composer run phpstan
composer run rector
composer run qa

Data model

Type Key
Post type orbis_person (supports orbis_contact)
Taxonomies orbis_gender
Post meta _orbis_title, _orbis_organization, _orbis_department, _orbis_email, _orbis_phone_number, _orbis_mobile_number, _orbis_address, _orbis_postcode, _orbis_city, _orbis_country, _orbis_birth_date_string, _orbis_birth_date, _orbis_birth_date_timestamp, _orbis_iban, _orbis_twitter, _orbis_facebook, _orbis_linkedin

Orbis core

The orbis_person post type used to be registered by Orbis core and is now registered by this plugin (with the persons slug, orbis_contact support and the Orbis Contacts menu). The post type, taxonomy and meta keys are the same, so existing persons keep working without migration.

Templates

The plugin ships a single and an archive person template, modelled after single-orbis_person.php and archive-orbis_person.php of the Orbis 5 theme. They are used unless the theme has its own single-orbis_person.php or archive-orbis_person.php.

Template Shown on Content
templates/archive-orbis_person.php Persons archive Table with photo, name, e-mail, phone number, organization, address and author
templates/single-orbis_person.php Single person Layout with photo, description, details, comments and additional information
templates/person-details.php Single person Organization, phone numbers, e-mail, gender, address, IBAN, birth date, age, vCard and social media

Other plugins can add content to the single template with the orbis_before_main_content, orbis_after_main_content, orbis_before_side_content and orbis_after_side_content actions, for example the connected organizations of Orbis Organizations.

License

GPL-2.0-or-later

About

WordPress plugin for Orbis that adds persons, with personal details such as birth date and gender, built on top of Orbis Contacts.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages