Skip to content
Snippets Groups Projects
Commit c83d681d authored by ekes's avatar ekes
Browse files

Basic price category handling (new field).

parent f2824543
No related branches found
No related tags found
No related merge requests found
......@@ -115,7 +115,7 @@ function _radar_parse_items($type, $items, $fields, $subfields = array()) {
continue;
}
$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_subfields = $subfields[$field_name];
$current_sub_subfields = _radar_field_collect_subfields($current_subfields);
......@@ -140,6 +140,7 @@ function _radar_method_lookup($type, $field) {
'url' => 'getUrlView',
'image' => 'getImageRaw',
'price' => 'getPrice',
'price_category' => 'getPriceCategory',
'email' => 'getEmail',
'link' => 'getLink',
'phone' => 'getPhone',
......@@ -162,6 +163,9 @@ function _radar_method_lookup($type, $field) {
'category' => array(
'title' => 'getTitle',
),
'price_category' => array(
'title' => 'getTitle',
),
'group' => array(
'title' => 'getTitle',
'body' => 'getBody',
......
......@@ -37,6 +37,7 @@ function radar_shortcode_events($attributes, $content = '') {
'location:directions',
'category:title',
'topic:title',
'price_category:title',
'price',
'link',
'body',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment