/**
 * Location
 *
 * @since 0.9
 */
function ctc_add_meta_box_event_location()
{
    // Configure Meta Box
    $meta_box = array('id' => 'ctc_event_location', 'title' => _x('Location', 'event meta box', 'churchthemes-framework'), 'post_type' => 'ctc_event', 'context' => 'normal', 'priority' => 'high', 'fields' => array('_ctc_event_venue' => array('name' => __('Venue', 'churchthemes-framework'), 'after_name' => '', 'after_input' => '', 'desc' => __('You can provide a building name, room number or other location name to help people find the event.', 'churchthemes-framework'), 'type' => 'text', 'checkbox_label' => '', 'options' => array(), 'upload_button' => '', 'upload_title' => '', 'upload_type' => '', 'default' => '', 'no_empty' => false, 'allow_html' => false, 'attributes' => array(), 'class' => 'ctmb-medium', 'field_attributes' => array(), 'field_class' => '', 'custom_sanitize' => '', 'custom_field' => '', 'visibility' => array()), '_ctc_event_address' => array('name' => _x('Address', 'event meta box', 'churchthemes-framework'), 'after_name' => '', 'after_input' => '', 'desc' => __('You can enter an address if it is necessary for people to find this event.', 'churchthemes-framework'), 'type' => 'textarea', 'checkbox_label' => '', 'options' => array(), 'upload_button' => '', 'upload_title' => '', 'upload_type' => '', 'default' => '', 'no_empty' => false, 'allow_html' => false, 'attributes' => array(), 'class' => 'ctmb-medium', 'field_attributes' => array(), 'field_class' => 'ctmb-no-bottom-margin', 'custom_sanitize' => '', 'custom_field' => '', 'visibility' => array()), '_ctc_event_show_directions_link' => array('name' => '', 'after_name' => '', 'after_input' => '', 'desc' => '', 'type' => 'checkbox', 'checkbox_label' => __('Show directions link', 'churchthemes-framework'), 'options' => array(), 'upload_button' => '', 'upload_title' => '', 'upload_type' => '', 'default' => true, 'no_empty' => false, 'allow_html' => false, 'attributes' => array(), 'class' => '', 'field_attributes' => array(), 'field_class' => 'ctmb-no-top-margin', 'custom_sanitize' => '', 'custom_field' => '', 'visibility' => array()), '_ctc_event_map_type' => array('name' => _x('Map Type', 'event meta box', 'churchthemes-framework'), 'after_name' => '', 'after_input' => '', 'desc' => _x('You can show a road map, satellite imagery, a combination of both (hybrid) or terrain.', 'event meta box', 'churchthemes-framework'), 'type' => 'select', 'checkbox_label' => '', 'options' => ctc_gmaps_types(), 'upload_button' => '', 'upload_title' => '', 'upload_type' => '', 'default' => ctc_gmaps_type_default(), 'no_empty' => true, 'allow_html' => false, 'attributes' => array(), 'class' => '', 'field_attributes' => array(), 'field_class' => '', 'custom_sanitize' => '', 'custom_field' => '', 'visibility' => array()), '_ctc_event_map_zoom' => array('name' => _x('Map Zoom', 'event meta box', 'churchthemes-framework'), 'after_name' => '', 'after_input' => '', 'desc' => _x('A lower number is more zoomed out while a higher number is more zoomed in.', 'event meta box', 'churchthemes-framework'), 'type' => 'select', 'checkbox_label' => '', 'options' => ctc_gmaps_zoom_levels(), 'upload_button' => '', 'upload_title' => '', 'upload_type' => '', 'default' => ctc_gmaps_zoom_level_default(), 'no_empty' => true, 'allow_html' => false, 'attributes' => array(), 'class' => '', 'field_attributes' => array(), 'field_class' => '', 'custom_sanitize' => '', 'custom_field' => '', 'visibility' => array())));
    // Add Meta Box
    new CT_Meta_Box($meta_box);
}
/**
 * Location details
 *
 * @since 0.9
 */
