forked from librewiki/liberty-skin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
66 lines (58 loc) · 2.6 KB
/
header.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?php
/**
* Liberty theme Header contents.
*
* @package Liberty
* @since 1.0.0
*/
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title>
<?php
if ( ! is_home() ) :
echo ( wp_title( '' ) );
echo ( ' - ' );
endif;
echo ( bloginfo( 'name' ) );
?>
</title>
<?php
$theme_uri = get_stylesheet_directory_uri();
wp_enqueue_style( 'bootstrapStyle', get_template_directory_uri() . '/bootstrap/css/bootstrap.min.css', array(), '4.0.0a2' );
wp_enqueue_style( 'main', get_template_directory_uri() . '/css/main.css', array( 'bootstrapStyle' ), wp_get_theme()->get( 'Version' ) );
wp_enqueue_style( 'mobile', get_template_directory_uri() . '/css/mobile.css', array( 'main' ), wp_get_theme()->get( 'Version' ) );
wp_enqueue_style( 'article', get_template_directory_uri() . '/css/article.css', array( 'main' ), wp_get_theme()->get( 'Version' ) );
wp_enqueue_style( 'fontawesome', 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.8.2/css/all.min.css', array( 'main' ), '5.8.2' );
wp_enqueue_script( 'jqury', 'https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.4/jquery.min.js', array(), '2.2.4', false );
wp_enqueue_script( 'tether', 'https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.7/js/tether.min.js', array( 'jqury' ), '1.4.7', false );
wp_enqueue_script( 'bootstrapScript', get_template_directory_uri() . '/bootstrap/js/bootstrap.min.js', array( 'jqury,' ), '4.0.0a2', false );
wp_enqueue_script( 'scrollButton', get_template_directory_uri() . '/js/scroll-button.js', array(), wp_get_theme()->get( 'Version' ), true );
wp_enqueue_script( 'recentPost', get_template_directory_uri() . '/js/recent-post.js', array(), wp_get_theme()->get( 'Version' ), true );
wp_enqueue_script( 'shareButton', get_template_directory_uri() . '/js/share-button.js', array(), wp_get_theme()->get( 'Version' ), true );
wp_enqueue_script( 'shareSettings', get_template_directory_uri() . '/js/share.js', array( 'shareButton' ), wp_get_theme()->get( 'Version' ), true );
?>
<link rel="canonical" href="<?php echo esc_url( wp_get_canonical_url() ); ?>">
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<?php wp_head(); ?>
<?php if ( current_user_can( 'administrator' ) ) { ?>
<style>
.Liberty .navbar-fixed-top {
top: 32px;
}
@media screen and (max-width: 782px) {
.Liberty .navbar-fixed-top {
top: 46px;
}
}
@media screen and (max-width: 600px) {
#wpadminbar {
position: fixed;
}
}
</style>
<?php } ?>
</head>