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