function send_pn() { global $menu_active, $base_path; $helper_obj = new Helper(); $menu_active['push_notification'] = 'active'; $pn_obj = new PushNotification(); if ($helper_obj->user_is_logged_in() && $helper_obj->check_role(SUPER_ADMIN_ROLE_ID)) { $this->content = '<!-- Validation --> <script src="' . $base_path . 'js/plugins/validation/jquery.validate.min.js"></script> <script src="' . $base_path . 'js/plugins/validation/additional-methods.min.js"></script>'; $this->content .= $pn_obj->build_send_push_notificatation_form(); } }