-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunctions.php
More file actions
76 lines (59 loc) · 2.48 KB
/
Copy pathfunctions.php
File metadata and controls
76 lines (59 loc) · 2.48 KB
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
67
68
69
70
71
72
73
74
75
76
<?php
/**
* AskBugPro functions and definitions
*
* @link https://developer.wordpress.org/themes/basics/theme-functions/
*
* @since 1.0.0
* @package AskBugPro
*/
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
// Check if the required version of AnsPress plugin is installed and activated,
// and if it not not then, include the warning page template to display
// that the required plugin and the required version of the plugin is not installed.
if ( ! defined( 'AP_VERSION' ) || ( defined( 'AP_VERSION' ) && version_compare( AP_VERSION, '4.4.0' ) < 0 ) ) :
// Require the warning template file.
require get_template_directory() . '/inc/compatibility/anspress/anspress-warning-template.php';
// No need to proceed further
// if AnsPress plugin is not installed or not on required version.
return;
endif;
// Define theme version.
if ( ! defined( 'ASKBUGPRO_VERSION' ) ) {
// Replace the version number of the theme on each release.
define( 'ASKBUGPRO_VERSION', '1.0.0' );
}
// Define constants for this theme.
require get_template_directory() . '/inc/constants.php';
// Helper function file include.
require ASKBUGPRO_INCLUDES_DIR . 'helper-functions.php';
// Include files related to WordPress setups and
// custom WordPress related functions.
require ASKBUGPRO_INCLUDES_DIR . 'theme-setup.php';
require ASKBUGPRO_INCLUDES_DIR . 'content-width.php';
require ASKBUGPRO_INCLUDES_DIR . 'enqueue-scripts.php';
require ASKBUGPRO_INCLUDES_DIR . 'template-tags.php';
require ASKBUGPRO_INCLUDES_DIR . 'template-functions.php';
require ASKBUGPRO_INCLUDES_DIR . 'shortcodes.php';
// Include files related to WordPress widgets.
require ASKBUGPRO_WIDGETS_DIR . 'widgets.php';
// Include files related to WordPress Customizer options.
require ASKBUGPRO_CUSTOMIZER_DIR . 'customizer.php';
// Include files related to post views count.
require ASKBUGPRO_INCLUDES_DIR . 'post-views.php';
// Include the required theme filter file.
require ASKBUGPRO_INCLUDES_DIR . 'filters.php';
// Include the required theme hook files.
require ASKBUGPRO_HOOKS_DIR . 'hooks.php';
require ASKBUGPRO_HOOKS_DIR . 'header.php';
require ASKBUGPRO_HOOKS_DIR . 'content.php';
require ASKBUGPRO_HOOKS_DIR . 'footer.php';
// Include files related to theme custom functionalities.
require ASKBUGPRO_INCLUDES_DIR . 'dynamic-css.php';
// Plugin compatibility file include.
require ASKBUGPRO_ANSPRESS_COMPATIBILITY_DIR . 'anspress.php';
// API connections file include.
require ASKBUGPRO_MAILCHIMP_API_DIR . 'mailchimp.php';