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 -

Laravel mail error `Swift_TransportException in StreamBuffer.php line 269: Connection could not be established with host smtp.gmail.com [ #0]` -

C#.NET Oracle.ManagedDataAccess ConfigSchema.xsd -