-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfunctions.php
executable file
·66 lines (53 loc) · 1.53 KB
/
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?php
$NPM_PACKAGE = file_get_contents(get_template_directory() . '/package.json');
$NPM_PACKAGE = json_decode($NPM_PACKAGE, true);
$THEME_VERSION = $NPM_PACKAGE['version'];
define( 'THEME_VERSION', $THEME_VERSION );
/**
* Load tweaks
*/
require get_template_directory() . '/inc/tweaks.php';
/**
* Load CSS and JavaScript Enqueues
*/
require get_template_directory() . '/inc/enqueues.php';
/**
* Load menus
*/
require get_template_directory() . '/inc/menus.php';
/**
* Load custom post types
*/
require get_template_directory() . '/inc/custom-post-types.php';
/**
* Load widgets
*/
require get_template_directory() . '/inc/widgets.php';
/**
* Load thumbnail support and sizes
*/
require get_template_directory() . '/inc/thumbnails.php';
/**
* Load shortcodes
*/
require get_template_directory() . '/inc/shortcodes.php';
/**
* Load Responsive Media Options
*/
require get_template_directory() . '/inc/responsive-media.php';
/**
* Load ACF Options
*/
require get_template_directory() . '/inc/acf.php';
/**
* plugin-update-checker https://github.com/YahnisElsts/plugin-update-checker/
*/
require 'plugin-update-checker/plugin-update-checker.php';
$myUpdateChecker = Puc_v4_Factory::buildUpdateChecker(
'https://github.com/MissionBit/f1-mission-bit/',
__FILE__,
'f1-mission-bit'
);
//Set the branch that contains the stable release.
$myUpdateChecker->setBranch('main');
$myUpdateChecker->getVcsApi()->enableReleaseAssets();