-
Notifications
You must be signed in to change notification settings - Fork 0
/
functions.php
executable file
·127 lines (96 loc) · 4.93 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<?php
/**
* functions and definitions
*
* Set up the theme and provides some helper functions, which are used in the
* theme as custom template tags. Others are attached to action and filter
* hooks in WordPress to change core functionality.
*
* When using a child theme you can override certain functions (those wrapped
* in a function_exists() call) by defining them first in your child theme's
* functions.php file. The child theme's functions.php file is included before
* the parent theme's file, so the child theme functions would be used.
*
* @link https://codex.wordpress.org/Theme_Development
* @link https://codex.wordpress.org/Child_Themes
*
* For more information on hooks, actions, and filters,
* {@link https://codex.wordpress.org/Plugin_API}
*
* @package WordPress
* @subpackage sr-theme
* @since 1.0.0
*/
##############################################################################################################################
##############################################################################################################################
/**
* Set the content width based on the theme's design and stylesheet.
*/
if ( ! isset( $content_width ) ) {
$content_width = 1200; // Based on Foundation global default settings in /assets/scss/_settings.scss
}
##############################################################################################################################
##############################################################################################################################
/**
* Sets up theme defaults and registers support for various WordPress features.
*/
require_once(get_template_directory().'/library/functions/theme-support.php');
##############################################################################################################################
##############################################################################################################################
/**
* Enqueue scripts and styles.
*/
require_once(get_template_directory().'/library/functions/enqueue-scripts-styles.php');
##############################################################################################################################
##############################################################################################################################
/**
* Register custom menus and menu walkers.
*/
require_once(get_template_directory().'/library/functions/menu.php');
/**
* Numbered pagination Links
*/
require_once(get_template_directory().'/library/functions/menu-pagination.php');
##############################################################################################################################
##############################################################################################################################
/**
* Better WordPress comments.
*/
require_once(get_template_directory().'/library/functions/comments.php');
require_once(get_template_directory().'/library/functions/comments-navigation.php');
##############################################################################################################################
##############################################################################################################################
/**
* Foundation enhancements and changes.
*/
require_once(get_template_directory().'/library/functions/foundation.php');
##############################################################################################################################
##############################################################################################################################
/**
* Register widget areas. Default: Left, Right, Offcanvas, Footer.
*/
require_once(get_template_directory().'/library/functions/theme-widgets.php');
##############################################################################################################################
##############################################################################################################################
if( ! function_exists( 'modify_footer_admin' )) :
/*
* Custom footer content in wp-admin
*
*/
function modify_footer_admin() {
echo '<span id="footer-thankyou">Site developed with <a href="https://sr-theme.com">sr-theme</a>. Powered by <a href="http://www.wordpress.org">WordPress</a></span>';
}
endif; // modify_footer_admin
add_filter('admin_footer_text', 'modify_footer_admin');
##############################################################################################################################
##############################################################################################################################
/**
* Theme updater checker
*/
require_once( get_template_directory().'/library/plugin-update-checker/plugin-update-checker.php' );
$myUpdateChecker = Puc_v4_Factory::buildUpdateChecker(
'https://github.com/fanfarian/sr-theme/',
__FILE__,
'sr-theme'
);
?>