-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathheader-add-jquery.php
More file actions
90 lines (63 loc) · 2.9 KB
/
Copy pathheader-add-jquery.php
File metadata and controls
90 lines (63 loc) · 2.9 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
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<!DOCTYPE html>
<html lang="<?php echo $__cf_row['cf_content_language']; ?>" class="no-js no-svg" prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb#">
<head>
<!-- header -->
<meta charset="<?php bloginfo('charset'); ?>" />
<link rel="profile" href="http://gmgp.org/xfn/11" />
<?php
if (is_singular() && pings_open(get_queried_object())) { ?>
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>">
<?php
}
// _eb_tieu_de_chuan_seo($__cf_row['cf_title']);
echo WGR_show_header_favicon();
include EB_THEME_PLUGIN_INDEX . 'seo.php';
?>
<!-- Global site format by <?php echo $arr_private_info_setting['author']; ?> -->
<base href="<?php echo web_link; ?>" />
<?php
// thêm NAV menu cho bản mobile
if ($__cf_row['cf_search_nav_mobile'] == 'none') {
$__cf_row['cf_default_css'] .= 'body.style-for-mobile{margin-top:0}';
}
// chuyển sang nạp thông qua ajax xem có nhanh web hơn không
else {
include EB_THEME_PLUGIN_INDEX . 'mobile/nav.php';
}
// một số css liên quan tới việc hiển thị màn hình đầu tiên, giúp tăng điểm trên google page speed
//_eb_add_css( $arr_for_add_css );
//_eb_add_compiler_css( $arr_for_add_css + $arr_for_add_theme_css );
_eb_add_compiler_css($arr_for_add_css);
//print_r( $arr_for_add_css );
// các css ít quan trọng hơn sẽ được add về phía sau, dưới dạng link
//_eb_add_compiler_link_css( $arr_for_add_link_css, 'link' );
//_eb_add_compiler_css( $arr_for_add_theme_css );
// phần style này phải đặt ở cuối cùng, để nó replace tất cả các style tĩnh trước đó
?>
<style type="text/css">
/* EchBay custom CSS for replace default CSS by plugin or theme */
<?php
// do phần css chứa các url ảnh nên cần thay thế lại luôn nếu có
if ($__cf_row['cf_replace_content'] != '') {
$__cf_row['cf_default_css'] = WGR_replace_for_all_content($__cf_row['cf_replace_content'], $__cf_row['cf_default_css']);
}
echo $__cf_row['cf_default_css'] . $__cf_row['cf_default_themes_css'];
?>
</style>
<script type="text/javascript" src="<?php echo EB_DIR_CONTENT; ?>/echbaydotcom/load-scripts.php?load=3.3.1.min.js,3.3.1.min.js&dir=<?php echo urlencode('outsource/javascript/jquery/'); ?>&ver=<?php echo web_version; ?>"></script>
<?php include EB_THEME_PLUGIN_INDEX . 'data_id.php'; ?>
<!-- HEAD by <?php echo $arr_private_info_setting['author']; ?> -->
<?php echo $__cf_row['cf_js_head']; ?>
<!-- // Global site format by <?php echo $arr_private_info_setting['author']; ?> -->
<?php
wp_head();
//
EBE_print_product_img_css_class($eb_background_for_post);
// reset lại mục này, để còn insert CSS xuống footer nếu có
$eb_background_for_post = array();
//
//print_r( $css_m_css );
?>
</head>
<!-- Thêm class tượng trưng cho mỗi trang lên BODY để tùy biến-->
<body class="<?php echo trim(implode(' ', $css_m_css) . $class_css_of_post); ?>">