Ejemplo n.º 1
0
function jbst_nav_login_form()
{
    global $current_user;
    global $jbstecommerce;
    get_currentuserinfo();
    ?>
	      <li>
	        <form name="loginform" id="navloginform" action="<?php 
    echo home_url();
    ?>
/wp-login.php" method="post">
					<label><?php 
    _e('Username', 'jamedo-bootstrap-start-theme');
    ?>
<br />
					<input type="text" name="log" id="user_login" class="input" value="" size="20" /></label>

					<label><?php 
    _e('Password', 'jamedo-bootstrap-start-theme');
    ?>
<br />
					<input type="password" name="pwd" id="user_pass" class="input" value="" size="20" /></label>
				<label><input name="rememberme" type="checkbox" id="rememberme" value="forever" /> <?php 
    _e('Remember Me', 'jamedo-bootstrap-start-theme');
    ?>
</label> 
					<input type="submit" name="wp-submit" id="wp-submit" class="btn <?php 
    jbst_button_class();
    ?>
" value="<?php 
    _e('Log in', 'jamedo-bootstrap-start-theme');
    ?>
"  />
					<input type="hidden" name="redirect_to" value="<?php 
    echo home_url();
    ?>
/wp-admin/" />
			
					<input type="hidden" name="testcookie" value="1" />
					 <a href="<?php 
    echo home_url();
    ?>
/wp-login.php?action=lostpassword" class="lost-password" title="<?php 
    _e('Password Lost and Found', 'jamedo-bootstrap-start-theme');
    ?>
"><?php 
    _e('Lost Password?', 'jamedo-bootstrap-start-theme');
    ?>
</a>
			</form>	      
	      	
	      </li>
	      <?php 
    wp_register('<li class="divider"></li><li>', '</li>');
}
Ejemplo n.º 2
0
?>
    
	<form method="get" class="search-form" action="<?php 
echo esc_url(home_url('/'));
?>
" role="search">
		<div class="form-group">
		<label>
		<span class="sr-only"><?php 
esc_attr_e('Search for:', 'jamedo-bootstrap-start-theme');
?>
</span>
		<input type="search" class="form-control" placeholder="<?php 
esc_attr_e('Search &hellip;', 'jamedo-bootstrap-start-theme');
?>
" value="" name="s" title="<?php 
esc_attr_e('Search for:', 'jamedo-bootstrap-start-theme');
?>
" />
		</label>
	
		<button type="submit" class="btn <?php 
jbst_button_class();
?>
 searchbutton" name="submit"><?php 
esc_attr_e('Search', 'jamedo-bootstrap-start-theme');
?>
</button>
		</div>
	</form>