| @@ 343-356 (lines=14) @@ | ||
| 340 | $this->jsdata['templates'] = array(); | |
| 341 | } | |
| 342 | //no overrides allowed. | |
| 343 |         if (isset($this->jsdata['templates'][ $template_reference ])) { | |
| 344 |             if (! $this->debug()) { | |
| 345 | return; | |
| 346 | } | |
| 347 | throw new InvalidArgumentException( | |
| 348 | sprintf( | |
| 349 | __( | |
| 350 | 'The %1$s key already exists for the templates array in the js data array. No overrides are allowed.', | |
| 351 | 'event_espresso' | |
| 352 | ), | |
| 353 | $template_reference | |
| 354 | ) | |
| 355 | ); | |
| 356 | } | |
| 357 | $this->jsdata['templates'][ $template_reference ] = $template_content; | |
| 358 | } | |
| 359 | ||
| @@ 639-652 (lines=14) @@ | ||
| 636 | */ | |
| 637 | public function registerManifestFile($namespace, $url_base, $manifest_file, $manifest_file_path = '') | |
| 638 |     { | |
| 639 |         if (isset($this->manifest_data[ $namespace ])) { | |
| 640 |             if (! $this->debug()) { | |
| 641 | return; | |
| 642 | } | |
| 643 | throw new InvalidArgumentException( | |
| 644 | sprintf( | |
| 645 | esc_html__( | |
| 646 | 'The namespace for this manifest file has already been registered, choose a namespace other than %s', | |
| 647 | 'event_espresso' | |
| 648 | ), | |
| 649 | $namespace | |
| 650 | ) | |
| 651 | ); | |
| 652 | } | |
| 653 |         if (filter_var($url_base, FILTER_VALIDATE_URL) === false) { | |
| 654 |             if (is_admin()) { | |
| 655 | EE_Error::add_error( | |