| @@ -43,10 +43,8 @@ | ||
| 43 | 43 | /** |
| 44 | 44 | * Hooks. |
| 45 | 45 | * |
| 46 | 46 | * @since 4.04.04 |
| 47 | - * | |
| 48 | - * @return void | |
| 49 | 47 | */ |
| 50 | 48 | public static function load_hooks() { |
| 51 | 49 | |
| 52 | 50 | add_filter( 'wp_mail_smtp_is_white_labeled', '__return_true' ); |
| @@ -72,10 +70,8 @@ | ||
| 72 | 70 | } |
| 73 | 71 | |
| 74 | 72 | /** |
| 75 | 73 | * Customize the upgrade link. |
| 76 | - * | |
| 77 | - * @return string | |
| 78 | 74 | */ |
| 79 | 75 | public function link( $link ) { |
| 80 | 76 | $new_link = 'formidableforms.com/go-wp-mail-smtp/?urllink=wpmailsmtp%2Ecom%2Flite%2Dupgrade&'; |
| 81 | 77 | $link = str_replace( 'wpmailsmtp.com/lite-upgrade/?', $new_link, $link ); |
| @@ -100,10 +96,8 @@ | ||
| 100 | 96 | } |
| 101 | 97 | |
| 102 | 98 | /** |
| 103 | 99 | * SMTP submenu page. |
| 104 | - * | |
| 105 | - * @return void | |
| 106 | 100 | */ |
| 107 | 101 | public function menu() { |
| 108 | 102 | add_submenu_page( 'formidable', __( 'SMTP', 'formidable' ) . ' | Formidable', __( 'SMTP', 'formidable' ), 'activate_plugins', $this->slug, array( $this, 'output' ) ); |
| 109 | 103 | } |
| @@ -111,10 +105,8 @@ | ||
| 111 | 105 | /** |
| 112 | 106 | * Generate and output page HTML. |
| 113 | 107 | * |
| 114 | 108 | * @since 4.04.04 |
| 115 | - * | |
| 116 | - * @return void | |
| 117 | 109 | */ |
| 118 | 110 | public function output() { |
| 119 | 111 | FrmAppHelper::include_svg(); |
| 120 | 112 | $this->css(); |
| @@ -132,10 +124,8 @@ | ||
| 132 | 124 | /** |
| 133 | 125 | * Generate and output heading section HTML. |
| 134 | 126 | * |
| 135 | 127 | * @since 4.04.04 |
| 136 | - * | |
| 137 | - * @return void | |
| 138 | 128 | */ |
| 139 | 129 | protected function output_section_heading() { |
| 140 | 130 | $size = array( |
| 141 | 131 | 'height' => 90, |
| @@ -168,10 +158,8 @@ | ||
| 168 | 158 | /** |
| 169 | 159 | * Generate and output screenshot section HTML. |
| 170 | 160 | * |
| 171 | 161 | * @since 4.04.04 |
| 172 | - * | |
| 173 | - * @return void | |
| 174 | 162 | */ |
| 175 | 163 | protected function output_section_screenshot() { |
| 176 | 164 | |
| 177 | 165 | printf( |
| @@ -199,10 +187,8 @@ | ||
| 199 | 187 | /** |
| 200 | 188 | * Generate and output step 'Install' section HTML. |
| 201 | 189 | * |
| 202 | 190 | * @since 4.04.04 |
| 203 | - * | |
| 204 | - * @return void | |
| 205 | 191 | */ |
| 206 | 192 | protected function output_section_step_install() { |
| 207 | 193 | |
| 208 | 194 | $step = $this->get_data_step_install(); |
| @@ -248,10 +234,8 @@ | ||
| 248 | 234 | /** |
| 249 | 235 | * Generate and output step 'Setup' section HTML. |
| 250 | 236 | * |
| 251 | 237 | * @since 4.04.04 |
| 252 | - * | |
| 253 | - * @return void | |
| 254 | 238 | */ |
| 255 | 239 | protected function output_section_step_setup() { |
| 256 | 240 | |
| 257 | 241 | $step = $this->get_data_step_setup(); |
| @@ -399,14 +383,15 @@ | ||
| 399 | 383 | protected function is_smtp_activated() { |
| 400 | 384 | return function_exists( 'wp_mail_smtp' ) && ( is_plugin_active( $this->config['lite_plugin'] ) || is_plugin_active( $this->config['pro_plugin'] ) ); |
| 401 | 385 | } |
| 402 | 386 | |
| 387 | + | |
| 403 | 388 | /** |
| 404 | 389 | * Get $phpmailer instance. |
| 405 | 390 | * |
| 406 | 391 | * @since 4.04.04 |
| 407 | 392 | * |
| 408 | - * @return \WPMailSMTP\Providers\MailCatcherInterface|PHPMailer Instance of PHPMailer. | |
| 393 | + * @return PHPMailer Instance of PHPMailer. | |
| 409 | 394 | */ |
| 410 | 395 | protected function get_phpmailer() { |
| 411 | 396 | global $phpmailer; |
| 412 | 397 | |
| @@ -425,10 +410,8 @@ | ||
| 425 | 410 | /** |
| 426 | 411 | * Redirect to SMTP settings page if it is activated.. |
| 427 | 412 | * |
| 428 | 413 | * @since 4.04.04 |
| 429 | - * | |
| 430 | - * @return void | |
| 431 | 414 | */ |
| 432 | 415 | public function redirect_to_smtp_settings() { |
| 433 | 416 | if ( $this->is_smtp_configured() ) { |
| 434 | 417 | wp_safe_redirect( admin_url( $this->config['smtp_settings'] ) ); |
| @@ -435,11 +418,8 @@ | ||
| 435 | 418 | exit; |
| 436 | 419 | } |
| 437 | 420 | } |
| 438 | 421 | |
| 439 | - /** | |
| 440 | - * @return void | |
| 441 | - */ | |
| 442 | 422 | private function stmp_logo() { |
| 443 | 423 | ?> |
| 444 | 424 | <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60" height="90" width="90"><defs><style>.cls-11,.cls-12{fill-rule:evenodd}.cls-4{fill:none}.cls-11{fill:#86a196}.cls-12{fill:#fff}</style></defs><path class="cls-4" d="M-6.3 0h60v60h-60z"/><path d="M16.7 8.1a15.4 15.4 0 00-8 10.2 23.5 23.5 0 1030 0 15.4 15.4 0 00-9.3-10.8 3.4 3.4 0 00-2.1-2.7A4.6 4.6 0 0018.4 3a24.4 24.4 0 00-1.7 5z" fill="#395360" fill-rule="evenodd"/><path fill="#fbaa6f" d="M18 26h12v14H18z"/><path d="M25.9 33.2l-.1-.1a1.4 1.4 0 111.6-2.3 1.9 1.9 0 00-1.2.8 1.9 1.9 0 00-.3 1.6zm-4.5 0a1.8 1.8 0 00-.4-1.6 2 2 0 00-1.2-.8 1.4 1.4 0 011.6 2.3zm7.2-3.2h.5l-1 4.8-2.2 6.5h-4.3l-3.2-5.4 1.1-3.2 2.1 2.7c.6.5 2.7.5 3.8-.6a26.2 26.2 0 003.2-4.8z" fill="#dc7f3c" fill-rule="evenodd"/><path d="M9.7 29H15v-9h-4a13 13 0 017.4-10q1.2-5 2.8-6.8l.1-.1.1-.1a2.3 2.3 0 011.1-.5 2.3 2.3 0 012.2 3.8 1.6 1.6 0 01-.4.3A15 15 0 0023 8a5 5 0 013-1.5 1.4 1.4 0 01.7.2 1.3 1.3 0 01.5 1.8 1.3 1.3 0 01-.6.6 13 13 0 0110.1 11l.1.8H33v8h4.8l1.8 13.4q-6.3 4-15.8 4T8 42.4zM25 38.4q3.8-6.4 3.8-7.6c0-2.2-3.2-4-4.8-4s-4.9 1.7-4.9 4q0 1.2 3.8 7.6a1.2 1.2 0 001 .6 1 1 0 001-.6z" fill="#bdcfc8" fill-rule="evenodd"/><path class="cls-4" d="M19 31h9.6L27 47.2h-6.4l-1.6-16z"/><path d="M39.8 48.8a20 20 0 01-32 0l.8-6a2.7 2.7 0 001 .1 2.8 2.8 0 002.8-2.4v1.2a2.8 2.8 0 005.6 0v1.6a2.9 2.9 0 005.7 0 2.8 2.8 0 005.7 0v-1.6a2.8 2.8 0 105.7 0v-1.2A2.8 2.8 0 0038 43a2.9 2.9 0 001-.2l.8 6z" fill="#809eb0" fill-rule="evenodd"/><path d="M8.3 44.6l.3-1.8a2.7 2.7 0 001 .2 2.8 2.8 0 002.8-2.5v1.2a2.8 2.8 0 005.7 0v1.7a2.9 2.9 0 005.6 0 2.8 2.8 0 005.7 0v-1.7a2.8 2.8 0 105.7 0v-1.2A2.8 2.8 0 0038 43a2.9 2.9 0 001-.2l.3 2a2.9 2.9 0 01-4.1-2.2v1.2a2.8 2.8 0 11-5.7 0v1.6a2.8 2.8 0 01-5.7 0 2.9 2.9 0 01-5.7 0v-1.7a2.8 2.8 0 01-5.7 0v-1.2A2.8 2.8 0 019.6 45a2.9 2.9 0 01-1.3-.3z" fill="#738e9e" fill-rule="evenodd"/><path class="cls-11" d="M37.8 22.4c-1-2.9-3-4.7-4.7-4.5-2.2.2-2.8 3.7-2.3 8s1.7 7.5 3.9 7.3 4-3.9 3.6-8c0 1.2-.5 2.3-1.3 2.4-1.2 0-1.5-1.2-1.6-2.9s-.2-3 1-3a1.5 1.5 0 011.4.7z"/><path class="cls-12" d="M37 21.8c-.6-1.3-1.5-2-2.4-1.9-1.5.1-1.9 2.6-1.6 5.5s1.2 5.1 2.7 5c1.1-.2 2-1.5 2.2-3.4a1.2 1.2 0 01-1 .6c-1 0-1.4-1.2-1.5-2.9s-.1-3 1-3a1.6 1.6 0 01.6 0z"/><path class="cls-11" d="M9.6 22.4c1-2.9 3-4.7 4.7-4.5 2.2.2 2.8 3.7 2.3 8s-1.7 7.5-3.9 7.3-4-3.9-3.7-8c.1 1.2.5 2.3 1.4 2.4 1.1 0 1.5-1.2 1.6-2.9s.1-3-1-3a1.5 1.5 0 00-1.4.7z"/><path class="cls-12" d="M10.4 21.8c.6-1.3 1.5-2 2.4-1.9 1.5.1 1.8 2.6 1.5 5.5s-1.1 5.1-2.6 5c-1.1-.2-2-1.5-2.2-3.4a1.2 1.2 0 00.9.6c1.1 0 1.4-1.2 1.6-2.9s.1-3-1-3a1.7 1.7 0 00-.7 0z"/><path d="M19 28.6a5.3 5.3 0 010-.7c0-2.4 1.2-5.2 4.9-5.2s4.8 2.8 4.8 5.2a4.4 4.4 0 010 1c-.9-1.3-2.4-2.1-4.9-2.1-2.4 0-3.9.7-4.8 1.8z" fill="#f4f8ff" fill-rule="evenodd"/><path class="cls-11" d="M26.5 9.2L23.3 9l4-1.2a1.4 1.4 0 01-.8 1.4zm-3.5-1l-1.3 1a16.8 16.8 0 002-3.8 6.6 6.6 0 00.3-2.7A2.4 2.4 0 0125.2 5a2.4 2.4 0 01-.7 1.5A15 15 0 0023 8.1z"/></svg> |
| 445 | 425 | <?php |
| @@ -444,11 +424,8 @@ | ||
| 444 | 424 | <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60" height="90" width="90"><defs><style>.cls-11,.cls-12{fill-rule:evenodd}.cls-4{fill:none}.cls-11{fill:#86a196}.cls-12{fill:#fff}</style></defs><path class="cls-4" d="M-6.3 0h60v60h-60z"/><path d="M16.7 8.1a15.4 15.4 0 00-8 10.2 23.5 23.5 0 1030 0 15.4 15.4 0 00-9.3-10.8 3.4 3.4 0 00-2.1-2.7A4.6 4.6 0 0018.4 3a24.4 24.4 0 00-1.7 5z" fill="#395360" fill-rule="evenodd"/><path fill="#fbaa6f" d="M18 26h12v14H18z"/><path d="M25.9 33.2l-.1-.1a1.4 1.4 0 111.6-2.3 1.9 1.9 0 00-1.2.8 1.9 1.9 0 00-.3 1.6zm-4.5 0a1.8 1.8 0 00-.4-1.6 2 2 0 00-1.2-.8 1.4 1.4 0 011.6 2.3zm7.2-3.2h.5l-1 4.8-2.2 6.5h-4.3l-3.2-5.4 1.1-3.2 2.1 2.7c.6.5 2.7.5 3.8-.6a26.2 26.2 0 003.2-4.8z" fill="#dc7f3c" fill-rule="evenodd"/><path d="M9.7 29H15v-9h-4a13 13 0 017.4-10q1.2-5 2.8-6.8l.1-.1.1-.1a2.3 2.3 0 011.1-.5 2.3 2.3 0 012.2 3.8 1.6 1.6 0 01-.4.3A15 15 0 0023 8a5 5 0 013-1.5 1.4 1.4 0 01.7.2 1.3 1.3 0 01.5 1.8 1.3 1.3 0 01-.6.6 13 13 0 0110.1 11l.1.8H33v8h4.8l1.8 13.4q-6.3 4-15.8 4T8 42.4zM25 38.4q3.8-6.4 3.8-7.6c0-2.2-3.2-4-4.8-4s-4.9 1.7-4.9 4q0 1.2 3.8 7.6a1.2 1.2 0 001 .6 1 1 0 001-.6z" fill="#bdcfc8" fill-rule="evenodd"/><path class="cls-4" d="M19 31h9.6L27 47.2h-6.4l-1.6-16z"/><path d="M39.8 48.8a20 20 0 01-32 0l.8-6a2.7 2.7 0 001 .1 2.8 2.8 0 002.8-2.4v1.2a2.8 2.8 0 005.6 0v1.6a2.9 2.9 0 005.7 0 2.8 2.8 0 005.7 0v-1.6a2.8 2.8 0 105.7 0v-1.2A2.8 2.8 0 0038 43a2.9 2.9 0 001-.2l.8 6z" fill="#809eb0" fill-rule="evenodd"/><path d="M8.3 44.6l.3-1.8a2.7 2.7 0 001 .2 2.8 2.8 0 002.8-2.5v1.2a2.8 2.8 0 005.7 0v1.7a2.9 2.9 0 005.6 0 2.8 2.8 0 005.7 0v-1.7a2.8 2.8 0 105.7 0v-1.2A2.8 2.8 0 0038 43a2.9 2.9 0 001-.2l.3 2a2.9 2.9 0 01-4.1-2.2v1.2a2.8 2.8 0 11-5.7 0v1.6a2.8 2.8 0 01-5.7 0 2.9 2.9 0 01-5.7 0v-1.7a2.8 2.8 0 01-5.7 0v-1.2A2.8 2.8 0 019.6 45a2.9 2.9 0 01-1.3-.3z" fill="#738e9e" fill-rule="evenodd"/><path class="cls-11" d="M37.8 22.4c-1-2.9-3-4.7-4.7-4.5-2.2.2-2.8 3.7-2.3 8s1.7 7.5 3.9 7.3 4-3.9 3.6-8c0 1.2-.5 2.3-1.3 2.4-1.2 0-1.5-1.2-1.6-2.9s-.2-3 1-3a1.5 1.5 0 011.4.7z"/><path class="cls-12" d="M37 21.8c-.6-1.3-1.5-2-2.4-1.9-1.5.1-1.9 2.6-1.6 5.5s1.2 5.1 2.7 5c1.1-.2 2-1.5 2.2-3.4a1.2 1.2 0 01-1 .6c-1 0-1.4-1.2-1.5-2.9s-.1-3 1-3a1.6 1.6 0 01.6 0z"/><path class="cls-11" d="M9.6 22.4c1-2.9 3-4.7 4.7-4.5 2.2.2 2.8 3.7 2.3 8s-1.7 7.5-3.9 7.3-4-3.9-3.7-8c.1 1.2.5 2.3 1.4 2.4 1.1 0 1.5-1.2 1.6-2.9s.1-3-1-3a1.5 1.5 0 00-1.4.7z"/><path class="cls-12" d="M10.4 21.8c.6-1.3 1.5-2 2.4-1.9 1.5.1 1.8 2.6 1.5 5.5s-1.1 5.1-2.6 5c-1.1-.2-2-1.5-2.2-3.4a1.2 1.2 0 00.9.6c1.1 0 1.4-1.2 1.6-2.9s.1-3-1-3a1.7 1.7 0 00-.7 0z"/><path d="M19 28.6a5.3 5.3 0 010-.7c0-2.4 1.2-5.2 4.9-5.2s4.8 2.8 4.8 5.2a4.4 4.4 0 010 1c-.9-1.3-2.4-2.1-4.9-2.1-2.4 0-3.9.7-4.8 1.8z" fill="#f4f8ff" fill-rule="evenodd"/><path class="cls-11" d="M26.5 9.2L23.3 9l4-1.2a1.4 1.4 0 01-.8 1.4zm-3.5-1l-1.3 1a16.8 16.8 0 002-3.8 6.6 6.6 0 00.3-2.7A2.4 2.4 0 0125.2 5a2.4 2.4 0 01-.7 1.5A15 15 0 0023 8.1z"/></svg> |
| 445 | 425 | <?php |
| 446 | 426 | } |
| 447 | 427 | |
| 448 | - /** | |
| 449 | - * @return void | |
| 450 | - */ | |
| 451 | 428 | private function css() { |
| 452 | 429 | ?> |
| 453 | 430 | <style> |
| 454 | 431 | #frm-admin-smtp *, #frm-admin-smtp *::before, #frm-admin-smtpp *::after { |