Fzbuk.php
195 lines
| 1 | <?php |
| 2 | |
| 3 | namespace ProfilePress\Core\Themes\Shortcode\Passwordreset; |
| 4 | |
| 5 | use ProfilePress\Core\ShortcodeParser\PasswordResetTag; |
| 6 | use ProfilePress\Core\Themes\Shortcode\PasswordResetThemeInterface; |
| 7 | |
| 8 | class Fzbuk implements PasswordResetThemeInterface |
| 9 | { |
| 10 | public function get_name() |
| 11 | { |
| 12 | return 'Fzbuk'; |
| 13 | } |
| 14 | |
| 15 | public function success_message() |
| 16 | { |
| 17 | return '<div class="profilepress-reset-status">Check your email for further instruction</div>'; |
| 18 | } |
| 19 | |
| 20 | public function get_structure() |
| 21 | { |
| 22 | return <<<CODE |
| 23 | <div class="fzbuk-login-form-wrap"> |
| 24 | <h1>Forgot Password?</h1> |
| 25 | |
| 26 | <div class="fzbuk-login-form"> |
| 27 | |
| 28 | <label> |
| 29 | [user-login id="login" placeholder="Username or E-mail:"] |
| 30 | </label> |
| 31 | |
| 32 | [reset-submit value="Reset Password"] |
| 33 | |
| 34 | </div> |
| 35 | <h5>Back to [link-login label="Login"]</h5> |
| 36 | </div> |
| 37 | |
| 38 | CODE; |
| 39 | |
| 40 | } |
| 41 | |
| 42 | public function password_reset_handler() |
| 43 | { |
| 44 | return PasswordResetTag::get_default_handler_form(); |
| 45 | } |
| 46 | |
| 47 | public function get_css() |
| 48 | { |
| 49 | return <<<CSS |
| 50 | @import url(https://fonts.googleapis.com/css?family=Lato:300,400,600,700&display=swap); |
| 51 | |
| 52 | /* css class for the form generated errors */ |
| 53 | .profilepress-reset-status { |
| 54 | -webkit-box-sizing: border-box; |
| 55 | -moz-box-sizing: border-box; |
| 56 | box-sizing: border-box; |
| 57 | color: #fff; |
| 58 | background: #5170ad; |
| 59 | background: -moz-radial-gradient(center, ellipse cover, #5170ad 0%, #355493 100%); |
| 60 | background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%, #5170ad), color-stop(100%, #355493)); |
| 61 | background: -webkit-radial-gradient(center, ellipse cover, #5170ad 0%, #355493 100%); |
| 62 | background: -o-radial-gradient(center, ellipse cover, #5170ad 0%, #355493 100%); |
| 63 | background: -ms-radial-gradient(center, ellipse cover, #5170ad 0%, #355493 100%); |
| 64 | background: radial-gradient(ellipse at center, #5170ad 0%, #355493 100%); |
| 65 | border: 1px solid #2d416d; |
| 66 | box-shadow: 0 1px #5670A4 inset, 0 0 10px 5px rgba(0, 0, 0, 0.1); |
| 67 | border-radius: 5px; |
| 68 | position: relative; |
| 69 | max-width: 360px; |
| 70 | width: 100%; |
| 71 | text-align: center; |
| 72 | margin: 10px auto; |
| 73 | padding: 10px; |
| 74 | } |
| 75 | |
| 76 | .profilepress-reset-status a { |
| 77 | color: #fff; |
| 78 | text-decoration: underline; |
| 79 | } |
| 80 | |
| 81 | |
| 82 | .fzbuk-login-form-wrap { |
| 83 | -webkit-box-sizing: border-box; |
| 84 | -moz-box-sizing: border-box; |
| 85 | box-sizing: border-box; |
| 86 | background: #5170ad; |
| 87 | font-family: "Lato", sans-serif; |
| 88 | background: -moz-radial-gradient(center, ellipse cover, #5170ad 0%, #355493 100%); |
| 89 | background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%, #5170ad), color-stop(100%, #355493)); |
| 90 | background: -webkit-radial-gradient(center, ellipse cover, #5170ad 0%, #355493 100%); |
| 91 | background: -o-radial-gradient(center, ellipse cover, #5170ad 0%, #355493 100%); |
| 92 | background: -ms-radial-gradient(center, ellipse cover, #5170ad 0%, #355493 100%); |
| 93 | background: radial-gradient(ellipse at center, #5170ad 0%, #355493 100%); |
| 94 | border: 1px solid #2d416d; |
| 95 | box-shadow: 0 1px #5670A4 inset, 0 0 10px 5px rgba(0, 0, 0, 0.1); |
| 96 | border-radius: 5px; |
| 97 | position: relative; |
| 98 | max-width: 360px; |
| 99 | width: 100%; |
| 100 | height: 300px; |
| 101 | margin: 10px auto; |
| 102 | padding: 50px 30px 0 30px; |
| 103 | text-align: center; |
| 104 | } |
| 105 | .fzbuk-login-form-wrap:before { |
| 106 | display: block; |
| 107 | content: ''; |
| 108 | width: 58px; |
| 109 | height: 19px; |
| 110 | top: 10px; |
| 111 | left: 10px; |
| 112 | position: absolute; |
| 113 | } |
| 114 | .fzbuk-login-form-wrap > h1 { |
| 115 | margin: 0 0 50px 0; |
| 116 | padding: 0; |
| 117 | font-size: 26px; |
| 118 | color: #fff; |
| 119 | } |
| 120 | .fzbuk-login-form-wrap > h5 { |
| 121 | color: #fff; |
| 122 | margin-top: 20px; |
| 123 | font-size: 15px; |
| 124 | } |
| 125 | .fzbuk-login-form-wrap > h5 > a { |
| 126 | font-size: 15px; |
| 127 | color: #ff6760; |
| 128 | text-decoration: none; |
| 129 | font-weight: 400; |
| 130 | } |
| 131 | |
| 132 | .fzbuk-login-form input[type="text"], .fzbuk-login-form input[type="password"], .fzbuk-login-form input[type="email"] { |
| 133 | -webkit-box-sizing: border-box; |
| 134 | -moz-box-sizing: border-box; |
| 135 | box-sizing: border-box; |
| 136 | width: 100%; |
| 137 | border: 1px solid #314d89; |
| 138 | outline: none; |
| 139 | padding: 12px 20px; |
| 140 | color: #afafaf; |
| 141 | font-weight: 400; |
| 142 | font-family: "Lato", sans-serif; |
| 143 | cursor: text; |
| 144 | } |
| 145 | |
| 146 | .fzbuk-login-form label { |
| 147 | display: block !important; |
| 148 | margin: 0 !important; |
| 149 | } |
| 150 | |
| 151 | .fzbuk-login-form input[type="text"] { |
| 152 | -webkit-box-sizing: border-box; |
| 153 | -moz-box-sizing: border-box; |
| 154 | box-sizing: border-box; |
| 155 | border-bottom: none; |
| 156 | border-radius: 4px 4px 0 0; |
| 157 | padding-bottom: 13px; |
| 158 | box-shadow: 0 -1px 0 #E0E0E0 inset, 0 1px 2px rgba(0, 0, 0, 0.23) inset; |
| 159 | } |
| 160 | |
| 161 | .fzbuk-login-form input[type="submit"] { |
| 162 | font-family: "Lato", sans-serif; |
| 163 | background: #e0e0e0; |
| 164 | background: -moz-linear-gradient(top, #e0e0e0 0%, #cecece 100%); |
| 165 | background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #e0e0e0), color-stop(100%, #cecece)); |
| 166 | background: -webkit-linear-gradient(top, #e0e0e0 0%, #cecece 100%); |
| 167 | background: -o-linear-gradient(top, #e0e0e0 0%, #cecece 100%); |
| 168 | background: -ms-linear-gradient(top, #e0e0e0 0%, #cecece 100%); |
| 169 | background: linear-gradient(to bottom, #e0e0e0 0%, #cecece 100%); |
| 170 | display: block; |
| 171 | margin: 20px auto 0 auto; |
| 172 | width: 100%; |
| 173 | border: none; |
| 174 | border-radius: 3px; |
| 175 | padding: 8px; |
| 176 | font-size: 16px; |
| 177 | color: #636363; |
| 178 | text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45); |
| 179 | font-weight: 700; |
| 180 | box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.17), 0 1px 0 rgba(255, 255, 255, 0.36) inset; |
| 181 | } |
| 182 | .fzbuk-login-form input[type="submit"]:hover { |
| 183 | background: #DDD; |
| 184 | } |
| 185 | |
| 186 | .fzbuk-login-form input[type="submit"]:active { |
| 187 | padding-top: 9px; |
| 188 | padding-bottom: 7px; |
| 189 | background: #C9C9C9; |
| 190 | } |
| 191 | |
| 192 | CSS; |
| 193 | |
| 194 | } |
| 195 | } |