403Webshell
Server IP : 68.178.247.200  /  Your IP : 216.73.217.108
Web Server : Apache
System : Linux p3plzcpnl489463.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User : x9dppmxs4rgd ( 8559391)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /proc/self/cwd/wp-content/plugins/simple-sitemap/api/assets/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/self/cwd/wp-content/plugins/simple-sitemap/api/assets/js/all-admin-pages-fw.js
// The numbered icon is rendered via PHP now so this JS file is no longer needed?
function wpgoplugins_all_admin_pages_fw_fn() {

  function update_menu($, plugin_data) {

    const {hook, new_features_number, nav_status, main_menu_label, menu_type, plugin_prefix } = plugin_data;
  
    // Add numbered icon to menu/tab label.
    if (new_features_number === '0') {
      return; // nothing to see here!
    }
  
    const new_features_number_html = ' <span class="update-plugins count-' + new_features_number + '"><span class="plugin-count">' + new_features_number + '</span></span>';
  
    // Add numbered icon to menu items.
    if (nav_status === 'menu') {
      if (menu_type === 'sub') { // Normal sub menu item.
        // @todo Add numbered counters to top level menu item.
        $('.fs-submenu-item.wpgo-plugins:contains("New Features")').append(add_features_number);
  
      } else { // cpt sub menu item
        $('.wp-menu-name:contains(' + main_menu_label + ')').append(new_features_number_html);
        $('.wp-submenu li > a:contains("New Features")').append(add_features_number);
      }
    } else { // tabs
      $('ul#adminmenu li > a:contains(' + main_menu_label + ')').append(new_features_number_html);
    }

    function add_features_number(index, currentValue) {
      //alert(currentValue);
      //return "I am new";
      const href = this.getAttribute("href");
      const contains_prefix = href.includes(plugin_prefix);
  
      if(contains_prefix) {
        // console.log('TRUE', href, contains_prefix);
        return new_features_number_html;
      }
    }
  }

  return {
    update_menu: update_menu
  }
}

const wpgoplugins_all_admin_pages_fw = wpgoplugins_all_admin_pages_fw_fn();

Youez - 2016 - github.com/yon3zu
LinuXploit