[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-content/plugins/akismet/views/ -> get.php (source)

   1  <?php
   2  
   3  //phpcs:disable VariableAnalysis
   4  // There are "undefined" variables here because they're defined in the code that includes this file as a template.
   5  
   6  $submit_classes_attr = 'akismet-button';
   7  
   8  if ( isset( $classes ) && ( is_countable( $classes ) ? count( $classes ) : 0 ) > 0 ) {
   9      $submit_classes_attr = implode( ' ', $classes );
  10  }
  11  ?>
  12  
  13  <form name="akismet_activate" action="https://akismet.com/get/" method="POST" target="_blank">
  14      <input type="hidden" name="passback_url" value="<?php echo esc_url( Akismet_Admin::get_page_url() ); ?>"/>
  15      <input type="hidden" name="blog" value="<?php echo esc_url( get_option( 'home' ) ); ?>"/>
  16      <input type="hidden" name="redirect" value="<?php echo isset( $redirect ) ? $redirect : 'plugin-signup'; ?>"/>
  17      <button type="submit" class="<?php echo esc_attr( $submit_classes_attr ); ?>" value="<?php echo esc_attr( $text ); ?>"><?php echo esc_attr( $text ) . '<span class="screen-reader-text">' . esc_html__( '(opens in a new tab)', 'akismet' ) . '</span>'; ?></button>
  18  </form>


Generated : Sun Dec 22 08:20:01 2024 Cross-referenced by PHPXref