本文整理汇总了PHP中wpl_global::get_property_types_by_parent方法的典型用法代码示例。如果您正苦于以下问题:PHP wpl_global::get_property_types_by_parent方法的具体用法?PHP wpl_global::get_property_types_by_parent怎么用?PHP wpl_global::get_property_types_by_parent使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类wpl_global
的用法示例。
在下文中一共展示了wpl_global::get_property_types_by_parent方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: foreach
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;