mirror of
https://0xacab.org/radar/radar-wp.git
synced 2024-12-23 09:06:32 +01:00
Basic price category handling (new field).
This commit is contained in:
parent
f282454317
commit
c83d681db3
2 changed files with 6 additions and 1 deletions
|
@ -115,7 +115,7 @@ function _radar_parse_items($type, $items, $fields, $subfields = array()) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
$current_field = $item->$method();
|
$current_field = $item->$method();
|
||||||
if (!empty($subfields[$field_name])) {
|
if (!empty($current_field) && !empty($subfields[$field_name])) {
|
||||||
$current_field = radar_retrieve_entities($current_field);
|
$current_field = radar_retrieve_entities($current_field);
|
||||||
$current_subfields = $subfields[$field_name];
|
$current_subfields = $subfields[$field_name];
|
||||||
$current_sub_subfields = _radar_field_collect_subfields($current_subfields);
|
$current_sub_subfields = _radar_field_collect_subfields($current_subfields);
|
||||||
|
@ -140,6 +140,7 @@ function _radar_method_lookup($type, $field) {
|
||||||
'url' => 'getUrlView',
|
'url' => 'getUrlView',
|
||||||
'image' => 'getImageRaw',
|
'image' => 'getImageRaw',
|
||||||
'price' => 'getPrice',
|
'price' => 'getPrice',
|
||||||
|
'price_category' => 'getPriceCategory',
|
||||||
'email' => 'getEmail',
|
'email' => 'getEmail',
|
||||||
'link' => 'getLink',
|
'link' => 'getLink',
|
||||||
'phone' => 'getPhone',
|
'phone' => 'getPhone',
|
||||||
|
@ -162,6 +163,9 @@ function _radar_method_lookup($type, $field) {
|
||||||
'category' => array(
|
'category' => array(
|
||||||
'title' => 'getTitle',
|
'title' => 'getTitle',
|
||||||
),
|
),
|
||||||
|
'price_category' => array(
|
||||||
|
'title' => 'getTitle',
|
||||||
|
),
|
||||||
'group' => array(
|
'group' => array(
|
||||||
'title' => 'getTitle',
|
'title' => 'getTitle',
|
||||||
'body' => 'getBody',
|
'body' => 'getBody',
|
||||||
|
|
|
@ -37,6 +37,7 @@ function radar_shortcode_events($attributes, $content = '') {
|
||||||
'location:directions',
|
'location:directions',
|
||||||
'category:title',
|
'category:title',
|
||||||
'topic:title',
|
'topic:title',
|
||||||
|
'price_category:title',
|
||||||
'price',
|
'price',
|
||||||
'link',
|
'link',
|
||||||
'body',
|
'body',
|
||||||
|
|
Loading…
Reference in a new issue