29
0
mirror of https://github.com/joomla/joomla-cms.git synced 2024-05-28 16:01:28 +00:00
Commit Graph

2174 Commits

Author SHA1 Message Date
Tuan Pham Ngoc
6023e5cee7
Fix articles categories module display children categories multiple times (#42925) 2024-03-04 13:56:12 +01:00
Nicola Galgano
8ea73559b2
[4] Module 'Feed Display': deprecated Notice (#42803)
* backport to 4.4.

* backport to 4.4

* fix4ceford

* adminmodule

---------
2024-02-22 15:17:20 +01:00
Martin Kopp
55f2082f32
Joomla 4.4.3 Stable 2024-02-19 15:44:22 +01:00
Nicola Galgano
bd01f10ddc
related_items (#42245) 2023-10-30 12:30:58 +01:00
Allon Moritz
18a6c6bf7d
Alpha order imports (#41428) 2023-08-23 12:06:44 +02:00
Allon Moritz
4f2ae76fed Joomla! 4.4.0 Alpha 1 2023-05-31 16:58:50 +02:00
jsanders
dc8262349b
Delete HelperFactory class (#40567)
Delete HelperFactory class + minor changes
2023-05-10 20:54:07 +02:00
Allon Moritz
171b9d2d35 Adapt doc block from merge 2023-05-08 06:48:03 +02:00
Allon Moritz
8d78b6ce26 Merge branch '4.3-dev' into 4.4-dev 2023-05-08 06:30:28 +02:00
Denitz
537d822260
Fix mod_articles_categories caching, allow CategoryNode serialization (#40275) 2023-05-05 18:57:06 -04:00
jsanders
f3f2e8dfd8
[4.4] Rebuild module Breadcrumbs with new Joomla 4 structure (#40328)
* services

* Delete mod_breadcrumbs.php

here no longer required, moved

* Updated to new structure

* Create Dispatcher.php

* Create provider.php

* Create Default.cy.js

* Correction

Missing tag

* Correction

* Delete $data parameter

BreadcrumbsHelper has no constructor.

* Restore setSeparator function

Please restore it and deprecate it

* Order functions changed

More logical

* HTMLHelper

Needed for setSeparator

* Improve test description

In accordance with #40386

* Correction

$this->getHome => $this->getHomeItem

* not used anymore

add text

* functionality

better description
2023-04-25 07:53:12 +02:00
Carlos Rodriguez
8262060c62
Convert mod_related_items to new structure (#39628)
* adding service provider

* adding the dispatcher

* declare main function

* Help class definition

* layout adaptation

* not used

* fix some errors

* adding cache

* cs fix

* update

* cs

* update

* revert Helper

* cy test

* cs

* javascript cs

* cy test without need article ID

* cache

* revert tmpl

* revert tmpl

* revert tmpl

* separate test code
2023-04-24 18:19:21 +02:00
Sergey Tolkachyov
1ae33ae988
Rebuild mod_custom with new Joomla 4 structure (#39931)
* Rebuild mod_custom with new Joomla 4 structure

* Delete mod_custom.php

* Update provider.php

* Update provider.php

* Update provider.php

* Update provider.php

* Update modules/mod_custom/src/Dispatcher/Dispatcher.php

Co-authored-by: Richard Fath <richard67@users.noreply.github.com>

* Update mod_custom.xml

* Update provider.php

* Update mod_custom.xml

* Update Dispatcher.php

* Update default.php

* Update default.php

* Update provider.php

* Update Dispatcher.php

* Update default.php

* Update provider.php

* Update Dispatcher.php

* Update default.php

* Update provider.php

* Update Dispatcher.php

* Update default.php

* Update mod_custom.xml

* Update Dispatcher.php

* Update mod_custom.xml

* Update modules/mod_custom/src/Dispatcher/Dispatcher.php

Co-authored-by: Richard Fath <richard67@users.noreply.github.com>

* Update modules/mod_custom/services/provider.php

Co-authored-by: Richard Fath <richard67@users.noreply.github.com>

* Update modules/mod_custom/services/provider.php

Co-authored-by: Richard Fath <richard67@users.noreply.github.com>

* Update Dispatcher.php

* Update provider.php

* Update modules/mod_custom/src/Dispatcher/Dispatcher.php

* Update default.php

* Update default.php

* Update provider.php

---------

Co-authored-by: Richard Fath <richard67@users.noreply.github.com>
Co-authored-by: Quy <quy@nomonkeybiz.com>
2023-04-17 08:54:31 +02:00
Carlos Rodriguez
2f4619814d
Convert mod_articles_categories to new structure (#39552)
* services provider + dispatcher content

* initial change in helper class

* moved $startLevel variable

* not used more

* xml entry point

* using componentInterface to get the categories

* phpcs fixes

* fix review

* the category service can be instantiated directly

* more verbose variables and methods names

* fix missing getDatabase

* cs fixes

* cs fixes

* cs fixes

* update

* revert docsBlocks - Get the category booting the component

* revert output

* avoiding nested if

* cy test

* cs fixes

* Revert not needed layout change

* Revert not needed layout change

* cache

* removing parent id

---------

Co-authored-by: Allon Moritz <allon.moritz@digital-peak.com>
2023-04-14 11:10:48 +02:00
Allon Moritz
76536ebfee Revert to boot 2023-04-11 07:39:51 +02:00
Allon Moritz
4118d64744 Merge branch '4.3-dev' into 4.4-dev 2023-04-11 07:39:31 +02:00
Benjamin Trenkle
6f2cec29a1
[4.3] Deprecation reviews (#38657) 2023-04-09 00:06:01 -04:00
Allon Moritz
88473a5b7f
Restore cache feature in category module (#40316)
* Restore cache feature in category module

* Deprecate ModuleHelper cache function

* cs

* Revert "Deprecate ModuleHelper cache function"

This reverts commit c0c5e05ff3.

---------
2023-04-06 13:25:17 +02:00
Carlos Rodriguez
10f4b23de3
Convert mod_articles_category to new structure (#39527)
* Convert mod_articles_category to new structure

* moved this->getDatabase to where is used

* Reviewers fixes

* cs fixes

* new_with_braces, class_definition cs

* revert clear cleanIntrotext name & docsBLock in getList function

* revert cache

* cs fixes, again!

* cs

* cs

* cs

* cy automated test

* removed input from constructor

* accepting 150 characters

* unnecessary param in the test

* revert @since version for helper class

* revert type hinting from functions

* revert docsBlocks

* revert docsBlocks

* revert Helper

* group items used

* revert multiline

* reviews fixes

---------

Co-authored-by: Allon Moritz <allon.moritz@digital-peak.com>
2023-04-03 16:04:21 +02:00
Carlos Rodriguez
3cdeb57bd9
Convert mod_articles_archive to new structure (#39535)
* services/provider file

* dispatcher file

* services/provider content

* Dispatcher content

* Helper class adaptation

* xml entry point

* not used

* fixed wrong namespace

* Changed model for use countItemsByMonth() method

* Display amount of archived articles in each month

* phpcs fixes

* fixed wrong created model

* removed unused property

* describe better the purpose of the method

* more verbose variables and methods names

* cs fixes

* Reviewers fixes

* update

* update

* cy test

* revert Helper class

* changed deprecated getLanguage

* cy test

* Revert output

* Update modules/mod_articles_archive/src/Helper/ArticlesArchiveHelper.php

* Update modules/mod_articles_archive/services/provider.php

* Update modules/mod_articles_archive/services/provider.php

* Update modules/mod_articles_archive/src/Dispatcher/Dispatcher.php

* removing $data variable from getHelper call

* test if an archived article is displayed

---------

Co-authored-by: Allon Moritz <allon.moritz@digital-peak.com>
2023-04-03 15:04:02 +02:00
jsanders
20ff4df2e4
[4.4] Make code consistent, change <folder>services</folder> to <folder>src</folder> (#40204)
* swap services to src

* swap services to src

* swap services to src

* swap services to src

* swap services to src

* swap services to src
2023-03-28 08:02:33 +02:00
jsanders
74d446538f
[4.4] Rebuild mod_footer with new Joomla 4 structure (#40066)
* Update mod_footer.xml

* Update default.php

* Create provider.php

* Create Dispatcher.php

* Create Dispatcher.php

* Update Dispatcher.php

* Delete Dispatcher.php

* Create FooterHelper.php

* Delete mod_footer.php

* Delete FooterHelper.php

Is no longer necessary

* Delete line

no need to use Helper

* Delete some use statements

No longer necessary

* new variable

$list moved by $lineOne

* Some changes

Forgot somethingto change

* no chanching layout variable

$data['lineOne'] to $data['lineone']

* No changing layout variable

$lineOne to $lineone

* Removed comment code

* return void

* replaces defined to be consistent

Oops

* defined('_JEXEC') or die;

More consistent with other provider.php files

* correction

Small type

* no static class

harder to write unit tests for it

* empty variable added

* Update Dispatcher.php
2023-03-22 11:19:43 +01:00
jsanders
ced6f7ca4b
[4.4] Add text deprecated version + description to actual status in module helper (#40156)
* change version + text

* change version + text

* change version + text

* rename 

none static to non-static

* rename

none static to non-static

* rename

none static to non-static

* rename

none static to non-static
2023-03-21 08:08:38 +01:00
Tuan Pham Ngoc
cc123278e8
[4.4] Make UsersLatestHelper backward compatible (#40143)
* Make UsersLatestHelper backward compatible

* Add replacement in deprecated message
2023-03-18 15:32:56 +01:00
Allon Moritz
b3377e5253
Default the ordering parameter in the latest articles module (#40108)
* Default the ordering parameter in the latest articles module

* cs
2023-03-18 12:20:46 +01:00
jsanders
a8c324046b
[4.4] Rebuild mod_users_latest with new Joomla 4 structure (#40092)
* Update mod_users_latest.xml

* Update UsersLatestHelper.php

* Create Dispatcher.php

* Delete modules/mod_users_latest/Dispatcher directory

* Create provider.php

* Create Dispatcher.php

* Delete mod_users_latest.php

* Delete Factory class

Delete Factory class

* services

`folder module="mod_users_latest">mod_users_latest.php</folder>`
becomes
`<folder module="mod_articles_latest">services</folder>`

* cleaner code

replace  $user = $app->getIdentity();

* Add mod_users_latest system test

mod_users_latest system test

* correction

syntax error

* replace code

* create a user

create a user for the test

* add registerDate

registerDate: '2023-03-01 20:00:00'

* add params

params: ''

---------

Co-authored-by: Allon Moritz <allon.moritz@digital-peak.com>
2023-03-17 14:41:29 +01:00
Olivier Buisard
50cc339147 Merge branch '4.2-dev' into upmerge-2023-03-11
# Conflicts:
#	administrator/components/com_admin/script.php
#	administrator/components/com_config/src/Dispatcher/Dispatcher.php
#	administrator/components/com_config/src/Helper/ConfigHelper.php
#	administrator/components/com_fields/src/Controller/FieldsController.php
#	administrator/components/com_fields/src/Controller/GroupsController.php
#	administrator/language/en-GB/install.xml
#	administrator/language/en-GB/langmetadata.xml
#	administrator/manifests/files/joomla.xml
#	administrator/manifests/packages/pkg_en-GB.xml
#	api/language/en-GB/install.xml
#	api/language/en-GB/langmetadata.xml
#	installation/language/en-GB/langmetadata.xml
#	language/en-GB/install.xml
#	language/en-GB/langmetadata.xml
#	libraries/src/HTML/HTMLHelper.php
#	libraries/src/Version.php
#	plugins/actionlog/joomla/src/Extension/Joomla.php
2023-03-11 16:29:09 -05:00
Hannes Papenberg
1c0eda32d9
Optimizing import statements (#39984) 2023-03-08 00:12:14 -05:00
jsanders
4a8a51947f
[4.3] Replace JPATH_PLATFORM with _JEXEC in dispatcher.php (#39997) 2023-03-07 19:00:37 -05:00
Fedir Zinchuk
3987fa3f11
Improve Finder ajax error handling (#39973)
* Improve error handling for Finder indexer.js

* Improve error handling for Finder autocomplete

* jscs

---------
2023-03-06 22:20:40 +01:00
Charvi Mehra
5e3d8489c3
Making the encoding consistent- changing lowercase utf to uppercase (#39951) 2023-02-26 20:17:02 -05:00
SD Danico
2efb60f641 Merge branch '4.2-dev' into upmerge-20230217-sdw-2
# Conflicts:
#	administrator/language/en-GB/install.xml
#	administrator/language/en-GB/langmetadata.xml
#	administrator/manifests/files/joomla.xml
#	administrator/manifests/packages/pkg_en-GB.xml
#	api/language/en-GB/install.xml
#	api/language/en-GB/langmetadata.xml
#	installation/language/en-GB/langmetadata.xml
#	language/en-GB/install.xml
#	language/en-GB/langmetadata.xml
#	libraries/src/Router/SiteRouter.php
2023-02-17 16:45:42 -06:00
charvimehradu
a8aa3efe1e
Improving the consistency of the HTML models (#39715) 2023-02-04 10:46:48 +01:00
Allon Moritz
1e7527b60e
Fixes various code style issues and integrate PHP CS Fixer into drone (#39745)
* Integrate PHP CS Fixer into drone

* Fix code base

* more verbose

* Ignore psr12 scripts

* Test

* revert

* Ignore also rebase script

* Align array and variable declarations

* Merges

* Fix the no break comment starting with upper case

* Fix alignment in arrays

* Article controller alignment
2023-01-31 11:20:05 +01:00
Brian Teeman
9d09c9010a
[4.3] Use the Web Asset Manager (#38328) 2023-01-28 15:27:02 -05:00
Olivier Buisard
995a8e8822
Joomla! 4.3.0 Alpha 3 2023-01-21 10:33:27 -05:00
Olivier Buisard
c608616220 Merge branch '4.2-dev' into upmerge-2023-01-20
# Conflicts:
#	administrator/components/com_admin/script.php
#	administrator/components/com_categories/src/Model/CategoryModel.php
#	administrator/components/com_config/src/Model/ApplicationModel.php
#	administrator/components/com_config/src/Model/ComponentModel.php
#	administrator/components/com_fields/src/Model/FieldModel.php
#	administrator/components/com_fields/src/Model/GroupModel.php
#	administrator/components/com_finder/src/Indexer/Query.php
#	administrator/components/com_finder/src/Service/HTML/Filter.php
#	administrator/components/com_finder/src/Service/HTML/Query.php
#	administrator/components/com_joomlaupdate/src/Model/UpdateModel.php
#	administrator/components/com_languages/src/Model/StringsModel.php
#	administrator/components/com_menus/tmpl/items/modal.php
#	administrator/components/com_tags/src/Table/TagTable.php
#	administrator/components/com_users/src/Model/LevelsModel.php
#	administrator/components/com_users/src/Model/MailModel.php
#	administrator/components/com_users/src/Model/UserModel.php
#	administrator/modules/mod_quickicon/src/Helper/QuickIconHelper.php
#	components/com_config/src/Controller/ConfigController.php
#	components/com_content/src/Model/ArchiveModel.php
#	components/com_finder/src/Controller/SuggestionsController.php
#	components/com_tags/src/Model/TagModel.php
#	components/com_tags/src/Service/Router.php
#	components/com_tags/src/View/Tag/FeedView.php
#	components/com_tags/src/View/Tag/HtmlView.php
#	components/com_users/src/Controller/ProfileController.php
#	components/com_users/src/Controller/UserController.php
#	composer.lock
#	installation/src/Model/SetupModel.php
#	layouts/joomla/form/field/text.php
#	libraries/namespacemap.php
#	libraries/src/Component/Router/Rules/NomenuRules.php
#	libraries/src/Form/Field/TextField.php
#	libraries/src/Helper/ModuleHelper.php
#	libraries/src/MVC/Model/ListModel.php
#	libraries/src/Object/CMSObject.php
#	libraries/src/Table/ContentType.php
#	plugins/authentication/cookie/src/Extension/Cookie.php
#	plugins/behaviour/versionable/src/Extension/Versionable.php
#	plugins/editors/tinymce/src/Field/TinymcebuilderField.php
#	plugins/extension/namespacemap/src/Extension/NamespaceMap.php
#	plugins/quickicon/extensionupdate/src/Extension/Extensionupdate.php
#	plugins/quickicon/overridecheck/src/Extension/OverrideCheck.php
#	plugins/quickicon/privacycheck/privacycheck.php
#	plugins/user/joomla/joomla.php
2023-01-20 20:32:33 -05:00
Allon Moritz
10f250f418
Changes the code base to short array syntax (#39616) 2023-01-14 10:54:47 +01:00
Olivier Buisard
184819b2aa Merge branch '4.2-dev' into upmerge-2023-01-13 2023-01-13 17:01:39 -05:00
Carlos Rodriguez
8646d15135
Convert mod_articles_popular to new structure (#39539)
Co-authored-by: Allon Moritz <allon.moritz@digital-peak.com>
Co-authored-by: Quy <quy@nomonkeybiz.com>
2023-01-12 17:02:08 +01:00
Viviana Menzel
24e672ebc5
Change name of style (#39585) 2023-01-10 19:06:49 +01:00
Olivier Buisard
feabd967f8 Merge branch '4.2-dev' into upmerge-2022-11-09
# Conflicts:
#	administrator/components/com_media/src/View/Media/HtmlView.php
#	administrator/language/en-GB/install.xml
#	administrator/language/en-GB/langmetadata.xml
#	administrator/manifests/files/joomla.xml
#	administrator/manifests/packages/pkg_en-GB.xml
#	api/language/en-GB/install.xml
#	api/language/en-GB/langmetadata.xml
#	installation/language/en-GB/langmetadata.xml
#	language/en-GB/install.xml
#	language/en-GB/langmetadata.xml
#	libraries/src/Cache/Cache.php
#	libraries/src/Version.php
#	plugins/system/actionlogs/actionlogs.php
#	plugins/system/cache/src/Extension/Cache.php
#	templates/system/build_incomplete.html
#	templates/system/fatal-error.html
#	templates/system/incompatible.html
2022-11-09 21:10:35 -05:00
Crystal Dionysopoulos
a803bb6067
Fixing PHP 8 error when $list is not array (#39112)
* Fixing PHP 8 error when $list is not array

* Updating to be consistent with other modules

* code style
2022-11-02 09:21:47 +01:00
Allon Moritz
7f20b06fd1
[4.3] Change application input access to getInput (#39029)
Co-authored-by: Harald Leithner <leithner@itronic.at>
2022-10-23 10:53:04 +02:00
n3t
54a82bc361
Make "Default" layout really as default (#38729)
Use "Default" layout as default upon creating new menu module.
2022-10-07 14:41:06 +02:00
Richard Fath
bc23488e17
Fix package doc block tag in site module PHP files (#38738) 2022-09-12 09:16:50 +02:00
Brian Teeman
3502094d6c
Codestyle indent (#38399)
* Codestyle indent

Small change to fix codestyle indent

code review

* Update default.php

* more
2022-09-05 12:15:06 +01:00
Harald Leithner
f520c98c64
Re-add jexec or die (#38615) 2022-08-28 09:39:05 +02:00
Roland Dalmulder
526934f5a6
Joomla! 4.2.0 Stable 2022-08-16 14:05:35 +02:00
Volkmar Volli Schlothauer
05fa4fbdef
[4.2] mod_breadcrumbs. Fix several issues with ld+json structured data (#38285)
* Fix position counter and get home item always.

- Add a helper method getHome() that can be used without redundant code elsewhere.
- Get the home item ($homeCrumb) in mod_breadcrumbs.php if showHome is disabled.
- default.php:
- - Use an independant counter for positions.
- - Always set an itemListElement for startpage.

* Code style mod_breadcrumbs.php

* Code style BreadcrumbsHelper.php

* codestyle default.php

* Typo headline versus Heading

* Update modules/mod_breadcrumbs/tmpl/default.php

Co-authored-by: Richard Fath <richard67@users.noreply.github.com>

Co-authored-by: Richard Fath <richard67@users.noreply.github.com>
2022-07-29 21:51:05 +02:00