settings['save_format'] ) ? $this->settings['save_format'] : ''; } elseif ( "posts" == ACFTC_Core::$db_table ) { // ACF v5 $return_format = isset( $this->settings['return_format'] ) ? $this->settings['return_format'] : ''; } // If image is returned as an array if ( $return_format == 'array' ) { echo $this->indent . htmlspecialchars("var_name." = " . $this->get_field_method . "( '" . $this->name ."'". $this->location_rendered_param . " ); ?>")."\n"; echo $this->indent . htmlspecialchars("var_name." ) : ?>")."\n"; echo $this->indent . htmlspecialchars(" var_name."['url'] ); ?>\">var_name."['filename'] ); ?>"."\n"); echo $this->indent . htmlspecialchars(""."\n"); } // If file is returned as a URL if ( $return_format == 'url' ) { $i18n_str_download_file = __( 'Download File', 'acf-theme-code' ); echo $this->indent . htmlspecialchars("get_field_method . "( '". $this->name ."'". $this->location_rendered_param . " ) ) : ?>")."\n"; echo $this->indent . htmlspecialchars(" the_field_method . "( '". $this->name ."'". $this->location_rendered_param . " ); ?>\">" . $i18n_str_download_file . "")."\n"; echo $this->indent . htmlspecialchars(""."\n"); } // If file is returned as a ID if ( $return_format == 'id' ) { echo $this->indent . htmlspecialchars("var_name." = " . $this->get_field_method . "( '" . $this->name ."'". $this->location_rendered_param . " ); ?>")."\n"; echo $this->indent . htmlspecialchars("var_name." ) : ?>")."\n"; echo $this->indent . htmlspecialchars(" var_name." ); ?>")."\n"; echo $this->indent . htmlspecialchars(" \">Download File")."\n"; echo $this->indent . htmlspecialchars(""."\n"); } // If image is returned as an object (v4) // TODO Remove this if ( $return_format == 'object') { echo $this->indent . htmlspecialchars("var_name." = " . $this->get_field_method . "( '" . $this->name ."'". $this->location_rendered_param . " ); ?>")."\n"; echo $this->indent . htmlspecialchars("var_name." ) : ?>")."\n"; echo $this->indent . htmlspecialchars(" var_name."['url'] ); ?>\">var_name."['title']; ?>"."\n"); echo $this->indent . htmlspecialchars(""."\n"); }