Page 1 of 1

Even smaller WonderCMS

Posted: Thu Feb 19, 2015 2:14 pm
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();
	}