start.php 984 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. //phpcs:disable VariableAnalysis
  3. // There are "undefined" variables here because they're defined in the code that includes this file as a template.
  4. ?>
  5. <div id="akismet-plugin-container">
  6. <div class="akismet-masthead">
  7. <div class="akismet-masthead__inside-container">
  8. <div class="akismet-masthead__logo-container">
  9. <img class="akismet-masthead__logo" src="<?php echo esc_url( plugins_url( '../_inc/img/logo-full-2x.png', __FILE__ ) ); ?>" alt="Akismet" />
  10. </div>
  11. </div>
  12. </div>
  13. <div class="akismet-lower">
  14. <?php Akismet_Admin::display_status();?>
  15. <div class="akismet-boxes">
  16. <?php
  17. if ( Akismet::predefined_api_key() ) {
  18. Akismet::view( 'predefined' );
  19. } elseif ( $akismet_user && in_array( $akismet_user->status, array( 'active', 'active-dunning', 'no-sub', 'missing', 'cancelled', 'suspended' ) ) ) {
  20. Akismet::view( 'connect-jp', compact( 'akismet_user' ) );
  21. } else {
  22. Akismet::view( 'activate' );
  23. }
  24. ?>
  25. </div>
  26. </div>
  27. </div>