-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwarning.php
More file actions
90 lines (87 loc) · 2.08 KB
/
Copy pathwarning.php
File metadata and controls
90 lines (87 loc) · 2.08 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
<?php
/**
* Warning page template.
*
* @package WordPress/AskBug
* @author Rahul Aryan <support@anspress.io>
*/
?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<title>Warning! Please install or update AnsPress</title>
<style>
.ab-warning{
max-width: 800px;
margin: 80px auto;
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
background: #FFF3E0;
border: solid 2px #FFCC80;
border-radius: 3px;
padding: 25px;
font-size: 17px;
text-align: center;
}
a{
text-decoration: none;
color: #F44336;
font-weight: bold;
}
h1 {
font-size: 20px;
margin-top: 0;
}
#loginform{
max-width: 250px;
margin: 0 auto;
text-align: left;
padding: 5px;
margin-top: 20px;
}
#loginform input[type="text"], #loginform input[type="password"]{
border: solid 2px #d2d2d2;
padding: 7px 10px;
border-radius: 3px;
width: 100%;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
-ms-box-sizing: border-box;
-o-box-sizing: border-box;
box-sizing: border-box;
}
label {
margin-bottom: 6px;
display: block;
font-size: 14px;
color: #333;
}
input#wp-submit {
margin: 0 auto;
display: block;
padding: 10px 45px;
border-radius: 3px;
background: #FF9800;
border: none;
color: #fff;
font-weight: bold;
}
</style>
</head>
<body>
<div class="container-fluid">
<div class="ab-warning">
<h1>AnsPress 4.0 not found!</h1>
<?php
echo __( 'Ensure you have installed or updated to AnsPress 4.0 and that the plugin is activated to use the AskBug theme. If you continue to see this warning please get in touch with us at ', 'ab' ) . '<a href="https://anspress.io/questions/" target="_blank">AnsPress Support</a>';
?>
<?php
if ( ! is_user_logged_in() ) {
wp_login_form( array(
'redirect' => admin_url( '/' ),
'label_username' => __( 'Username' ),
) );
}
?>
</div>
</div>
</body>
</html>