OLD | NEW |
1 <?php | 1 <?php |
2 | 2 |
3 class AnwTemplateOverride_global extends AnwTemplateDefault_global | 3 class AnwTemplateOverride_global extends AnwTemplateDefault_global |
4 { | 4 { |
5 function globalHtml($sHtmlLang, $sHtmlDir, $sTitle, $sHead, $sBody) | 5 function globalHtml($sHtmlLang, $sHtmlDir, $sTitle, $sHead, $sBody) |
6 { | 6 { |
7 $HTML = <<<EOF | 7 $HTML = <<<EOF |
8 <!DOCTYPE html> | 8 <!DOCTYPE html> |
9 <html lang="{$this->xQuote($sHtmlLang)}" dir="{$this->xQuote($sHtmlDir)}"> | 9 <html lang="{$this->xQuote($sHtmlLang)}" dir="{$this->xQuote($sHtmlDir)}" itemsc
ope="itemscope" itemtype="http://schema.org/WebPage"> |
10 <head> | 10 <head> |
11 <title>{$this->xText($sTitle)}</title> | 11 <title>{$this->xText($sTitle)}</title> |
12 $sHead | 12 $sHead |
13 </head> | 13 </head> |
14 | 14 |
15 <body dir="{$this->xQuote($sHtmlDir)}"> | 15 <body dir="{$this->xQuote($sHtmlDir)}"> |
16 $sBody | 16 $sBody |
17 </body> | 17 </body> |
18 </html> | 18 </html> |
19 EOF; | 19 EOF; |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 <meta http-equiv="content-type" content="text/html; charset=UTF-8"/> | 68 <meta http-equiv="content-type" content="text/html; charset=UTF-8"/> |
69 <meta http-equiv="X-UA-Compatible" content="chrome=1"/> | 69 <meta http-equiv="X-UA-Compatible" content="chrome=1"/> |
70 <meta property="og:type" content="product"/> | 70 <meta property="og:type" content="product"/> |
71 <meta property="og:image" content="http://adblockplus.org$static/img/adblock
plus_128.png"/> | 71 <meta property="og:image" content="http://adblockplus.org$static/img/adblock
plus_128.png"/> |
72 <meta property="og:url" content="http://adblockplus.org/"/> | 72 <meta property="og:url" content="http://adblockplus.org/"/> |
73 <meta name="viewport" content="width=device-width, initial-scale=1"/> | 73 <meta name="viewport" content="width=device-width, initial-scale=1"/> |
74 $sHeadContent | 74 $sHeadContent |
75 $sHeadCss | 75 $sHeadCss |
76 $sHeadJs | 76 $sHeadJs |
77 | 77 |
78 <!--[if lt IE 7]><script src="$static/js/vendor/supersleight-min.js"></scrip
t><![endif]--> | 78 <!--[if lt IE 7]> |
| 79 <script src="$static/js/vendor/DD_belatedPNG.js"></script> |
| 80 <script>DD_belatedPNG.fix(".sprite");</script> |
| 81 <![endif]--> |
79 <!--[if lt IE 9]> | 82 <!--[if lt IE 9]> |
80 <script src="$static/js/vendor/html5shiv.js"></script> | 83 <script src="$static/js/vendor/html5shiv.js"></script> |
81 <script src="$static/js/vendor/respond.min.js"></script> | 84 <script src="$static/js/vendor/respond.min.js"></script> |
82 <![endif]--> | 85 <![endif]--> |
83 <!--[if lt IE 10]><script src="$static/js/vendor/cssfx.min.js"></script><![e
ndif]--> | 86 <!--[if lt IE 10]><script src="$static/js/vendor/cssfx.min.js"></script><![e
ndif]--> |
84 EOF; | 87 EOF; |
85 | 88 |
86 return $HTML; | 89 return $HTML; |
87 } | 90 } |
88 | 91 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 | 125 |
123 protected function globalHeader($sSessionNav, $sGlobalNav) | 126 protected function globalHeader($sSessionNav, $sGlobalNav) |
124 { | 127 { |
125 $sRenderMode = AnwIContentClassPageDefault_menu::RENDER_MODE_FULL_MENU; | 128 $sRenderMode = AnwIContentClassPageDefault_menu::RENDER_MODE_FULL_MENU; |
126 $sMenu = $this->renderMenu($sRenderMode); | 129 $sMenu = $this->renderMenu($sRenderMode); |
127 | 130 |
128 $HTML = <<<EOF | 131 $HTML = <<<EOF |
129 <nav> | 132 <nav> |
130 $sMenu | 133 $sMenu |
131 </nav> | 134 </nav> |
132 <img id="logo" src="/_override-static/global/global/img/adblockplus_128.pn
g" itemprop="image"> | 135 <div id="logo" class="sprite" itemprop="image"></div> |
133 EOF; | 136 EOF; |
134 return $HTML; | 137 return $HTML; |
135 } | 138 } |
136 | 139 |
137 function globalFooter($sSessionNav, $sGlobalNav) | 140 function globalFooter($sSessionNav, $sGlobalNav) |
138 { | 141 { |
139 $HTML = $this->renderFooter(); | 142 $HTML = $this->renderFooter(); |
140 | 143 |
141 $HTML .= <<<EOF | 144 $HTML .= <<<EOF |
142 | 145 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 // This will fail when the database is not configured correctly or when | 186 // This will fail when the database is not configured correctly or when |
184 // the page footer page doesn't exist yet. That's the case during the | 187 // the page footer page doesn't exist yet. That's the case during the |
185 // initial installation. | 188 // initial installation. |
186 } | 189 } |
187 | 190 |
188 return ""; | 191 return ""; |
189 } | 192 } |
190 } | 193 } |
191 | 194 |
192 ?> | 195 ?> |
OLD | NEW |