Skip to content

Commit 9cc6cb1

Browse files
zero-24Quyrichard67
authored
[4.0] Pluginless lazyloading for the core (joomla#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 <[email protected]> * Update installation/sql/mysql/base.sql Co-authored-by: Quy <[email protected]> * 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 joomla#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 <[email protected]> Co-authored-by: Richard Fath <[email protected]>
1 parent 38b1c29 commit 9cc6cb1

File tree

11 files changed

+4
-91
lines changed

11 files changed

+4
-91
lines changed

administrator/components/com_admin/sql/updates/mysql/4.0.0-2020-04-18.sql

Lines changed: 0 additions & 2 deletions
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
DELETE FROM `#__extensions` WHERE `name` = 'plg_content_imagelazyload' AND `type` = 'plugin' AND `element` = 'imagelazyload' AND `folder` = 'content' AND `client_id` = 0;

administrator/components/com_admin/sql/updates/postgresql/4.0.0-2020-04-18.sql

Lines changed: 0 additions & 2 deletions
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
DELETE FROM "#__extensions" WHERE "name" = 'plg_content_imagelazyload' AND "type" = 'plugin' AND "element" = 'imagelazyload' AND "folder" = 'content' AND "client_id" = 0;

administrator/language/en-GB/plg_content_imagelazyload.sys.ini

Lines changed: 0 additions & 7 deletions
This file was deleted.

installation/sql/mysql/base.sql

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,8 +362,7 @@ INSERT INTO `#__extensions` (`package_id`, `name`, `type`, `element`, `folder`,
362362
(0, 'plg_system_webauthn', 'plugin', 'webauthn', 'system', 0, 1, 1, 0, 1, '', '{}', '', 0, 0),
363363
(0, 'plg_workflow_publishing', 'plugin', 'publishing', 'workflow', 0, 1, 1, 0, 1, '', '{}', '', 0, 0),
364364
(0, 'plg_workflow_featuring', 'plugin', 'featuring', 'workflow', 0, 1, 1, 0, 1, '', '{}', '', 0, 0),
365-
(0, 'plg_workflow_notification', 'plugin', 'notification', 'workflow', 0, 1, 1, 0, 1, '', '{}', '', 0, 0),
366-
(0, 'plg_content_imagelazyload', 'plugin', 'imagelazyload', 'content', 0, 0, 1, 0, 1, '', '{}', '', 0, 0);
365+
(0, 'plg_workflow_notification', 'plugin', 'notification', 'workflow', 0, 1, 1, 0, 1, '', '{}', '', 0, 0);
367366

368367
-- Templates
369368
INSERT INTO `#__extensions` (`package_id`, `name`, `type`, `element`, `folder`, `client_id`, `enabled`, `access`, `protected`, `locked`, `manifest_cache`, `params`, `custom_data`, `ordering`, `state`) VALUES

installation/sql/postgresql/base.sql

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,8 +368,7 @@ INSERT INTO "#__extensions" ("package_id", "name", "type", "element", "folder",
368368
(0, 'plg_system_webauthn', 'plugin', 'webauthn', 'system', 0, 1, 1, 0, 1, '', '{}', '', 0, 0),
369369
(0, 'plg_workflow_publishing', 'plugin', 'publishing', 'workflow', 0, 1, 1, 0, 1, '', '{}', '', 0, 0),
370370
(0, 'plg_workflow_featuring', 'plugin', 'featuring', 'workflow', 0, 1, 1, 0, 1, '', '{}', '', 0, 0),
371-
(0, 'plg_workflow_notification', 'plugin', 'notification', 'workflow', 0, 1, 1, 0, 1, '', '{}', '', 0, 0),
372-
(0, 'plg_content_imagelazyload', 'plugin', 'imagelazyload', 'content', 0, 0, 1, 0, 1, '', '{}', '', 0, 0);
371+
(0, 'plg_workflow_notification', 'plugin', 'notification', 'workflow', 0, 1, 1, 0, 1, '', '{}', '', 0, 0);
373372

374373
-- Templates
375374
INSERT INTO "#__extensions" ("package_id", "name", "type", "element", "folder", "client_id", "enabled", "access", "protected", "locked", "manifest_cache", "params", "custom_data", "ordering", "state") VALUES

libraries/src/Extension/ExtensionHelper.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,6 @@ class ExtensionHelper
182182
array('plugin', 'emailcloak', 'content', 0),
183183
array('plugin', 'fields', 'content', 0),
184184
array('plugin', 'finder', 'content', 0),
185-
array('plugin', 'imagelazyload', 'content', 0),
186185
array('plugin', 'joomla', 'content', 0),
187186
array('plugin', 'loadmodule', 'content', 0),
188187
array('plugin', 'pagebreak', 'content', 0),

libraries/src/HTML/HTMLHelper.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1273,4 +1273,3 @@ private static function checkFileOrder($first, $second)
12731273
return '';
12741274
}
12751275
}
1276-

plugins/content/imagelazyload/imagelazyload.php

Lines changed: 0 additions & 56 deletions
This file was deleted.

0 commit comments

Comments
 (0)