Changeset 714386
- Timestamp:
- 05/17/2013 01:47:50 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soldpress/branches/0.9.5A/single-sp_property-t2.php
r714236 r714386 102 102 } 103 103 104 dl { 105 @include columns(2); 106 } 107 108 dt { 109 @include column-break-after(avoid); 110 break-after: avoid; 111 } 112 113 dd { 114 @include column-break-before(avoid); 115 break-before: avoid; 116 } 104 .cycle-prev, .cycle-next { position: absolute; top: 0; width: 30%; opacity: 0; filter: alpha(opacity=0); z-index: 800; height: 100%; cursor: pointer; } 105 .cycle-prev { left: 0; background: url(http://malsup.github.com/images/left.png) 50% 50% no-repeat;} 106 .cycle-next { right: 0; background: url(http://malsup.github.com/images/right.png) 50% 50% no-repeat;} 107 .cycle-prev:hover, .cycle-next:hover { opacity: .7; filter: alpha(opacity=70) } 108 109 117 110 </style> 118 111 <h2><?php the_title(); ?></h2> … … 162 155 </tbody> 163 156 </table> 157 <?php 158 159 $max_per_row = 2; 160 $item_count = 0; 161 echo '<table class="table"><caption>' . get_post_meta($post->ID,'dfd_UnparsedAddress',true) . ',' . get_post_meta($post->ID,'dfd_City',true) . ',' . get_post_meta($post->ID,'dfd_StateOrProvince',true) . get_post_meta($post->ID,'dfd_PostalCode',true) . '</caption><tbody>'; 162 echo '<tr>'; 163 $array = array("dfd_BathroomsTotal" => "Bathrooms", "dfd_BedroomsTotal" => "Bedrooms", "dfd_PropertyType" => "Property Type","dfd_PropertyType" => "Attached Garage", "dfd_YearBuilt" => "Built in", "dfd_LotSizeArea" => "LotSize","dfd_BuildingAreaTotal" => "Building Area"); 164 foreach ($array as $i => $value) { 165 if ($item_count == $max_per_row) 166 { 167 echo '</tr><tr>'; 168 $item_count = 0; 169 } 170 $meta = get_post_meta($post->ID,$i,true); 171 $meta = trim($meta,","); 172 if($meta != "0"){ 173 if($meta != ""){ 174 $name = $value; 175 echo '<td><span class="sp_key">' .$name.'</span><span>' .$meta .'</span></td>'; 176 $item_count++; 177 } 178 } 179 } 180 if ($item_count != $max_per_row ) 181 { 182 if ($item_count != 0) 183 { 184 echo '<td></td>'; 185 } 186 } 187 echo '</tr>'; 188 echo '</tbody></table>'; 189 190 ?> 164 191 </div> 165 192 <div class="well3">
Note: See TracChangeset
for help on using the changeset viewer.