📄 header.html.tmpl
字号:
my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('contrib_skin'); &$_tt_filter($output); }; $output .= "\"\n type=\"text/css\">"; } else { $output .= "\n "; #line 165 "template\en\default\global\header.html.tmpl" # FOREACH do { my ($_tt_value, $_tt_error, $_tt_oldloop); my $_tt_list = $stash->get('style_urls'); unless (UNIVERSAL::isa($_tt_list, 'Template::Iterator')) { $_tt_list = Template::Config->iterator($_tt_list) || die $Template::Config::ERROR, "\n"; } ($_tt_value, $_tt_error) = $_tt_list->get_first(); eval { $_tt_oldloop = $stash->get('loop') }; $stash->set('loop', $_tt_list); eval { LOOP: while (! $_tt_error) { $stash->{'style_url'} = $_tt_value; #line 164 "template\en\default\global\header.html.tmpl" if ($stash->get(['style_url', 0, 'match', [ '^skins/standard/' ]])) { $output .= "\n <link href=\""; #line 0 "template\en\default\global\header.html.tmpl" $output .= $stash->get(['style_url', 0, 'replace', [ '^skins/standard/', ("skins/contrib/" . $stash->get('contrib_skin') . "/") ]]); $output .= "\"\n rel=\""; #line 161 "template\en\default\global\header.html.tmpl" if (!($stash->get('contrib_skin') eq $stash->get('user_skin'))) { $output .= 'alternate '; } $output .= "stylesheet\"\n title=\""; #line 162 "template\en\default\global\header.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('contrib_skin'); &$_tt_filter($output); }; $output .= "\"\n type=\"text/css\">"; } ; ($_tt_value, $_tt_error) = $_tt_list->get_next(); } }; $stash->set('loop', $_tt_oldloop); die $@ if $@; $_tt_error = 0 if $_tt_error && $_tt_error eq Template::Constants::STATUS_DONE; die $_tt_error if $_tt_error; }; $output .= "\n <!--[if IE]>\n "; $output .= "\n <link href=\"skins/contrib/"; #line 171 "template\en\default\global\header.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('contrib_skin'); &$_tt_filter($output); }; $output .= "/IE-fixes.css\"\n rel=\""; #line 172 "template\en\default\global\header.html.tmpl" if (!($stash->get('contrib_skin') eq $stash->get('user_skin'))) { $output .= 'alternate '; } $output .= "stylesheet\"\n title=\""; #line 173 "template\en\default\global\header.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('contrib_skin'); &$_tt_filter($output); }; $output .= "\"\n type=\"text/css\">\n <![endif]-->"; } ; ($_tt_value, $_tt_error) = $_tt_list->get_next(); } }; $stash->set('loop', $_tt_oldloop); die $@ if $@; $_tt_error = 0 if $_tt_error && $_tt_error eq Template::Constants::STATUS_DONE; die $_tt_error if $_tt_error; }; $output .= "\n\n "; #line 185 "template\en\default\global\header.html.tmpl" if ($stash->get('style')) { $output .= "\n <style type=\"text/css\">"; #line 183 "template\en\default\global\header.html.tmpl" $output .= $stash->get('style'); $output .= "\n </style>"; } $output .= "\n\n "; #line 196 "template\en\default\global\header.html.tmpl" # FOREACH do { my ($_tt_value, $_tt_error, $_tt_oldloop); my $_tt_list = $stash->get('style_urls'); unless (UNIVERSAL::isa($_tt_list, 'Template::Iterator')) { $_tt_list = Template::Config->iterator($_tt_list) || die $Template::Config::ERROR, "\n"; } ($_tt_value, $_tt_error) = $_tt_list->get_first(); eval { $_tt_oldloop = $stash->get('loop') }; $stash->set('loop', $_tt_list); eval { LOOP: while (! $_tt_error) { $stash->{'style_url'} = $_tt_value; #line 195 "template\en\default\global\header.html.tmpl" if ($stash->get(['style_url', 0, 'match', [ '^skins/standard/' ]])) { $output .= "\n <link href=\""; #line 193 "template\en\default\global\header.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['style_url', 0, 'replace', [ '^skins/standard/', 'skins/custom/' ]]); &$_tt_filter($output); }; $output .= "\" rel=\"stylesheet\" type=\"text/css\">"; } ; ($_tt_value, $_tt_error) = $_tt_list->get_next(); } }; $stash->set('loop', $_tt_oldloop); die $@ if $@; $_tt_error = 0 if $_tt_error && $_tt_error eq Template::Constants::STATUS_DONE; die $_tt_error if $_tt_error; }; $output .= "\n <!--[if IE]>\n "; $output .= "\n <link href=\"skins/custom/IE-fixes.css\"\n rel=\"stylesheet\"\n type=\"text/css\">\n <![endif]-->\n\n "; #line 211 "template\en\default\global\header.html.tmpl" if ($stash->get('atomlink')) { $output .= "\n <link rel=\"alternate\" \n type=\"application/atom+xml\" title=\"Atom feed\" \n href=\""; #line 210 "template\en\default\global\header.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('atomlink'); &$_tt_filter($output); }; $output .= "\">"; } $output .= "\n\n "; $output .= "\n <link rel=\"search\" type=\"application/opensearchdescription+xml\"\n title=\""; #line 215 "template\en\default\global\header.html.tmpl" $output .= $stash->get(['terms', 0, 'Bugzilla', 0]); $output .= "\" href=\"./search_plugin.cgi\">\n "; #line 217 "template\en\default\global\header.html.tmpl" $output .= $stash->get(['Hook', 0, 'process', [ 'additional_header' ]]); $output .= " \n </head>\n\n"; $output .= "\n\n <body onload=\""; #line 224 "template\en\default\global\header.html.tmpl" $output .= $stash->get('onload'); $output .= "\"\n class=\""; #line 225 "template\en\default\global\header.html.tmpl" $output .= $stash->get(['Param', [ 'urlbase' ], 'replace', [ '^https?://', '' ], 'replace', [ '/$', '' ], 'replace', [ '[-~@:/.]+', '-' ]]); #line 228 "template\en\default\global\header.html.tmpl" # FOREACH do { my ($_tt_value, $_tt_error, $_tt_oldloop); my $_tt_list = $stash->get('bodyclasses'); unless (UNIVERSAL::isa($_tt_list, 'Template::Iterator')) { $_tt_list = Template::Config->iterator($_tt_list) || die $Template::Config::ERROR, "\n"; } ($_tt_value, $_tt_error) = $_tt_list->get_first(); eval { $_tt_oldloop = $stash->get('loop') }; $stash->set('loop', $_tt_list); eval { LOOP: while (! $_tt_error) { $stash->{'class'} = $_tt_value; #line 227 "template\en\default\global\header.html.tmpl" $output .= ' '; #line 227 "template\en\default\global\header.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('css_class_quote') || $context->throw($context->error); $output .= $stash->get('class'); &$_tt_filter($output); }; ; ($_tt_value, $_tt_error) = $_tt_list->get_next(); } }; $stash->set('loop', $_tt_oldloop); die $@ if $@; $_tt_error = 0 if $_tt_error && $_tt_error eq Template::Constants::STATUS_DONE; die $_tt_error if $_tt_error; }; $output .= "\">\n\n"; $output .= "\n\n\n<div id=\"header\">\n"; #line 237 "template\en\default\global\header.html.tmpl" $output .= $context->include('global/banner.html.tmpl'); $output .= "\n\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" id=\"titles\">\n<tr>\n <td id=\"title\">\n <p>"; #line 242 "template\en\default\global\header.html.tmpl" $output .= $stash->get(['terms', 0, 'Bugzilla', 0]); #line 0 "template\en\default\global\header.html.tmpl" if ($stash->get('header')) { $output .= (" – " . $stash->get('header')); } $output .= "</p>\n </td>\n"; #line 250 "template\en\default\global\header.html.tmpl" if ($stash->get('subheader')) { $output .= "\n <td id=\"subtitle\">\n <p class=\"subheader\">"; #line 248 "template\en\default\global\header.html.tmpl" $output .= $stash->get('subheader'); $output .= "</p>\n </td>"; } $output .= "\n"; #line 256 "template\en\default\global\header.html.tmpl" if ($stash->get('header_addl_info')) { $output .= "\n <td id=\"information\">\n <p class=\"header_addl_info\">"; #line 254 "template\en\default\global\header.html.tmpl" $output .= $stash->get('header_addl_info'); $output .= "</p>\n </td>"; } $output .= "\n</tr>\n</table>\n"; #line 260 "template\en\default\global\header.html.tmpl" $output .= $context->process('global/common-links.html.tmpl', { 'btn_id' => 'find_top' }); $output .= "\n\n</div>\n\n<div id=\"bugzilla-body\">\n"; #line 268 "template\en\default\global\header.html.tmpl" if ($stash->get(['Param', [ 'announcehtml' ]])) { #line 267 "template\en\default\global\header.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('none') || $context->throw($context->error); $output .= $stash->get(['Param', [ 'announcehtml' ]]); &$_tt_filter($output); }; } $output .= "\n"; #line 272 "template\en\default\global\header.html.tmpl" if ($stash->get('message')) { $output .= "\n<div id=\"message\">"; #line 271 "template\en\default\global\header.html.tmpl" $output .= $stash->get('message'); $output .= "</div>"; } $output .= "\n"; } }; if ($@) { $_tt_error = $context->catch($@, \$output); die $_tt_error unless $_tt_error->type eq 'return'; } return $output; }, DEFBLOCKS => { },});
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -