Skip to content

Commit

Permalink
[4.0] admin menu RTL
Browse files Browse the repository at this point in the history
This PR removes code that was required in joomla 3 when the admin menu was horizontal. Now that it is vertical there is no need for this code at all.

To test ensure that the admin menu works and looks the same as before the PR with an RTL language such as arabic or persian
  • Loading branch information
brianteeman committed Nov 28, 2021
1 parent 19cccf4 commit 320d2b8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions administrator/modules/mod_menu/tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
use Joomla\CMS\Language\Text;

$doc = $app->getDocument();
$direction = $doc->direction === 'rtl' ? 'float-end' : '';
$class = $enabled ? 'nav flex-column main-nav ' . $direction : 'nav flex-column main-nav disabled ' . $direction;
$class = $enabled ? 'nav flex-column main-nav' : 'nav flex-column main-nav disabled';

/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
$wa = $doc->getWebAssetManager();
Expand Down

0 comments on commit 320d2b8

Please sign in to comment.