2 && 'Unisho' == $parts[0] && 'Sb' == $parts[1] ) { array_shift( $parts ); array_shift( $parts ); $class_path = ''; if ( substr( end( $parts ), -9 ) == 'Interface' ) { $class_path .= 'interfaces' . DIRECTORY_SEPARATOR; } $class_path .= implode( DIRECTORY_SEPARATOR, $parts ); $filename = AFFILIATE_USERS_DIR . 'classes/' . $class_path . '.php'; if ( file_exists( $filename ) ) { include_once( $filename ); } } } spl_autoload_register( 'sb_autoload' ); global $sb_version; $sb_version = '1.5'; function sb_create_table() { global $wpdb; global $sb_version; $integrations_table_name = $wpdb->prefix . 'sb_integrations'; $charset_collate = $wpdb->get_charset_collate(); $sql_integrations = "CREATE TABLE $integrations_table_name ( integration_id int(11) unsigned NOT NULL AUTO_INCREMENT, name varchar(100) NOT NULL, created_at datetime DEFAULT '0000-00-00 00:00:00' NOT NULL, guid varchar(36) DEFAULT '' NOT NULL, status tinyint NOT NULL, UNIQUE KEY guid (guid(36)), PRIMARY KEY (integration_id) ) ENGINE=InnoDB $charset_collate;"; require_once( ABSPATH . 'wp-admin/includes/upgrade.php' ); dbDelta( $sql_integrations ); add_option( 'sb_version', $sb_version ); } function sb_admin_menu() { $page_hook = add_menu_page( 'Integrations', 'Integrations', 'edit_pages', 'sb_integrations_list', 'sb_admin_integrations_list', 'dashicons-admin-home', '7.62' ); add_action( 'load-' . $page_hook, 'sb_admin_integrations_list_screen_options' ); } function sb_admin_integrations_list_pagination( $nr_items, $items_per_page = 30, $current_page = 1, $filter = null, $order = null ) { $extra_params = ''; if ( $filter ) { $extra_params .= '&orderby=' . $filter; } if ( $order ) { $extra_params .= '&order=' . $order; } $nr_pages = ceil( $nr_items / $items_per_page ); if ( $items_per_page >= $nr_items ) { $cclass = 'tablenav-pages one-page'; } else { $cclass = 'tablenav-pages'; } $html = ''; $html .= ''; if( 1 == $current_page ) { $first = '�'; $prev = '�'; } else { $nr_prev = $current_page - 1; $first = '�'; $prev = '�'; } if($current_page == $nr_pages) { $next = '�'; $last = '�'; } else { $nr_next = $current_page + 1; $next = '�'; $last = '�'; } $html = '