<?php
if ( is_user_logged_in() ) {
echo '';
} else {
echo '<a onclick="ppOpen('#login_panel', '800',1)" href=\"javascript:\">Entrar</a>';
}
?>
Hello, I'm trying to make this work but i'm not sure how to do the syntax.... any help would be great! thanks!
<?php if ( is_user_logged_in() ) {echo ''; } else { echo "<a onclick=\"ppOpen('#login_panel', '800',1)\" href=\"javascript:\">Entrar</a>"; } ?>
I've done this and it works, do you think is correct?