Exemplo n.º 1
0
  ================================================== */
$meta_boxes[] = array('id' => 'gallery_meta_box', 'title' => __('Post Meta Box', 'framework'), 'pages' => array('gallery', 'post'), 'fields' => array(array('name' => __('Video Options', 'framework'), 'id' => $prefix . 'post_video_option', 'desc' => __("Select Video Option.", 'framework'), 'type' => 'select', 'options' => array('1' => __('Youtube or Vimeo', 'framework'), '2' => __('Self Hosted', 'framework'))), array('name' => __('Video Url', 'framework'), 'id' => $prefix . 'gallery_video_url', 'desc' => __("Enter the Youtube or Vimeo URL.", 'framework'), 'type' => 'url'), array('name' => __('MP4 Video', 'framework'), 'id' => $prefix . 'post_mp4_video', 'desc' => __("Insert MP4 Video.", 'framework'), 'type' => 'file_input', 'clone' => false, 'std' => ''), array('name' => __('WEBM Video', 'framework'), 'id' => $prefix . 'post_webm_video', 'desc' => __("Insert WEBM Video.", 'framework'), 'type' => 'file_input', 'clone' => false, 'std' => ''), array('name' => __('OGG Video', 'framework'), 'id' => $prefix . 'post_ogg_video', 'desc' => __("Insert OGG Video.", 'framework'), 'type' => 'file_input', 'clone' => false, 'std' => ''), array('name' => __('Link Url', 'framework'), 'id' => $prefix . 'gallery_link_url', 'desc' => __("Enter the Link URL.", 'framework'), 'type' => 'url'), array('name' => __('Gallery Images', 'framework'), 'id' => $prefix . 'gallery_images', 'desc' => __("Upload images for gallery.", 'framework'), 'type' => 'image_advanced', 'max_file_uploads' => 30), array('name' => __('Slider Speed', 'framework'), 'id' => $prefix . 'gallery_slider_speed', 'desc' => __("Default Slider Speed is 5000.", 'framework'), 'type' => 'text'), array('name' => __('Slider Pagination', 'framework'), 'id' => $prefix . 'gallery_slider_pagination', 'desc' => __("Enable to show pagination for slider.", 'framework'), 'type' => 'select', 'options' => array('yes' => __('Enable', 'framework'), 'no' => __('Disable', 'framework'))), array('name' => __('Slider Auto Slide', 'framework'), 'id' => $prefix . 'gallery_slider_auto_slide', 'desc' => __("Select Yes to slide automatically.", 'framework'), 'type' => 'select', 'options' => array('yes' => __('Yes', 'framework'), 'no' => __('No', 'framework'))), array('name' => __('Slider Direction Arrows', 'framework'), 'id' => $prefix . 'gallery_slider_direction_arrows', 'desc' => __("Select Yes to show slider direction arrows.", 'framework'), 'type' => 'select', 'options' => array('yes' => __('Yes', 'framework'), 'no' => __('No', 'framework'))), array('name' => __('Slider Effects', 'framework'), 'id' => $prefix . 'gallery_slider_effects', 'desc' => __("Select effects for slider.", 'framework'), 'type' => 'select', 'options' => array('fade' => __('Fade', 'framework'), 'slide' => __('Slide', 'framework'))), array('name' => __('Audio', 'framework'), 'id' => $prefix . 'gallery_uploaded_audio', 'desc' => __("Upload Audio.", 'framework'), 'type' => 'file_input')));
/* Event Meta Box
  ================================================== */
