| @@ -436,14 +436,16 @@ | ||
| 436 | 436 | } |
| 437 | 437 | } |
| 438 | 438 | $message = str_replace($shortcode_value, '', $message); |
| 439 | 439 | } else { |
| 440 | - | |
| 441 | 440 | if (!isset($atts['iframe_download']) && $this->get('iframe_download')) { |
| 442 | 441 | $shortcode[3] .= ' iframe_download="true"'; |
| 443 | 442 | $atts['iframe_download'] = 'true'; |
| 444 | 443 | } |
| 445 | - | |
| 444 | + if (!isset($atts['iframe_loader']) && $this->get('iframe_download')) { | |
| 445 | + $shortcode[3] .= ' iframe_loader="true"'; | |
| 446 | + $atts['iframe_loader'] = 'true'; | |
| 447 | + } | |
| 446 | 448 | // iframe onload attribute bug |
| 447 | 449 | if ($shortcode[2] === 'e2pdf-view' || ($shortcode[2] === 'e2pdf-download' && (isset($atts['iframe_download']) && $atts['iframe_download'] == 'true'))) { |
| 448 | 450 | $message = str_replace($shortcode_value, '[' . $shortcode[2] . $shortcode[3] . ']', $message); |
| 449 | 451 | } else { |