add_filter( 'cmb_meta_boxes', 'custom_metaboxes' ); /** * Define the metabox and field configurations. * * @param array $meta_boxes * @return array */ function custom_metaboxes( array $meta_boxes ) { $prefix = '_cmb_'; $meta_boxes[] = array( 'id' => 'site_extras', 'title' => 'Extra Info', 'pages' => array( 'page' ), 'show_on' => array('key' => 'page-template', 'value' => 'template-home.php'), 'context' => 'normal', 'priority' => 'high', 'show_names' => true, 'fields' => array( array('name' => 'Header Contact Links','id' => $prefix . 'h_c_links','type' => 'group', 'repeatable' => true, 'sortable' => true, 'cols' => 12, 'fields' => array( array('name' => 'Label','id' => $prefix . 'hcl_title','type' => 'text', 'cols' => 6), array('name' => 'Link','id' => $prefix . 'hcl_url','type' => 'text', 'cols' => 6), )), array('name' => 'Landing Background','id' => $prefix . 'landing_bg','type' => 'image', 'cols' => 3), array('name' => 'Portrait','id' => $prefix . 'portrait','type' => 'image', 'cols' => 3), array('name' => 'How Can We Help Background','id' => $prefix . 'h_help_bg','type' => 'image', 'cols' => 3), array('name' => 'Service Area Background','id' => $prefix . 'service_bg','type' => 'image', 'cols' => 3), array('name' => 'How Can We Help','id' => $prefix . 'h_help','type' => 'group', 'repeatable' => true, 'sortable' => true, 'cols' => 12, 'fields' => array( array('name' => 'Heading','id' => $prefix . 'hh_title','type' => 'text', 'cols' => 3), array('name' => 'Text','id' => $prefix . 'hh_text','type' => 'textarea', 'cols' => 6), array('name' => 'Link','id' => $prefix . 'hh_link','type' => 'post_select', 'use_ajax' => true, 'query' => array( 'post_type' => array('page', 'service'),'posts_per_page' => 50 ), 'allow_none' => true, 'cols' => 3), )), array('name' => 'Partner Brands','id' => $prefix . 'partner_brands','type' => 'group', 'repeatable' => true, 'sortable' => true, 'cols' => 12, 'fields' => array( array('name' => 'Icon','id' => $prefix . 'pb_icon','type' => 'image', 'cols' => 3), array('name' => 'Title', 'desc' => 'Text for hover title', 'id' => $prefix . 'pb_title','type' => 'text', 'cols' => 4), array('name' => 'URL', 'desc' => 'Be sure to include the full http://xxxx URL', 'id' => $prefix . 'pb_url','type' => 'text', 'cols' => 5), )), array('name' => 'Footer Text','id' => $prefix . 'f_text','type' => 'text', 'cols' => 12), array('name' => 'Footer Contact Links','id' => $prefix . 'f_c_links','type' => 'group', 'repeatable' => true, 'sortable' => true, 'cols' => 12, 'fields' => array( array('name' => 'Label','id' => $prefix . 'hcl_title','type' => 'text', 'cols' => 6), array('name' => 'Link','id' => $prefix . 'hcl_url','type' => 'text', 'cols' => 6), )), ) ); $meta_boxes[] = array( 'id' => 'equipment', 'title' => 'Resources', 'pages' => array( 'page' ), 'show_on' => array('key' => 'page-template', 'value' => 'template-equipment.php'), 'context' => 'normal', 'priority' => 'high', 'show_names' => true, 'fields' => array( array('name' => 'Dental Units','id' => $prefix . 'du_res','type' => 'group', 'repeatable' => true, 'sortable' => true, 'cols' => 12, 'fields' => array( array('name' => 'Label','id' => $prefix . 'res_label','type' => 'text', 'cols' => 9), array('name' => 'PDF','id' => $prefix . 'res_pdf','type' => 'file', 'cols' => 3), )), array('name' => 'X Rays','id' => $prefix . 'xr_res','type' => 'group', 'repeatable' => true, 'sortable' => true, 'cols' => 12, 'fields' => array( array('name' => 'Label','id' => $prefix . 'res_label','type' => 'text', 'cols' => 9), array('name' => 'PDF','id' => $prefix . 'res_pdf','type' => 'file', 'cols' => 3), )), array('name' => 'Sterilisation Equipment','id' => $prefix . 'se_res','type' => 'group', 'repeatable' => true, 'sortable' => true, 'cols' => 12, 'fields' => array( array('name' => 'Label','id' => $prefix . 'res_label','type' => 'text', 'cols' => 9), array('name' => 'PDF','id' => $prefix . 'res_pdf','type' => 'file', 'cols' => 3), )), array('name' => 'Suction','id' => $prefix . 'su_res','type' => 'group', 'repeatable' => true, 'sortable' => true, 'cols' => 12, 'fields' => array( array('name' => 'Label','id' => $prefix . 'res_label','type' => 'text', 'cols' => 9), array('name' => 'PDF','id' => $prefix . 'res_pdf','type' => 'file', 'cols' => 3), )), array('name' => 'Compressors','id' => $prefix . 'co_res','type' => 'group', 'repeatable' => true, 'sortable' => true, 'cols' => 12, 'fields' => array( array('name' => 'Label','id' => $prefix . 'res_label','type' => 'text', 'cols' => 9), array('name' => 'PDF','id' => $prefix . 'res_pdf','type' => 'file', 'cols' => 3), )), array('name' => 'Water Filtration','id' => $prefix . 'wf_res','type' => 'group', 'repeatable' => true, 'sortable' => true, 'cols' => 12, 'fields' => array( array('name' => 'Label','id' => $prefix . 'res_label','type' => 'text', 'cols' => 9), array('name' => 'PDF','id' => $prefix . 'res_pdf','type' => 'file', 'cols' => 3), )), ) ); $meta_boxes[] = array( 'id' => 'cus_head_img', 'title' => 'Header Image', 'pages' => array( 'post','page','service_area','service'), 'context' => 'side', 'priority' => 'low', 'fields' => array( array('name' => 'Custom Header Image','id' => $prefix . 'cus_head_img','type' => 'image') ) ); $meta_boxes[] = array( 'id' => 'sidebar_form', 'title' => 'Sidebar Form', 'pages' => array( 'service' ), 'context' => 'side', 'priority' => 'low', 'show_names' => true, 'fields' => array( array('name' => 'Form Embed Code','desc' => 'Paste the embed code for the appropriate form to display','id' => $prefix . 'sidebar_form','type' => 'text'), ) ); $meta_boxes[] = array( 'id' => 'item_order', 'title' => 'Item Order', 'pages' => array( 'service', 'service_area' ), 'context' => 'side', 'priority' => 'low', 'show_names' => true, 'fields' => array( array('name' => 'Item Order','desc' => 'Numeric order for displaying related items, in ascending order','id' => $prefix . 'itemorder','type' => 'text', 'default' => 100), ) ); return $meta_boxes; }
We have a regular monthly run to this region for regular maintenance, service and validation appointments. Emergency repairs can be made within 24 hours.