javascript - Include external code into Wordpress Plugin -


i'm using code import external html file in plugin:

<?php    ...    function showcalendar() {            include 'index.html';    }     add_shortcode( 'calendar', 'showcalendar' ); ?> 

but html have of javascript code this:

<head>     <script type="text/javascript" src="js/jquery-1.11.1.js"></script>     <script type="text/javascript" src="js/jquery-ui-1.11.1.js"></script>        <script type="text/javascript" src="jquery-ui.mycode.js"></script>       </head> <body>           <div class="box">                                <script>             /*some code*/         </script>        </div> </body> 

wordpress not executing part. how can fix that? thx!

use full path javascript files in .html file.


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -