"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' )) . '
';
// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- WPBakery html_template local variable; this file is a framework-rendered view receiving $atts/$this, and PrefixAllGlobals sees it outside the framework render scope.
foreach ($epc_urls as $epc)
{
echo '
 . ')
';
}
echo '
';
}
}
else
{
// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- WPBakery html_template local variable; this file is a framework-rendered view receiving $atts/$this, and PrefixAllGlobals sees it outside the framework render scope.
$epc_attachment_ids = $property->get_epc_attachment_ids();
if ( !empty($epc_attachment_ids) )
{
echo '';
echo '
' . esc_html(__( 'EPCs', 'propertyhive' )) . '
';
// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- WPBakery html_template local variable; this file is a framework-rendered view receiving $atts/$this, and PrefixAllGlobals sees it outside the framework render scope.
foreach ( $epc_attachment_ids as $attachment_id )
{
if ( wp_attachment_is_image($attachment_id) )
{
echo '
) . ')
';
}
else
{
echo '
' . esc_html(__( 'View EPC', 'propertyhive' )) . '';
}
}
echo '
';
}
}