]> git.mxchange.org Git - friendica.git/blob - view/theme/frost/theme.php
Merge remote-tracking branch 'remotes/upstream/master'
[friendica.git] / view / theme / frost / theme.php
1 <?php
2
3 /*
4  * Name: Frost
5  * Description: Like frosted glass
6  * Credits: Navigation icons taken from http://iconza.com. Other icons taken from http://thenounproject.com, including: Like, Dislike, Black Lock, Unlock, Pencil, Tag, Camera, Paperclip (Marie Coons), Folder (Sergio Calcara), Chain-link (Andrew Fortnum), Speaker (Harold Kim), Quotes (Henry Ryder), Video Camera (Anas Ramadan), and Left Arrow, Right Arrow, and Delete X (all three P.J. Onori). All under Attribution (CC BY 3.0). Others from The Noun Project are public domain or No Rights Reserved (CC0).
7  * Version: Version 0.2.3
8  * Author: Zach P <windforest@f.shmuz.in>
9  * Maintainer: Zach P <windforest@f.shmuz.in>
10  */
11
12 $a->theme_info = array();
13
14 function frost_init(&$a) {
15
16         // I could do this in style.php, but by having the CSS in a file the browser will cache it,
17         // making pages load faster
18         if( $a->module === 'home' || $a->module === 'login' || $a->module === 'register' || $a->module === 'lostpass' ) {
19                 $a->page['htmlhead'] = str_replace('$stylesheet', $a->get_baseurl() . '/view/theme/frost/login-style.css', $a->page['htmlhead']);
20         }
21         if( $a->module === 'login' )
22                 $a->page['end'] .= '<script type="text/javascript"> $j(document).ready(function() { $j("#id_" + window.loginName).focus();} );</script>';
23
24 }