I'm not sure how I missed the console errors last time around, but there's definately some errors in there without jQuery and Bootstrap.
I've trial-errored my barebones template and the following script calls remain neccesary for an error-free functioning of wondercms:
Code: Select all
<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"></script>
This makes sense since even before logging in, the default login button fires a jQuery onclick event:
Code: Select all
<button type="submit" class="btn btn-info" onclick="$('#login').show();">Login</button>
@wiz, you mentioned the core being completely detached from Bootstrap and jQuery (in regards to version 3.0.8).
Were these changes undone for later versions? No matter my setup, I can't verify that in the current version 3.1.1.
On the css side, removing Bootstrap has no effect on the settings menu, which is awesome! 👍🏻
Some default elements like Alerts and cache messages however are now completely unstyled:
- Capture.PNG (11.45 KiB) Viewed 16326 times
Since the Alerts and admin messages are as much core parts of the system as the settings menu,
perhaps some basic styling should be included for those elements in the default
$Wcms->css().
I've love for the CMS to be as lightweight and independent as possible and jQuery and Bootstrap don't fit that goal.
As far as I can tell the bootstrap.min.js and popper.js libraries are only included for bootstrap powered tooltips.
Regarding jQuery I'm not sure how deeply integrated it is, but native JS could eliminate it's need altogether.
I've built some fun
stuff lately with native JS and could be of more help there than on the PHP side of things. ~( ̄▽ ̄)~