Hide content in theme files using Membership plugin

I know I can use shortcodes to hide content within a page, however I'd like to hide content in my theme files (For example links in the header and footer, sidebar items, etc.) based on if they are a member or not.

How can I do this using PHP? Is there any way I can utilise the do_shortcode() function to do this?