SHARE
TWEET

Untitled

a guest Oct 17th, 2017 81 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <div id="login">
  2. <div class="benvenuto">
  3. <h4>Benvenuto</h4>
  4. <?php  if (is_user_logged_in()){ ?>
  5. <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php" class="loguser"><?php $user=wp_get_current_user(); echo $user->display_name; ?></a>
  6. <?php } else { ?>
  7. <span class="nuovoutente">nuovo utente</span>
  8. <?php } ?>
  9. </div>
  10. <div class="formlogreg">
  11. <?php  if (is_user_logged_in()){ ?>
  12. <div class="profileedit">
  13. <p><img src="<?php bloginfo('stylesheet_directory'); ?>/images/npost.png" alt="numero post" /> Complimenti, hai già scritto <?php the_author_posts(); ?> post!</p>
  14. <p><img src="<?php bloginfo('stylesheet_directory'); ?>/images/nscrivi.png" alt="scrivi post" /> <a href="<?php echo get_option('home'); ?>/wp-admin/post-new.php" title="scrivi un articolo">Scrivi un nuovo articolo.</a></p>
  15. <p><img src="<?php bloginfo('stylesheet_directory'); ?>/images/nesci.png" alt="esci" /> <a href="<?php echo wp_logout_url(); ?>" title="Logout">Logout.</a>
  16. </p>
  17. </div>
  18. <?php } else { ?>
  19. <div class="log">
  20. <form name="loginform" action="<?php echo get_option('home'); ?>/wp-login.php" method="post">
  21. <span class="left">User: <input type="text" name="log" class="reg" /> Pass: <input type="password" name="pwd" class="reg" /></span>
  22. <span class="left">
  23. <input type="submit" name="wp-submit" value="Accedi" class="submit" />
  24. <input type="hidden" name="redirect_to" value="<?php echo get_option('home'); ?>/wp-admin" />
  25. <input type="hidden" name="testcookie" value="1" />
  26. </span>
  27. </form>
  28. </div>
  29. <div class="registrazione">
  30. <b>Non hai un account?</b>
  31. <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=register" title="registrazione">Registrati su....</a>
  32. </div>
  33. <?php } ?>
  34. </div>
  35. </div>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top