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