-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunctions.php
More file actions
29 lines (27 loc) · 1.3 KB
/
Copy pathfunctions.php
File metadata and controls
29 lines (27 loc) · 1.3 KB
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
<?php
require_once get_template_directory() . '/inc/assets.php';
require_once get_template_directory() . '/inc/setup.php';
require_once get_template_directory() . '/inc/comments.php';
require_once get_template_directory() . '/inc/customizer.php';
require_once get_template_directory() . '/inc/helpers.php';
require_once get_template_directory() . '/inc/widgets/index.php';
require_once get_template_directory() . '/inc/post.php';
require_once get_template_directory() . '/inc/Facile_Nav_Walker.php';
function welcome_content() {
$screen = get_current_screen();
if (isset($screen->id) && $screen->id == 'themes'):
?>
<div class="notice notice-success is-dismissible">
<h1><?php _e('Welcome to Facile', 'facile'); ?></h1>
<p>
<a href="https://www.misterma.com/archives/952/" target="_blank" style="margin-right: 8px;"><?php _e('View Documentation', 'facile'); ?></a>
<a href="https://github.com/changbin1997/facile-wordpress" target="_blank" style="margin-right: 8px;"><?php _e('Visit Github', 'facile'); ?></a>
</p>
<p>
<?php _e('If you encounter any issues, feel free to leave a message on my blog or report them on GitHub Issues.', 'facile'); ?>
</p>
</div>
<?php
endif;
}
add_action('admin_notices', 'welcome_content');