Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update auth.php and theme_handler.php to us ea bootstrap 5 admin theme and comply to use BS5 as it should. #5373

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Alex-e107nl
Copy link
Contributor

@Alex-e107nl Alex-e107nl commented Dec 25, 2024

Motivation and Context

Without it you cannot use the bootstrap5 theme as admin theme and the tabs in the theme config (front and admin) does not give real tabs.

Description

admin/auth.php

if($adminTheme !== 'bootstrap3'/* && $adminTheme !== 'bootstrap5'*/) to
if($adminTheme !== 'bootstrap3' && $adminTheme !== 'bootstrap5')

theme_handler.php

<li class='active'><a data-toggle='tab' data-bs-toggle='tab' href='#core-thememanager-configure'>".LAN_CONFIGURE."</a></li>";
To
<li class='nav-item active'><a class='nav-link active' data-toggle='tab' data-bs-toggle='tab' href='#core-thememanager-configure'>".LAN_CONFIGURE."</a></li>";

$text .= "<li><a data-toggle='tab' data-bs-toggle='tab' href='#core-thememanager-customconfig'>".LAN_PREFS."</a></li>\n";
To
$text .= "<li class='nav-item'><a class='nav-link' data-toggle='tab' data-bs-toggle='tab' href='#core-thememanager-customconfig'>".LAN_PREFS."</a></li>\n";

text .= "<li><a data-toggle='tab' data-bs-toggle='tab' href='#core-thememanager-help'>".LAN_HELP."</a></li>\n";
To
$text .= "<li class='nav-item'><a class='nav-link' data-toggle='tab' data-bs-toggle='tab' href='#core-thememanager-help'>".LAN_HELP."</a></li>\n";

How Has This Been Tested?

On a live server: e107 - Version 2.4.0 (git) - Server - Apache/2 - PHP Version - 8.1.30 - MySQL - 10.5.27-MariaDB - PDO: Enabled
Mode: NO_ENGINE_SUBSTITUTION - Charset - utf-8 - Server Time - Wednesday 25 December 2024 - 21:33

Types of Changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Performance enhancement (non-breaking change which improves efficiency)
  • Code cleanup (non-breaking change which makes code smaller or more readable)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation (a change to man pages or other documentation)

Checklist

Free the use of a admin theme with the name bootsrap5, it works perfectly when this is changed!
The front theme config does not give real tabs when you use bootstrap 5, it is really a not working as it should without..
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.

1 participant