| @@ -7,18 +7,14 @@ | ||
| 7 | 7 | /* global document, auth */ |
| 8 | 8 | ( function( $ ) { |
| 9 | 9 | |
| 10 | 10 | $( document ).ready( function() { |
| 11 | - auth.wpLoginUrl = 'undefined' !== typeof auth.wpLoginUrl ? auth.wpLoginUrl : '/wp-login.php'; | |
| 12 | - auth.publicWarning = 'undefined' !== typeof auth.publicWarning ? auth.publicWarning : false; | |
| 13 | - if ( auth.publicWarning ) { | |
| 14 | - $( '#main' ).prepend(' \ | |
| 15 | - <div id="alert" class="alert alert-info auth-alert"> \ | |
| 16 | - <button type="button" class="close" data-dismiss="alert">×</button> \ | |
| 17 | - ' + auth.anonymousNotice + ' \ | |
| 18 | - <a class="button" href="' + auth.wpLoginUrl + '">' + auth.logIn + '</a> \ | |
| 19 | - </div> \ | |
| 20 | - '); | |
| 21 | - } | |
| 22 | - }); | |
| 11 | + $( '#main' ).prepend( | |
| 12 | + '<div id="alert" class="alert alert-info auth-alert" style="margin: 0 0 20px;">' + | |
| 13 | + '<button type="button" class="close" data-dismiss="alert">×</button>' + | |
| 14 | + auth.anonymousNotice + | |
| 15 | + '<a class="button" href="' + auth.wpLoginUrl + '">' + auth.logIn + '</a>' + | |
| 16 | + '</div>' | |
| 17 | + ); | |
| 18 | + } ); | |
| 23 | 19 | |
| 24 | 20 | } )( jQuery ); |