/*** Event Details Meta box ***/
$meta_boxes[] = array('id' => 'event_meta_box', 'title' => __('Event Date', 'framework'), 'pages' => array('event'), 'fields' => array(array('name' => __('Featured Event', 'framework'), 'id' => $prefix . 'featured_event', 'desc' => __("Select Featured Event.", 'framework'), 'type' => 'select', 'options' => array('no' => __('No', 'framework'), 'yes' => __('Yes', 'framework'))), array('name' => __('Event Start Date', 'framework'), 'id' => $prefix . 'event_start_dt', 'desc' => __("Insert date of Event start.", 'framework'), 'type' => 'datetime', 'js_options' => array('dateFormat' => 'yy-mm-dd', 'hourMax' => 24, 'timeFormat' => 'hh:mm', 'changeMonth' => true, 'changeYear' => true, 'showButtonPanel' => true, 'stepMinute' => 5, 'showSecond' => false, 'stepSecond' => 10)), array('name' => __(' Event End Date', 'framework'), 'id' => $prefix . 'event_end_dt', 'desc' => __("Insert date of Event end, multiple days Event could not be recur.", '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' => __('Event Details', 'framework'), 'pages' => array('event'), 'fields' => array(array('name' => __('Address2', 'framework'), 'id' => $prefix . "event_address2", 'desc' => __("This field should have real address to get GMap.", 'framework'), 'type' => 'text'), array('id' => $prefix . "event_map_location", 'name' => __('Location', 'meta-box'), 'type' => 'map', 'std' => '-6.233406,-35.049906,15', 'style' => 'width: 500px; height: 500px', 'address_field' => 'imic_event_address2'), array('name' => __('Additional Information', 'framework'), 'id' => $prefix . "event_extra_info", 'desc' => __('Enter additional information.', 'framework'), 'type' => 'text_list', 'clone' => true, 'options' => array('0' => __('Title', 'framework'), '1' => __('value', 'framework'))), array('name' => __('Event Manager', 'framework'), 'id' => $prefix . "event_manager", 'desc' => __("Enter event manager email address for contact.", 'framework'), 'type' => 'text'), array('name' => __('Enable Registration', 'framework'), 'id' => $prefix . 'event_registration', 'type' => 'checkbox', 'std' => 1), array('name' => __('Custom Registration Button URL', 'framework'), 'id' => $prefix . 'custom_event_registration', 'desc' => __("For example EventBrite Event page URL of yours.", 'framework'), 'type' => 'text'), array('name' => __('Open custom URL in new Tab/Window', 'framework'), 'id' => $prefix . 'custom_event_registration_target', 'type' => 'checkbox', 'std' => 1)));
/*** Event Recurrence Meta box ***/
$meta_boxes[] = array('id' => 'event_recurring_box', 'title' => __('Recurring Event', 'framework'), 'pages' => array('event'), 'fields' => array(array('name' => __('Event Frequency Type', 'framework'), 'id' => $prefix . 'event_frequency_type', 'desc' => __("Select Frequency Type.", 'framework'), 'type' => 'select', 'options' => array('0' => __('Not Required', 'framework'), '1' => __('Fixed Date', 'framework'), '2' => __('Week Day', 'framework'))), array('name' => __('Day of Month', 'framework'), 'id' => $prefix . 'event_day_month', 'desc' => __("Select Day of Month.", 'framework'), 'type' => 'select', 'options' => array('first' => __('First', 'framework'), 'second' => __('Second', 'framework'), 'third' => __('Third', 'framework'), 'fourth' => __('Fourth', 'framework'), 'last' => __('Last', 'framework'))), array('name' => __('Event Week Day', 'framework'), 'id' => $prefix . 'event_week_day', 'desc' => __("Select Week Day.", 'framework'), 'type' => 'select', 'options' => array('sunday' => __('Sunday', 'framework'), 'monday' => __('Monday', 'framework'), 'tuesday' => __('Tuesday', 'framework'), 'wednesday' => __('Wednesday', 'framework'), 'thursday' => __('Thursday', 'framework'), 'friday' => __('Friday', 'framework'), 'saturday' => __('Saturday', 'framework'))), array('name' => __('Event Frequency', 'framework'), 'id' => $prefix . 'event_frequency', 'desc' => __("Select Frequency.", 'framework'), 'type' => 'select', 'options' => array('35' => __('Select', 'framework'), '1' => __('Every Day', 'framework'), '2' => __('Every Second Day', 'framework'), '3' => __('Every Third Day', 'framework'), '4' => __('Every Fourth Day', 'framework'), '5' => __('Every Fifth Day', 'framework'), '6' => __('Every Sixth Day', 'framework'), '7' => __('Every Week', 'framework'), '30' => __('Every Month', 'framework'))), array('name' => __('Number of times to repeat event', 'framework'), 'id' => $prefix . 'event_frequency_count', 'desc' => __("Enter the number of how many time this event should repeat.", 'framework'), 'type' => 'text'), array('name' => __('Do not change', 'framework'), 'id' => $prefix . 'event_frequency_end', 'desc' => __("If any changes done in this file, may your theme will not work like running now.", 'framework'), 'type' => 'hidden')));
/* Contact Page Map Meta Box
  ================================================== */
$meta_boxes[] = array('id' => 'template-contact1', 'title' => __('Banner Options', 'framework'), 'pages' => array('page'), 'fields' => array(array('name' => __('Choose Banner Type', 'framework'), 'id' => $prefix . 'contact_banner_type', 'desc' => __("Select Banner Type.", 'framework'), 'type' => 'select', 'options' => array('1' => __('Map', 'framework'), '2' => __('Banner Options', 'framework')), 'std' => '2'), array('name' => __('Address for Map', 'framework'), 'id' => $prefix . 'contact_map_address', 'desc' => __("Enter address for map.", 'framework'), 'type' => 'text')));
/* Post Page Meta Box
  ================================================== */
$meta_boxes[] = array('id' => 'post_page_meta_box', 'title' => __('Page/Post Header Options', 'framework'), 'pages' => array('post', 'page', 'sermon', 'event', 'product', 'speaker'), 'fields' => array(array('name' => __('Choose Header Type', 'framework'), 'id' => $prefix . 'pages_Choose_slider_display', 'desc' => __("Select Banner Type.", 'framework'), 'type' => 'select', 'options' => array('1' => __('Banner', 'framework'), '2' => __('Banner Image', 'framework'), '3' => __('Flex Slider', 'framework'), '4' => __('Nivo Slider', 'framework'), '5' => __('Revolution Slider', 'framework'), '6' => __('Layer Slider', 'framework')), 'std' => 2), array('name' => __('Banner Color', 'meta-box'), 'id' => $prefix . 'pages_banner_color', 'type' => 'color'), array('name' => __('Banner Overlay', 'meta-box'), 'id' => $prefix . 'pages_banner_overlay', 'type' => 'checkbox', 'std' => 0), array('name' => __('Banner Animation', 'meta-box'), 'id' => $prefix . 'pages_banner_animation', 'type' => 'checkbox', 'std' => 0), array('name' => __('Banner Image', 'framework'), 'id' => $prefix . 'header_image', 'desc' => __("Upload banner image for header for this Page/Post.", 'framework'), 'type' => 'image_advanced', 'max_file_uploads' => 1), array('name' => __('Banner Description', 'framework'), 'id' => $prefix . 'pages_banner_description', 'desc' => __("Enter banner description.", 'framework'), 'type' => 'text'), array('name' => __('Select Revolution Slider from list', 'framework'), 'id' => $prefix . 'pages_select_revolution_from_list', 'desc' => __("Select Revolution Slider from list", 'framework'), 'type' => 'select', 'options' => imic_RevSliderShortCode()), array('name' => __('Select Layer Slider from list', 'framework'), 'id' => $prefix . 'pages_select_layer_from_list', 'desc' => __("Select Layer Slider from list", 'framework'), 'type' => 'select', 'options' => imic_layerslidershortcode()), array('name' => __('Banner/Slider Height', 'framework'), 'id' => $prefix . 'pages_slider_height', 'desc' => __("Enter Height for Banner/Slider Ex-265.", 'framework'), 'type' => 'text'), array('name' => __('Slider Image', 'framework'), 'id' => $prefix . 'pages_slider_image', 'desc' => __("Enter Slider Image.", 'framework'), 'type' => 'image_advanced'), array('name' => __('Slider Pagination', 'framework'), 'id' => $prefix . 'pages_slider_pagination', 'desc' => __("Enable to show pagination for slider.", 'framework'), 'type' => 'select', 'options' => array('yes' => __('Enable', 'framework'), 'no' => __('Disable', 'framework'))), array('name' => __('Slider Auto Slide', 'framework'), 'id' => $prefix . 'pages_slider_auto_slide', 'desc' => __("Select Yes to slide automatically.", 'framework'), 'type' => 'select', 'options' => array('yes' => __('Yes', 'framework'), 'no' => __('No', 'framework'))), array('name' => __('Slider Direction Arrows', 'framework'), 'id' => $prefix . 'pages_slider_direction_arrows', 'desc' => __("Select Yes to show slider direction arrows.", 'framework'), 'type' => 'select', 'options' => array('yes' => __('Yes', 'framework'), 'no' => __('No', 'framework'))), array('name' => __('Slider Slide Interval', 'framework'), 'id' => $prefix . 'pages_slider_interval', 'desc' => __("Enter pause time for each slide. 1000 = 1 second. Default is 7000(7 seconds)", 'framework'), 'type' => 'text', 'std' => '7000'), array('name' => __('Slider Effects', 'framework'), 'id' => $prefix . 'pages_slider_effects', 'desc' => __("Select effects for slider.", 'framework'), 'type' => 'select', 'options' => array('fade' => __('Fade', 'framework'), 'slide' => __('Slide', 'framework'))), array('name' => __('Slider Effects', 'framework'), 'id' => $prefix . 'pages_nivo_effects', 'desc' => __("Select effects for slider.", 'framework'), 'type' => 'select', 'options' => array('sliceDown' => __('sliceDown', 'framework'), 'sliceDownLeft' => __('sliceDownLeft', 'framework'), 'sliceUp' => __('sliceUp', 'framework'), 'sliceUpLeft' => __('sliceUpLeft', 'framework'), 'sliceUpDown' => __('sliceUpDown', 'framework'), 'sliceUpDownLeft' => __('sliceUpDownLeft', 'framework'), 'fold' => __('fold', 'framework'), 'fade' => __('fade', 'framework'), 'random' => __('random', 'framework'), 'slideInRight' => __('slideInRight', 'framework'), 'slideInLeft' => __('slideInLeft', 'framework'), 'boxRandom' => __('boxRandom', 'framework'), 'boxRain' => __('boxRain', 'framework'), 'boxRainReverse' => __('boxRainReverse', 'framework'), 'boxRainGrow' => __('boxRainGrow', 'framework'), 'boxRainGrowReverse' => __('boxRainGrowReverse', 'framework')))));
/* Contact Page Map Meta Box
  ================================================== */
$meta_boxes[] = array('id' => 'template-contact2', 'title' => __('Contact Options', 'framework'), 'pages' => array('page'), 'fields' => array(array('name' => __('Contact Email', 'framework'), 'id' => $prefix . 'contact_email', 'desc' => __("Enter contact email, if left blank admin email will be used.", 'framework'), 'type' => 'text')));
/* * ******************* META BOX REGISTERING ********************** */
/**
 * Register meta boxes
 *
 * @return void
 */
function imic_register_meta_boxes()
{
    global $meta_boxes;
    // Make sure there's no errors when the plugin is deactivated or during upgrade
    if (class_exists('RW_Meta_Box')) {
        foreach ($meta_boxes as $meta_box) {
Exemplo n.º 2
0
<?php

/* * ** Meta Box Functions **** */
$prefix = 'imic_';
global $meta_boxes;
load_theme_textdomain('framework', IMIC_FILEPATH . '/language');
$meta_boxes = array();
$meta_boxes[] = array('id' => 'post_page_meta_box', 'title' => __('Page/Post Header Options', 'framework'), 'pages' => array('post', 'page', 'yachts', 'product'), 'fields' => array(array('name' => __('Choose Header Type', 'framework'), 'id' => $prefix . 'pages_Choose_slider_display', 'desc' => __("Select Banner Type.", 'framework'), 'type' => 'select', 'options' => array('1' => __('Banner', 'framework'), '2' => __('Banner Image', 'framework'), '3' => __('Flex Slider', 'framework'), '4' => __('Full Width Carousel', 'framework'), '0' => __('None', 'framework'), '5' => __('Revolution Slider', 'framework')), 'std' => 2), array('name' => __('Banner Color', 'meta-box'), 'id' => $prefix . 'pages_banner_color', 'type' => 'color'), array('name' => __('Banner Image', 'framework'), 'id' => $prefix . 'header_image', 'desc' => __("Upload banner image for header for this Page/Post.", 'framework'), 'type' => 'image_advanced', 'max_file_uploads' => 1), array('name' => __('Select Revolution Slider from list', 'framework'), 'id' => $prefix . 'pages_select_revolution_from_list', 'desc' => __("Select Revolution Slider from list", 'framework'), 'type' => 'select', 'options' => imic_RevSliderShortCode()), array('name' => __('Banner/Slider Height', 'framework'), 'id' => $prefix . 'pages_slider_height', 'desc' => __("Enter Height for Banner/Slider Ex-265.", 'framework'), 'type' => 'text'), array('name' => __('Slider Image', 'framework'), 'id' => $prefix . 'pages_slider_image', 'desc' => __("Enter Slider Image.", 'framework'), 'type' => 'image_advanced'), array('name' => __('Slider Pagination', 'framework'), 'id' => $prefix . 'pages_slider_pagination', 'desc' => __("Enable to show pagination for slider.", 'framework'), 'type' => 'select', 'options' => array('yes' => __('Enable', 'framework'), 'no' => __('Disable', 'framework'))), array('name' => __('Slider Auto Slide', 'framework'), 'id' => $prefix . 'pages_slider_auto_slide', 'desc' => __("Select Yes to slide automatically.", 'framework'), 'type' => 'select', 'options' => array('yes' => __('Yes', 'framework'), 'no' => __('No', 'framework'))), array('name' => __('Slider Direction Arrows', 'framework'), 'id' => $prefix . 'pages_slider_direction_arrows', 'desc' => __("Select Yes to show slider direction arrows.", 'framework'), 'type' => 'select', 'options' => array('yes' => __('Yes', 'framework'), 'no' => __('No', 'framework'))), array('name' => __('Slider Effects', 'framework'), 'id' => $prefix . 'pages_slider_effects', 'desc' => __("Select effects for slider.", 'framework'), 'type' => 'select', 'options' => array('fade' => __('Fade', 'framework'), 'slide' => __('Slide', 'framework')))));
/* Contact Page Map Meta Box
  ================================================== */
$meta_boxes[] = array('id' => 'template-contact1', 'title' => __('Banner Options', 'framework'), 'pages' => array('page'), 'show' => array('relation' => 'OR', 'template' => array('template-contact.php')), 'fields' => array(array('name' => __('Choose Banner Type', 'framework'), 'id' => $prefix . 'contact_banner_type', 'desc' => __("Select Banner Type.", 'framework'), 'type' => 'select', 'options' => array('1' => __('Map', 'framework'), '2' => __('Banner Options', 'framework')), 'std' => '2'), array('name' => __('Address for Map', 'framework'), 'id' => $prefix . 'contact_map_address', 'desc' => __("Enter address for map.", 'framework'), 'type' => 'text')));
/* Template Blog Meta Box
  ================================================== */
$meta_boxes[] = array('id' => 'template-blog-type', 'title' => __('Post Select', 'framework'), 'pages' => array('page'), 'show' => array('relation' => 'OR', 'template' => array('template-blog.php')), 'fields' => array(array('name' => __('Post', 'framework'), 'id' => $prefix . 'blog_post_type', 'desc' => __("Select Post/Review.", 'framework'), 'type' => 'select', 'options' => array('0' => __('Both', 'framework'), '1' => __('Posts', 'framework'), '2' => __('Reviews', 'framework')), 'std' => '0')));
/* Dealer Search Map Meta Box
  ================================================== */
$meta_boxes[] = array('id' => 'template-dealer-search', 'title' => __('Map Address', 'framework'), 'pages' => array('page'), 'show' => array('relation' => 'OR', 'template' => array('template-dealer-search.php')), 'fields' => array(array('name' => __('Address for Map', 'framework'), 'id' => $prefix . 'dealer_map_address', 'desc' => __("Enter address for map.", 'framework'), 'type' => 'text')));
/* Gallery & Post Meta Box
  ================================================== */
$meta_boxes[] = array('id' => 'gallery_meta_box', 'title' => __('Gallery Fields', 'framework'), 'pages' => array('gallery'), 'fields' => array(array('name' => __('Video Url', 'framework'), 'id' => $prefix . 'gallery_video_url', 'desc' => __("Enter the Youtube or Vimeo URL.", 'framework'), 'type' => 'url'), array('name' => __('Link Url', 'framework'), 'id' => $prefix . 'gallery_link_url', 'desc' => __("Enter the Link URL.", 'framework'), 'type' => 'url'), array('name' => __('Gallery Images', 'framework'), 'id' => $prefix . 'gallery_images', 'desc' => __("Upload images for gallery.", 'framework'), 'type' => 'image_advanced', 'max_file_uploads' => 30), array('name' => __('Slider Speed', 'framework'), 'id' => $prefix . 'gallery_slider_speed', 'desc' => __("Default Slider Speed is 5000.", 'framework'), 'type' => 'text'), array('name' => __('Slider Pagination', 'framework'), 'id' => $prefix . 'gallery_slider_pagination', 'desc' => __("Enable to show pagination for slider.", 'framework'), 'type' => 'select', 'options' => array('yes' => __('Enable', 'framework'), 'no' => __('Disable', 'framework'))), array('name' => __('Slider Auto Slide', 'framework'), 'id' => $prefix . 'gallery_slider_auto_slide', 'desc' => __("Select Yes to slide automatically.", 'framework'), 'type' => 'select', 'options' => array('yes' => __('Yes', 'framework'), 'no' => __('No', 'framework'))), array('name' => __('Slider Direction Arrows', 'framework'), 'id' => $prefix . 'gallery_slider_direction_arrows', 'desc' => __("Select Yes to show slider direction arrows.", 'framework'), 'type' => 'select', 'options' => array('yes' => __('Yes', 'framework'), 'no' => __('No', 'framework'))), array('name' => __('Slider Effects', 'framework'), 'id' => $prefix . 'gallery_slider_effects', 'desc' => __("Select effects for slider.", 'framework'), 'type' => 'select', 'options' => array('fade' => __('Fade', 'framework'), 'slide' => __('Slide', 'framework'))), array('name' => __('Audio', 'framework'), 'id' => $prefix . 'gallery_uploaded_audio', 'desc' => __("Upload Audio.", 'framework'), 'type' => 'file_input')));
/* * **Gallery Page Meta Box1 *** */
$meta_boxes[] = array('id' => 'template-gallery1', 'title' => __('Gallery Metabox', 'framework'), 'show' => array('relation' => 'OR', 'template' => array('template-gallery.php')), 'pages' => array('page'), 'show_names' => true, 'fields' => array(array('name' => __('Enabled/Disable Sorting  Bar', 'framework'), 'id' => $prefix . 'gallery_secondary_bar_type_status', 'desc' => __("Select Enabled to active Sorting  Bar.", 'framework'), 'type' => 'select', 'options' => array('1' => __('Enable', 'framework'), '0' => __('Disable', 'framework')), 'std' => 0), array('name' => __('Enabled/Disable Pagination', 'framework'), 'id' => $prefix . 'gallery_page_pagination', 'desc' => __("Select Enabled to active Pagination.", 'framework'), 'type' => 'select', 'options' => array('1' => __('Enable', 'framework'), '0' => __('Disable', 'framework')), 'std' => 0), array('name' => __('Gallery Category', 'framework'), 'id' => $prefix . 'advanced_gallery_taxonomy', 'desc' => __("Choose Gallery Category", 'framework'), 'type' => 'taxonomy_advanced', 'options' => array('taxonomy' => 'gallery-category', 'type' => 'select', 'args' => array('orderby' => 'count', 'hide_empty' => true)), 'std' => ''), array('name' => __('Gallery to show on page', 'framework'), 'id' => $prefix . "gallery_number_show", 'desc' => __("Enter number of galleries to show on page, blank will show all Gallery items.", 'framework'), 'type' => 'text'), array('name' => __('Columns Layout', 'framework'), 'id' => $prefix . 'projects_columns_layout', 'desc' => __("Select Columns Layout .", 'framework'), 'type' => 'select', 'options' => array('3' => __('One Fourth', 'framework'), '4' => __('One Third', 'framework'), '6' => __('Half', 'framework')), 'std' => 4), array('name' => __('Title/Content', 'framework'), 'id' => $prefix . 'gallery_title_content', 'desc' => __("Select title or content.", 'framework'), 'type' => 'select', 'options' => array('0' => __('None', 'framework'), '1' => __('Title', 'framework'), '2' => __('Content', 'framework'), '3' => __('Both', 'framework')), 'std' => 0)));
/* Contact Page Map Meta Box
  ================================================== */
$meta_boxes[] = array('id' => 'template-contact2', 'title' => __('Contact Options', 'framework'), 'pages' => array('page'), 'show' => array('relation' => 'OR', 'template' => array('template-contact.php')), 'fields' => array(array('name' => __('Contact Email', 'framework'), 'id' => $prefix . 'contact_email', 'desc' => __("Enter contact email, if left blank admin email will be used.", 'framework'), 'type' => 'text')));
/* Listing Type Meta Box
  ================================================== */
$meta_boxes[] = array('id' => 'template-listing4', 'title' => __('Listing Type', 'framework'), 'pages' => array('page'), 'show' => array('relation' => 'OR', 'template' => array('template-listing.php')), 'fields' => array(array('name' => __('Listing Type', 'framework'), 'id' => $prefix . 'default_listing_type', 'desc' => __("Select default listing type.", 'framework'), 'type' => 'select', 'options' => array('list' => __('List', 'framework'), 'grid' => __('Grid', 'framework')), 'std' => 'list')));
/* Speaker 
 Meta Box
  ================================================== */