1 | <?php |
||
2 | /** |
||
3 | * LSX functions and definitions. |
||
4 | * |
||
5 | * @package lsx |
||
6 | */ |
||
7 | |||
8 | use LSX\Core; |
||
9 | |||
10 | if ( ! defined( 'ABSPATH' ) ) { |
||
11 | exit; |
||
12 | } |
||
13 | |||
14 | define( 'LSX_VERSION', '4.0.0' ); |
||
15 | |||
16 | require_once get_template_directory() . '/includes/classes/class-core.php'; |
||
17 | |||
18 | /** |
||
19 | * Contains the LSX theme object |
||
20 | * |
||
21 | * @return void |
||
22 | */ |
||
23 | function lsx() { |
||
24 | global $lsx; |
||
25 | if ( null === $lsx ) { |
||
26 | $lsx = new Core(); |
||
27 | $lsx->init(); |
||
28 | } |
||
29 | return $lsx; |
||
30 | } |
||
31 | lsx(); |
||
32 | |||
33 | // Add favicon to your website. |
||
34 | add_action( 'wp_head', 'add_site_favicon' ); |
||
35 | function add_site_favicon() { |
||
0 ignored issues
–
show
Coding Style
Documentation
introduced
by
![]() |
|||
36 | |||
37 | echo '<link rel="shortcut icon" type="image/x-icon" href="' . get_template_directory_uri() . '/assets/images/favicon.png" />'; |
||
0 ignored issues
–
show
|
|||
38 | |||
39 | } |