This repository has been archived by the owner on May 12, 2020. It is now read-only.
forked from longouyang/make-child-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
58 lines (54 loc) · 2.02 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
<?php
if (
( current_user_can( 'blocked' ) )
&& (
( is_cart() )
|| ( is_checkout() )
|| ( is_page( 'my-account' ) )
)
) {
wp_die( 'Notice: Currently you are ineligible for AMT Membership. For more information contact [email protected]<br><br>
<a href="' . site_url() . '">Back to site</a>.' );
}
if (
( current_user_can( 'blockednsf' ) )
&& (
( is_single( 278 ) )
|| ( is_single( 274 ) )
|| ( is_single( 93859 ) )
)
) {
wp_die( 'Hello, currently there is an issue with an outstanding bill of yours. To restore your membership privileges please pay your bills promptly. <a href="/my-account/orders/">Click here to see your bills</a> Repeated instances of loosing your privileges due to unpaid bills may result in permanent loss of privileges.' );
}
/**
* @package Make
*/
?><!DOCTYPE html>
<!--[if lte IE 9]><html class="no-js IE9 IE" <?php language_attributes(); ?>><![endif]-->
<!--[if gt IE 9]><!--><html class="no-js" <?php language_attributes(); ?>><!--<![endif]-->
<head>
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php
if ( current_user_can( 'blocked' ) ) {
?>
<div class="notice">
Notice: Currently you are ineligible for AMT Membership. For more information contact
<a href="mailto:[email protected]">[email protected]</a>
</div>
<?php
}
if ( current_user_can( 'blockednsf' ) ) {
?>
<div class="notice">
<big>Hello, currently there is an issue with an outstanding bill of yours. To restore your membership privileges please pay your bills promptly. <a href="/my-account/orders/">Click here to see your bills</a> Repeated instances of loosing your privileges due to unpaid bills may result in permanent loss of privileges.</big>
</div>
<?php
}
?>
<div id="site-wrapper" class="site-wrapper">
<a class="skip-link screen-reader-text" href="#site-content"><?php esc_html_e( 'Skip to content', 'make' ); ?></a>
<?php ttfmake_maybe_show_site_region( 'header' ); ?>
<div id="site-content" class="site-content">
<div class="container">