示例#1
0
 static function loadJs()
 {
     $jss = array('lightBox.js', '2ji2.js');
     $path = PtpVideoFunc::themePath("ptp-video");
     foreach ($jss as $js) {
         echo '<script src="' . $path . 'js/' . $js . '" language="javascript" type="text/javascript"></script>';
     }
     wp_enqueue_script('ptp_video_defaultjs', $path . 'js/default.js', array('jquery'));
 }