A WordPress-centric search engine for devs and theme authors



login_footer ›

Sincen/a
Deprecatedn/a
login_footer ( $input_id = '' )
Parameters:
  • (string) $input_id Which input to auto-focus
    Required: No
    Default: (empty)
Defined at:
Codex:

Outputs the footer for the login page.



Source

function login_footer( $input_id = '' ) {
	global $interim_login;

	// Don't allow interim logins to navigate away from the page.
	if ( ! $interim_login ) :
	?>
	<p id="backtoblog"><a href="<?php echo esc_url( home_url( '/' ) ); ?>">
											<?php
											/* translators: %s: site title */
											printf( _x( '&larr; Back to %s', 'site' ), get_bloginfo( 'title', 'display' ) );
	?>
	</a></p>
	<?php endif; ?>

	</div>

	<?php if ( ! empty( $input_id ) ) : ?>
	<script type="text/javascript">
	try{document.getElementById('<?php echo $input_id; ?>').focus();}catch(e){}
	if(typeof wpOnload=='function')wpOnload();
	</script>
	<?php endif; ?>

	<?php
	/**
	 * Fires in the login page footer.
	 *
	 * @since 3.1.0
	 */
	do_action( 'login_footer' );
	?>
	<div class="clear"></div>
	</body>
	</html>
	<?php
}