Ejemplo n.º 1
0
 public function js_admin_bar_menu()
 {
     $class = implode(' ', apply_filters('query_monitor_class', array(QM_Util::wpv())));
     $title = implode('   ', apply_filters('query_monitor_title', array()));
     if (empty($title)) {
         $title = __('Query Monitor', 'query-monitor');
     }
     $admin_bar_menu = array('top' => array('title' => sprintf('<span class="ab-icon">QM</span><span class="ab-label">%s</span>', $title), 'classname' => $class), 'sub' => array());
     foreach (apply_filters('query_monitor_menus', array()) as $menu) {
         $admin_bar_menu['sub'][] = $menu;
     }
     return $admin_bar_menu;
 }