SearchWpResult.php 1.59 KB
<?php
/*
* Template Name: Search Wp Single Result Template
*/

global $user_ID;
get_currentuserinfo();
if (!$user_ID) {
    auth_redirect();
}
$post_id = $_GET['id'];
?>

<?php get_header("brokerlanding");
global $wpdb;
?>

<div id="brokercontent">
  <div class="row">
        <?php include_once('broker_sidebar.php'); ?>
    </div>
    <div class="row">
        <?php include_once('broker_sidebar_tab.php'); ?>
    </div>

    <div id="page-content">
        <?php
        if (function_exists(clean_custom_menus())) {
            clean_custom_menus();
        }
        ?>
        <h3 style="text-transform:uppercase;">
            <?php echo get_post_field('post_title', $post_id); ?>
        </h3>
        <article id="page-<?php echo $post_id ?>">
            <?php echo get_post_field('post_content', $post_id); ?>
        </article>
    </div>
</div>
</div>
<?php wp_nav_menu(
    array(
        'theme_location' => 'broker-footer',
        'container'      => 'nav',
        'container_id'   => 'broker-footer',
    )
);

?>
<script>
    jQuery(document).ready(
        function () {
            var smallMenu = jQuery('.col-sm-smallMenu');
            // Change zIndex when a user hovers the side menu
            smallMenu.on('mouseenter',function() {
                jQuery(this).css('zIndex', 999999);
            });

            smallMenu.on('mouseleave',function() {
                setTimeout(function() {
                    smallMenu.css('zIndex', 0);
                }, 500);
            });
        }
    );
</script>
<style>
    html {
        margin-top : 32px !important;
    }
</style>
<?php get_footer(); ?>