25 lines
		
	
	
		
			726 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			726 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
/*
 | 
						|
 * Plugin Name: jQuery
 | 
						|
 * Version: 2.0.1
 | 
						|
 * Plugin URI: https://www.flatpress.org
 | 
						|
 * Author: FlatPress
 | 
						|
 * Author URI: https://www.flatpress.org
 | 
						|
 * Description: Provides <a href="http://jquery.com/" title="jQuery">jQuery</a> locally. Part of the standard distribution.
 | 
						|
 */
 | 
						|
 | 
						|
// # Original author: NoWhereMan (http://www.nowhereland.it)
 | 
						|
add_action('wp_head', 'plugin_jquery_head', 0);
 | 
						|
 | 
						|
function plugin_jquery_head() {
 | 
						|
	$pdir = plugin_geturl('jquery');
 | 
						|
	echo <<<JSUTILS
 | 
						|
		<!-- start of jsUtils -->
 | 
						|
		<script type="text/javascript" src="{$pdir}res/jquery/1.10.2/jquery.min.js"></script>
 | 
						|
		<script type="text/javascript" src="{$pdir}res/jqueryui/1.10.3/jquery-ui.min.js"></script>
 | 
						|
		<!-- end of jsUtils -->
 | 
						|
	JSUTILS;
 | 
						|
}
 | 
						|
 | 
						|
?>
 |