# maxbuttons/7.11/includes/maxbuttons-controller.php

MaxButtons – Create buttons, version 7.11. 26 lines.

- Page: https://pluginprobe.com/plugins/maxbuttons/7.11/code/includes/maxbuttons-controller.php
- Raw: https://pluginprobe.com/plugins/maxbuttons/7.11/raw/includes/maxbuttons-controller.php
- Modified: 2018-03-19T16:29:48+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/maxbuttons/7.11/code/includes/maxbuttons-controller.php#L10-L20`.

```php
<?php
namespace MaxButtons;
defined('ABSPATH') or die('No direct access permitted');

if (isset($_GET['action']) && $_GET['action'] != '') {
		// extra safety.
		$action = sanitize_text_field($_GET['action']);

		switch ($action) {
			case 'button':
			case 'edit':
					include_once 'maxbuttons-button.php';
			break;
			case 'test':
					include_once 'maxbuttons-fa-test.php';
			break;
			default:
				include_once 'maxbuttons-list.php';
				break;

		}

} else {
	include_once 'maxbuttons-list.php';
}

```
