-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathfunctions.php
41 lines (36 loc) · 1.35 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
/**
* Hera functions and definitions
*
* Sets 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.
*
* Functions that are not pluggable (not wrapped in function_exists()) are instead attached
* to a filter or action hook.
*
* @package Bigfa
* @subpackage Hera
* @since Hera 0.0.1
*/
define('HERA_VERSION', wp_get_theme()->get('Version'));
define('HERA_SETTING_KEY', 'hera_setting');
define('HERA_ARCHIVE_VIEW_KEY', 'hera_post_view');
define('HERA_POST_VIEW_KEY', 'hera_post_view');
define('HERA_POST_LIKE_KEY', 'hera_comment_view');
add_action('after_setup_theme', 'hera_setup');
function hera_setup()
{
load_theme_textdomain('Hera', get_template_directory() . '/languages');
}
get_template_part('modules/setting');
get_template_part('modules/article');
get_template_part('modules/base');
get_template_part('modules/comment');
get_template_part('modules/scripts');
get_template_part('modules/update');