]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/frost/theme.php
Removing extraneous line feeds in conditions
[friendica.git] / view / theme / frost / theme.php
index 3decb2a11857331562c4ffff312a5c54ea2cd46e..b93123b3dd6a9a02405b11fe78d034a9856e663d 100644 (file)
@@ -10,7 +10,6 @@
  */
 
 function frost_init(&$a) {
-       $a->theme_info = array();
        $a->videowidth = 400;
        $a->videoheight = 330;
        $a->theme_thread_allow = false;
@@ -22,11 +21,13 @@ function frost_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/login-style.css', $a->page['htmlhead']);
-               $a->theme['stylesheet'] = $a->get_baseurl() . '/view/theme/frost/login-style.css';
+               //$a->page['htmlhead'] = str_replace('$stylesheet', App::get_baseurl() . '/view/theme/frost/login-style.css', $a->page['htmlhead']);
+               $a->theme['stylesheet'] = App::get_baseurl() . '/view/theme/frost/login-style.css';
+       }
+
+       if ( $a->module === 'login' ) {
+               $a->page['end'] .= '<script type="text/javascript"> $(document).ready(function() { $("#id_" + window.loginName).focus();} );</script>';
        }
-       if( $a->module === 'login' )
-               $a->page['end'] .= '<script type="text/javascript"> $j(document).ready(function() { $j("#id_" + window.loginName).focus();} );</script>';
 
 }