<?php if (!defined('IPHORM_VERSION')) { exit; } $id = absint($element['id']); $months = iphorm_get_all_months(); if (!isset($element['label'])) { $element['label'] = __('Date', 'iphorm'); } if (!isset($element['description'])) { $element['description'] = ''; } if (!isset($element['required'])) { $element['required'] = false; } if (!isset($element['default_value'])) { $element['default_value'] = array('day' => '', 'month' => '', 'year' => ''); } if (!isset($element['start_year'])) { $element['start_year'] = ''; } if (!isset($element['end_year'])) { $element['end_year'] = ''; } if (!isset($element['show_date_headings'])) { $element['show_date_headings'] = true; } if (!isset($element['day_heading'])) { $element['day_heading'] = ''; }
function iphorm_get_bulk_options() { return apply_filters('iphorm_bulk_options', array(__('Countries', 'iphorm') => iphorm_get_countries(), __('U.S. States', 'iphorm') => iphorm_get_us_states(), __('Canadian Provinces', 'iphorm') => iphorm_get_canadian_provinces(), __('UK Counties', 'iphorm') => iphorm_get_uk_counties(), __('German States', 'iphorm') => array('Baden-Wurttemberg', 'Bavaria', 'Berlin', 'Brandenburg', 'Bremen', 'Hamburg', 'Hesse', 'Mecklenburg-West Pomerania', 'Lower Saxony', 'North Rhine-Westphalia', 'Rhineland-Palatinate', 'Saarland', 'Saxony', 'Saxony-Anhalt', 'Schleswig-Holstein', 'Thuringia'), __('Dutch Provinces', 'iphorm') => array('Drente', 'Flevoland', 'Friesland', 'Gelderland', 'Groningen', 'Limburg', 'Noord-Brabant', 'Noord-Holland', 'Overijssel', 'Zuid-Holland', 'Utrecht', 'Zeeland'), __('Continents', 'iphorm') => array(__('Africa', 'iphorm'), __('Antarctica', 'iphorm'), __('Asia', 'iphorm'), __('Australia', 'iphorm'), __('Europe', 'iphorm'), __('North America', 'iphorm'), __('South America', 'iphorm')), __('Gender', 'iphorm') => array(__('Male', 'iphorm'), __('Female', 'iphorm')), __('Age', 'iphorm') => array('Under 18', '18-24', '25-34', '35-44', '45-54', '55-64', '65 or over'), __('Marital Status', 'iphorm') => array(__('Single', 'iphorm'), __('Married', 'iphorm'), __('Divorced', 'iphorm'), __('Widowed', 'iphorm')), __('Income', 'iphorm') => array('Under $20,000', '$20,000 - $30,000', '$30,000 - $40,000', '$40,000 - $50,000', '$50,000 - $75,000', '$75,000 - $100,000', '$100,000 - $150,000', '$150,000 or more'), __('Days', 'iphorm') => array(__('Monday', 'iphorm'), __('Tuesday', 'iphorm'), __('Wednesday', 'iphorm'), __('Thursday', 'iphorm'), __('Friday', 'iphorm'), __('Saturday', 'iphorm'), __('Sunday', 'iphorm')), __('Months', 'iphorm') => array_values(iphorm_get_all_months()))); }