Changeset 714236
- Timestamp:
- 05/17/2013 05:39:23 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soldpress/branches/0.9.5A/single-sp_property-t2.php
r714229 r714236 119 119 <div class="well2"> 120 120 <div class="cycle-slideshow" data-cycle-fx="carousel" data-cycle-timeout="2000"> 121 <div class="cycle-prev"></div> 122 <div class="cycle-next"></div> 121 123 <?php 122 124 $photos = get_children( array('post_parent' => get_the_ID(), 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID') ); … … 174 176 </tbody> 175 177 </table> 176 </div> 178 </div> 177 179 <div class="well3"> 178 <table class="table "> 179 <caption>Details</caption> 180 <tbody> 181 <tr> 182 183 <dl> 184 <?php 185 $array = array("dfd_GarageYN" => "Garage", "dfd_CarportYN" => "Carport", "dfd_CoveredSpaces" => "Coverd Spaces","dfd_AttachedGarageYN" => "Attached Garage", "dfd_OpenParkingYN" => "Open Parking", "dfd_LotFeatures" => "Features","dfd_WaterfrontYN" => "Waterfront","dfd_PoolYN" => "Pool"); 186 foreach ($array as $i => $value) { 187 $meta = get_post_meta($post->ID,$i,true); 188 $name = $value; 189 echo '<dt>'. $name .'</dt><dd>'. $meta .'</dd>'; 190 } 191 ?> 192 </dl> 193 </tr> 194 195 </tbody> 196 </table> 197 </div> 198 <?php 180 <?php 199 181 200 182 $max_per_row = 2; 201 183 $item_count = 0; 202 echo "<table>";203 echo "<tr>";184 echo '<table class="table"><caption>Details</caption><tbody>'; 185 echo '<tr>'; 204 186 $array = array("dfd_GarageYN" => "Garage", "dfd_CarportYN" => "Carport", "dfd_CoveredSpaces" => "Coverd Spaces","dfd_AttachedGarageYN" => "Attached Garage", "dfd_OpenParkingYN" => "Open Parking", "dfd_LotFeatures" => "Features","dfd_WaterfrontYN" => "Waterfront","dfd_PoolYN" => "Pool"); 205 187 foreach ($array as $i => $value) { 206 188 if ($item_count == $max_per_row) 207 189 { 208 echo "</tr><tr>";190 echo '</tr><tr>'; 209 191 $item_count = 0; 210 192 } 211 193 $meta = get_post_meta($post->ID,$i,true); 212 $name = $value; 213 echo '<td><span class="sp_key">' .$name.'</span><span>' .$meta .'</span></td>'; 214 $item_count++; 194 $meta = trim($meta,","); 195 if($meta != "0"){ 196 if($meta != ""){ 197 $name = $value; 198 echo '<td><span class="sp_key">' .$name.'</span><span>' .$meta .'</span></td>'; 199 $item_count++; 200 } 201 } 215 202 } 216 echo "</tr>"; 217 echo "</table>"; 203 if ($item_count != $max_per_row ) 204 { 205 if ($item_count != 0) 206 { 207 echo '<td></td>'; 208 } 209 } 210 echo '</tr>'; 211 echo '</tbody></table>'; 218 212 219 213 ?> 220 221 <div class="well3">222 <table class="table ">223 <caption>Details</caption>224 <tbody>225 <tr>226 <td><span class="sp_key">Garage</span><span><?php echo get_post_meta($post->ID,'dfd_GarageYN',true);?></span></td>227 <td><span class="sp_key">Carport</span><span><?php echo get_post_meta($post->ID,'dfd_CarportYN',true);?></span></td>228 </tr>229 <tr>230 <td><span class="sp_key">CoveredSpaces</span><span><?php echo get_post_meta($post->ID,'dfd_CoveredSpaces',true);?></span></td>231 <td><span class="sp_key">Attached Garage</span><span><?php echo get_post_meta($post->ID,'dfd_AttachedGarageYN',true);?></span></td>232 </tr>233 <tr>234 <td><span class="sp_key">Open Parking</span><span><?php echo get_post_meta($post->ID,'dfd_OpenParkingYN',true);?></span></td>235 <td><span class="sp_key">GarageSpaces</span><span><?php echo get_post_meta($post->ID,'dfd_CoveredSpaces',true);?></span></td>236 </tr>237 <tr>238 <td><span class="sp_key">Lot Features</span><span><?php echo get_post_meta($post->ID,'dfd_LotFeatures',true);?></span></td>239 <td><span class="sp_key"></span><span><?php echo get_post_meta($post->ID,'dfd_Dummy',true);?></span></td>240 </tr>241 </tbody>242 </table>243 244 214 </div> 245 215 <div class="well3"> 246 <table class="table"> 247 <caption>Building</caption> 248 <tbody> 249 <tr> 250 <td><span class="sp_key">Bathrooms(Half)</span><span><?php echo get_post_meta($post->ID,'dfd_BathroomsHalf',true);?></span></td> 251 <td><span class="sp_key">Flooring</span><span><?php echo get_post_meta($post->ID,'dfd_Flooring',true);?></span></td> 252 </tr> 253 <tr> 254 <td><span class="sp_key">Cooling</span><span><?php echo get_post_meta($post->ID,'dfd_Cooling',true);?></span></td> 255 <td><span class="sp_key"></span><span><?php echo get_post_meta($post->ID,'dfd_Dummy',true);?></span></td> 256 </tr> 257 <tr> 258 <td><span class="sp_key">Heating</span><span><?php echo get_post_meta($post->ID,'dfd_Heating',true);?></span></td> 259 <td><span class="sp_key">Heating Fuel</span><span><?php echo get_post_meta($post->ID,'dfd_HeatingFuel',true);?></span></td> 260 </tr> 261 <tr> 262 <td><span class="sp_key">Fireplace Fuel</span><span><?php echo get_post_meta($post->ID,'dfd_FireplaceFuel',true);?></span></td> 263 <td><span class="sp_key">Fireplace Features</span><span><?php echo get_post_meta($post->ID,'dfd_FireplaceFeatures',true);?></span></td> 264 </tr> 265 <tr> 266 <td><span class="sp_key">Fireplaces</span><span><?php echo get_post_meta($post->ID,'dfd_FireplacesTotal',true);?></span></td> 267 <td><span class="sp_key"></span><span><?php echo get_post_meta($post->ID,'dfd_Dummy',true);?></span></td> 268 </tr> 269 </tbody> 270 </table> 216 217 <?php 218 219 $max_per_row = 2; 220 $item_count = 0; 221 echo '<table class="table"><caption>Building</caption><tbody>'; 222 echo '<tr>'; 223 $array = array("dfd_BathroomsHalf" => "Bathrooms(Half)", "dfd_Flooring" => "Flooring", "dfd_Cooling" => "Cooling","dfd_Heating" => "Heating", "dfd_HeatingFuel" => "Heating Fuel", "dfd_FireplaceFuel" => "Fireplace Fuel","dfd_FireplaceFeatures" => "Fireplace Features","dfd_FireplacesTotal" => "Fireplaces"); 224 foreach ($array as $i => $value) { 225 if ($item_count == $max_per_row) 226 { 227 echo '</tr><tr>'; 228 $item_count = 0; 229 } 230 $meta = get_post_meta($post->ID,$i,true); 231 $meta = trim($meta,","); 232 233 if($meta != "0"){ 234 if($meta != ""){ 235 $name = $value; 236 echo '<td><span class="sp_key">' .$name.'</span><span>' .$meta .'</span></td>'; 237 $item_count++; 238 } 239 } 240 } 241 if ($item_count != $max_per_row ) 242 { 243 if ($item_count != 0) 244 { 245 echo '<td></td>'; 246 } 247 } 248 echo '</tr>'; 249 echo '</tbody></table>'; 250 251 ?> 271 252 </div> 272 253 <div class="well3"> … … 313 294 center: latlng, 314 295 mapTypeId: google.maps.MapTypeId.ROADMAP, 315 streetViewControl: true296 //streetViewControl: true 316 297 }; 317 298 318 299 map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions); 319 300 /* 301 mapstreet = new google.maps.Map(document.getElementById('map-street'), mapOptions); 320 302 var panoramaOptions = { 321 303 position: map.latlngbyaddress, … … 328 310 }; 329 311 330 var panorama = new google.maps.StreetViewPanorama(document.getElementById(" streetview"), panoramaOptions);331 map .setStreetView(panorama);332 panorama.setVisible(true); 312 var panorama = new google.maps.StreetViewPanorama(document.getElementById("map-street"), panoramaOptions); 313 mapstreet.setStreetView(panorama); 314 panorama.setVisible(true);*/ 333 315 334 316 }else{ … … 345 327 <caption>Map</caption> 346 328 <tbody> 347 <tr><td> 348 <div id="map-canvas" class="well-map"></div> 349 <div id="streetview" class="well-map"></div> 329 <tr> 330 <td> 331 <!--<div id="map-street" class="well-map"></div>--> 332 <div id="map-canvas" class="well-map"></div> 350 333 </td> 351 334 </tr>
Note: See TracChangeset
for help on using the changeset viewer.