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

How to get the arclen between two curve points in Maya? -

C++ Linked List -

git svn - Unignore directories in git-svn (adding directories to a sparse checkout) -