settings['save_format'] ) ? $this->settings['save_format'] : '';
} elseif ( "posts" == ACFTC_Core::$db_table ) { // ACF PRO
$return_format = isset( $this->settings['return_format'] ) ? $this->settings['return_format'] : '';
}
// If image is returned as an array (postmeta / v5) or an object (posts / v4)
if ( $return_format == 'array' || $return_format == 'object' ) {
echo $this->indent . htmlspecialchars("name." = " . $this->get_field_method . "( '".$this->name."' ); ?>")."\n";
echo $this->indent . htmlspecialchars("name." ) { ?>")."\n";
echo $this->indent . htmlspecialchars("
name."['url']; ?>\" alt=\"name."['alt']; ?>\" />")."\n";
echo $this->indent . htmlspecialchars("\n");
}
// If image is returned as a URL
if ( $return_format == 'url' ) {
echo $this->indent . htmlspecialchars("get_field_method . "( '" . $this->name . "') ) { ?>\n");
echo $this->indent . htmlspecialchars("
the_field_method . "( '" . $this->name . "' ); ?>\" />\n");
echo $this->indent . htmlspecialchars("\n");
}
// If image is returned as an ID
if ( $return_format == 'id' ) {
echo $this->indent . htmlspecialchars("name." = " . $this->get_field_method . "( '".$this->name."' ); ?>")."\n";
echo $this->indent . htmlspecialchars("name." ) { ?>")."\n";
echo $this->indent . htmlspecialchars(" name.", 'full' ); ?>")."\n";
echo $this->indent . htmlspecialchars("\n");
}