Mit diesem Filter können die Eigenschaften der für die Ausgabe verfügbaren Elemente der Immobilien-Detailansicht angepasst werden.
Parameter
Das Elements-Array im Detail
Die folgenden Haupt-Array-Keys entsprechen den Element- bzw. Abschnittsnamen, die in den Attributen der Detailansicht-Shortcodes Verwendung finden.
[
'head' => [
'template' => 'head'
],
'gallery' => [
'template' => 'gallery',
'animation_type' => 'push',
'enable_caption_display' => true,
'enable_video' => true,
'enable_virtual_tour' => true,
'enable_ken_burns_effect' => true
],
'main_description' => [
'template' => 'description-text'
],
'prices' => [
'template' => 'details',
'groups' => 'preise',
'headline' => __( 'Prices', 'immonex-kickstart' )
],
'areas' => [
'template' => 'details',
'groups' => 'flaechen',
'headline' => __( 'Areas', 'immonex-kickstart' )
],
'condition' => [
'template' => 'details',
'groups' => 'zustand',
'headline' => __( 'Condition & Development', 'immonex-kickstart' )
],
'epass' => [
'template' => 'details',
'groups' => 'epass',
'headline' => ''
],
'epass_images' => [
'template' => 'gallery',
'image_selection_custom_field' => '_inx_epass_images',
'headline' => '',
'animation_type' => 'scale',
'enable_caption_display' => false,
'enable_ken_burns_effect' => false
],
'epass_energy_scale' => [
'template' => 'shortcodes',
'shortcodes' => [ '[immonex-energy-scale]' ]
],
'location' => [
'template' => 'location-info',
'optional' => true
],
'location_description' => [
'template' => 'location-description',
'no_headline_in_tabs' => true
],
'location_map' => [
'template' => 'location-map',
'no_headline_in_tabs' => true
],
'features' => [
'template' => 'features',
'groups' => 'ausstattung',
'headline' => __( 'Features', 'immonex-kickstart' )
],
'floor_plans' => [
'template' => 'gallery',
'image_selection_custom_field' => '_inx_floor_plans',
'headline' => __( 'Floor Plans', 'immonex-kickstart' ),
'animation_type' => 'scale',
'enable_caption_display' => true,
'enable_ken_burns_effect' => false
],
'misc' => [
'template' => 'details',
'description_text_field' => 'freitexte.sonstige_angaben',
'groups' => 'sonstiges',
'headline' => __( 'Miscellaneous', 'immonex-kickstart' )
],
'downloads_links' => [
'template' => 'downloads-and-links',
'headline' => __( 'Downloads & Links', 'immonex-kickstart' )
],
'video' => [
'template' => 'video',
'optional' => true
],
'virtual_tour' => [
'template' => 'virtual-tour',
'optional' => true
],
'contact_person' => [
'template' => 'contact-person',
'groups' => 'kontakt',
'headline' => __( 'Your Agent', 'immonex-kickstart' )
],
'footer' => [
'template' => 'footer'
]
]
Element-Eigenschaften
Die folgenden Eigenschaften sind größtenteils templatespezifisch, können also je nach Vorlage unterschiedlich interpretiert oder auch gar nicht berücksichtigt werden.
Allgemein (templateübergreifend)
Name (Typ) |
---|
template (string) |
headline (string) |
no_headline_in_tabs (bool) |
optional (bool) |
Template details
Name (Typ) |
---|
groups (string) |
description_text_field (string) |
Template gallery
Name (Typ) |
---|
animation_type (string) |
image_selection_custom_field (string) |
enable_caption_display (bool) |
enable_video (bool) |
enable_virtual_tour (bool) |
enable_ken_burns_effect (bool) |
Template gallery und video
Name |
---|
autoplay (bool) |
automute (bool) |
youtube_allow (string) |
youtube_domain (string) |
Template shortcodes
Name (Typ) |
---|
shortcodes (string[]) |
Rückgabewert
angepasstes Array verfügbarer Detailabschnitt-Elemente
Rahmenfunktion
add_filter( 'inx_detail_page_elements', 'mysite_modify_available_detail_elements' );
function mysite_modify_available_detail_elements( $elements ) {
// ...Eigenschaften der Detailabschnitt-Elemente im Array $elements anpassen...
return $elements;
} // mysite_modify_available_detail_elements