<commit_before><?php
/**
 * interface.php
 *
 * User Interface Elements for wp-openid
 * Dual Licence: GPL & Modified BSD
 */
if ( !class_exists('WordpressOpenIDInterface') ) {
class WordpressOpenIDInterface {

	var $logic;  // Hold core logic instance
	var $core;  // Hold core instance

	var $profile_page_name = 'openid';

	/**
	 * Constructor.
	 */
	function WordpressOpenIDInterface($core) {
		$this->core =& $core;
		$this->logic =& $core->logic;
	}

	
	/**
	 * Provide more useful OpenID error message to the user.
	 *
	 * @filter: login_errors
	 **/
	function login_form_hide_username_password_errors($r) {
		if( $_POST['openid_url']
			or $_REQUEST['action'] == 'loginopenid'
			or $_REQUEST['action'] == 'commentopenid' ) return $this->logic->error;
		return $r;
	}


	/**
	 * Add OpenID input field to wp-login.php
	 *
	 * @action: login_form
	 **/
	function login_form() {
		global $wp_version;

		$link_class = 'openid_link';
		if ($wp_version < '2.5') {
			$link_class .= ' legacy';
		}

		?>
		<hr />
		<p>
			<label><?php printf(__('Or login using your %s url:', 'openid'), '<a class="'.$link_class.'" href="http://openid.net/">'.__('OpenID', 'openid').'</a>') ?><br/>
			<input type="text" name="openid_url" id="openid_url" class="input openid_url" value="" size="20" tabindex="25" /></label>
		</p><commit_msg>style to login form<commit_after><?php
/**
 * interface.php
 *
 * User Interface Elements for wp-openid
 * Dual Licence: GPL & Modified BSD
 */
if ( !class_exists('WordpressOpenIDInterface') ) {
class WordpressOpenIDInterface {

	var $logic;  // Hold core logic instance
	var $core;  // Hold core instance

	var $profile_page_name = 'openid';

	/**
	 * Constructor.
	 */
	function WordpressOpenIDInterface($core) {
		$this->core =& $core;
		$this->logic =& $core->logic;
	}

	
	/**
	 * Provide more useful OpenID error message to the user.
	 *
	 * @filter: login_errors
	 **/
	function login_form_hide_username_password_errors($r) {
		if( $_POST['openid_url']
			or $_REQUEST['action'] == 'loginopenid'
			or $_REQUEST['action'] == 'commentopenid' ) return $this->logic->error;
		return $r;
	}


	/**
	 * Add OpenID input field to wp-login.php
	 *
	 * @action: login_form
	 **/
	function login_form() {
		global $wp_version;

		$link_class = 'openid_link';
		if ($wp_version < '2.5') {
			$link_class .= ' legacy';
		}

		?>
		<hr />
		<p style="margin-top: 1em;">
			<label><?php printf(__('Or login using your %s url:', 'openid'), '<a class="'.$link_class.'" href="http://openid.net/">'.__('OpenID', 'openid').'</a>') ?><br/>
			<input type="text" name="openid_url" id="openid_url" class="input openid_url" value="" size="20" tabindex="25" /></label>
		</p>
{'fraction_non_alphanumeric': 0.18682545589877186, 'fraction_numerical': 0.004838109415705247, 'mean_word_length': 3.7914438502673797, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 35, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '599194', 'n_tokens_mistral': 1047, 'n_tokens_neox': 938, 'n_words': 218}