]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/frost-mobile/theme.php
Merge remote-tracking branch 'upstream/develop' into 1612-unused-indexes
[friendica.git] / view / theme / frost-mobile / theme.php
index 29a990f7b8604c5bbbf3af20cd9c3d8e84710be4..ceb28c2d6627abd3883c6d9759f9dbed5a83851e 100644 (file)
@@ -22,11 +22,13 @@ function frost_mobile_content_loaded(&$a) {
 
        // I could do this in style.php, but by having the CSS in a file the browser will cache it,
        // making pages load faster
-       if( $a->module === 'home' || $a->module === 'login' || $a->module === 'register' || $a->module === 'lostpass' ) {
-//             $a->page['htmlhead'] = str_replace('$stylesheet', $a->get_baseurl() . '/view/theme/frost-mobile/login-style.css', $a->page['htmlhead']);
-               $a->theme['stylesheet'] = $a->get_baseurl() . '/view/theme/frost-mobile/login-style.css';
+       if ( $a->module === 'home' || $a->module === 'login' || $a->module === 'register' || $a->module === 'lostpass' ) {
+//             $a->page['htmlhead'] = str_replace('$stylesheet', App::get_baseurl() . '/view/theme/frost-mobile/login-style.css', $a->page['htmlhead']);
+               $a->theme['stylesheet'] = App::get_baseurl() . '/view/theme/frost-mobile/login-style.css';
        }
-       if( $a->module === 'login' )
+
+       if ( $a->module === 'login' ) {
                $a->page['end'] .= '<script type="text/javascript"> $(document).ready(function() { $("#id_" + window.loginName).focus();} );</script>';
+       }
 
 }