| @@ 3494-3508 (lines=15) @@ | ||
| 3491 | ||
| 3492 | // register messenger metaboxes | |
| 3493 | $m_template_path = EE_MSG_TEMPLATE_PATH . 'ee_msg_details_messenger_mt_meta_box.template.php'; | |
| 3494 |         foreach ($m_boxes as $box => $label) { | |
| 3495 |             $callback_args = array('template_path' => $m_template_path, 'template_args' => $m_template_args[ $box ]); | |
| 3496 |             $msgr = str_replace('_a_box', '', $box); | |
| 3497 | add_meta_box( | |
| 3498 | 'espresso_' . $msgr . '_settings', | |
| 3499 | $label, | |
| 3500 |                 function ($post, $metabox) { | |
| 3501 | echo EEH_Template::display_template( | |
| 3502 | $metabox["args"]["template_path"], | |
| 3503 | $metabox["args"]["template_args"], | |
| 3504 | true | |
| 3505 | ); | |
| 3506 | }, | |
| 3507 | $this->_current_screen->id, | |
| 3508 | 'normal', | |
| 3509 | 'high', | |
| 3510 | $callback_args | |
| 3511 | ); | |
| @@ 3516-3532 (lines=17) @@ | ||
| 3513 | ||
| 3514 | // register message type metaboxes | |
| 3515 | $mt_template_path = EE_MSG_TEMPLATE_PATH . 'ee_msg_details_messenger_meta_box.template.php'; | |
| 3516 |         foreach ($mt_boxes as $box => $label) { | |
| 3517 | $callback_args = array( | |
| 3518 | 'template_path' => $mt_template_path, | |
| 3519 | 'template_args' => $mt_template_args[ $box ], | |
| 3520 | ); | |
| 3521 |             $mt = str_replace('_i_box', '', $box); | |
| 3522 | add_meta_box( | |
| 3523 | 'espresso_' . $mt . '_inactive_mts', | |
| 3524 | $label, | |
| 3525 |                 function ($post, $metabox) { | |
| 3526 | echo EEH_Template::display_template( | |
| 3527 | $metabox["args"]["template_path"], | |
| 3528 | $metabox["args"]["template_args"], | |
| 3529 | true | |
| 3530 | ); | |
| 3531 | }, | |
| 3532 | $this->_current_screen->id, | |
| 3533 | 'side', | |
| 3534 | 'high', | |
| 3535 | $callback_args | |