-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathfunctions.php
executable file
·27 lines (24 loc) · 1.06 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
<?php
/****************************************************************
* DO NOT DELETE
****************************************************************/
if ( get_stylesheet_directory() == get_template_directory() ) {
define('ALETHEME_PATH', get_template_directory() . '/aletheme');
define('ALETHEME_URL', get_template_directory_uri() . '/aletheme');
} else {
define('ALETHEME_PATH', get_theme_root() . '/fuerza/aletheme');
define('ALETHEME_URL', get_theme_root_uri() . '/fuerza/aletheme');
}
require_once ALETHEME_PATH . '/init.php';
load_theme_textdomain( 'aletheme', get_template_directory() . '/lang' );
$locale = get_locale();
$locale_file = get_template_directory() . "/lang/$locale.php";
if ( is_readable($locale_file) )
require_once($locale_file);
/****************************************************************
* You can add your functions here.
*
* BE CAREFULL! Functions will dissapear after update.
* If you want to add custom functions you should do manual
* updates only.
****************************************************************/