SearchWpResult.php
1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<?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(); ?>