-
Notifications
You must be signed in to change notification settings - Fork 0
/
functions.php
executable file
·44 lines (39 loc) · 1018 Bytes
/
functions.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
/**
* @package WordPress
* @subpackage ResponSimple
* @since ResponSimple 2.0.1
*/
//
// Theme Updater - WayOfTheFuture™
//
include('functions/github-updater.php');
function rs_gitup_updater() {
if ( !function_exists( 'gitup_updater_register' ) )
return false;
gitup_updater_register( array(
'owner' => 'ckhicks',
'repo' => 'responsimple',
'slug' => 'functions/github-updater.php'
) );
}
rs_gitup_updater();
//
// Proper WP jQuery
// This allows loading jQuery into the header or footer, plus controlling which version is used, if needed.
//
add_action( 'wp_enqueue_scripts', 'proper_wp_jquery' );
function proper_wp_jquery(){
wp_deregister_script('jquery');
wp_register_script('jquery', (get_template_directory_uri() . '/scripts/jquery-2.1.3.js'), false, '2.1.3', true);
wp_enqueue_script('jquery');
}
//
// Menus
//
register_nav_menu( 'header', 'Header Menu' );
//
// Post/Page Tools
//
// include('functions/post-page.php');
define('DISALLOW_FILE_EDIT', true);