Пример #1
0
<?php

$style_url = get_bloginfo('stylesheet_directory');
$app_url = get_bloginfo('url');
$nh_errors = $theme_my_login->errors;
$value = getL2Keys($nh_errors);
?>
<div id="content">
	<div id="page-register">
		<h3 class="page-title">Create a CityHow Account</h3>

		<div class="login" id="theme-my-login<?php 
$template->the_instance();
?>
">
<?php 
$template->the_action_template_message('');
$template->the_errors();
?>
    
			<form class="nh-register form-horizontal" name="registerform" id="registerform<?php 
$template->the_instance();
?>
" action="<?php 
$template->the_action_url('register');
?>
" method="post">				
				
			<div class="form-item">
				<label for="user_login<?php 
$template->the_instance();
Пример #2
0
<?php

$style_url = get_bloginfo('stylesheet_directory');
$app_url = get_bloginfo('url');
$nh_errors = $theme_my_login->errors;
$nh_error_keys = getL2Keys($nh_errors);
$user_role = reset($profileuser->roles);
if (is_multisite() && empty($user_role)) {
    $user_role = 'subscriber';
}
$user_can_edit = false;
foreach (array('posts', 'pages') as $post_cap) {
    $user_can_edit |= current_user_can("edit_{$post_cap}");
}
// VIEWER INFO
global $current_user;
get_currentuserinfo();
?>
<div id="content">
	<div id="page-register">
		<p class="backto"><a class="nhline" href="<?php 
echo $app_url;
?>
/author/<?php 
echo $current_user->user_login;
?>
" title="Back to your profile">&#60; back to your Profile</a>
		</p>
		<h3 class="page-title profile">Edit Your Settings</h3>
		
		<div class="login" id="theme-my-login<?php