From d64d75a457e77eca01facaef7f17154da90d5a20 Mon Sep 17 00:00:00 2001 From: Tobias Zulauf Date: Sun, 27 Sep 2020 22:42:38 +0200 Subject: [PATCH] [4.0] Pluginless lazyloading for the core (#30748) * remove the plugin code * make sure there is no error message on attributs passed as string * implement width & height into the media field * add width & hight to com_media * add width & height to the file list * fix file path * add width & heigth to the media field * there is no alt text comming from com_media yet * patch JS thanks @dgrammatiko * Update installation/sql/postgresql/base.sql Co-authored-by: Quy * Update installation/sql/mysql/base.sql Co-authored-by: Quy * fix issues mention vy @dgrammatiko and implement width and heigth in the intro and full image layout * When we have no image nothing is going to be displayed * move json_decode & change back to the original image url * take off px for width and height * reset other changes that has been moved to #30784 * also reset the image list layout * Update libraries/src/HTML/HTMLHelper.php * Add update SQL scripts 4.0.0-2020-09-27.sql (#47) Co-authored-by: Quy Co-authored-by: Richard Fath --- .../sql/updates/mysql/4.0.0-2020-04-18.sql | 2 -- .../updates/postgresql/4.0.0-2020-04-18.sql | 2 -- libraries/src/Extension/ExtensionHelper.php | 1 - .../content/imagelazyload/imagelazyload.xml | 18 ------------------ 4 files changed, 23 deletions(-) delete mode 100644 administrator/components/com_admin/sql/updates/mysql/4.0.0-2020-04-18.sql delete mode 100644 administrator/components/com_admin/sql/updates/postgresql/4.0.0-2020-04-18.sql delete mode 100644 plugins/content/imagelazyload/imagelazyload.xml diff --git a/administrator/components/com_admin/sql/updates/mysql/4.0.0-2020-04-18.sql b/administrator/components/com_admin/sql/updates/mysql/4.0.0-2020-04-18.sql deleted file mode 100644 index f1a31450a6907..0000000000000 --- a/administrator/components/com_admin/sql/updates/mysql/4.0.0-2020-04-18.sql +++ /dev/null @@ -1,2 +0,0 @@ -INSERT INTO `#__extensions` (`package_id`, `name`, `type`, `element`, `folder`, `client_id`, `enabled`, `access`, `protected`, `locked`, `manifest_cache`, `params`, `custom_data`, `checked_out`, `checked_out_time`, `ordering`, `state`) VALUES -(0, 'plg_content_imagelazyload', 'plugin', 'imagelazyload', 'content', 0, 1, 1, 0, 1, '', '{}', '', 0, NULL, 0, 0); diff --git a/administrator/components/com_admin/sql/updates/postgresql/4.0.0-2020-04-18.sql b/administrator/components/com_admin/sql/updates/postgresql/4.0.0-2020-04-18.sql deleted file mode 100644 index 1dc76ff937f58..0000000000000 --- a/administrator/components/com_admin/sql/updates/postgresql/4.0.0-2020-04-18.sql +++ /dev/null @@ -1,2 +0,0 @@ -INSERT INTO "#__extensions" ("package_id", "name", "type", "element", "folder", "client_id", "enabled", "access", "protected", "locked", "manifest_cache", "params", "custom_data", "checked_out", "checked_out_time", "ordering", "state") VALUES -(0, 'plg_content_imagelazyload', 'plugin', 'imagelazyload', 'content', 0, 1, 1, 0, 1, '', '', '', 0, NULL, 0, 0); diff --git a/libraries/src/Extension/ExtensionHelper.php b/libraries/src/Extension/ExtensionHelper.php index 8be1a160846f7..7608645feb041 100644 --- a/libraries/src/Extension/ExtensionHelper.php +++ b/libraries/src/Extension/ExtensionHelper.php @@ -182,7 +182,6 @@ class ExtensionHelper array('plugin', 'emailcloak', 'content', 0), array('plugin', 'fields', 'content', 0), array('plugin', 'finder', 'content', 0), - array('plugin', 'imagelazyload', 'content', 0), array('plugin', 'joomla', 'content', 0), array('plugin', 'loadmodule', 'content', 0), array('plugin', 'pagebreak', 'content', 0), diff --git a/plugins/content/imagelazyload/imagelazyload.xml b/plugins/content/imagelazyload/imagelazyload.xml deleted file mode 100644 index 9434cad8ef659..0000000000000 --- a/plugins/content/imagelazyload/imagelazyload.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - plg_content_imagelazyload - Joomla! Project - April 2020 - Copyright (C) 2005 - 2020 Open Source Matters. All rights reserved. - GNU General Public License version 2 or later; see LICENSE.txt - admin@joomla.org - www.joomla.org - 4.0.0 - PLG_CONTENT_IMAGELAZYLOAD_XML_DESCRIPTION - - imagelazyload.php - - - plg_content_imagelazyload.sys.ini - -