|
@@ -229,13 +229,13 @@ if (!class_exists("plug_login")) {
|
|
|
|
|
|
function login_head() {
|
|
|
$type = (empty($_REQUEST['type']) || !($_REQUEST['type'] == "Select" || $_REQUEST['type'] == "Pro")) ? " " : $_REQUEST['type'];
|
|
|
-// $type = "Perspektiv";
|
|
|
+ $type = "";
|
|
|
if ($type !== "") {
|
|
|
?>
|
|
|
<script type='text/javascript' src='/wp-includes/js/jquery/jquery.js?ver=1.4.2'></script>
|
|
|
<script type="text/javascript">
|
|
|
jQuery(document).ready(function(){
|
|
|
- if(jQuery("form").attr('action').indexOf('register')>-1){
|
|
|
+ if(jQuery("form").length>0 && jQuery("form").attr('action').indexOf('register')>-1){
|
|
|
jQuery("form").prepend('<h3><?php echo ($type) ?></h3><br>');
|
|
|
jQuery("p:contains('Brugernavn')").hide();
|
|
|
|