forked from acarbone/AssetsMinify
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplugin.php
More file actions
Latest commit
24 lines (21 loc) · 558 Bytes
/
Copy pathplugin.php
File metadata and controls
24 lines (21 loc) · 558 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
/*
Plugin Name: Assets Minify
Plugin URI: https://github.com/acarbone/AssetsMinify
Description: WordPress plugin to minify JS and CSS assets.
Author: Alessandro Carbone
Version: 1.2.1
Author URI: http://www.artera.it
*/
//Autoloader
functionamAutoloader( $classname ) {
$filename = str_replace("\\", "/", __DIR__ . "/lib/$classname.php");
if ( file_exists( $filename ) )
include_once$filename;
}
spl_autoload_register('amAutoloader');
//Start
if ( !is_admin() )
require_once'AssetsMinifyInit.php';
else
require_once'AssetsMinifyAdmin.php';