Skip to content

Commit

Permalink
renamed the files with proper prefix in the "menu" directory
Browse files Browse the repository at this point in the history
  • Loading branch information
Jedi Knight committed Jul 1, 2016
1 parent c274ad8 commit e30eb86
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions software-license-manager/menu/slm-admin-init.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
add_action('admin_menu', 'wp_lic_mgr_add_admin_menu');

//Include menu handling files
require_once(WP_LICENSE_MANAGER_PATH . '/menu/lic_manage_licenses.php');
require_once(WP_LICENSE_MANAGER_PATH . '/menu/slm-manage-licenses.php');
require_once(WP_LICENSE_MANAGER_PATH . '/menu/slm-add-licenses.php');
require_once(WP_LICENSE_MANAGER_PATH . '/menu/slm-lic-settings.php');
require_once(WP_LICENSE_MANAGER_PATH . '/menu/wp_lic_mgr_admin_fnc.php');
require_once(WP_LICENSE_MANAGER_PATH . '/menu/lic_mgr_integration_help_page.php');
require_once(WP_LICENSE_MANAGER_PATH . '/menu/slm-admin-functions.php');
require_once(WP_LICENSE_MANAGER_PATH . '/menu/slm-integration-help-page.php');

function wp_lic_mgr_add_admin_menu() {
add_menu_page("License Manager", "License Manager", SLM_MANAGEMENT_PERMISSION, SLM_MAIN_MENU_SLUG, "wp_lic_mgr_manage_licenses_menu", SLM_MENU_ICON);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

class WPLM_List_Licenses extends WP_License_Mgr_List_Table {

function __construct(){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function wp_lic_mgr_manage_licenses_menu() {
<h3 class="hndle"><label for="title">Software Licenses</label></h3>
<div class="inside">
<?php
include_once( 'wp-lic-mgr-list-licenses.php' ); //For rendering the license List Table
include_once( 'slm-list-licenses-class.php' ); //For rendering the license List Table
$license_list = new WPLM_List_Licenses();
if (isset($_REQUEST['action'])) { //Do list table form row action tasks
if (isset($_REQUEST['action']) && $_REQUEST['action'] == 'delete_license') { //Delete link was clicked for a row in list table
Expand Down
2 changes: 1 addition & 1 deletion software-license-manager/slm_plugin_core.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
//Include admin side only files
if (is_admin()) {
include_once('menu/slm-admin-init.php');
include_once('menu/includes/wp-license-mgr-list-table.php'); //Load our own WP List Table class
include_once('menu/includes/slm-list-table-class.php'); //Load our own WP List Table class
}

//Action hooks
Expand Down

0 comments on commit e30eb86

Please sign in to comment.