Results 1 to 4 of 4

Thread: PHP help please...

  1. #1
    Thread Starter
    Junior Member m4rty5miff's Avatar
    Join Date
    Jul 2010
    Location
    United Kingdom
    Posts
    45
    Thanks
    1
    Thanked 4 Times in 4 Posts

    PHP help please...

    Hello,

    I want to modify the 'IF' statement below so that the DIV
    HTML Code:
    <div class="shadowblock_out">
    is only visible to users NOT logged in, I think I need to add this logic
    Code:
    !is_user_logged_in()
    but not entirely sure how to go about it. - Can anyone help please. Thanks

    Code:
    <?php if ( get_option('cp_home_layout') == 'directory' ) : ?>
    
    <div class="shadowblock_out">
    
    
    
                        <div class="shadowblock">
    
    
    
                       <h1><span class="colour">Free UK classified ad listings for used motorbikes, trikes, quads and scooters.</span></h1>
    
    <p>List your classified ads completely free, motorbike dealers and private sellers are all welcome.  Find, Buy and Sell motorbikes in your region. <a href="http://www.bikeandscooter.co.uk/wp-login.php?action=register">Registration</a> is simple and completely free and our easy ad-management dashboard will help you stay in control of all of your ads.  So why not <a href="http://www.bikeandscooter.co.uk/wp-login.php?action=register">join today</a> and start listing your classified ads within minutes. . </p>
    
                        </div><!-- /shadowblock -->
    
    
    
                    </div><!-- /shadowblock_out -->
    
    
    
                <?php endif; ?>
    Martin Smith
    www.bikeandscooter.co.uk
    Buy and sell motorbikes and scooters in the UK

  2. #2
    Thread Starter
    Junior Member m4rty5miff's Avatar
    Join Date
    Jul 2010
    Location
    United Kingdom
    Posts
    45
    Thanks
    1
    Thanked 4 Times in 4 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Martin Smith
    www.bikeandscooter.co.uk
    Buy and sell motorbikes and scooters in the UK

  3. #3
    Veteran goodwash's Avatar
    Join Date
    Nov 2011
    Location
    Russian Federation
    Posts
    361
    Thanks
    0
    Thanked 79 Times in 73 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  4. #4
    Thread Starter
    Junior Member m4rty5miff's Avatar
    Join Date
    Jul 2010
    Location
    United Kingdom
    Posts
    45
    Thanks
    1
    Thanked 4 Times in 4 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Martin Smith
    www.bikeandscooter.co.uk
    Buy and sell motorbikes and scooters in the UK

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)