function ctc_add_meta_box_location()
{
    // Configure Meta Box
    $meta_box = array('id' => 'ctc_location', 'title' => _x('Location Details', 'location meta box', 'church-theme-content'), 'post_type' => 'ctc_location', 'context' => 'normal', 'priority' => 'high', 'fields' => array('_ctc_location_address' => array('name' => _x('Address', 'location meta box', 'church-theme-content'), 'after_name' => '', 'desc' => '', 'type' => 'textarea', 'checkbox_label' => '', 'options' => array(), 'upload_button' => '', 'upload_title' => '', 'upload_type' => '', 'default' => '', 'no_empty' => false, 'allow_html' => true, 'attributes' => array(), 'class' => 'ctmb-medium', 'field_attributes' => array(), 'field_class' => 'ctmb-no-bottom-margin', 'custom_sanitize' => '', 'custom_field' => ''), '_ctc_location_show_directions_link' => array('name' => '', 'after_name' => '', 'desc' => '', 'type' => 'checkbox', 'checkbox_label' => 'Show directions link', 'options' => array(), 'upload_button' => '', 'upload_title' => '', 'upload_type' => '', 'default' => true, 'no_empty' => false, 'allow_html' => false, 'attributes' => array(), 'class' => '', 'field_attributes' => array(), 'field_class' => 'ctmb-no-top-margin', 'custom_sanitize' => '', 'custom_field' => ''), '_ctc_location_phone' => array('name' => _x('Phone', 'location meta box', 'church-theme-content'), 'after_name' => '', 'desc' => '', 'type' => 'text', 'checkbox_label' => '', 'options' => array(), 'upload_button' => '', 'upload_title' => '', 'upload_type' => '', 'default' => '', 'no_empty' => false, 'allow_html' => false, 'attributes' => array(), 'class' => 'ctmb-medium', 'field_attributes' => array(), 'field_class' => '', 'custom_sanitize' => '', 'custom_field' => ''), '_ctc_location_times' => array('name' => _x('Times', 'location meta box', 'church-theme-content'), 'after_name' => '', 'desc' => '', 'type' => 'textarea', 'checkbox_label' => '', 'options' => array(), 'upload_button' => '', 'upload_title' => '', 'upload_type' => '', 'default' => '', 'no_empty' => false, 'allow_html' => true, 'attributes' => array(), 'class' => 'ctmb-medium', 'field_attributes' => array(), 'field_class' => '', 'custom_sanitize' => '', 'custom_field' => ''), '_ctc_location_map_lat' => array('name' => _x('Map Latitude', 'location meta box', 'church-theme-content'), 'after_name' => '', 'desc' => __('You can <a href="http://churchthemes.com/get-latitude-longitude" target="_blank">use this</a> to convert an address into coordinates.', 'church-theme-content'), 'type' => 'text', 'checkbox_label' => '', 'options' => array(), 'upload_button' => '', 'upload_title' => '', 'upload_type' => '', 'default' => '', 'no_empty' => false, 'allow_html' => false, 'attributes' => array(), 'class' => 'ctmb-medium', 'field_attributes' => array(), 'field_class' => '', 'custom_sanitize' => '', 'custom_field' => ''), '_ctc_location_map_lng' => array('name' => _x('Map Longitude', 'location meta box', 'church-theme-content'), 'after_name' => '', 'desc' => '', 'type' => 'text', 'checkbox_label' => '', 'options' => array(), 'upload_button' => '', 'upload_title' => '', 'upload_type' => '', 'default' => '', 'no_empty' => false, 'allow_html' => false, 'attributes' => array(), 'class' => 'ctmb-medium', 'field_attributes' => array(), 'field_class' => '', 'custom_sanitize' => '', 'custom_field' => ''), '_ctc_location_map_type' => array('name' => _x('Map Type', 'location meta box', 'church-theme-content'), 'after_name' => '', 'desc' => _x('You can show a road map, satellite imagery, a combination of both (hybrid) or terrain.', 'location meta box', 'church-theme-content'), 'type' => 'select', 'checkbox_label' => '', 'options' => ctc_gmaps_types(), 'upload_button' => '', 'upload_title' => '', 'upload_type' => '', 'default' => ctc_gmaps_type_default(), 'no_empty' => true, 'allow_html' => false, 'attributes' => array(), 'class' => '', 'field_attributes' => array(), 'field_class' => '', 'custom_sanitize' => '', 'custom_field' => ''), '_ctc_location_map_zoom' => array('name' => _x('Map Zoom', 'location meta box', 'church-theme-content'), 'after_name' => '', 'desc' => _x('A lower number is more zoomed out while a higher number is more zoomed in.', 'location meta box', 'church-theme-content'), 'type' => 'select', 'checkbox_label' => '', 'options' => ctc_gmaps_zoom_levels(), 'upload_button' => '', 'upload_title' => '', 'upload_type' => '', 'default' => ctc_gmaps_zoom_level_default(), 'no_empty' => true, 'allow_html' => false, 'attributes' => array(), 'class' => '', 'field_attributes' => array(), 'field_class' => '', 'custom_sanitize' => '', 'custom_field' => '')));
    // Add Meta Box
    new CT_Meta_Box($meta_box);
}
/**
 * Location details
 *
 * @since 0.9
 */
