<?php

/**
 * Vvveb
 *
 * Copyright (C) 2020  Ziadin Givan
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
 *
 */

/*
Name: Minify plugin
Slug: minify
URI: http://www.vvveb.com
Description: Minify javascript and css for better frontend performance.
Author: Ziadin Givan
Version: 0.1
Author URI: http://www.vvveb.com
*/

use Vvveb\System\Event as Event;

class MinifyPlugin {
	function __construct() {
		//add admin menu item
		Event::on('admin', 'menu', __CLASS__, function ($menu) {
			return $menu + [
				'test_plugin' => [
					'name' => _('Test plugin'),
					'url'  => '/admin/',
					'icon' => 'ion-ios-pulse',
				], ];
		}, 20);
	}
}

$testPlugin = new MinifyPlugin();
