name = esc_html__( 'Property EPCs', 'propertyhive' );
$this->icon = '|';
}
public function get_fields()
{
$fields = array();
return $fields;
}
public function render( $attrs, $content, $render_slug )
{
$post_id = get_the_ID();
$property = new PH_Property($post_id);
if ( !isset($property->id) ) {
return;
}
ob_start();
if ( get_option('propertyhive_epcs_stored_as', '') == 'urls' )
{
$epc_urls = $property->_epc_urls;
if ( is_array($epc_urls) && !empty( $epc_urls ) )
{
foreach ($epc_urls as $epc)
{
echo '';
}
}
}
else
{
$epc_attachment_ids = $property->get_epc_attachment_ids();
if ( !empty($epc_attachment_ids) )
{
echo '