how can i put an HREF inside an IF ELSE ?
-
im using justin tadlocks sliding plugin which gives the original call like so
<a class="open" title=" <?php _e('Open panel', 'sliding-panel'); ?>"> <?php _e('Open <span class="arrow">↓</span>', 'sliding-panel'); ?> </a>
and i want make something like this –
<?php if ( is_user_logged_in() ) { echo '<a href="<?php echo wp_logout_url( get_permalink() ); ?>" title="Logout">Logout</a>'; } else { echo ' <a class="open" title=" <?php _e('Open panel', 'sliding-panel'); ?>"> <?php _e('Open <span class="arrow">↓</span>', 'sliding-panel'); ?> </a>'; } ?>
however its getting an href inside a if else statement, its just not doing it!!
any ideas here, i thought probably i can build a custom function with the URL and put that in, but ive no idea how to go about that.
thanks for any tips!!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘how can i put an HREF inside an IF ELSE ?’ is closed to new replies.