forked from mastermay/Lost
/
functions.php
41 lines (33 loc) · 1.17 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
<?php
/**
* Load files
*
* @author Javis <javismay@gmail.com>
* @license MIT
* @since 1.0
* @version 1.0
*/
define( 'OPTIONS_FRAMEWORK_DIRECTORY', get_template_directory_uri() . '/admin/' );
require_once dirname( __FILE__ ) . '/admin/options-framework.php';
$optionsfile = locate_template( 'options.php' );
load_template( $optionsfile );
include (TEMPLATEPATH . '/functions/theme.php');
include (TEMPLATEPATH . '/functions/clear.php');
include (TEMPLATEPATH . '/functions/comments.php');
include (TEMPLATEPATH . '/functions/tags.php');
include (TEMPLATEPATH . '/functions/functions.php');
add_action('after_setup_theme', 'my_theme_setup');
function my_theme_setup(){
load_theme_textdomain('Lophita', get_template_directory() . '/languages');
}
register_nav_menus(array('header-menu' => '顶部导航', 'footer-menu' => '底部导航'));
add_theme_support( 'post-formats', array( 'status'));
function prefix_options_menu_filter( $menu ) {
$menu['mode'] = 'menu';
$menu['page_title'] = 'Tiny 主题设置';
$menu['menu_title'] = 'Tiny 主题设置';
$menu['menu_slug'] = 'tiny-options';
return $menu;
}
add_filter( 'optionsframework_menu', 'prefix_options_menu_filter' );
?>