Sie sind auf Seite 1von 1

[ajaxy-live-search show_category="1" show_post_category="1"

post_types="post,page,attachment,services,employees,testimonials,client
s,projects,product,shop_order_refund,phort_post" label="Search"
iwidth="220" allow_expand="on" expand="250" delay="500" width="65"
url="http://guru-datta.com/?s=%s" border="1px solid #eee"]

<!-- Login -->


<div id="inline-form" class="page-login hidden">
<?php wp_login_form( array ( 'redirect' =>
site_url( $_SERVER['REQUEST_URI'] ), 'value_remember' => true ) ); ?>
<a href="<?php echo esc_url( wp_login_url() ); ?>?
action=register">Register</a><br/>
<a href="<?php echo esc_url( wp_login_url() ); ?>?
action=lostpassword">Lost your password</a>
</div>
<div class="login-logout">
<?php if ( ! is_user_logged_in() ) { ?>
<a href="#inline-form" class="fancy-zoom">Login </a> |
<a href="<?php echo esc_url( wp_login_url() ); ?>?
action=register">Register</a>
<?php } else {
$current_user = wp_get_current_user(); ?>
<?php echo $current_user->user_firstname. ' | ';?> <a href="<?php
echo esc_url( admin_url( '/profile.php' ) ); ?>">Update Profile</a> | <a
href = "<?php echo wp_logout_url( home_url() ); ?>" title = "Logout" >
Log out</a >

<?php } ?>
</div>
<script>
$(".fancy-zoom").fancybox({
fitToView : false,
width : 360,
height : 320,
autoSize : true,
closeClick : false,
openEffect : 'none',
closeEffect : 'none'
});
</script>

Das könnte Ihnen auch gefallen