Esempio n. 1
0
 public function admin_init()
 {
     $this->register_scripts_and_styles();
     $this->enqueue_admin_scripts();
     if (_wpr_whether_html_broadcast_view_frame_request()) {
         _wpr_render_broadcast_view_frame();
     }
     if (Routing::is_admin_popup()) {
         Routing::render_admin_screen_popup();
     }
     if (Routing::is_template_html_request()) {
         Routing::render_template_html();
     }
     if ($this->whetherBroadcastCompositionScreen()) {
         $this->enqueueAdminScripts();
     }
     if ($this->isAdminPage()) {
         Routing::run_controller();
     }
 }