diff --git a/README.txt b/README.txt index a674f00..0bc48b6 100644 --- a/README.txt +++ b/README.txt @@ -4,7 +4,7 @@ Donate link: https://www.udesly.com/ Tags: webflow to wordpress, editor, page builder, layout design, udesly, webflow Requires at least: 5.0 Tested up to: 5.2.2 -Stable tag: 2.0.0.20 +Stable tag: 2.0.0.21 License: GPLv3 or later License URI: https://www.udesly.com/terms-conditions-of-use/#udesly-wordpress-plugin Requires PHP: 5.6.0 @@ -81,6 +81,9 @@ That's all! Absolutely! You can use the Udesly Adapter to create more than one website. == Changelog == += 2.0.0.21 = +* Fixed frontend editor scripts + = 2.0.0.20 = * Added acf oembed functions diff --git a/includes/FrontendEditor/FrontendEditorType.php b/includes/FrontendEditor/FrontendEditorType.php index 02c3522..5a379f5 100644 --- a/includes/FrontendEditor/FrontendEditorType.php +++ b/includes/FrontendEditor/FrontendEditorType.php @@ -38,13 +38,10 @@ public static function init_frontend_editor() { $jsPath = UDESLY_ADAPTER_PLUGIN_DIRECTORY_URL . 'externals/udesly-frontend-editor/udesly-frontend-editor.js'; $cssPath = UDESLY_ADAPTER_PLUGIN_DIRECTORY_URL . 'externals/udesly-frontend-editor/udesly-frontend-editor.css'; wp_enqueue_media(); - if (file_exists($jsPath)) { - wp_enqueue_script('udesly-frontend-editor', $jsPath, array(), UDESLY_ADAPTER_VERSION, true ); - wp_enqueue_style('udesly-frontend-editor', $cssPath); - } else { - wp_enqueue_script('udesly-frontend-editor', UDESLY_ADAPTER_PLUGIN_DIRECTORY_URL . 'externals/udesly-frontend-editor/dist/udesly-frontend-editor.js', array(), UDESLY_ADAPTER_VERSION, true ); - wp_enqueue_style('udesly-frontend-editor', UDESLY_ADAPTER_PLUGIN_DIRECTORY_URL . 'externals/udesly-frontend-editor/dist/udesly-frontend-editor.css'); - } + + wp_enqueue_script('udesly-frontend-editor', $jsPath, array(), UDESLY_ADAPTER_VERSION, true ); + wp_enqueue_style('udesly-frontend-editor', $cssPath); + wp_enqueue_style("font-awesome-udesly", "https://use.fontawesome.com/releases/v5.8.1/css/all.css", array(), "5.8.1", 'all'); wp_localize_script('udesly-frontend-editor', 'udesly_fe', array('ajax_url' => admin_url('admin-ajax.php'), 'ajax_nonce' => wp_create_nonce('udesly-fe-security'))); diff --git a/udesly-adapter-plugin.php b/udesly-adapter-plugin.php index 80a2bf5..ad4dde7 100644 --- a/udesly-adapter-plugin.php +++ b/udesly-adapter-plugin.php @@ -11,7 +11,7 @@ * Plugin Name: Udesly Adapter * Plugin URI: https://www.udesly.com * Description: This is a support plugin for Udesly (Webflow to WordPress converter) that allows you to enable additional features for your theme. - * Version: 2.0.0.20 + * Version: 2.0.0.21 * Author: Udesly * Author URI: https://www.udesly.com * License: GPL-2.0+ @@ -29,7 +29,7 @@ // Constants defined('UDESLY_ADAPTER_PLUGIN_DIRECTORY_PATH') ?: define('UDESLY_ADAPTER_PLUGIN_DIRECTORY_PATH', plugin_dir_path(__FILE__)); defined('UDESLY_ADAPTER_PLUGIN_DIRECTORY_URL') ?: define('UDESLY_ADAPTER_PLUGIN_DIRECTORY_URL', plugin_dir_url(__FILE__)); -defined('UDESLY_ADAPTER_VERSION') ?: define('UDESLY_ADAPTER_VERSION', "2.0.0.20"); +defined('UDESLY_ADAPTER_VERSION') ?: define('UDESLY_ADAPTER_VERSION', "2.0.0.21"); defined('UDESLY_TEXT_DOMAIN') ?: define('UDESLY_TEXT_DOMAIN', "udesly-adapter-plugin"); defined('UDESLY_ADAPTER_PLUGIN_MISC_PATH') ?: define('UDESLY_ADAPTER_PLUGIN_MISC_PATH', plugin_dir_path(__FILE__) . 'includes/misc/');