From a69c763ea2c7e13c8cc568d4a3dfee74b3edaf2d Mon Sep 17 00:00:00 2001 From: Andi Dittrich Date: Wed, 15 Apr 2020 19:58:47 +0200 Subject: [PATCH] wp-skltn update; prepared release --- .wp-skeleton.json | 6 +++--- Enlighter.php | 10 +++++----- README.md | 9 +++++++-- modules/skltn/CacheManager.php | 2 +- modules/skltn/CssBuilder.php | 2 +- modules/skltn/EnvironmentCheck.php | 2 +- modules/skltn/Hash.php | 2 +- modules/skltn/HtmlUtil.php | 2 +- modules/skltn/Plugin.php | 10 +++++----- modules/skltn/PluginConfig.php | 2 +- modules/skltn/ResourceManager.php | 2 +- modules/skltn/RewriteRuleHelper.php | 2 +- modules/skltn/SettingsManager.php | 2 +- modules/skltn/SettingsViewHelper.php | 2 +- modules/skltn/VirtualPageManager.php | 2 +- resources/admin/skltn.css | 2 +- resources/admin/skltn.js | 2 +- 17 files changed, 33 insertions(+), 28 deletions(-) diff --git a/.wp-skeleton.json b/.wp-skeleton.json index 8d0f2d4..5db7488 100644 --- a/.wp-skeleton.json +++ b/.wp-skeleton.json @@ -2,17 +2,17 @@ "slug": "enlighter", "name": "Enlighter", "namespace": "Enlighter", - "version": "4.0-BETA3", + "version": "4.0", "license": "GPL-2.0", "licenseFile": "LICENSE.txt", "constants": {}, "phpVersion": "5.6", "plugin": { "name": "Enlighter - Customizable Syntax Highlighter", - "description": "Enlighter is a free, easy-to-use, syntax highlighting tool with a build-in theme editor", + "description": "all-in-one syntax highlighting solution", "url": "https://enlighterjs.org", "author": "Andi Dittrich", - "authorUrl": "https://andidittrich.de" + "authorUrl": "https://andidittrich.com" }, "skltnVersion": "0.22.0", "modules": { diff --git a/Enlighter.php b/Enlighter.php index 4b6d19e..120d935 100644 --- a/Enlighter.php +++ b/Enlighter.php @@ -2,10 +2,10 @@ /** Plugin Name: Enlighter - Customizable Syntax Highlighter Plugin URI: https://enlighterjs.org - Description: Enlighter is a free, easy-to-use, syntax highlighting tool with a build-in theme editor - Version: 4.0-BETA3 + Description: all-in-one syntax highlighting solution + Version: 4.0 Author: Andi Dittrich - Author URI: https://andidittrich.de + Author URI: https://andidittrich.com License: GPL-2.0 Text Domain: enlighter Domain Path: /lang @@ -16,11 +16,11 @@ // Plugin Bootstrap Operation // AUTO GENERATED CODE - DO NOT EDIT !!! define('ENLIGHTER_INIT', true); -define('ENLIGHTER_VERSION', '4.0-BETA3'); +define('ENLIGHTER_VERSION', '4.0'); define('ENLIGHTER_WPSKLTN_VERSION', '0.23.0'); define('ENLIGHTER_PHP_VERSION', '5.6'); define('ENLIGHTER_PLUGIN_TITLE', 'Enlighter - Customizable Syntax Highlighter'); -define('ENLIGHTER_PLUGIN_HEADLINE', 'Enlighter is a free, easy-to-use, syntax highlighting tool with a build-in theme editor'); +define('ENLIGHTER_PLUGIN_HEADLINE', 'all-in-one syntax highlighting solution'); define('ENLIGHTER_PLUGIN_PATH', dirname(__FILE__)); define('ENLIGHTER_PLUGIN_URL', plugins_url('/enlighter/')); diff --git a/README.md b/README.md index b89caf9..9f4375a 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,10 @@ Using it can be as simple as adding a new Enlighter Sourcecode block (Gutenberg) An easy to use Theme-Customizer is included to modify the build-in themes **without any css knowlegde!** It also supports the automatic creation of tab-panes to display code-groups together (useful for multi-language examples - e.g. html+css+js) +* [Upgrade Guide](https://github.com/EnlighterJS/documentation/blob/master/wordpress/upgrade/v4.md) for Enlighter v4 +* [Theme Compatibility](https://github.com/EnlighterJS/documentation/blob/master/wordpress/WPThemeCompatibility.md) +* [Enlighter WordPress Plugin Docs](https://github.com/EnlighterJS/documentation/tree/master/wordpress) + ### Plugin Features ### * **Full Gutenberg Editor Integration** @@ -78,9 +82,10 @@ Shortcodes are deprecated and should be used in **text editor mode only** - neve In case your language is not available try the **Generic Mode** which covers a lot of programming languages - or request a new language on [GitHub](https://github.com/EnlighterJS/EnlighterJS/issues) ### Related Links ### -* [Enlighter Plugin Docs + Tutorials](https://github.com/EnlighterJS/Plugin.WordPress/docs) + +* [Enlighter Plugin Docs + Tutorials](https://github.com/EnlighterJS/documentation/tree/master/wordpress) * [Enlighter Plugin on GitHub](https://github.com/EnlighterJS/Plugin.WordPress) -* [EnlighterJS Documentation](http://enlighterjs.org) +* [EnlighterJS Documentation](https://github.com/EnlighterJS/documentation) ## Compatibility ## diff --git a/modules/skltn/CacheManager.php b/modules/skltn/CacheManager.php index 2d8f124..261680c 100644 --- a/modules/skltn/CacheManager.php +++ b/modules/skltn/CacheManager.php @@ -2,7 +2,7 @@ // --------------------------------------------------------------------------------------------------------------- // -- WP-SKELETON AUTO GENERATED FILE - DO NOT EDIT !!! // -- -// -- Copyright (c) 2016-2019 Andi Dittrich +// -- Copyright (c) 2016-2020 Andi Dittrich // -- https://github.com/AndiDittrich/WP-Skeleton // -- // --------------------------------------------------------------------------------------------------------------- diff --git a/modules/skltn/CssBuilder.php b/modules/skltn/CssBuilder.php index f169333..adfc711 100644 --- a/modules/skltn/CssBuilder.php +++ b/modules/skltn/CssBuilder.php @@ -2,7 +2,7 @@ // --------------------------------------------------------------------------------------------------------------- // -- WP-SKELETON AUTO GENERATED FILE - DO NOT EDIT !!! // -- -// -- Copyright (c) 2016-2019 Andi Dittrich +// -- Copyright (c) 2016-2020 Andi Dittrich // -- https://github.com/AndiDittrich/WP-Skeleton // -- // --------------------------------------------------------------------------------------------------------------- diff --git a/modules/skltn/EnvironmentCheck.php b/modules/skltn/EnvironmentCheck.php index 50b1032..e00e933 100644 --- a/modules/skltn/EnvironmentCheck.php +++ b/modules/skltn/EnvironmentCheck.php @@ -2,7 +2,7 @@ // --------------------------------------------------------------------------------------------------------------- // -- WP-SKELETON AUTO GENERATED FILE - DO NOT EDIT !!! // -- -// -- Copyright (c) 2016-2019 Andi Dittrich +// -- Copyright (c) 2016-2020 Andi Dittrich // -- https://github.com/AndiDittrich/WP-Skeleton // -- // --------------------------------------------------------------------------------------------------------------- diff --git a/modules/skltn/Hash.php b/modules/skltn/Hash.php index fb213c2..344a51b 100644 --- a/modules/skltn/Hash.php +++ b/modules/skltn/Hash.php @@ -2,7 +2,7 @@ // --------------------------------------------------------------------------------------------------------------- // -- WP-SKELETON AUTO GENERATED FILE - DO NOT EDIT !!! // -- -// -- Copyright (c) 2016-2019 Andi Dittrich +// -- Copyright (c) 2016-2020 Andi Dittrich // -- https://github.com/AndiDittrich/WP-Skeleton // -- // --------------------------------------------------------------------------------------------------------------- diff --git a/modules/skltn/HtmlUtil.php b/modules/skltn/HtmlUtil.php index 7fb16fe..3b54fc6 100644 --- a/modules/skltn/HtmlUtil.php +++ b/modules/skltn/HtmlUtil.php @@ -2,7 +2,7 @@ // --------------------------------------------------------------------------------------------------------------- // -- WP-SKELETON AUTO GENERATED FILE - DO NOT EDIT !!! // -- -// -- Copyright (c) 2016-2019 Andi Dittrich +// -- Copyright (c) 2016-2020 Andi Dittrich // -- https://github.com/AndiDittrich/WP-Skeleton // -- // --------------------------------------------------------------------------------------------------------------- diff --git a/modules/skltn/Plugin.php b/modules/skltn/Plugin.php index f5465e3..ede340f 100644 --- a/modules/skltn/Plugin.php +++ b/modules/skltn/Plugin.php @@ -2,7 +2,7 @@ // --------------------------------------------------------------------------------------------------------------- // -- WP-SKELETON AUTO GENERATED FILE - DO NOT EDIT !!! // -- -// -- Copyright (c) 2016-2019 Andi Dittrich +// -- Copyright (c) 2016-2020 Andi Dittrich // -- https://github.com/AndiDittrich/WP-Skeleton // -- // --------------------------------------------------------------------------------------------------------------- @@ -271,7 +271,7 @@ public function showUpgradeAvailabilityNotification($currentPluginMetadata, $new public function showUpgradeMessage(){ // styling echo '

'; - echo 'Enlighter Plugin Upgrade: The Plugin has been upgraded to 4.0-BETA3'; + echo 'Enlighter Plugin Upgrade: The Plugin has been upgraded to 4.0'; echo '

'; } @@ -300,14 +300,14 @@ public static function run($pluginName){ // plugin installed ? if ($version == '0.0.0'){ // store new version - update_option('enlighter-version', '4.0-BETA3'); + update_option('enlighter-version', '4.0'); // plugin upgraded ? - }else if (version_compare('4.0-BETA3', $version, '>')){ + }else if (version_compare('4.0', $version, '>')){ // run upgrade hook if ($i->_wp_plugin_upgrade($version)){ // store new version - update_option('enlighter-version', '4.0-BETA3'); + update_option('enlighter-version', '4.0'); // set flag (string!) update_option('enlighter-upgrade', 'true'); diff --git a/modules/skltn/PluginConfig.php b/modules/skltn/PluginConfig.php index 986b898..01322a9 100644 --- a/modules/skltn/PluginConfig.php +++ b/modules/skltn/PluginConfig.php @@ -2,7 +2,7 @@ // --------------------------------------------------------------------------------------------------------------- // -- WP-SKELETON AUTO GENERATED FILE - DO NOT EDIT !!! // -- -// -- Copyright (c) 2016-2019 Andi Dittrich +// -- Copyright (c) 2016-2020 Andi Dittrich // -- https://github.com/AndiDittrich/WP-Skeleton // -- // --------------------------------------------------------------------------------------------------------------- diff --git a/modules/skltn/ResourceManager.php b/modules/skltn/ResourceManager.php index 96a379d..6271beb 100644 --- a/modules/skltn/ResourceManager.php +++ b/modules/skltn/ResourceManager.php @@ -2,7 +2,7 @@ // --------------------------------------------------------------------------------------------------------------- // -- WP-SKELETON AUTO GENERATED FILE - DO NOT EDIT !!! // -- -// -- Copyright (c) 2016-2019 Andi Dittrich +// -- Copyright (c) 2016-2020 Andi Dittrich // -- https://github.com/AndiDittrich/WP-Skeleton // -- // --------------------------------------------------------------------------------------------------------------- diff --git a/modules/skltn/RewriteRuleHelper.php b/modules/skltn/RewriteRuleHelper.php index a162194..5ae7487 100644 --- a/modules/skltn/RewriteRuleHelper.php +++ b/modules/skltn/RewriteRuleHelper.php @@ -2,7 +2,7 @@ // --------------------------------------------------------------------------------------------------------------- // -- WP-SKELETON AUTO GENERATED FILE - DO NOT EDIT !!! // -- -// -- Copyright (c) 2016-2019 Andi Dittrich +// -- Copyright (c) 2016-2020 Andi Dittrich // -- https://github.com/AndiDittrich/WP-Skeleton // -- // --------------------------------------------------------------------------------------------------------------- diff --git a/modules/skltn/SettingsManager.php b/modules/skltn/SettingsManager.php index 6879491..a16464d 100644 --- a/modules/skltn/SettingsManager.php +++ b/modules/skltn/SettingsManager.php @@ -2,7 +2,7 @@ // --------------------------------------------------------------------------------------------------------------- // -- WP-SKELETON AUTO GENERATED FILE - DO NOT EDIT !!! // -- -// -- Copyright (c) 2016-2019 Andi Dittrich +// -- Copyright (c) 2016-2020 Andi Dittrich // -- https://github.com/AndiDittrich/WP-Skeleton // -- // --------------------------------------------------------------------------------------------------------------- diff --git a/modules/skltn/SettingsViewHelper.php b/modules/skltn/SettingsViewHelper.php index a3f064d..a96e47c 100644 --- a/modules/skltn/SettingsViewHelper.php +++ b/modules/skltn/SettingsViewHelper.php @@ -2,7 +2,7 @@ // --------------------------------------------------------------------------------------------------------------- // -- WP-SKELETON AUTO GENERATED FILE - DO NOT EDIT !!! // -- -// -- Copyright (c) 2016-2019 Andi Dittrich +// -- Copyright (c) 2016-2020 Andi Dittrich // -- https://github.com/AndiDittrich/WP-Skeleton // -- // --------------------------------------------------------------------------------------------------------------- diff --git a/modules/skltn/VirtualPageManager.php b/modules/skltn/VirtualPageManager.php index 4b5b96c..dc12f95 100644 --- a/modules/skltn/VirtualPageManager.php +++ b/modules/skltn/VirtualPageManager.php @@ -2,7 +2,7 @@ // --------------------------------------------------------------------------------------------------------------- // -- WP-SKELETON AUTO GENERATED FILE - DO NOT EDIT !!! // -- -// -- Copyright (c) 2016-2019 Andi Dittrich +// -- Copyright (c) 2016-2020 Andi Dittrich // -- https://github.com/AndiDittrich/WP-Skeleton // -- // --------------------------------------------------------------------------------------------------------------- diff --git a/resources/admin/skltn.css b/resources/admin/skltn.css index 093c1e6..62a4357 100644 --- a/resources/admin/skltn.css +++ b/resources/admin/skltn.css @@ -2,7 +2,7 @@ // --------------------------------------------------------------------------------------------------------------- // -- WP-SKELETON AUTO GENERATED FILE - DO NOT EDIT !!! // -- -// -- Copyright (c) 2016-2019 Andi Dittrich +// -- Copyright (c) 2016-2020 Andi Dittrich // -- https://github.com/AndiDittrich/WP-Skeleton // -- // --------------------------------------------------------------------------------------------------------------- diff --git a/resources/admin/skltn.js b/resources/admin/skltn.js index 2993a60..7c56acf 100644 --- a/resources/admin/skltn.js +++ b/resources/admin/skltn.js @@ -1,7 +1,7 @@ // --------------------------------------------------------------------------------------------------------------- // -- WP-SKELETON AUTO GENERATED FILE - DO NOT EDIT !!! // -- -// -- Copyright (c) 2016-2019 Andi Dittrich +// -- Copyright (c) 2016-2020 Andi Dittrich // -- https://github.com/AndiDittrich/WP-Skeleton // -- // ---------------------------------------------------------------------------------------------------------------