-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathfunctions.php
executable file
·45 lines (36 loc) · 1.52 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
<?php
// First we load Composer
require get_template_directory() . '/vendor/autoload.php';
// Load function
// this functions check if the files exists in the Child Theme's folder first.
//------------------------------------------------------->
if ( ! function_exists( 'shophistic_lite_require_file' ) ):
function shophistic_lite_require_file( $file, $parent_path, $child_path ) {
if ( file_exists( $child_path . $file ) ) {
require_once $child_path . $file;
} else {
require_once $parent_path . $file;
}
}
endif; // if function_exists
/* Set the Full Width Image value */
if ( ! isset( $content_width ) ) {
$content_width = 1186;
}
/* Load the Theme class. */
require_once get_template_directory() . '/framework/Theme.php';
//Theme Information
$shophistic_lite_theme_info = include get_template_directory() . '/framework/info.php';
//Instance of the Theme
$shophistic_lite_Theme = new shophistic_lite_Theme( $shophistic_lite_theme_info );
// Load jQuery------------------------------------------------------->
if ( ! function_exists( 'shophistic_lite_jquery_script' ) ):
function shophistic_lite_jquery_script() {
wp_enqueue_script( 'jquery' );
}
endif; // if function_exists
add_action( 'wp_enqueue_scripts', 'shophistic_lite_jquery_script' );
// Load jQuery-------------------------------------------------------<
//You can start adding your code below
//==================================================================
?>