diff --git a/.gitignore b/.gitignore index 85c0f5e..96e2bc0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .php_cs* *.zip *.phar +svn/ diff --git a/Makefile b/Makefile index ad5adc3..2fbfa61 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: % dist +.PHONY: % dist-clean dist make-zip svn dist-clean: rm -rf dist/image_cdn @@ -7,6 +7,10 @@ dist: dist-clean make-zip make-zip: mkdir -p dist/image_cdn - cp -v -r *.php *.txt ImageEngine assets templates dist/image_cdn/ + cp -v -r *.php *.txt imageengine assets templates dist/image_cdn/ cd dist && zip -9 -r image-cdn-0.0.0.zip image_cdn rm -rf dist/image_cdn + +svn: + cp -v -r plugin-assets/* svn/assets/ + cp -v -r *.php *.txt imageengine assets templates svn/trunk diff --git a/bootstrap.php b/image-cdn.php similarity index 100% rename from bootstrap.php rename to image-cdn.php diff --git a/plugin-assets/banner-1544x500-rtl.jpg b/plugin-assets/banner-1544x500-rtl.jpg new file mode 100644 index 0000000..dd9c29b Binary files /dev/null and b/plugin-assets/banner-1544x500-rtl.jpg differ diff --git a/plugin-assets/banner-1544x500.jpg b/plugin-assets/banner-1544x500.jpg new file mode 100644 index 0000000..dd9c29b Binary files /dev/null and b/plugin-assets/banner-1544x500.jpg differ diff --git a/plugin-assets/banner-772x250-rtl.jpg b/plugin-assets/banner-772x250-rtl.jpg new file mode 100644 index 0000000..ffc723f Binary files /dev/null and b/plugin-assets/banner-772x250-rtl.jpg differ diff --git a/plugin-assets/banner-772x250.jpg b/plugin-assets/banner-772x250.jpg new file mode 100644 index 0000000..ffc723f Binary files /dev/null and b/plugin-assets/banner-772x250.jpg differ diff --git a/plugin-assets/icon-128x128.png b/plugin-assets/icon-128x128.png new file mode 100644 index 0000000..0b41dc2 Binary files /dev/null and b/plugin-assets/icon-128x128.png differ diff --git a/plugin-assets/icon-256x256.png b/plugin-assets/icon-256x256.png new file mode 100644 index 0000000..c13275b Binary files /dev/null and b/plugin-assets/icon-256x256.png differ diff --git a/assets/screenshot-1.png b/plugin-assets/screenshot-1.png similarity index 100% rename from assets/screenshot-1.png rename to plugin-assets/screenshot-1.png diff --git a/readme.txt b/readme.txt index d434939..039d853 100644 --- a/readme.txt +++ b/readme.txt @@ -33,7 +33,7 @@ This plugin works by rewriting the URLs to your assets (images, javascript, css, = System Requirements = -* PHP >=7.0 +* PHP >=5.6 * WordPress >=4.6 = Contribute = diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 9034e13..62206b1 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -23,7 +23,7 @@ * Manually load the plugin being tested. */ function _manually_load_plugin() { - require dirname( dirname( __FILE__ ) ) . '/image-cdn.php'; + require dirname( dirname( __FILE__ ) ) . '/bootstrap.php'; } tests_add_filter( 'muplugins_loaded', '_manually_load_plugin' );