Sindbad~EG File Manager
<?php
/* * ** Meta Box Functions **** */
$meta_boxes = array();
/* Speaker Meta Box
================================================== */
function adorechurch_register_meta_boxes($meta_boxes)
{
$prefix = 'imic_';
$options = get_option('imic_options');
global $meta_boxes;
$gmap_api_key = (isset($options['google_map_api']))?$options['google_map_api']:'';
$meta_boxes[] = array(
'id' => 'staff_meta_box',
'title' => esc_html__('Staff Member Meta', 'framework'),
'pages' => array('speaker'),
'fields' => array(
array(
'name' => esc_html__('Show Sermon URL', 'framework'),
'id' => $prefix . 'display_sermon_url',
'desc' => esc_html__("Select enabled to show a button linked to sermons of this speaker in the profile.", 'framework'),
'type' => 'select',
'options' => array(
'1' => esc_html__('Enable', 'framework'),
'0' => esc_html__('Disable','framework'),
),
'std' => 1,
),
array(
'name' => esc_html__('Position', 'framework'),
'id' => $prefix . 'staff_position',
'desc' => esc_html__("Enter the staff member's job title.", 'framework'),
'type' => 'text',
'std' => '',
'admin_columns' => array(
'position' => 'after date',
),
),
array(
'name' => esc_html__('Email', 'framework'),
'id' => $prefix . 'staff_member_email',
'desc' => esc_html__("Enter the staff member's Email.", 'framework'),
'type' => 'text',
'std' => '',
'admin_columns' => array(
'position' => 'after date',
),
),
array(
'name' => esc_html__('Phone', 'framework'),
'id' => $prefix . 'staff_member_phone',
'desc' => esc_html__("Enter the staff member's Phone no.", 'framework'),
'type' => 'text',
'std' => '',
'admin_columns' => array(
'position' => 'after date',
),
),
array(
'name' => esc_html__('Social Icon', 'framework'),
'id' => $prefix."social_icon_list",
'desc' => esc_html__('Enter Social Icon and URL.', 'framework'),
'type' => 'text_list',
'clone' => true,
'options' => array(
'0' => esc_html__('Social', 'framework'),
'1' => esc_html__('URL', 'framework')
)
),
)
);
/* Sermon Meta Box
================================================== */
$meta_boxes[] = array(
'id' => 'sermon_meta_box',
'title' => esc_html__('Sermon Details', 'framework'),
'pages' => array('sermon'),
'fields' => array(
array(
'name' => esc_html__( 'Sermon Speakers', 'framework' ),
'id' => $prefix.'sermon_speaker',
'type' => 'post',
// Post type
'post_type' => 'speaker',
// Field type, either 'select' or 'select_advanced' (default)
'field_type' => 'select_advanced',
'multiple' => true,
// Query arguments (optional). No settings means get all published posts
'query_args' => array(
'post_status' => 'publish',
'posts_per_page' => - 1,
),
'admin_columns' => true
),
array(
'name' => esc_html__('Sermon Date', 'framework'),
'id' => $prefix . 'sermon_date',
'desc' => esc_html__("Insert sermon date.", 'framework'),
'type' => 'date',
'js_options' => array(
'dateFormat' =>'yy-mm-dd',
'changeMonth' => true,
'changeYear' => true,
'showButtonPanel' => false,
),
'admin_columns' => array(
'position' => 'after date',
'sort' => true,
),
),
array(
'name' => esc_html__('MP4 Video', 'framework'),
'id' => $prefix . 'mp4_video',
'desc' => esc_html__("Insert MP4 Video.", 'framework'),
'type' => 'file_input',
'clone' => false,
'std' => '',
),
array(
'name' => esc_html__('WEBM Video', 'framework'),
'id' => $prefix . 'webm_video',
'desc' => esc_html__("Insert WEBM Video.", 'framework'),
'type' => 'file_input',
'clone' => false,
'std' => '',
),
array(
'name' => esc_html__('OGG Video', 'framework'),
'id' => $prefix . 'ogg_video',
'desc' => esc_html__("Insert OGG Video.", 'framework'),
'type' => 'file_input',
'clone' => false,
'std' => '',
),
array(
'name' => esc_html__('Vimeo URL', 'framework'),
'id' => $prefix . 'vimeo_video',
'desc' => esc_html__("Enter Vimeo video URL.", 'framework'),
'type' => 'text',
'std' => '',
),
array(
'name' => esc_html__('Youtube URL', 'framework'),
'id' => $prefix . 'youtube_video',
'desc' => esc_html__("Enter Youtube video URL.", 'framework'),
'type' => 'text',
'std' => '',
),
array(
'name' => esc_html__('Self Hosted Audio', 'framework'),
'id' => $prefix . 'self_audio',
'desc' => esc_html__("Insert self hosted audio.", 'framework'),
'type' => 'file_input',
'clone' => false,
'std' => '',
),
array(
'name' => esc_html__( 'Audio Description', 'framework' ),
'id' => $prefix.'audio_desc',
'type' => 'wysiwyg',
// Set the 'raw' parameter to TRUE to prevent data being passed through wpautop() on save
'raw' => false,
// Editor settings, see wp_editor() function: look4wp.com/wp_editor
'options' => array(
'textarea_rows' => 3,
'tinymce' => true,
'media_buttons' => true,
),
),
array(
'name' => esc_html__('Soundcloud URL', 'framework'),
'id' => $prefix . 'soundcloud_audio',
'desc' => __("Enter Soundcloud audio URL.", 'framework'),
'type' => 'text',
'std' => '',
),
array(
'name' => esc_html__('PDF', 'framework'),
'id' => $prefix . 'pdf_url',
'desc' => esc_html__("Insert PDF URL.", 'framework'),
'type' => 'file_input',
'clone' => false,
'std' => '',
),
)
);
/* Sermon Podcast Meta Box
================================================== */
$meta_boxes[] = array(
'id' => 'sermons_podcast',
'title' => esc_html__('Sermon Podcast', 'framework'),
'pages' => array('sermon'),
'fields' => array(
//Podcast Audio Length
array(
'name' => esc_html__('Sermon audio length', 'framework'),
'id' => $prefix . 'sermon_duration',
'desc' => esc_html__("Enter audio length in format hh:mm:ss", 'framework'),
'type' => 'text'
),
//Podcast Audio File Size
array(
'name' => esc_html__('Sermon audio file size', 'framework'),
'id' => $prefix . 'sermon_size',
'desc' => esc_html__("Enter file size for the uploaded audio file.", 'framework'),
'type' => 'text'
),
//Podcast Desciption
array(
'name' => esc_html__('Sermon short description', 'framework'),
'id' => $prefix . 'sermons_podcast_description',
'desc' => esc_html__("Enter short and sweet description for this sermon to show at podcast players.", 'framework'),
'type' => 'textarea'
),
)
);
/* * **Gallery Page Meta Box1 *** */
$meta_boxes[] = array(
'id' => 'template-gallery1',
'title' => esc_html__('Gallery Metabox', 'framework'),
'show' => array('template' => array('template-gallery.php')),
'pages' => array('page'),
'show_names' => true,
'fields' => array(
array(
'name' => esc_html__('Enable/Disable Sorting Bar', 'framework'),
'id' => $prefix . 'gallery_secondary_bar_type_status',
'desc' => esc_html__("Select Enable to activate sorting bar.", 'framework'),
'type' => 'select',
'options' => array(
'1' => esc_html__('Enable', 'framework'),
'0' => esc_html__('Disable','framework'),
),
'std' => 0,
),
array(
'name' => esc_html__('Enable/Disable Pagination', 'framework'),
'id' => $prefix . 'gallery_page_pagination',
'desc' => esc_html__("Select Enable to activate pagination.", 'framework'),
'type' => 'select',
'options' => array(
'1' => esc_html__('Enable', 'framework'),
'0' => esc_html__('Disable','framework'),
),
'std' => 0,
),
array(
'name' => esc_html__( 'Gallery Category', 'framework' ),
'id' => $prefix . 'advanced_gallery_taxonomy',
'desc' => esc_html__("Choose Gallery Category", 'framework'),
'type' => 'taxonomy_advanced',
'options' => array(
// Taxonomy name
'taxonomy' => 'gallery-category',
'type' => 'select',
// Additional arguments for get_terms() function. Optional
'args' => array('orderby' => 'count', 'hide_empty' => true)
),
'std' => '',
),
array(
'name' => esc_html__('Gallery to show on page', 'framework'),
'id' => $prefix."gallery_number_show",
'desc' => esc_html__("Enter number of gallery items to show on a page, blank field will show all Gallery items.", 'framework'),
'type' => 'text',
),
array(
'name' => esc_html__('Columns Layout', 'framework'),
'id' => $prefix . 'projects_columns_layout',
'desc' => esc_html__("Select Columns Layout .", 'framework'),
'type' => 'select',
'options' => array(
'3' => esc_html__('One Fourth', 'framework'),
'4' => esc_html__('One Third','framework'),
'6' => esc_html__('Half','framework'),
),
'std' => 4,
),
array(
'name' => esc_html__( 'Show Gallery Titles', 'framework' ),
'id' => $prefix.'show_gallery_title',
'type' => 'checkbox',
'std' => 0,
),
)
);
/* * **Sermon Series Page Meta Box1 *** */
$meta_boxes[] = array(
'id' => 'template-sermon1',
'title' => esc_html__('Sermon Metabox', 'framework'),
'show' => array('template' => array('template-sermon.php')),
'pages' => array('page'),
'show_names' => true,
'fields' => array(
array(
'name' => esc_html__('Sermon Categories', 'framework'),
'id' => $prefix."sermon_series_cat",
'desc' => esc_html__("Enter Sermon Category ID's in which order you would like to show them Ex-1,2,3.", 'framework'),
'type' => 'text',
),
array(
'name' => esc_html__('Sermon Series Column', 'framework'),
'id' => $prefix . 'sermon_series_column',
'desc' => esc_html__("Select Columns Layout .", 'framework'),
'type' => 'select',
'options' => array(
'3' => esc_html__('One Fourth', 'framework'),
'4' => esc_html__('One Third','framework'),
'6' => esc_html__('Half','framework'),
),
'std' => 4,
),
array(
'name' => esc_html__('Series Count', 'framework'),
'id' => $prefix."sermon_series_count",
'desc' => esc_html__("Enter number of sermon series to show.", 'framework'),
'type' => 'text',
),
array(
'name' => esc_html__('Description', 'framework'),
'id' => $prefix."sermon_series_desc",
'desc' => esc_html__("Enter number of words to show from description Default:25.", 'framework'),
'type' => 'text',
),
array(
'name' => esc_html__( 'Series Label', 'framework' ),
'id' => $prefix.'sermon_series_label',
'type' => 'checkbox',
// Value can be 0 or 1
'std' => 1,
),
array(
'name' => esc_html__('Button Label', 'framework'),
'id' => $prefix."sermon_series_button",
'desc' => esc_html__("Enter button value.", 'framework'),
'type' => 'text',
),
)
);
/* * **Sermon List/Grid Page Meta Box1 *** */
$meta_boxes[] = array(
'id' => 'template-sermon-two1',
'title' => esc_html__('Sermons View Style', 'framework'),
'show' => array('template' => array('template-sermon-two.php')),
'pages' => array('page'),
'show_names' => true,
'fields' => array(
array(
'name' => esc_html__('Layout Type', 'framework'),
'id' => $prefix . 'sermons_layout_type',
'desc' => esc_html__("Select Layout Type", 'framework'),
'type' => 'select',
'options' => array(
'0' => esc_html__('List', 'framework'),
'1' => esc_html__('Grid','framework'),
),
'std' => 0,
),
array(
'name' => esc_html__('Columns Layout', 'framework'),
'id' => $prefix . 'sermons_columns_layout',
'desc' => esc_html__("Select Columns Layout for Grid Layout Type.", 'framework'),
'type' => 'select',
'options' => array(
'3' => esc_html__('One Fourth', 'framework'),
'4' => esc_html__('One Third','framework'),
'6' => esc_html__('Half','framework'),
),
'std' => 4,
'visible' => array('imic_sermons_layout_type','=','1'),
),
array(
'name' => esc_html__('Sermons Count', 'framework'),
'id' => $prefix."sermons_count",
'desc' => esc_html__("Number of Sermons to show on page", 'framework'),
'type' => 'text',
),
array(
'name' => esc_html__( 'Sermons Category', 'framework' ),
'id' => $prefix . 'advanced_sermons_list_taxonomy',
'desc' => esc_html__("Choose Sermons Category", 'framework'),
'type' => 'taxonomy_advanced',
'options' => array(
// Taxonomy name
'taxonomy' => 'sermon-category',
'type' => 'select',
// Additional arguments for get_terms() function. Optional
'args' => array('orderby' => 'count', 'hide_empty' => true)
),
'std' => '',
),
array(
'name' => esc_html__('Sermons Excerpt', 'framework'),
'id' => $prefix."sermons_desc",
'desc' => esc_html__("Enter number of words to show as excerpt from sermon content. Default:25", 'framework'),
'type' => 'text',
),
array(
'name' => esc_html__('Button Label', 'framework'),
'id' => $prefix."sermons_button",
'desc' => esc_html__("Enter read more button label", 'framework'),
'type' => 'text',
),
)
);
/* * **Event Page Meta Box1*** */
$meta_boxes[] = array(
'id' => 'template-event1',
'title' => esc_html__('Event Metabox', 'framework'),
'show' => array('template' => array('template-event.php')),
'pages' => array('page'),
'show_names' => true,
'fields' => array(
array(
'name' => esc_html__('Event Layout Type', 'framework'),
'id' => $prefix . 'event_layout_type',
'desc' => esc_html__("Select Event Layout Type.", 'framework'),
'type' => 'select',
'options' => array(
'0' => esc_html__('Month List', 'framework'),
'1' => esc_html__('Grid','framework'),
'2' => esc_html__('Future&Past','framework'),
),
'std' => 0,
),
array(
'name' => esc_html__('Event Count', 'framework'),
'id' => $prefix."events_count",
'desc' => esc_html__("Number of Events to show for Future&Past.", 'framework'),
'type' => 'text',
),
array(
'name' => esc_html__( 'Event Category', 'framework' ),
'id' => $prefix . 'advanced_event_list_taxonomy',
'desc' => esc_html__("Choose Event Category", 'framework'),
'type' => 'taxonomy_advanced',
'options' => array(
// Taxonomy name
'taxonomy' => 'event-category',
'type' => 'select',
// Additional arguments for get_terms() function. Optional
'args' => array('orderby' => 'count', 'hide_empty' => true)
),
'std' => '',
),
array(
'name' => esc_html__('Columns Layout', 'framework'),
'id' => $prefix . 'temp_event_columns_layout',
'desc' => esc_html__("Select Columns Layout .", 'framework'),
'type' => 'select',
'options' => array(
'3' => esc_html__('One Fourth', 'framework'),
'4' => esc_html__('One Third','framework'),
'6' => esc_html__('Half','framework'),
),
'std' => 4,
),
)
);
/* * **Template Blog Masonry Page Meta Box1*** */
$meta_boxes[] = array(
'id' => 'template-blog-masonry1',
'title' => esc_html__('Blog Masonry Metabox', 'framework'),
'show' => array('template' => array('template-blog-masonry.php')),
'pages' => array('page'),
'show_names' => true,
'fields' => array(
array(
'name' => esc_html__('Post Count', 'framework'),
'id' => $prefix."post_count",
'desc' => esc_html__("Number of Posts to show.", 'framework'),
'type' => 'text',
),
array(
'name' => esc_html__( 'Post Category', 'framework' ),
'id' => $prefix . 'advanced_post_list_taxonomy',
'desc' => esc_html__("Choose Post Category", 'framework'),
'type' => 'taxonomy_advanced',
'options' => array(
// Taxonomy name
'taxonomy' => 'category',
'type' => 'select',
// Additional arguments for get_terms() function. Optional
'args' => array('orderby' => 'count', 'hide_empty' => true)
),
'std' => '',
),
array(
'name' => esc_html__('Columns Layout', 'framework'),
'id' => $prefix . 'temp_event_columns_layout',
'desc' => esc_html__("Select Columns Layout .", 'framework'),
'type' => 'select',
'options' => array(
'3' => esc_html__('One Fourth', 'framework'),
'4' => esc_html__('One Third','framework'),
'6' => esc_html__('Half','framework'),
),
'std' => 4,
),
)
);
/* Gallery & Post Meta Box
================================================== */
$meta_boxes[] = array(
'id' => 'gallery_meta_box',
'title' => esc_html__('Post Meta Box', 'framework'),
'pages' => array('gallery','post'),
'fields' => array(
// Gallery Video Url
array(
'name' => esc_html__('Video Options', 'framework'),
'id' => $prefix . 'post_video_option',
'desc' => esc_html__("Select Video Option.", 'framework'),
'type' => 'select',
'options' => array(
'1' => esc_html__('Youtube or Vimeo', 'framework'),
'2' => esc_html__('Self Hosted', 'framework'),
),
'visible' => array( 'post_format', 'video' )
),
array(
'name' => __('Video URL', 'framework'),
'id' => $prefix . 'gallery_video_url',
'desc' => __("Enter the Youtube or Vimeo URL.", 'framework'),
'type' => 'url',
'visible' => array( 'imic_post_video_option', '=', '1' ),
),
array(
'name' => esc_html__('MP4 Video', 'framework'),
'id' => $prefix . 'post_mp4_video',
'desc' => esc_html__("Insert MP4 Video.", 'framework'),
'type' => 'file_input',
'clone' => false,
'std' => '',
'visible' => array( 'imic_post_video_option', '=', '2' ),
),
array(
'name' => esc_html__('WEBM Video', 'framework'),
'id' => $prefix . 'post_webm_video',
'desc' => esc_html__("Insert WEBM Video.", 'framework'),
'type' => 'file_input',
'clone' => false,
'std' => '',
'visible' => array( 'imic_post_video_option', '=', '2' ),
),
array(
'name' => esc_html__('OGG Video', 'framework'),
'id' => $prefix . 'post_ogg_video',
'desc' => esc_html__("Insert OGG Video.", 'framework'),
'type' => 'file_input',
'clone' => false,
'std' => '',
'visible' => array( 'imic_post_video_option', '=', '2' ),
),
// Gallery Link Url
array(
'name' => esc_html__('Link URL', 'framework'),
'id' => $prefix . 'gallery_link_url',
'desc' => esc_html__("Enter the Link URL.", 'framework'),
'type' => 'url',
'visible' => array( 'post_format', 'link' )
),
array(
'name' => esc_html__('Gallery Images', 'framework'),
'id' => $prefix . 'gallery_images',
'desc' => esc_html__("Upload images for gallery.", 'framework'),
'type' => 'image_advanced',
'visible' => array( 'post_format', 'gallery' )
),
array(
'name' => esc_html__('Slider Speed', 'framework'),
'id' => $prefix . 'gallery_slider_speed',
'desc' => esc_html__("Default Slider Speed is 5000. 1000 = 1 second", 'framework'),
'type' => 'text',
'visible' => array( 'post_format', 'gallery' )
),
array(
'name' => esc_html__('Slider Pagination', 'framework'),
'id' => $prefix . 'gallery_slider_pagination',
'desc' => esc_html__("Enable to show pagination for slider.", 'framework'),
'type' => 'select',
'options' => array(
'yes' => esc_html__('Enable', 'framework'),
'no' => esc_html__('Disable', 'framework'),
),
'visible' => array( 'post_format', 'gallery' )
),
array(
'name' => esc_html__('Slider Auto Slide', 'framework'),
'id' => $prefix . 'gallery_slider_auto_slide',
'desc' => esc_html__("Select Yes to slide automatically.", 'framework'),
'type' => 'select',
'options' => array(
'yes' => esc_html__('Yes', 'framework'),
'no' => esc_html__('No', 'framework'),
),
'visible' => array( 'post_format', 'gallery' )
),
array(
'name' => esc_html__('Slider Direction Arrows', 'framework'),
'id' => $prefix . 'gallery_slider_direction_arrows',
'desc' => esc_html__("Select Yes to show slider direction arrows.", 'framework'),
'type' => 'select',
'options' => array(
'yes' => esc_html__('Yes', 'framework'),
'no' => esc_html__('No', 'framework'),
),
'visible' => array( 'post_format', 'gallery' )
),
array(
'name' => esc_html__('Slider Effects', 'framework'),
'id' => $prefix . 'gallery_slider_effects',
'desc' => esc_html__("Select effects for slider.", 'framework'),
'type' => 'select',
'options' => array(
'fade' => esc_html__('Fade', 'framework'),
'slide' => esc_html__('Slide', 'framework'),
),
'visible' => array( 'post_format', 'gallery' )
),
//Audio Display
array(
'name' => esc_html__('Audio', 'framework'),
'id' => $prefix . 'gallery_uploaded_audio',
'desc' => esc_html__("Upload Audio.", 'framework'),
'type' => 'file_input',
'visible' => array( 'post_format', 'audio' )
),
)
);
/* Event Meta Box
================================================== */
/*** Event Details Meta box ***/
$meta_boxes[] = array(
'id' => 'event_meta_box',
'title' => esc_html__('Event Date', 'framework'),
'pages' => array('event'),
'fields' => array(
// Event Start Date
array(
'name' => esc_html__('Featured Event', 'framework'),
'id' => $prefix . 'featured_event',
'desc' => esc_html__("Select Featured Event.", 'framework'),
'type' => 'select',
'options' => array(
'no' => esc_html__('No','framework'),
'yes' => esc_html__('Yes','framework'),
),
'admin_columns' => true
),
array(
'name' => esc_html__('Event Start Date', 'framework'),
'id' => $prefix . 'event_start_dt',
'desc' => esc_html__("Insert event start date.", 'framework'),
'type' => 'datetime',
'js_options' => array(
'dateFormat' => 'yy-mm-dd',
'hourMax' => 24,
'changeMonth' => true,
'changeYear' => true,
'showButtonPanel' => true,
'stepMinute' => 5,
'showSecond' => false,
'stepSecond' => 10,
),
),
//Event End Date
array(
'name' => esc_html__(' Event End Date', 'framework'),
'id' => $prefix . 'event_end_dt',
'desc' => esc_html__("Insert event end date, multiple days event can not use recurring options.", 'framework'),
'type' => 'datetime',
'js_options' => array(
'dateFormat' => 'yy-mm-dd',
'hourMax' => 24,
'changeMonth' => true,
'changeYear' => true,
'showButtonPanel' => true,
'stepMinute' => 5,
'showSecond' => false,
'stepSecond' => 10,
),
),
)
);
/*** Event Address Meta box ***/
$meta_boxes[] = array(
'id' => 'event_address_box',
'title' => esc_html__('Event Details', 'framework'),
'pages' => array('event'),
'fields' => array(
array(
'name' => esc_html__( 'Virtual Event?', 'framework' ),
'desc' => esc_html__("If checked, the location icon link will be hidden from the events list/grid/single pages.", 'framework'),
'id' => $prefix.'virtual_event',
'type' => 'checkbox',
'std' => 0,
),
array(
'name' => esc_html__( 'Open map in Google Map', 'framework' ),
'desc' => esc_html__("If checked the map icon in the events list will open the map in a seperate window on Google Maps website.", 'framework'),
'id' => $prefix.'google_map_track',
'type' => 'checkbox',
'std' => 0,
'visible' => array( 'imic_virtual_event', '=', 0 ),
),
array(
'name' => esc_html__('Address', 'framework'),
'id' => $prefix."event_address2",
'desc' => esc_html__("This field should have real address to get GMap. For virtual events you can enter any small text like Online/Virtual.", 'framework'),
'type' => 'text',
'admin_columns' => true
),
array(
'id' => $prefix."event_map_location",
'name' => esc_html__( 'Location', 'framework' ),
'type' => 'map',
'api_key' => $gmap_api_key,
'std' => '-6.233406,-35.049906,15', // 'latitude,longitude[,zoom]' (zoom is optional)
'style' => 'width: 500px; height: 500px',
'address_field' => 'imic_event_address2', // Name of text field where address is entered. Can be list of text fields, separated by commas (for ex. city, state)
'visible' => array( 'imic_virtual_event', '=', 0 ),
),
array(
'name' => esc_html__('Additional Information', 'framework'),
'id' => $prefix."event_extra_info",
'desc' => esc_html__('Enter additional information.', 'framework'),
'type' => 'text_list',
'clone' => true,
'options' => array(
'Title' => esc_html__('Title', 'framework'),
'Value' => esc_html__('value', 'framework'))
),
array(
'name' => esc_html__('Event Manager', 'framework'),
'id' => $prefix."event_manager",
'desc' => esc_html__("Enter event manager email address for contact.", 'framework'),
'type' => 'text',
),
array(
'name' => esc_html__( 'Registration', 'framework' ),
'id' => $prefix.'event_registration',
'type' => 'checkbox',
'std' => 1,
'admin_columns' => true
),
array(
'name' => esc_html__( 'Custom Registration Button URL', 'framework' ),
'id' => $prefix.'custom_event_registration',
'desc' => esc_html__("For example EventBrite Event page URL of yours.", 'framework'),
'type' => 'text'
),
array(
'name' => esc_html__( 'Open custom URL in new Tab/Window', 'framework' ),
'id' => $prefix.'custom_event_registration_target',
'type' => 'checkbox',
// Value can be 0 or 1
'std' => 1,
),
)
);
/*** Event Recurrence Meta box ***/
$meta_boxes[] = array(
'id' => 'event_recurring_box',
'title' => esc_html__('Recurring Event', 'framework'),
'pages' => array('event'),
'fields' => array(
//Frequency of Event
array(
'name' => esc_html__('Event Frequency Type', 'framework'),
'id' => $prefix . 'event_frequency_type',
'desc' => esc_html__("Select Frequency Type.", 'framework'),
'type' => 'select',
'options' => array(
'0' => esc_html__('Not Required','framework'),
'1' => esc_html__('Fixed Date','framework'),
'2' => esc_html__('Week Day', 'framework'),
),
'admin_columns' => array(
'position' => 'after date',
'title' => 'Recurring'
)
),
array(
'name' => esc_html__('Day of Month', 'framework'),
'id' => $prefix . 'event_day_month',
'desc' => esc_html__("Select Day of Month.", 'framework'),
'type' => 'select',
'options' => array(
'first' => esc_html__('First','framework'),
'second' => esc_html__('Second', 'framework'),
'third' => esc_html__('Third', 'framework'),
'fourth' => esc_html__('Fourth', 'framework'),
'last' => esc_html__('Last', 'framework'),
),
'hidden' => array('imic_event_frequency_type','!=','2')
),
array(
'name' => esc_html__('Event Week Day', 'framework'),
'id' => $prefix . 'event_week_day',
'desc' => esc_html__("Select Week Day.", 'framework'),
'type' => 'select',
'options' => array(
'sunday' => esc_html__('Sunday','framework'),
'monday' => esc_html__('Monday', 'framework'),
'tuesday' => esc_html__('Tuesday', 'framework'),
'wednesday' => esc_html__('Wednesday', 'framework'),
'thursday' => esc_html__('Thursday', 'framework'),
'friday' => esc_html__('Friday', 'framework'),
'saturday' => esc_html__('Saturday', 'framework'),
),
'hidden' => array('imic_event_frequency_type','!=','2'),
),
array(
'name' => esc_html__('Event Frequency', 'framework'),
'id' => $prefix . 'event_frequency',
'desc' => esc_html__("Select Frequency.", 'framework'),
'type' => 'select',
'options' => array(
'35' => esc_html__('Select', 'framework'),
'1' => esc_html__('Every Day', 'framework'),
'2' => esc_html__('Every Second Day', 'framework'),
'3' => esc_html__('Every Third Day', 'framework'),
'4' => esc_html__('Every Fourth Day', 'framework'),
'5' => esc_html__('Every Fifth Day', 'framework'),
'6' => esc_html__('Every Sixth Day', 'framework'),
'7' => esc_html__('Every Week', 'framework'),
'30' => esc_html__('Every Month', 'framework'),
),
'hidden' => array('imic_event_frequency_type','!=','1'),
),
//Frequency Count
array(
'name' => esc_html__('Number of times to repeat event', 'framework'),
'id' => $prefix . 'event_frequency_count',
'desc' => esc_html__("Enter the number of how many time this event should repeat.", 'framework'),
'type' => 'text',
'hidden' => array('imic_event_frequency_type','=','0'),
'admin_columns' => array(
'position' => 'after date',
'title' => 'Recurring Count'
)
),
array(
'name' => esc_html__('Do not change', 'framework'),
'id' => $prefix . 'event_frequency_end',
'desc' => esc_html__("Removing this field can break the website.", 'framework'),
'type' => 'hidden',
),
)
);
/* Post Page Meta Box
================================================== */
$meta_boxes[] = array(
'id' => 'post_page_meta_box',
'title' => esc_html__('Page/Post Header Options', 'framework'),
'pages' => array('post','page','sermon','event','product','speaker'),
'fields' => array(
array(
'name' => esc_html__('Choose Header Type', 'framework'),
'id' => $prefix . 'pages_Choose_slider_display',
'desc' => esc_html__("Select Banner Type.", 'framework'),
'type' => 'select',
'options' => array(
'1' => esc_html__('Banner', 'framework'),
'2' => esc_html__('Banner Image', 'framework'),
'3' => esc_html__('Flex Slider', 'framework'),
'4' => esc_html__('Nivo Slider','framework'),
'5' => esc_html__('Revolution Slider', 'framework'),
'6' => esc_html__('Layer Slider', 'framework'),
'7' => esc_html__('No Banner', 'framework'),
),
'std' => 2
),
array(
'name' => esc_html__( 'Banner Color', 'framework' ),
'id' => $prefix.'pages_banner_color',
'type' => 'color',
'hidden' => array('imic_pages_Choose_slider_display','!=','1')
),
array(
'name' => esc_html__( 'Banner Overlay', 'framework' ),
'id' => $prefix.'pages_banner_overlay',
'type' => 'checkbox',
// Value can be 0 or 1
'std' => 0,
'visible' => array('imic_pages_Choose_slider_display','between',array('1','4'))
),
array(
'name' => esc_html__( 'Banner Animation', 'framework' ),
'id' => $prefix.'pages_banner_animation',
'type' => 'checkbox',
// Value can be 0 or 1
'std' => 0,
'visible' => array('imic_pages_Choose_slider_display','between',array('1','3'))
),
array(
'name' => esc_html__('Banner Image', 'framework'),
'id' => $prefix . 'header_image',
'desc' => esc_html__("Upload banner image for header for this Page/Post.", 'framework'),
'type' => 'image_advanced',
'max_file_uploads' => 1,
'hidden' => array('imic_pages_Choose_slider_display','!=','2')
),
array(
'name' => esc_html__('Banner Description', 'framework'),
'id' => $prefix . 'pages_banner_description',
'desc' => esc_html__("Enter banner description.", 'framework'),
'type' => 'text',
'visible' => array('imic_pages_Choose_slider_display','between',array('1','2'))
),
array(
'name' => esc_html__('Select Revolution Slider from list','framework'),
'id' => $prefix . 'pages_select_revolution_from_list',
'desc' => esc_html__("Select Revolution Slider from list", 'framework'),
'type' => 'select',
'options' => imic_RevSliderShortCode(),
'hidden' => array('imic_pages_Choose_slider_display','!=','5')
),
array(
'name' => esc_html__('Select Layer Slider from list','framework'),
'id' => $prefix . 'pages_select_layer_from_list',
'desc' => esc_html__("Select Layer Slider from list", 'framework'),
'type' => 'select',
'options' => imic_layerslidershortcode(),
'hidden' => array('imic_pages_Choose_slider_display','!=','6')
),
//Slider Image
array(
'name' => esc_html__('Banner/Slider Height', 'framework'),
'id' => $prefix . 'pages_slider_height',
'desc' => esc_html__("Enter Height for Banner/Slider Ex-265.", 'framework'),
'type' => 'text',
'hidden' => array('imic_pages_Choose_slider_display','between',array('5','7'))
),
array(
'name' => esc_html__('Slider Images', 'framework'),
'id' => $prefix . 'pages_slider_image',
'desc' => esc_html__("Enter Slider Images.", 'framework'),
'type' => 'image_advanced',
'visible' => array('imic_pages_Choose_slider_display','between',array('3','4'))
),
array(
'name' => esc_html__('Slider Pagination', 'framework'),
'id' => $prefix . 'pages_slider_pagination',
'desc' => esc_html__("Enable to show pagination for slider.", 'framework'),
'type' => 'select',
'options' => array(
'yes' => esc_html__('Enable', 'framework'),
'no' => esc_html__('Disable', 'framework'),
),
'visible' => array('imic_pages_Choose_slider_display','between',array('3','4'))
),
array(
'name' => esc_html__('Slider Auto Slide', 'framework'),
'id' => $prefix . 'pages_slider_auto_slide',
'desc' => esc_html__("Select Yes to slide automatically.", 'framework'),
'type' => 'select',
'options' => array(
'yes' => esc_html__('Yes', 'framework'),
'no' => esc_html__('No', 'framework'),
),
'visible' => array('imic_pages_Choose_slider_display','between',array('3','4'))
),
array(
'name' => esc_html__('Slider Direction Arrows', 'framework'),
'id' => $prefix . 'pages_slider_direction_arrows',
'desc' => esc_html__("Select Yes to show slider direction arrows.", 'framework'),
'type' => 'select',
'options' => array(
'yes' => esc_html__('Yes', 'framework'),
'no' => esc_html__('No', 'framework'),
),
'visible' => array('imic_pages_Choose_slider_display','between',array('3','4'))
),
array(
'name' => esc_html__('Slider Slide Interval', 'framework'),
'id' => $prefix . 'pages_slider_interval',
'desc' => esc_html__("Enter pause time for each slide. 1000 = 1 second. Default is 7000(7 seconds)", 'framework'),
'type' => 'text',
'std' => '7000',
'visible' => array('imic_pages_Choose_slider_display','between',array('3','4'))
),
array(
'name' => esc_html__('Slider Effects', 'framework'),
'id' => $prefix . 'pages_slider_effects',
'desc' => esc_html__("Select effects for slider.", 'framework'),
'type' => 'select',
'options' => array(
'fade' => esc_html__('Fade', 'framework'),
'slide' => esc_html__('Slide', 'framework'),
),
'visible' => array('imic_pages_Choose_slider_display','=',array('3'))
),
array(
'name' => esc_html__('Slider Effects', 'framework'),
'id' => $prefix . 'pages_nivo_effects',
'desc' => esc_html__("Select effects for slider.", 'framework'),
'type' => 'select',
'options' => array(
'sliceDown' => esc_html__('sliceDown', 'framework'),
'sliceDownLeft' => esc_html__('sliceDownLeft', 'framework'),
'sliceUp' => esc_html__('sliceUp', 'framework'),
'sliceUpLeft' => esc_html__('sliceUpLeft', 'framework'),
'sliceUpDown' => esc_html__('sliceUpDown', 'framework'),
'sliceUpDownLeft' => esc_html__('sliceUpDownLeft', 'framework'),
'fold' => esc_html__('fold', 'framework'),
'fade' => esc_html__('fade', 'framework'),
'random' => esc_html__('random', 'framework'),
'slideInRight' => esc_html__('slideInRight', 'framework'),
'slideInLeft' => esc_html__('slideInLeft', 'framework'),
'boxRandom' => esc_html__('boxRandom', 'framework'),
'boxRain' => esc_html__('boxRain', 'framework'),
'boxRainReverse' => esc_html__('boxRainReverse', 'framework'),
'boxRainGrow' => esc_html__('boxRainGrow', 'framework'),
'boxRainGrowReverse' => esc_html__('boxRainGrowReverse', 'framework'),
),
'visible' => array('imic_pages_Choose_slider_display','=','4')
),
)
);
/* Contact Page Map Meta Box
================================================== */
$meta_boxes[] = array(
'id' => 'template-contact2',
'title' => esc_html__('Contact Options','framework'),
'show' => array('template' => array('template-contact.php')),
'pages' => array('page'),
'fields' => array(
array(
'name' => esc_html__('Contact Email', 'framework'),
'id' => $prefix . 'contact_email',
'desc' => esc_html__("Enter contact email, if left blank admin email will be used.", 'framework'),
'type' => 'text',
),
)
);
/* Contact Page Map Meta Box
================================================== */
$meta_boxes[] = array(
'id' => 'template-contact3',
'title' => esc_html__('Banner Options','framework'),
'show' => array('template' => array('template-contact.php')),
'pages' => array('page'),
'fields' => array(
array(
'name' => esc_html__('Choose Banner Type', 'framework'),
'id' => $prefix . 'contact_banner_type',
'desc' => esc_html__("Select Banner Type.", 'framework'),
'type' => 'select',
'options' => array(
'1' => esc_html__('Map', 'framework'),
'2' => esc_html__('Banner Options', 'framework'),
),
'std' => '2'
),
array(
'name' => esc_html__('Address for Map', 'framework'),
'id' => $prefix . 'contact_map_address',
'desc' => esc_html__("Enter address for map.", 'framework'),
'type' => 'text',
),
)
);
return $meta_boxes;
}
add_action('rwmb_meta_boxes', 'adorechurch_register_meta_boxes');
?>
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists