Skip to content

[4.0] Correcting mod_submenu markup#27074

Merged
rdeutz merged 9 commits intojoomla:4.0-devfrom
infograf768:4.0_modsubmenu_markup
Nov 20, 2019
Merged

[4.0] Correcting mod_submenu markup#27074
rdeutz merged 9 commits intojoomla:4.0-devfrom
infograf768:4.0_modsubmenu_markup

Conversation

@infograf768
Copy link
Member

Pull Request for Issue #27068

Summary of Changes

Separating title and iconImage
Adding possible translation in order to normalise code. Which does not mean the translation of possible menutype titles fully work. To work really a lot of other stuff is to be considered.

Testing Instructions

See #27068

Source after patch

<li class="list-group-item d-flex align-items-center">
<a class="flex-grow-1" href="index.php?option=com_menus&view=items&menutype=mainmenu-en-gb">
Main Menu (en-GB) &nbsp;<span class="badge badge-secondary">en-GB</span></a>
<span class="menu-quicktask">
<a href="index.php?option=com_menus&task=item.add&menutype=mainmenu-en-gb">
<span class="fa fa-plus fa-xs" title="Main Menu (en-GB) " aria-hidden="true"></span>
<span class="sr-only">Main Menu (en-GB)  - New Item</span>
</a>
</span>
</li>
<li class="list-group-item d-flex align-items-center">
<a class="flex-grow-1" href="index.php?option=com_menus&view=items&menutype=mainmenu">
Main Menu <span class="home-image icon-featured" aria-hidden="true"></span><span class="sr-only">Default</span></a>
<span class="menu-quicktask">
<a href="index.php?option=com_menus&task=item.add&menutype=mainmenu">
<span class="fa fa-plus fa-xs" title="Main Menu " aria-hidden="true"></span>
<span class="sr-only">Main Menu  - New Item</span>
</a>
</span>
</li>

@chmst
Copy link
Contributor

chmst commented Nov 15, 2019

I have tested this item ✅ successfully on ae28d83


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27074.

@ChristineWk
Copy link

I have tested this item ✅ successfully on ae28d83

Don't know if maybe relevant, therefore just FYI (OT): If someone decide during Patch test, additional red markups, these belongs to #27061 and is solved.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27074.

@BertaOctech
Copy link

I followed the instructions but I was not able to reproduce the issue


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27074.

@infograf768
Copy link
Member Author

Do not rtc for now.

@infograf768 infograf768 force-pushed the 4.0_modsubmenu_markup branch from 0aaf8af to 5ac4bce Compare November 17, 2019 07:20
@infograf768
Copy link
Member Author

@Quy
Done.

Note: we will have to do the same change in conditional for mod_menu/tmp/default_submenu.php, including htmlspecialchars for Text::_($current->title)

@infograf768 infograf768 force-pushed the 4.0_modsubmenu_markup branch from a5f26aa to 08ceda4 Compare November 17, 2019 07:29
@infograf768 infograf768 force-pushed the 4.0_modsubmenu_markup branch from 49622fc to 5b324ee Compare November 18, 2019 08:00
@Quy
Copy link
Contributor

Quy commented Nov 18, 2019

Note: we will have to do the same change in conditional for mod_menu/tmp/default_submenu.php, including htmlspecialchars for Text::_($current->title)

Will you do this in a separate PR?

@infograf768
Copy link
Member Author

Will you do this in a separate PR?

Yes. Better separate as the other one is mainly moving code around.
Let’s get this one in first.

@Quy
Copy link
Contributor

Quy commented Nov 18, 2019

I have tested this item ✅ successfully on addca38


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27074.

@infograf768
Copy link
Member Author

@chmst @ChristineWk
Please test again

@ChristineWk
Copy link

I have tested this item ✅ successfully on addca38


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27074.

@Quy
Copy link
Contributor

Quy commented Nov 19, 2019

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27074.

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Nov 19, 2019
@rdeutz rdeutz merged commit 79fa7e7 into joomla:4.0-dev Nov 20, 2019
@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Nov 20, 2019
@zero-24 zero-24 added this to the Joomla 4.0 milestone Nov 21, 2019
@infograf768 infograf768 deleted the 4.0_modsubmenu_markup branch November 21, 2019 06:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants