function shandora_setup_car_dealer_post_type() { global $bon; $prefix = bon_get_prefix(); $suffix = SHANDORA_MB_SUFFIX; $cpt = $bon->cpt(); $use_rewrite = bon_get_option('use_rewrite', 'no'); $settings = array(); $slug = ''; $settings['rewrite_root'] = bon_get_option('rewrite_root'); $settings['car_root'] = bon_get_option('car_root', 'car'); $settings['car_manufacturer_root'] = bon_get_option('car_manufacturer_root', 'manufacturer'); $settings['car_body_type_root'] = bon_get_option('car_body_type_root', 'body-type'); $settings['car_dealer_location_root'] = bon_get_option('car_dealer_location_root', 'dealer-location'); $settings['car_feature_root'] = bon_get_option('car_feature_root', 'feature'); if (!empty($settings['rewrite_root'])) { $slug = "{$settings['rewrite_root']}/{$settings['car_root']}"; } else { $slug = "{$settings['car_root']}"; } $manufacturer_slug = "{$settings['car_root']}/{$settings['car_manufacturer_root']}"; $body_type_slug = "{$settings['car_root']}/{$settings['car_body_type_root']}"; $dealer_location_slug = "{$settings['car_root']}/{$settings['car_dealer_location_root']}"; $feature_slug = "{$settings['car_root']}/{$settings['car_feature_root']}"; $has_archive = $use_rewrite == 'no' ? false : $slug; $rewrite_var = array('slug' => $slug, 'with_front' => false, 'pages' => true, 'feeds' => true, 'ep_mask' => EP_PERMALINK); $rewrite = $use_rewrite == 'no' ? true : $rewrite_var; $name = __('Car Listing', 'bon'); $plural = __('Car Listings', 'bon'); $cpt->create('Car Listing', array('has_archive' => $has_archive, 'rewrite' => $rewrite, 'supports' => array('editor', 'title', 'excerpt', 'thumbnail', 'front-end-editor'), 'menu_position' => 8), array(), $name, $plural); $gallery_opts = array(array('label' => __('Listings Gallery', 'bon'), 'desc' => __('Choose image to use in this listing gallery.', 'bon'), 'id' => $prefix . $suffix . 'gallery', 'type' => 'gallery')); $prop_options = array(array('label' => __('Reg Number', 'bon'), 'desc' => __('The Car Registry Number #', 'bon'), 'id' => $prefix . $suffix . 'reg', 'type' => 'text'), array('label' => __('Badge', 'bon'), 'desc' => __('badge text to show in listings view', 'bon'), 'id' => $prefix . $suffix . 'badge', 'type' => 'text'), array('label' => __('Badge color', 'bon'), 'desc' => __('badge text to show in listings view', 'bon'), 'id' => $prefix . $suffix . 'badge_color', 'type' => 'select', 'options' => array('none' => __('None', 'bon'), 'badge-red' => __('Red', 'bon'), 'badge-orange' => __('Orange', 'bon'), 'badge-green' => __('Green', 'bon'), 'badge-blue' => __('Blue', 'bon'), 'badge-purple' => __('Purple', 'bon'), 'badge-gray' => __('Gray', 'bon'))), array('label' => __('Car Status', 'bon'), 'desc' => __('Car sale status', 'bon'), 'id' => $prefix . $suffix . 'status', 'type' => 'select', 'options' => shandora_get_car_search_option('status')), array('label' => __('Mileage', 'bon'), 'desc' => __('Car mileage', 'bon'), 'id' => $prefix . $suffix . 'mileage', 'type' => 'text'), array('label' => __('Exterior Color', 'bon'), 'desc' => __('Car exterior color', 'bon'), 'id' => $prefix . $suffix . 'extcolor', 'type' => 'text'), array('label' => __('Interior Color', 'bon'), 'desc' => __('Car interior color', 'bon'), 'id' => $prefix . $suffix . 'intcolor', 'type' => 'text'), array('label' => __('Fuel Type', 'bon'), 'desc' => __('Car fuel type', 'bon'), 'id' => $prefix . $suffix . 'fueltype', 'type' => 'select', 'options' => shandora_get_car_search_option('fuel')), array('label' => __('Transmission', 'bon'), 'desc' => __('Car transmission', 'bon'), 'id' => $prefix . $suffix . 'transmission', 'type' => 'select', 'options' => shandora_get_car_search_option('transmission')), array('label' => __('Price', 'bon'), 'desc' => __('The Car Price. Fill with numeric only, eq: 123456', 'bon'), 'id' => $prefix . $suffix . 'price', 'type' => 'text'), array('label' => __('Secondary Price', 'bon'), 'desc' => __('The Car Secondary Price eq. price without Tax. Fill with numeric only, eq: 123456', 'bon'), 'id' => $prefix . $suffix . 'price_sec', 'type' => 'text'), array('label' => __('Price as Text', 'bon'), 'desc' => __('Set price to use text. Text Options can be filled in theme Options, Shandora > Listing Settings > Price as Text.', 'bon'), 'id' => $prefix . $suffix . 'pricetext', 'type' => 'checkbox'), array('label' => __('Engine Type', 'bon'), 'desc' => __('Car engine type', 'bon'), 'id' => $prefix . $suffix . 'enginetype', 'type' => 'text'), array('label' => __('Engine Size', 'bon'), 'desc' => __('Car engine size', 'bon'), 'id' => $prefix . $suffix . 'enginesize', 'type' => 'text'), array('label' => __('Overall Height', 'bon'), 'desc' => __('The overall car height', 'bon'), 'id' => $prefix . $suffix . 'height', 'type' => 'text'), array('label' => __('Overall Width', 'bon'), 'desc' => __('The overall car width', 'bon'), 'id' => $prefix . $suffix . 'width', 'type' => 'text'), array('label' => __('Overall Length', 'bon'), 'desc' => __('The overall car length', 'bon'), 'id' => $prefix . $suffix . 'length', 'type' => 'text'), array('label' => __('Wheelbase', 'bon'), 'desc' => __('The wheelbase size', 'bon'), 'id' => $prefix . $suffix . 'wheelbase', 'type' => 'text'), array('label' => __('Track Front', 'bon'), 'desc' => __('The track front size', 'bon'), 'id' => $prefix . $suffix . 'trackfront', 'type' => 'text'), array('label' => __('Track Rear', 'bon'), 'desc' => __('The track front size', 'bon'), 'id' => $prefix . $suffix . 'trackrear', 'type' => 'text'), array('label' => __('Ground Clearance', 'bon'), 'desc' => __('The ground clearance size', 'bon'), 'id' => $prefix . $suffix . 'ground', 'type' => 'text'), array('label' => __('Standard Seating', 'bon'), 'desc' => __('How many standard seating available', 'bon'), 'id' => $prefix . $suffix . 'seating', 'type' => 'text'), array('label' => __('Steering Type', 'bon'), 'desc' => __('The car steering type', 'bon'), 'id' => $prefix . $suffix . 'steering', 'type' => 'text'), array('label' => __('ANCAP Rating / Safety Rating', 'bon'), 'desc' => __('Australasian New Car Assessment Program Rating. see http://ancap.com.au', 'bon'), 'id' => $prefix . $suffix . 'ancap', 'type' => 'slider', 'step' => '1', 'min' => '0', 'max' => '5'), array('label' => __('Year Built', 'bon'), 'desc' => __('When is the car year build? eq: 2013', 'bon'), 'id' => $prefix . $suffix . 'yearbuild', 'type' => 'text'), array('label' => __('Featured Car', 'bon'), 'desc' => __('Make the listing featured for featured listing widget', 'bon'), 'id' => $prefix . $suffix . 'featured', 'type' => 'checkbox'), array('label' => __('Sales Representative for this listing', 'bon'), 'desc' => __('The sales rep pointed for this car listing', 'bon'), 'id' => $prefix . $suffix . 'agentpointed', 'type' => 'old_post_select', 'post_type' => 'sales-representative')); /* The rewrite handles the URL structure. */ $manufacturer_rewrite_var = array('slug' => $manufacturer_slug, 'with_front' => false, 'hierarchical' => true, 'ep_mask' => EP_NONE); /* The rewrite handles the URL structure. */ $body_type_rewrite_var = array('slug' => $body_type_slug, 'with_front' => false, 'hierarchical' => false, 'ep_mask' => EP_NONE); /* The rewrite handles the URL structure. */ $dealer_location_rewrite_var = array('slug' => $dealer_location_slug, 'with_front' => false, 'hierarchical' => true, 'ep_mask' => EP_NONE); /* The rewrite handles the URL structure. */ $feature_rewrite_var = array('slug' => $feature_slug, 'with_front' => false, 'hierarchical' => false, 'ep_mask' => EP_NONE); if ($use_rewrite == 'no') { $feature_rewrite = true; $dealer_location_rewrite = true; $body_type_rewrite = true; $manufacturer_rewrite = true; } else { $feature_rewrite = $feature_rewrite_var; $dealer_location_rewrite = $dealer_location_rewrite_var; $body_type_rewrite = $body_type_rewrite_var; $manufacturer_rewrite = $manufacturer_rewrite_var; } $cpt->add_taxonomy("Manufacturer", array('rewrite' => $manufacturer_rewrite, 'label' => __('Manufacturers', 'bon'), 'labels' => array('menu_name' => __('Manufacturers', 'bon')), 'hierarchical' => true)); $cpt->add_taxonomy("Body Type", array('rewrite' => $body_type_rewrite, 'label' => __('Body Types', 'bon'), 'labels' => array('menu_name' => __('Body Types', 'bon')), 'hierarchical' => true)); $cpt->add_taxonomy("Dealer Location", array('rewrite' => $dealer_location_rewrite, 'label' => __('Dealer Locations', 'bon'), 'labels' => array('menu_name' => __('Dealer Locations', 'bon')), 'hierarchical' => true)); $cpt->add_taxonomy("Car Feature", array('rewrite' => $feature_rewrite, 'label' => __('Car Features', 'bon'), 'labels' => array('menu_name' => __('Features', 'bon')))); $cpt->add_meta_box('gallery-options', __('Gallery Options', 'bon'), $gallery_opts); $cpt->add_meta_box('car-options', __('Detail Options', 'bon'), $prop_options); $cpt->add_meta_box('video-options', __('Video Options', 'bon'), shandora_video_metabox_args()); }
function shandora_setup_listing_post_type() { global $bon; $prefix = bon_get_prefix(); $suffix = SHANDORA_MB_SUFFIX; $cpt = $bon->cpt(); $use_rewrite = bon_get_option('use_rewrite', 'no'); $settings = array(); $slug = ''; $settings['rewrite_root'] = bon_get_option('rewrite_root'); $settings['realestate_root'] = bon_get_option('realestate_root', 'real-estate'); $settings['realestate_property_type_root'] = bon_get_option('realestate_property_type_root', 'manufacturer'); $settings['realestate_property_location_root'] = bon_get_option('realestate_property_location_root', 'body-type'); $settings['realestate_property_feature_root'] = bon_get_option('realestate_property_feature_root', 'dealer-location'); if (!empty($settings['rewrite_root'])) { $slug = "{$settings['rewrite_root']}/{$settings['realestate_root']}"; } else { $slug = "{$settings['realestate_root']}"; } $property_type_slug = "{$settings['realestate_root']}/{$settings['realestate_property_type_root']}"; $property_location_slug = "{$settings['realestate_root']}/{$settings['realestate_property_location_root']}"; $property_feature_slug = "{$settings['realestate_root']}/{$settings['realestate_property_feature_root']}"; $has_archive = $use_rewrite == 'no' ? false : $slug; $rewrite_var = array('slug' => $slug, 'with_front' => false, 'pages' => true, 'feeds' => true, 'ep_mask' => EP_PERMALINK); $rewrite = $use_rewrite == 'no' ? true : $rewrite_var; $name = __('Listing', 'bon'); $plural = __('Listings', 'bon'); $args = array('has_archive' => $has_archive, 'rewrite' => $rewrite, 'supports' => array('editor', 'title', 'excerpt', 'thumbnail', 'front-end-editor'), 'menu_position' => 6); $cpt->create('Listing', $args, array(), $name, $plural); $gallery_opts = array(array('label' => __('Listings Gallery', 'bon'), 'desc' => __('Choose image to use in this listing gallery.', 'bon'), 'id' => $prefix . $suffix . 'gallery', 'type' => 'gallery')); $prop_options = array(array('label' => __('MLS Number', 'bon'), 'desc' => __('The property MLS Number #', 'bon'), 'id' => $prefix . $suffix . 'mls', 'type' => 'text'), array('label' => __('Property Status', 'bon'), 'desc' => __('The status for the property, used for badge, etc.', 'bon'), 'id' => $prefix . $suffix . 'status', 'type' => 'select', 'options' => shandora_get_search_option()), array('label' => __('For Rent Period', 'bon'), 'desc' => __('Choose the period for the rent. Only show if status is for rent.', 'bon'), 'id' => $prefix . $suffix . 'period', 'type' => 'select', 'options' => shandora_get_search_option('period')), array('label' => __('Show Period on Price', 'bon'), 'desc' => __('Always show the period after price for all property status except sale and sold status.', 'bon'), 'id' => $prefix . $suffix . 'show_period', 'type' => 'select', 'options' => array('no' => __('No', 'bon'), 'yes' => __('Yes', 'bon'))), array('label' => __('Address', 'bon'), 'desc' => __('The Property Address.', 'bon'), 'id' => $prefix . $suffix . 'address', 'type' => 'textarea'), array('label' => __('Zip Postal', 'bon'), 'desc' => __('Address Zip Postal', 'bon'), 'id' => $prefix . $suffix . 'zip', 'type' => 'text'), array('label' => __('Price', 'bon'), 'desc' => __('The Property Price. Fill with numeric only, eq: 123456', 'bon'), 'id' => $prefix . $suffix . 'price', 'type' => 'text'), array('label' => __('Secondary Price', 'bon'), 'desc' => __('The Secondary Price eq. price without tax. Fill with numeric only, eq: 123456', 'bon'), 'id' => $prefix . $suffix . 'price_sec', 'type' => 'text'), array('label' => __('Price as Text', 'bon'), 'desc' => __('Set price to use text. Text Options can be filled in theme Options, Shandora > Listing Settings > Price as Text.', 'bon'), 'id' => $prefix . $suffix . 'pricetext', 'type' => 'checkbox'), array('label' => __('Bed Rooms', 'bon'), 'desc' => __('How Many Bedroom? Fill with numeric only', 'bon'), 'id' => $prefix . $suffix . 'bed', 'type' => 'text'), array('label' => __('Bath Rooms', 'bon'), 'desc' => __('How Many Bathroom? Fill with numeric only', 'bon'), 'id' => $prefix . $suffix . 'bath', 'type' => 'text'), array('label' => __('Garage', 'bon'), 'desc' => __('How Many Garage? Fill with numeric only', 'bon'), 'id' => $prefix . $suffix . 'garage', 'type' => 'text'), array('label' => __('Basement', 'bon'), 'desc' => __('How many basement?', 'bon'), 'id' => $prefix . $suffix . 'basement', 'type' => 'text'), array('label' => __('Floors / Stories', 'bon'), 'desc' => __('The total floors or stories.', 'bon'), 'id' => $prefix . $suffix . 'floor', 'type' => 'text'), array('label' => __('Total Rooms', 'bon'), 'desc' => __('The total rooms. Fill with numeric only', 'bon'), 'id' => $prefix . $suffix . 'totalroom', 'type' => 'text'), array('label' => __('Lot Size', 'bon'), 'desc' => __('The Lot Size', 'bon'), 'id' => $prefix . $suffix . 'lotsize', 'type' => 'text'), array('label' => __('Building Size', 'bon'), 'desc' => __('The Building Size', 'bon'), 'id' => $prefix . $suffix . 'buildingsize', 'type' => 'text'), array('label' => __('Furnishing', 'bon'), 'desc' => __('The Property is Furnished or unfurnised?', 'bon'), 'id' => $prefix . $suffix . 'furnishing', 'type' => 'select', 'options' => shandora_get_search_option('furnishing')), array('label' => __('Mortgage Availability', 'bon'), 'desc' => __('The Property is Available for mortgage or not?', 'bon'), 'id' => $prefix . $suffix . 'mortgage', 'type' => 'select', 'options' => shandora_get_search_option('mortgage')), array('label' => __('Date of Availability', 'bon'), 'desc' => __('When is the property available?', 'bon'), 'id' => $prefix . $suffix . 'dateavail', 'type' => 'date'), array('label' => __('Year Built', 'bon'), 'desc' => __('When is the property build? eq: 2013', 'bon'), 'id' => $prefix . $suffix . 'yearbuild', 'type' => 'text'), array('label' => __('Map Latitude', 'bon'), 'desc' => __('The Map Latitude. You can easily find it <a href="http://www.itouchmap.com/latlong.html">here</a>. Copy and paste the latitude value generated there', 'bon'), 'id' => $prefix . $suffix . 'maplatitude', 'type' => 'text'), array('label' => __('Map Longitude', 'bon'), 'desc' => __('The Map Longitude. You can easily find it <a href="http://www.itouchmap.com/latlong.html">here</a>. Copy and paste the longitude value generated there', 'bon'), 'id' => $prefix . $suffix . 'maplongitude', 'type' => 'text'), array('label' => __('Featured Property', 'bon'), 'desc' => __('Make the property featured for featured property widget', 'bon'), 'id' => $prefix . $suffix . 'featured', 'type' => 'checkbox'), array('label' => __('Agent for this listing', 'bon'), 'desc' => __('The agent pointed for this property listing', 'bon'), 'id' => $prefix . $suffix . 'agentpointed', 'type' => 'old_post_select', 'post_type' => 'agent')); $fr_opt = array(); if (bon_get_option('enable_dpe_ges', false) == 'yes') { $fr_opt[] = array('label' => __('DPE', 'bon'), 'desc' => __('Diagnostic de Performance énergétiqueg', 'bon'), 'id' => $prefix . $suffix . 'dpe', 'type' => 'number'); $fr_opt[] = array('label' => __('GES', 'bon'), 'desc' => __('Gaz à effet de serre', 'bon'), 'id' => $prefix . $suffix . 'ges', 'type' => 'number'); } $prop_options = array_merge($fr_opt, $prop_options); /* The rewrite handles the URL structure. */ $property_type_rewrite_var = array('slug' => $property_type_slug, 'with_front' => false, 'hierarchical' => false, 'ep_mask' => EP_NONE); /* The rewrite handles the URL structure. */ $property_location_rewrite_var = array('slug' => $property_location_slug, 'with_front' => false, 'hierarchical' => true, 'ep_mask' => EP_NONE); /* The rewrite handles the URL structure. */ $property_feature_rewrite_var = array('slug' => $property_feature_slug, 'with_front' => false, 'hierarchical' => false, 'ep_mask' => EP_NONE); if ($use_rewrite == 'no') { $property_feature_rewrite = true; $property_location_rewrite = true; $property_type_rewrite = true; } else { $property_feature_rewrite = $property_feature_rewrite_var; $property_location_rewrite = $property_location_rewrite_var; $property_type_rewrite = $property_type_rewrite_var; } $cpt->add_taxonomy("Property Type", array('rewrite' => $property_type_rewrite, 'hierarchical' => true, 'label' => __('Property Types', 'bon'), 'labels' => array('menu_name' => __('Types', 'bon')))); $cpt->add_taxonomy("Property Location", array('rewrite' => $property_location_rewrite, 'hierarchical' => true, 'label' => __('Property Locations', 'bon'), 'labels' => array('menu_name' => __('Locations', 'bon')))); $cpt->add_taxonomy("Property Feature", array('rewrite' => $property_feature_rewrite, 'label' => __('Property Features', 'bon'), 'labels' => array('menu_name' => __('Features', 'bon')))); do_action("shandora_property_taxonomy", $cpt); $cpt->add_meta_box('gallery-options', __('Gallery Options', 'bon'), $gallery_opts); $cpt->add_meta_box('property-options', __('Property Options', 'bon'), $prop_options); $cpt->add_meta_box('video-options', __('Video Options', 'bon'), shandora_video_metabox_args()); do_action("shandora_property_metabox", $cpt); }
function shandora_boat_meta_box_options() { $prefix = bon_get_prefix(); $suffix = SHANDORA_MB_SUFFIX; $measure_w = bon_get_option('width_measure'); $measure_h = bon_get_option('height_measure'); $measure_l = bon_get_option('length_measure'); $detail_options = array(array('label' => __('Reg Number', 'bon'), 'desc' => __('The Boat Registry Number #', 'bon'), 'id' => $prefix . $suffix . 'reg', 'type' => 'text'), array('label' => __('Boat Condition', 'bon'), 'desc' => __('Boat sale condition', 'bon'), 'id' => $prefix . $suffix . 'status', 'type' => 'select', 'options' => shandora_get_boat_search_option('status')), array('label' => __('Exterior Color', 'bon'), 'desc' => __('Exterior Color', 'bon'), 'id' => $prefix . $suffix . 'extcolor', 'type' => 'text'), array('label' => __('Interior Color', 'bon'), 'desc' => __('Interior Color', 'bon'), 'id' => $prefix . $suffix . 'intcolor', 'type' => 'text'), array('label' => __('Hours', 'bon'), 'desc' => __('The boat used hours.', 'bon'), 'id' => $prefix . $suffix . 'hours', 'type' => 'text'), array('label' => __('Fuel Type', 'bon'), 'desc' => __('Fuel Type', 'bon'), 'id' => $prefix . $suffix . 'fueltype', 'type' => 'select', 'options' => shandora_get_boat_search_option('fuel')), array('label' => __('Max Speed', 'bon'), 'desc' => __('Max Speed in knots.', 'bon'), 'id' => $prefix . $suffix . 'speed', 'type' => 'text', 'measure' => bon_get_option('speed_measure')), array('label' => __('People Capacity', 'bon'), 'desc' => __('How many people can be hold on the boat capacity.', 'bon'), 'id' => $prefix . $suffix . 'people_cap', 'type' => 'text', 'measure' => __('People', 'bon')), array('label' => __('Year', 'bon'), 'desc' => __('When is the car year build? eq: 2013', 'bon'), 'id' => $prefix . $suffix . 'yearbuild', 'type' => 'text'), array('label' => __('Canvas', 'bon'), 'desc' => __('Canvas', 'bon'), 'id' => $prefix . $suffix . 'canvas', 'type' => 'select', 'options' => shandora_get_boat_search_option('canvas')), array('label' => __('Carpet', 'bon'), 'desc' => __('Carpet', 'bon'), 'id' => $prefix . $suffix . 'carpet', 'type' => 'text'), array('label' => __('Steering Type', 'bon'), 'desc' => __('The boat steering type', 'bon'), 'id' => $prefix . $suffix . 'steering', 'type' => 'text')); $dimension_options = array(array('label' => __('Overall Height', 'bon'), 'desc' => __('The overall boat height', 'bon'), 'id' => $prefix . $suffix . 'height', 'type' => 'text', 'measure' => $measure_h), array('label' => __('Overall Width', 'bon'), 'desc' => __('The overall boat width', 'bon'), 'id' => $prefix . $suffix . 'width', 'type' => 'text', 'measure' => $measure_w), array('label' => __('Overall Length', 'bon'), 'desc' => __('The overall boat length', 'bon'), 'id' => $prefix . $suffix . 'length', 'type' => 'text', 'measure' => $measure_l), array('label' => __('Waterline Length', 'bon'), 'desc' => __('The boat waterline length', 'bon'), 'id' => $prefix . $suffix . 'waterline_length', 'type' => 'text', 'measure' => $measure_l), array('label' => __('Max Beam', 'bon'), 'desc' => __('The boat beam width', 'bon'), 'id' => $prefix . $suffix . 'beam', 'type' => 'text', 'measure' => $measure_w), array('label' => __('Max Draft', 'bon'), 'desc' => __('The boat draft height', 'bon'), 'id' => $prefix . $suffix . 'draft', 'type' => 'text', 'measure' => $measure_h)); $capacity_options = array(array('label' => __('Fuel Tanks', 'bon'), 'desc' => __('Fuel Tanks', 'bon'), 'id' => $prefix . $suffix . 'fuelcaps', 'type' => 'text'), array('label' => __('Fresh Water', 'bon'), 'desc' => __('Fresh Water', 'bon'), 'id' => $prefix . $suffix . 'freshwater', 'type' => 'text'), array('label' => __('Black Water', 'bon'), 'desc' => __('Black Water', 'bon'), 'id' => $prefix . $suffix . 'blackwater', 'type' => 'text'), array('label' => __('Bilge Water', 'bon'), 'desc' => __('Bilge Water', 'bon'), 'id' => $prefix . $suffix . 'bilgewater', 'type' => 'text'), array('label' => __('Grey Water', 'bon'), 'desc' => __('Grey Water', 'bon'), 'id' => $prefix . $suffix . 'greywater', 'type' => 'text'), array('label' => __('Fuel Overflow', 'bon'), 'desc' => __('Fuel Overflow', 'bon'), 'id' => $prefix . $suffix . 'fueloverflow', 'type' => 'text'), array('label' => __('Lube Oil', 'bon'), 'desc' => __('Lube Oil', 'bon'), 'id' => $prefix . $suffix . 'lubeoil', 'type' => 'text'), array('label' => __('Dirty Oil', 'bon'), 'desc' => __('Dirty Oil', 'bon'), 'id' => $prefix . $suffix . 'dirtyoil', 'type' => 'text'), array('label' => __('Sludge', 'bon'), 'desc' => __('Sludge', 'bon'), 'id' => $prefix . $suffix . 'sludge', 'type' => 'text'), array('label' => __('Watermist', 'bon'), 'desc' => __('Watermist', 'bon'), 'id' => $prefix . $suffix . 'watermist', 'type' => 'text')); $misc_options = array(array('label' => __('Badge', 'bon'), 'desc' => __('badge text to show in listings view', 'bon'), 'id' => $prefix . $suffix . 'badge', 'type' => 'text'), array('label' => __('Badge color', 'bon'), 'desc' => __('badge text to show in listings view', 'bon'), 'id' => $prefix . $suffix . 'badge_color', 'type' => 'select', 'options' => array('none' => __('None', 'bon'), 'badge-red' => __('Red', 'bon'), 'badge-orange' => __('Orange', 'bon'), 'badge-green' => __('Green', 'bon'), 'badge-blue' => __('Blue', 'bon'), 'badge-purple' => __('Purple', 'bon'), 'badge-gray' => __('Gray', 'bon'))), array('label' => __('Price', 'bon'), 'desc' => __('The Property Price. Fill with numeric only, eq: 123456', 'bon'), 'id' => $prefix . $suffix . 'price', 'type' => 'text'), array('label' => __('Price as Text', 'bon'), 'desc' => __('Set price to use text. Text Options can be filled in theme Options, Shandora > Listing Settings > Price as Text.', 'bon'), 'id' => $prefix . $suffix . 'pricetext', 'type' => 'checkbox'), array('label' => __('Featured Boat', 'bon'), 'desc' => __('Make the listing featured for featured listing widget', 'bon'), 'id' => $prefix . $suffix . 'featured', 'type' => 'checkbox'), array('label' => __('Agent for this listing', 'bon'), 'desc' => __('The sales rep pointed for this boat listing', 'bon'), 'id' => $prefix . $suffix . 'agentpointed', 'type' => 'old_post_select', 'post_type' => 'agent')); $opts = array('gallery-options' => array('label' => __('Gallery', 'bon'), 'options' => shandora_gallery_metabox_args(), 'show_ui' => false), 'boat-misc-options' => array('label' => __('Miscellaneous', 'bon'), 'options' => $misc_options, 'show_ui' => false), 'boat-detail-options' => array('label' => __('Detail', 'bon'), 'options' => $detail_options, 'show_ui' => true), 'boat-dimension-options' => array('label' => __('Dimension', 'bon'), 'options' => $dimension_options, 'show_ui' => true), 'boat-capacity-options' => array('label' => __('Capacity', 'bon'), 'options' => $capacity_options, 'show_ui' => true, 'measure' => bon_get_option('volume_measure', 'litres')), 'video-options' => array('label' => __('Video', 'bon'), 'options' => shandora_video_metabox_args(), 'show_ui' => false)); return $opts; }