-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage-suites.php
167 lines (151 loc) · 10.5 KB
/
page-suites.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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
<div class="clearfix">
<?php get_header(); ?>
</div>
<div>
<div class="">
<section class="noborderrad panel panel-default blurry-bg">
<div class="container-fluid" ng-init="ourProperties[0]=index.propertyPostsByTermAndRoomcount['short'];ourProperties[1]=index.propertyPostsByTermAndRoomcount['long'];">
<div ng-repeat="(termKey, propertyList) in ourProperties">
<h3 class="col-xs-12 dark-text" ng-if="termKey==='0'">Short Term Rentals</h3>
<h3 class="col-xs-12 dark-text" ng-if="termKey==='1'">Long Term Rentals</h3>
<div
ng-repeat="(propertyListKey, propertyIds) in propertyList"
ng-show="propertyIds.length > 0"
class="col-xs-12">
<div class="panel panel-dark">
<div class="panel-heading dark-bg light-text"><b class="fa fa-home"> {{propertyListKey | uppercase}}
BEDROOM<span ng-if="propertyListKey!=='1'">S</span> <span ng-if="propertyListKey==='1'">/ STUDIO</span> </b>
</div>
<div class="panel-body">
<div class="clearfix" ng-repeat="(propertyKey, property) in propertyIds">
<a class="light-text" ng-href="{{vrqc.propertiesObjectById[property].url}}">
<h3>{{vrqc.propertiesObjectById[property].title}}
</h3>
<img class="col-xs-4 col-sm-3" ng-src="{{vrqc.propertiesObjectById[property].thumbnail}}">
<div class="hidden-xs col-sm-6">
<i class="fa fa-lg fa-cube col-sm-4"> <b>{{vrqc.propertiesObjectById[property].custom_fields.roomcount[0]}}</b> Bedrooms
</i>
<i class="fa fa-lg fa-toggle-down col-sm-4"> <b>{{vrqc.propertiesObjectById[property].custom_fields.bathrooms[0]}}</b> Bathrooms
</i>
<i class="fa fa-lg fa-bed col-sm-4"> Sleeps <b>{{vrqc.propertiesObjectById[property].custom_fields.sleeps[0]}}</b>
</i>
</div>
<div class="col-xs-8 col-sm-3 text-center">
<i class="fa fa-dollar fa-2x col-xs-6 col-sm-12">{{vrqc.propertiesObjectById[property].custom_fields.reservations_groundprice[0]}}</i>
<div class="small">
<div class="col-xs-6 col-sm-12">
<b>Per night. CAD</b>
<div ng-if="vrqc.propertiesObjectById[property].custom_fields.term[0]==='short'">2 Night Min.</div>
<div ng-if="vrqc.propertiesObjectById[property].custom_fields.term[0]==='long'">30 Night Min.</div></div>
</div>
<br/>
<a ng-href="{{vrqc.propertiesObjectById[property].url}}" class="btn btn-default col-xs-12">Book</a>
</div>
</a>
</div>
</div>
</div>
</div>
</div>
</div>
<hr/>
</section>
<!--
<section class="noborderrad">
<h3 class="col-xs-12 light-text">
Short Term Rentals <em class="small"></em>
</h3>
<div class="container-fluid">
<div ng-repeat="(key,roomCount) in index.propertyPostsByRoomcount" ng-show="roomCount.length > 0"
class="">
<div class="panel panel-dark">
<div class="panel-body">
<div class="col-xs-12" ng-repeat="property in roomCount"
ng-if="property.custom_fields.term[0] === 'short'">
<div class="col-xs-4 col-sm-2">
<img ng-src="{{property.thumbnail}}">
<h5 class="fa fa-cube col-sm-4 visible-xs light-text"> {{property.custom_fields.roomcount[0]}}br
</h5>
</div>
<div class="hidden-xs col-sm-7">
<a class="red-text" ng-href="{{property.url}}">
<h2>{{property.title}}</h2>
</a>
<i class="fa fa-lg fa-cube col-sm-4"> <b>{{property.custom_fields.roomcount[0]}}</b> Bedrooms
</i>
<i class="fa fa-lg fa-toggle-down col-sm-4"> <b>{{property.custom_fields.bathrooms[0]}}</b> Bathrooms
</i>
<i class="fa fa-lg fa-bed col-sm-4"> Sleeps <b>{{property.custom_fields.sleeps[0]}}</b>
</i>
</div>
<div class="col-xs-8 col-sm-3 text-center">
<a class="red-text visible-xs" ng-href="{{property.url}}">
<h2>{{property.title}}</h2>
</a>
<i class="fa fa-dollar fa-2x col-xs-6 col-sm-12">{{property.custom_fields.reservations_groundprice[0]}}</i>
<div class="small">
<div class="col-xs-6 col-sm-12">
<b>Per night. CAD</b>
<div ng-if="property.custom_fields.term[0]==='short'">2 Night Min.</div>
<div ng-if="property.custom_fields.term[0]==='long'">30 Night Min.</div></div>
</div>
<br/>
<a ng-href="{{property.url}}" class="btn btn-default col-xs-12">Book</a>
</div>
<hr class="col-xs-12" style="opacity:.21"/>
</div>
</div>
</div>
</div>
</div>
<h3 class="col-xs-12 light-text">
Long Term Rentals <em class="small"></em>
</h3>
<div class="container-fluid">
<div ng-repeat="(key,roomCount) in index.propertyPostsByRoomcount" ng-show="roomCount.length > 0"
class="">
<div class="panel panel-dark">
<div class="panel-body">
<div class="col-xs-12" ng-repeat="property in roomCount"
ng-if="property.custom_fields.term[0] === 'long'">
<div class="col-xs-4 col-sm-2">
<img ng-src="{{property.thumbnail}}">
<h5 class="fa fa-cube col-sm-4 visible-xs light-text"> {{property.custom_fields.roomcount[0]}}br
</h5>
</div>
<div class="hidden-xs col-sm-7">
<a class="red-text" ng-href="{{property.url}}">
<h2>{{property.title}}</h2>
</a>
<i class="fa fa-lg fa-cube col-sm-4"> <b>{{property.custom_fields.roomcount[0]}}</b> Bedrooms
</i>
<i class="fa fa-lg fa-toggle-down col-sm-4"> <b>{{property.custom_fields.bathrooms[0]}}</b> Bathrooms
</i>
<i class="fa fa-lg fa-bed col-sm-4"> Sleeps <b>{{property.custom_fields.sleeps[0]}}</b>
</i>
</div>
<div class="col-xs-8 col-sm-3 text-center">
<a class="red-text visible-xs" ng-href="{{property.url}}">
<h2>{{property.title}}</h2>
</a>
<i class="fa fa-dollar fa-2x col-xs-6 col-sm-12">{{property.custom_fields.reservations_groundprice[0]}}</i>
<div class="small">
<div class="col-xs-6 col-sm-12">
<b>Per night. CAD</b>
<div ng-if="property.custom_fields.term[0]==='short'">2 Night Min.</div>
<div ng-if="property.custom_fields.term[0]==='long'">30 Night Min.</div></div>
</div>
<a ng-href="{{property.url}}" class="btn btn-default col-xs-12 nomar">Book</a>
</div>
<hr class="col-xs-12" style="opacity:.21"/>
</div>
</div>
</div>
</div>
</div>
</section>
-->
</div>
</div>
<div class="clearfix"><?php get_footer(); ?>
</div>