@@ 857-881 (lines=25) @@ | ||
854 | * |
|
855 | * @since 4.4.0 |
|
856 | */ |
|
857 | function print_embed_styles() { |
|
858 | ?> |
|
859 | <style type="text/css"> |
|
860 | <?php |
|
861 | if ( SCRIPT_DEBUG ) { |
|
862 | readfile( ABSPATH . WPINC . "/css/wp-embed-template.css" ); |
|
863 | } else { |
|
864 | /* |
|
865 | * If you're looking at a src version of this file, you'll see an "include" |
|
866 | * statement below. This is used by the `grunt build` process to directly |
|
867 | * include a minified version of wp-oembed-embed.css, instead of using the |
|
868 | * readfile() method from above. |
|
869 | * |
|
870 | * If you're looking at a build version of this file, you'll see a string of |
|
871 | * minified CSS. If you need to debug it, please turn on SCRIPT_DEBUG |
|
872 | * and edit wp-embed-template.css directly. |
|
873 | */ |
|
874 | ?> |
|
875 | include "css/wp-embed-template.min.css" |
|
876 | <?php |
|
877 | } |
|
878 | ?> |
|
879 | </style> |
|
880 | <?php |
|
881 | } |
|
882 | ||
883 | /** |
|
884 | * Prints the JavaScript in the embed iframe header. |
|
@@ 888-912 (lines=25) @@ | ||
885 | * |
|
886 | * @since 4.4.0 |
|
887 | */ |
|
888 | function print_embed_scripts() { |
|
889 | ?> |
|
890 | <script type="text/javascript"> |
|
891 | <?php |
|
892 | if ( SCRIPT_DEBUG ) { |
|
893 | readfile( ABSPATH . WPINC . "/js/wp-embed-template.js" ); |
|
894 | } else { |
|
895 | /* |
|
896 | * If you're looking at a src version of this file, you'll see an "include" |
|
897 | * statement below. This is used by the `grunt build` process to directly |
|
898 | * include a minified version of wp-embed-template.js, instead of using the |
|
899 | * readfile() method from above. |
|
900 | * |
|
901 | * If you're looking at a build version of this file, you'll see a string of |
|
902 | * minified JavaScript. If you need to debug it, please turn on SCRIPT_DEBUG |
|
903 | * and edit wp-embed-template.js directly. |
|
904 | */ |
|
905 | ?> |
|
906 | include "js/wp-embed-template.min.js" |
|
907 | <?php |
|
908 | } |
|
909 | ?> |
|
910 | </script> |
|
911 | <?php |
|
912 | } |
|
913 | ||
914 | /** |
|
915 | * Prepare the oembed HTML to be displayed in an RSS feed. |