# maxbuttons/6.26.1/includes/maxbuttons-collections.php

MaxButtons – Create buttons, version 6.26.1. 30 lines.

- Page: https://pluginprobe.com/plugins/maxbuttons/6.26.1/code/includes/maxbuttons-collections.php
- Raw: https://pluginprobe.com/plugins/maxbuttons/6.26.1/raw/includes/maxbuttons-collections.php
- Modified: 2018-01-08T10:10:00+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/6.26.1/code/includes/maxbuttons-collections.php#L10-L20`.

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

$colID = (isset($_GET["colID"])) ? intval($_GET["colID"]) : '';
$action = isset($_GET["action"]) ? sanitize_text_field($_GET["action"]) : '';


if (! extension_loaded('simplexml') )
	$action = 'nosimplexml';

switch($action)
{
	case "edit":
		require_once("maxbuttons-collection-edit.php");
	break;
	case 'nosimplexml':
		require_once('maxbuttons-no-simplexml.php');
	break;
	default;
		require_once("maxbuttons-collection-list.php");
	break;
}





?>

```
