Even smaller WonderCMS

Welcome to the WonderCMS community. Anything goes, except for support requests.
Post Reply
bas
Posts: 2
Joined: Thu Feb 19, 2015 10:44 am

Even smaller WonderCMS

Post by bas »

Hi,

WonderCMS can do perfectly without JQuery when not logged in.
If you put the code below into your theme.php (and remove the unconditional script and editTags()), JQuery is loaded only when logged in.
Seems to work fine for me after I made the 'change password' functionality always visible (without toggle/hide)

Bas

Code: Select all

	if(is_loggedin()) {
		echo "<script src='//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js'></script>";
		editTags();
	}
Post Reply