forked from markosbarbosa/wpimoveis
/
single-imovel.php
118 lines (86 loc) · 3.17 KB
/
single-imovel.php
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<?php get_header(); ?>
<!-- Script para galeria de Imagens :: Comeco -->
<script type="text/javascript">
$(function() {
$('img.image1').data('ad-desc', 'Whoa! This description is set through elm.data("ad-desc") instead of using the longdesc attribute.<br>And it contains <strong>H</strong>ow <strong>T</strong>o <strong>M</strong>eet <strong>L</strong>adies... <em>What?</em> That aint what HTML stands for? Man...');
$('img.image1').data('ad-title', 'Title through $.data');
$('img.image4').data('ad-desc', 'This image is wider than the wrapper, so it has been scaled down');
$('img.image5').data('ad-desc', 'This image is higher than the wrapper, so it has been scaled down');
var galleries = $('.ad-gallery').adGallery();
$('#switch-effect').change(
function() {
galleries[0].settings.effect = $(this).val();
return false;
}
);
$('#toggle-slideshow').click(
function() {
galleries[0].slideshow.toggle();
return false;
}
);
$('#toggle-description').click(
function() {
if(!galleries[0].settings.description_wrapper) {
galleries[0].settings.description_wrapper = $('#descriptions');
} else {
galleries[0].settings.description_wrapper = false;
}
return false;
}
);
});
</script>
<!-- Script para galeria de Imagens :: Fim -->
<div id="main">
<div id="content" class="full">
<?php if ( have_posts() ) : while( have_posts() ) : the_post(); ?>
<div class='imovel'>
<h2><?php the_title(); ?></h2>
<div class='destaque'>
<div class='detalhes'>
<?php $imovel_fields = get_post_custom(); ?>
<div class='operacao'>
Imóvel para <?php echo $imovel_fields['tipo_operacao'][0] ?>
</div>
<div class='bairro'>
<?php echo $imovel_fields['bairro'][0] ?>
</div>
<div class='cidade_estado'>
<?php echo $imovel_fields['cidade'][0] ?> / <?php echo $imovel_fields['estado'][0] ?>
</div>
<div class='preco'>
<div><span>R$</span><?php echo $imovel_fields['preco'][0] ?></div>
<div class='condominio'><span>R$</span><?php echo $imovel_fields['condominio'][0] ?></div>
</div>
<div class='quartos'>
<?php echo $imovel_fields['quartos'][0] ?> quarto(s)
</div>
<div class='banheiros'>
<?php echo $imovel_fields['banheiros'][0] ?> banheiro(s)
</div>
<div class='area_util'>
<?php echo $imovel_fields['area_util'][0] ?>m² de área útil
</div>
<div class='garagem'>
<?php echo $imovel_fields['garagem'][0] ?> vaga(s)
</div>
</div>
<div class='galeria_de_imagens'>
<!-- Carrega todas as imagens vinculadas ao post -->
<?php the_gallery(); ?>
</div>
</div>
</div>
<div class='observacoes'>
<h2>Mais Informações</h2>
<div class='content'>
te
</div>
</div>
<?php endwhile; endif; ?>
</div>
</div>
<div id="delimiter">
</div>
<?php get_footer(); ?>