function ctc_add_meta_box_location()
{
    // Configure Meta Box
    $meta_box = array('id' => 'ctc_location', 'title' => _x('Location Details', 'location meta box', 'churchthemes-framework'), 'post_type' => 'ctc_location', 'context' => 'normal', 'priority' => 'high', 'fields' => array('_ctc_location_address' => array('name' => _x('Address', 'location meta box', 'churchthemes-framework'), 'after_name' => '', 'after_input' => '', 'desc' => '', 'type' => 'textarea', 'checkbox_label' => '', 'options' => array(), 'upload_button' => '', 'upload_title' => '', 'upload_type' => '', 'default' => '', 'no_empty' => false, 'allow_html' => true, 'attributes' => array(), 'class' => 'ctmb-medium', 'field_attributes' => array(), 'field_class' => 'ctmb-no-bottom-margin', 'custom_sanitize' => '', 'custom_field' => '', 'visibility' => array()), '_ctc_location_show_directions_link' => array('name' => '', 'after_name' => '', 'after_input' => '', 'desc' => '', 'type' => 'checkbox', 'checkbox_label' => 'Show directions link', 'options' => array(), 'upload_button' => '', 'upload_title' => '', 'upload_type' => '', 'default' => true, 'no_empty' => false, 'allow_html' => false, 'attributes' => array(), 'class' => '', 'field_attributes' => array(), 'field_class' => 'ctmb-no-top-margin', 'custom_sanitize' => '', 'custom_field' => '', 'visibility' => array()), '_ctc_location_phone' => array('name' => _x('Phone', 'location meta box', 'churchthemes-framework'), 'after_name' => '', 'after_input' => '', 'desc' => '', 'type' => 'text', 'checkbox_label' => '', 'options' => array(), 'upload_button' => '', 'upload_title' => '', 'upload_type' => '', 'default' => '', 'no_empty' => false, 'allow_html' => false, 'attributes' => array(), 'class' => 'ctmb-medium', 'field_attributes' => array(), 'field_class' => '', 'custom_sanitize' => '', 'custom_field' => '', 'visibility' => array()), '_ctc_location_times' => array('name' => _x('Times', 'location meta box', 'churchthemes-framework'), 'after_name' => '', 'after_input' => '', 'desc' => 'You can add service times or hours of operation', 'type' => 'textarea', 'checkbox_label' => '', 'options' => array(), 'upload_button' => '', 'upload_title' => '', 'upload_type' => '', 'default' => '', 'no_empty' => false, 'allow_html' => true, 'attributes' => array(), 'class' => 'ctmb-medium', 'field_attributes' => array(), 'field_class' => '', 'custom_sanitize' => '', 'custom_field' => '', 'visibility' => array()), '_ctc_location_map_type' => array('name' => _x('Map Type', 'location meta box', 'churchthemes-framework'), 'after_name' => '', 'after_input' => '', 'desc' => _x('You can show a road map, satellite imagery, a combination of both (hybrid) or terrain.', 'location meta box', 'churchthemes-framework'), 'type' => 'select', 'checkbox_label' => '', 'options' => ctc_gmaps_types(), 'upload_button' => '', 'upload_title' => '', 'upload_type' => '', 'default' => ctc_gmaps_type_default(), 'no_empty' => true, 'allow_html' => false, 'attributes' => array(), 'class' => '', 'field_attributes' => array(), 'field_class' => '', 'custom_sanitize' => '', 'custom_field' => '', 'visibility' => array()), '_ctc_location_map_zoom' => array('name' => _x('Map Zoom', 'location meta box', 'churchthemes-framework'), 'after_name' => '', 'after_input' => '', 'desc' => _x('A lower number is more zoomed out while a higher number is more zoomed in.', 'location meta box', 'churchthemes-framework'), 'type' => 'select', 'checkbox_label' => '', 'options' => ctc_gmaps_zoom_levels(), 'upload_button' => '', 'upload_title' => '', 'upload_type' => '', 'default' => ctc_gmaps_zoom_level_default(), 'no_empty' => true, 'allow_html' => false, 'attributes' => array(), 'class' => '', 'field_attributes' => array(), 'field_class' => '', 'custom_sanitize' => '', 'custom_field' => '', 'visibility' => array())));
    // Add Meta Box
    new CT_Meta_Box($meta_box);
}