| Filename | /home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/intranetstylesheet.inc |
| Statements | Executed 16 statements in 54µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 28µs | 88µs | Template::Document::__ANON__[:28] |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | 2 | 11µs | 2 | 5µs | # spent 88µs (28+60) within Template::Document::__ANON__[/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/intranetstylesheet.inc:28] which was called:
# once (28µs+60µs) by Template::Document::process at line 163 of Template/Document.pm # spent 3µs making 1 call to Template::Stash::XS::get
# spent 2µs making 1 call to Template::Stash::XS::set |
| 2 | $stash->set('intranetstylesheet', 'staff-global.css'); | ||||
| 3 | } | ||||
| 4 | |||||
| 5 | 3 | 11µs | 2 | 5µs | $output .= "\n"; # spent 5µs making 2 calls to Template::Stash::XS::get, avg 2µs/call |
| 6 | 3 | 15µs | 2 | 81µs | #line 6 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/intranetstylesheet.inc" # spent 46µs making 1 call to Template::Stash::XS::get
# spent 35µs making 1 call to Template::VMethods::text_match |
| 7 | 2 | 600ns | if (($stash->get(['intranetstylesheet', 0, 'match', [ '^https?:|^\/' ]]))) { | ||
| 8 | $output .= "\n <link rel=\"stylesheet\" type=\"text/css\" href=\""; | ||||
| 9 | 1 | 300ns | #line 3 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/intranetstylesheet.inc" | ||
| 10 | $output .= $stash->get('intranetstylesheet'); | ||||
| 11 | $output .= "\" />\n"; | ||||
| 12 | } | ||||
| 13 | else { | ||||
| 14 | $output .= "\n <link rel=\"stylesheet\" type=\"text/css\" href=\""; | ||||
| 15 | 1 | 6µs | 1 | 2µs | #line 5 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/intranetstylesheet.inc" # spent 2µs making 1 call to Template::Stash::XS::get |
| 16 | $output .= $stash->get('themelang'); | ||||
| 17 | $output .= "/css/"; | ||||
| 18 | #line 5 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/intranetstylesheet.inc" | ||||
| 19 | $output .= $stash->get('intranetstylesheet'); | ||||
| 20 | 1 | 400ns | $output .= "\" />\n"; | ||
| 21 | } | ||||
| 22 | 1 | 100ns | |||
| 23 | $output .= "\n\n<!-- local colors -->\n"; | ||||
| 24 | #line 15 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/intranetstylesheet.inc" | ||||
| 25 | if (($stash->get('intranetcolorstylesheet'))) { | ||||
| 26 | $output .= "\n "; | ||||
| 27 | 1 | 4µs | #line 14 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/intranetstylesheet.inc" | ||
| 28 | if (($stash->get(['intranetcolorstylesheet', 0, 'match', [ '^https?:|^\/' ]]))) { | ||||
| 29 | 1 | 6µs | $output .= "\n <link rel=\"stylesheet\" type=\"text/css\" href=\""; | ||
| 30 | #line 11 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/intranetstylesheet.inc" | ||||
| 31 | $output .= $stash->get('intranetcolorstylesheet'); | ||||
| 32 | $output .= "\" />\n "; | ||||
| 33 | } | ||||
| 34 | else { | ||||
| 35 | $output .= "\n <link rel=\"stylesheet\" type=\"text/css\" href=\""; | ||||
| 36 | #line 13 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/intranetstylesheet.inc" | ||||
| 37 | $output .= $stash->get('themelang'); | ||||
| 38 | $output .= "/css/"; | ||||
| 39 | #line 13 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/intranetstylesheet.inc" | ||||
| 40 | $output .= $stash->get('intranetcolorstylesheet'); | ||||
| 41 | $output .= "\" />\n "; | ||||
| 42 | } | ||||
| 43 | |||||
| 44 | $output .= "\n"; | ||||
| 45 | } | ||||
| 46 | |||||
| 47 | $output .= "\n"; | ||||
| 48 | } }; | ||||
| 49 | if ($@) { | ||||
| 50 | $_tt_error = $context->catch($@, \$output); | ||||
| 51 | die $_tt_error unless $_tt_error->type eq 'return'; | ||||
| 52 | } | ||||
| 53 | |||||
| 54 | return $output; | ||||
| 55 | } | ||||
| 56 |