1- <?php
2-
3- $ NPM_PACKAGE = file_get_contents (get_template_directory () . '/package.json ' );
4- $ NPM_PACKAGE = json_decode ($ NPM_PACKAGE , true );
5- $ THEME_VERSION = $ NPM_PACKAGE ['version ' ];
6-
7- define ( 'THEME_VERSION ' , $ THEME_VERSION );
8-
9- /**
10- * Load tweaks
11- */
12- require get_template_directory () . '/inc/tweaks.php ' ;
13-
14- /**
15- * Load CSS and JavaScript Enqueues
16- */
17- require get_template_directory () . '/inc/enqueues.php ' ;
18-
19- /**
20- * Load menus
21- */
22- require get_template_directory () . '/inc/menus.php ' ;
23-
24- /**
25- * Load custom post types
26- */
27- require get_template_directory () . '/inc/custom-post-types.php ' ;
28-
29- /**
30- * Load widgets
31- */
32- require get_template_directory () . '/inc/widgets.php ' ;
33-
34- /**
35- * Load thumbnail support and sizes
36- */
37- require get_template_directory () . '/inc/thumbnails.php ' ;
38-
39- /**
40- * Load shortcodes
41- */
42- require get_template_directory () . '/inc/shortcodes.php ' ;
43-
44- /**
45- * Load Responsive Media Options
46- */
47- require get_template_directory () . '/inc/responsive-media.php ' ;
48-
49- /**
50- * Load ACF Options
51- */
52- require get_template_directory () . '/inc/acf.php ' ;
1+ <?php
2+
3+ $ NPM_PACKAGE = file_get_contents (get_template_directory () . '/package.json ' );
4+ $ NPM_PACKAGE = json_decode ($ NPM_PACKAGE , true );
5+ $ THEME_VERSION = $ NPM_PACKAGE ['version ' ];
6+
7+ define ( 'THEME_VERSION ' , $ THEME_VERSION );
8+
9+ /**
10+ * Load tweaks
11+ */
12+ require get_template_directory () . '/inc/tweaks.php ' ;
13+
14+ /**
15+ * Load CSS and JavaScript Enqueues
16+ */
17+ require get_template_directory () . '/inc/enqueues.php ' ;
18+
19+ /**
20+ * Load menus
21+ */
22+ require get_template_directory () . '/inc/menus.php ' ;
23+
24+ /**
25+ * Load custom post types
26+ */
27+ require get_template_directory () . '/inc/custom-post-types.php ' ;
28+
29+ /**
30+ * Load widgets
31+ */
32+ require get_template_directory () . '/inc/widgets.php ' ;
33+
34+ /**
35+ * Load thumbnail support and sizes
36+ */
37+ require get_template_directory () . '/inc/thumbnails.php ' ;
38+
39+ /**
40+ * Load shortcodes
41+ */
42+ require get_template_directory () . '/inc/shortcodes.php ' ;
43+
44+ /**
45+ * Load Responsive Media Options
46+ */
47+ require get_template_directory () . '/inc/responsive-media.php ' ;
48+
49+ /**
50+ * Load ACF Options
51+ */
52+ require get_template_directory () . '/inc/acf.php ' ;
53+
54+ /**
55+ * plugin-update-checker https://github.com/YahnisElsts/plugin-update-checker/
56+ */
57+ require 'plugin-update-checker/plugin-update-checker.php ' ;
58+ $ myUpdateChecker = Puc_v4_Factory::buildUpdateChecker (
59+ 'https://github.com/missionbit/f1-mission-bit/ ' ,
60+ __FILE__ ,
61+ 'f1-mission-bit '
62+ );
63+
64+ //Set the branch that contains the stable release.
65+ $ myUpdateChecker ->setBranch ('master ' );
66+ $ myUpdateChecker ->getVcsApi ()->enableReleaseAssets ();
0 commit comments