<?php ufandshands_breadcrumbs(); ?> <div id="content-wrap"> <div id="content-shadow"> <div id="content" class="container"> <?php $currenttemplate = get_post_meta($post->ID, '_wp_page_template', true); //members only template check ?> <?php if ($currenttemplate != "membersonly.php" || $currenttemplate == "membersonly.php" && ufandshands_members_only()) { //members only logic ?> <?php get_sidebar(); //call in the sidebar and navigation ?> <?php $page_right_sidebar = ufandshands_sidebar_detector('page_right', false); $article_width = ''; if (!empty($ufandshands_sidebar_nav) && $page_right_sidebar) { $article_width = '12'; } elseif (!empty($ufandshands_sidebar_nav) && !$page_right_sidebar) { $article_width = '17';
} else { echo ' ' . $count . ' results were found'; } ?> </h4> <?php while (have_posts()) { the_post(); ?> <?php // Set Loop variables $currenttemplate = get_post_meta($post->ID, '_wp_page_template', true); $ip = $_SERVER['REMOTE_ADDR']; $members_only = ufandshands_members_only(); ?> <div class="entry"> <?php if ($currenttemplate == "membersonly.php") { if ($members_only) { ?> <!-- Members Only --> <?php if (function_exists("ufandshands_post_thumbnail")) { ufandshands_post_thumbnail('thumbnail', 'alignleft', 150, 150); } ?>