WP Manifestindependent plugin directory
manifest / content / papi-property-table

Papi: Table property

Table property for Papi

★ 2stars
16composer installs
v1.0.0latest · 10 years ago

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/wp-papi/papi-property-table/archive/refs/heads/master.zip

On Packagist as frozzare/papi-property-table:

composer require frozzare/papi-property-table
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Table property for Papi.

Installation

This property requires Papi plugin.

If you're using Composer to manage WordPress, add Papi to your project's dependencies. Run:

composer require frozzare/papi-property-table

Usage

<?php

$fields = [
    ['Name', 'facility_name'],
    ['ID', 'facility_id'],
    ['Location', 'facility_location_name'],
    ['E-email', 'facility_email'],
    ['Address', 'facility_street_address'],
    ['Zip code', 'facility_zip_code']
];

foreach ( $fields as $k => $v ) {
    $fields[$k][1] = get_post_meta( $_GET['post'], $v[1], true );
}

$this->box( [
    'title'   => 'Facility information',
    'context' => 'side'
], [
    papi_property( [
        'sidebar'  => false,
        'title'    => 'Facility information',
        'type'     => 'table',
        'settings' => [
            'items' => $fields
        ]
    ] )
] );

License

MIT © Fredrik Forsmo

Releases

1 release.

Tag
Published
v1.0.0 latest
Aug 21, 2016 10 years ago

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.