frozzare/papi-property-table
Composer 安装命令:
composer require frozzare/papi-property-table
包简介
Table property for Papi
关键字:
README 文档
README
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
统计信息
- 总下载量: 16
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-06-23