コード例 #1
0
ファイル: wizard.php プロジェクト: gvh1993/project-vvvh
     if (substr($category->listing_specific, 0, 5) == 'type=') {
         $specified_listings = wpl_global::get_listing_types_by_parent(substr($category->listing_specific, 5));
         foreach ($specified_listings as $listing_type) {
             $category_listing_specific_array[$category->id][] = $listing_type["id"];
         }
     } else {
         $specified_listings = explode(',', trim($category->listing_specific, ', '));
         $category_listing_specific_array[$category->id] = $specified_listings;
     }
     if (!in_array($this->values['listing'], $category_listing_specific_array[$category->id])) {
         $display = "display:none;";
     }
 } elseif (trim($category->property_type_specific) != '') {
     $category_property_type_specific_array[$category->id] = array();
     if (substr($category->property_type_specific, 0, 5) == 'type=') {
         $specified_property_types = wpl_global::get_property_types_by_parent(substr($category->property_type_specific, 5));
         foreach ($specified_property_types as $property_type) {
             $category_property_type_specific_array[$category->id][] = $property_type["id"];
         }
     } else {
         $specified_property_types = explode(',', trim($category->property_type_specific, ', '));
         $category_property_type_specific_array[$category->id] = $specified_property_types;
     }
     if (!in_array($this->values['property_type'], $category_property_type_specific_array[$category->id])) {
         $display = "display:none;";
     }
 }
 ?>
                 <li>
                     <a style="<?php 
 echo $display;