"yes", ), $atts)); global $property; if ( !isset($property->id) ) { return; } if ( isset($atts['show_title']) && $atts['show_title'] != 'yes' ) { ?> _epc_urls; if ( is_array($epc_urls) && !empty( $epc_urls ) ) { echo '
'; echo '

' . esc_html(__( 'EPCs', 'propertyhive' )) . '

'; foreach ($epc_urls as $epc) { echo ''; } echo '
'; } } else { $epc_attachment_ids = $property->get_epc_attachment_ids(); if ( !empty($epc_attachment_ids) ) { echo '
'; echo '

' . esc_html(__( 'EPCs', 'propertyhive' )) . '

'; foreach ( $epc_attachment_ids as $attachment_id ) { if ( wp_attachment_is_image($attachment_id) ) { echo ''; } else { echo '' . esc_html(__( 'View EPC', 'propertyhive' )) . ''; } } echo '
'; } }