PageRenderTime 49ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/wp-content/plugins/akismet/views/notice.php

https://gitlab.com/edgarze188/sunrise
PHP | 102 lines | 99 code | 2 blank | 1 comment | 23 complexity | 9952c53b5acc2b145e4f558a8f3a8293 MD5 | raw file
  1. <?php if ( $type == 'plugin' ) :?>
  2. <div class="updated" style="padding: 0; margin: 0; border: none; background: none;">
  3. <style type="text/css">
  4. .akismet_activate{min-width:825px;border:1px solid #4F800D;padding:5px;margin:15px 0;background:#83AF24;background-image:-webkit-gradient(linear,0% 0,80% 100%,from(#83AF24),to(#4F800D));background-image:-moz-linear-gradient(80% 100% 120deg,#4F800D,#83AF24);-moz-border-radius:3px;border-radius:3px;-webkit-border-radius:3px;position:relative;overflow:hidden}.akismet_activate .aa_a{position:absolute;top:-5px;right:10px;font-size:140px;color:#769F33;font-family:Georgia, "Times New Roman", Times, serif;z-index:1}.akismet_activate .aa_button{font-weight:bold;border:1px solid #029DD6;border-top:1px solid #06B9FD;font-size:15px;text-align:center;padding:9px 0 8px 0;color:#FFF;background:#029DD6;background-image:-webkit-gradient(linear,0% 0,0% 100%,from(#029DD6),to(#0079B1));background-image:-moz-linear-gradient(0% 100% 90deg,#0079B1,#029DD6);-moz-border-radius:2px;border-radius:2px;-webkit-border-radius:2px}.akismet_activate .aa_button:hover{text-decoration:none !important;border:1px solid #029DD6;border-bottom:1px solid #00A8EF;font-size:15px;text-align:center;padding:9px 0 8px 0;color:#F0F8FB;background:#0079B1;background-image:-webkit-gradient(linear,0% 0,0% 100%,from(#0079B1),to(#0092BF));background-image:-moz-linear-gradient(0% 100% 90deg,#0092BF,#0079B1);-moz-border-radius:2px;border-radius:2px;-webkit-border-radius:2px}.akismet_activate .aa_button_border{border:1px solid #006699;-moz-border-radius:2px;border-radius:2px;-webkit-border-radius:2px;background:#029DD6;background-image:-webkit-gradient(linear,0% 0,0% 100%,from(#029DD6),to(#0079B1));background-image:-moz-linear-gradient(0% 100% 90deg,#0079B1,#029DD6)}.akismet_activate .aa_button_container{cursor:pointer;display:inline-block;background:#DEF1B8;padding:5px;-moz-border-radius:2px;border-radius:2px;-webkit-border-radius:2px;width:266px}.akismet_activate .aa_description{position:absolute;top:22px;left:285px;margin-left:25px;color:#E5F2B1;font-size:15px;z-index:1000}.akismet_activate .aa_description strong{color:#FFF;font-weight:normal}
  5. </style>
  6. <form name="akismet_activate" action="<?php echo esc_url( Akismet_Admin::get_page_url() ); ?>" method="POST">
  7. <div class="akismet_activate">
  8. <div class="aa_a">A</div>
  9. <div class="aa_button_container" onclick="document.akismet_activate.submit();">
  10. <div class="aa_button_border">
  11. <div class="aa_button"><?php esc_html_e('Activate your Akismet account', 'akismet');?></div>
  12. </div>
  13. </div>
  14. <div class="aa_description"><?php _e('<strong>Almost done</strong> - activate your account and say goodbye to comment spam', 'akismet');?></div>
  15. </div>
  16. </form>
  17. </div>
  18. <?php elseif ( $type == 'spam-check' ) :?>
  19. <div id="akismet-warning" class="updated fade">
  20. <p><strong><?php esc_html_e( 'Akismet has detected a problem.', 'akismet' );?></strong></p>
  21. <p><?php printf( __( 'Some comments have not yet been checked for spam by Akismet. They have been temporarily held for moderation and will automatically be rechecked later.', 'akismet' ) ); ?></p>
  22. <?php if ( $link_text ) { ?>
  23. <p><?php echo $link_text; ?></p>
  24. <?php } ?>
  25. </div>
  26. <?php elseif ( $type == 'version' ) :?>
  27. <div id="akismet-warning" class="updated fade"><p><strong><?php printf( esc_html__('Akismet %s requires WordPress 3.0 or higher.', 'akismet'), AKISMET_VERSION);?></strong> <?php printf(__('Please <a href="%1$s">upgrade WordPress</a> to a current version, or <a href="%2$s">downgrade to version 2.4 of the Akismet plugin</a>.', 'akismet'), 'https://codex.wordpress.org/Upgrading_WordPress', 'https://wordpress.org/extend/plugins/akismet/download/');?></p></div>
  28. <?php elseif ( $type == 'alert' ) :?>
  29. <div class='error'>
  30. <p><strong><?php printf( esc_html__( 'Akismet Error Code: %s', 'akismet' ), $code ); ?></strong></p>
  31. <p><?php echo esc_html( $msg ); ?></p>
  32. <p><?php
  33. /* translators: the placeholder is a clickable URL that leads to more information regarding an error code. */
  34. printf( esc_html__( 'For more information: %s' , 'akismet'), '<a href="https://akismet.com/errors/' . $code . '">https://akismet.com/errors/' . $code . '</a>' );
  35. ?>
  36. </p>
  37. </div>
  38. <?php elseif ( $type == 'missing-functions' ) :?>
  39. <div class="wrap alert critical">
  40. <h3 class="key-status failed"><?php esc_html_e('Network functions are disabled.', 'akismet'); ?></h3>
  41. <p class="description"><?php printf( __('Your web host or server administrator has disabled PHP&#8217;s <code>gethostbynamel</code> functions. <strong>Akismet cannot work correctly until this is fixed.</strong> Please contact your web host or firewall administrator and give them <a href="%s" target="_blank">this information about Akismet&#8217;s system requirements</a>.', 'akismet'), 'https://blog.akismet.com/akismet-hosting-faq/'); ?></p>
  42. </div>
  43. <?php elseif ( $type == 'servers-be-down' ) :?>
  44. <div class="wrap alert critical">
  45. <h3 class="key-status failed"><?php esc_html_e("We can&#8217;t connect to your site.", 'akismet'); ?></h3>
  46. <p class="description"><?php printf( __('Your firewall may be blocking us. Please contact your host and refer to <a href="%s" target="_blank">our guide about firewalls</a>.', 'akismet'), 'https://blog.akismet.com/akismet-hosting-faq/'); ?></p>
  47. </div>
  48. <?php elseif ( $type == 'active-dunning' ) :?>
  49. <div class="wrap alert critical">
  50. <h3 class="key-status"><?php esc_html_e("Please update your payment details.", 'akismet'); ?></h3>
  51. <p class="description"><?php printf( __('We cannot process your transaction. Please contact your bank for assistance, and <a href="%s" target="_blank">update your payment details</a>.', 'akismet'), 'https://akismet.com/account/'); ?></p>
  52. </div>
  53. <?php elseif ( $type == 'cancelled' ) :?>
  54. <div class="wrap alert critical">
  55. <h3 class="key-status"><?php esc_html_e("Your subscription is cancelled.", 'akismet'); ?></h3>
  56. <p class="description"><?php printf( __('Please visit the <a href="%s" target="_blank">Akismet account page</a> to reactivate your subscription.', 'akismet'), 'https://akismet.com/account/'); ?></p>
  57. </div>
  58. <?php elseif ( $type == 'suspended' ) :?>
  59. <div class="wrap alert critical">
  60. <h3 class="key-status failed"><?php esc_html_e("Your subscription is suspended.", 'akismet'); ?></h3>
  61. <p class="description"><?php printf( __('Please contact <a href="%s" target="_blank">Akismet support</a> for assistance.', 'akismet'), 'https://akismet.com/contact/'); ?></p>
  62. </div>
  63. <?php elseif ( $type == 'active-notice' && $time_saved ) :?>
  64. <div class="wrap alert active">
  65. <h3 class="key-status"><?php echo esc_html( $time_saved ); ?></h3>
  66. <p class="description"><?php printf( __('You can help us fight spam and upgrade your account by <a href="%s" target="_blank">contributing a token amount</a>.', 'akismet'), 'https://akismet.com/account/upgrade/'); ?></p>
  67. </div>
  68. <?php elseif ( $type == 'missing' ) :?>
  69. <div class="wrap alert critical">
  70. <h3 class="key-status failed"><?php esc_html_e( 'There is a problem with your key.', 'akismet'); ?></h3>
  71. <p class="description"><?php printf( __('Please contact <a href="%s" target="_blank">Akismet support</a> for assistance.', 'akismet'), 'https://akismet.com/contact/'); ?></p>
  72. </div>
  73. <?php elseif ( $type == 'no-sub' ) :?>
  74. <div class="wrap alert critical">
  75. <h3 class="key-status failed"><?php esc_html_e( 'Your subscription is missing.', 'akismet'); ?></h3>
  76. <p class="description"><?php printf( __('Since 2012, Akismet began using subscriptions for all accounts (even free ones). It looks like a subscription has not been assigned to your account, and we’d appreciate it if you’d <a href="%s" target="_blank">sign into your account</a> and choose one. Please <a href="%s" target="_blank">contact our support team</a> with any questions.', 'akismet'), 'https://akismet.com/account/upgrade/', 'https://akismet.com/contact/' ); ?></p>
  77. </div>
  78. <?php elseif ( $type == 'new-key-valid' ) :?>
  79. <div class="wrap alert active">
  80. <h3 class="key-status"><?php esc_html_e('Your Akismet account has been successfully set up and activated. Happy blogging!', 'akismet'); ?></h3>
  81. </div>
  82. <?php elseif ( $type == 'new-key-invalid' ) :?>
  83. <div class="wrap alert critical">
  84. <h3 class="key-status"><?php esc_html_e( 'The key you entered is invalid. Please double-check it.' , 'akismet'); ?></h3>
  85. </div>
  86. <?php elseif ( $type == 'new-key-failed' ) :?>
  87. <div class="wrap alert critical">
  88. <h3 class="key-status"><?php esc_html_e( 'The key you entered could not be verified because a connection to akismet.com could not be established. Please check your server configuration.' , 'akismet'); ?></h3>
  89. </div>
  90. <?php elseif ( $type == 'limit-reached' && in_array( $level, array( 'yellow', 'red' ) ) ) :?>
  91. <div class="wrap alert critical">
  92. <?php if ( $level == 'yellow' ): ?>
  93. <h3 class="key-status failed"><?php esc_html_e("You're using your Akismet key on more sites than your Pro subscription allows.", 'akismet'); ?></h3>
  94. <p class="description"><?php printf( __('If you would like to use Akismet on more than 10 sites, you will need to <a href="%s" target="_blank">upgrade to an Enterprise subscription</a>. If you have any questions, please <a href="%s" target="_blank">get in touch with our support team</a>', 'akismet'), 'https://akismet.com/account/upgrade/', 'https://akismet.com/contact/'); ?></p>
  95. <?php elseif ( $level == 'red' ): ?>
  96. <h3 class="key-status failed"><?php esc_html_e("You're using Akismet on far too many sites for your Pro subscription.", 'akismet'); ?></h3>
  97. <p class="description"><?php printf( __('To continue your service, <a href="%s" target="_blank">upgrade to an Enterprise subscription</a>, which covers an unlimited number of sites. Please <a href="%s" target="_blank">contact our support team</a> with any questions.', 'akismet'), 'https://akismet.com/account/upgrade/', 'https://akismet.com/contact/'); ?></p>
  98. <?php endif; ?>
  99. </div>
  100. <?php endif;?>