Index: trunk/extensions/MobileFrontend/views/layout/application.html.php |
— | — | @@ -1,6 +1,12 @@ |
2 | 2 | <?php |
3 | | -global $wgExtensionAssetsPath; |
| 3 | +global $wgExtensionAssetsPath, $wgAppleTouchIcon; |
4 | 4 | |
| 5 | +if( $wgAppleTouchIcon !== false ) { |
| 6 | + $appleTouchIconTag = Html::element( 'link', array( 'rel' => 'apple-touch-icon', 'href' => $wgAppleTouchIcon ) );; |
| 7 | +} else { |
| 8 | + $appleTouchIconTag = ""; |
| 9 | +} |
| 10 | + |
5 | 11 | $applicationHtml = <<<EOT |
6 | 12 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
7 | 13 | <html lang='{$code}' dir='{$dir}' xml:lang='{$code}' xmlns='http://www.w3.org/1999/xhtml'> |
— | — | @@ -10,7 +16,7 @@ |
11 | 17 | <link href='{$wgExtensionAssetsPath}/MobileFrontend/stylesheets/{$cssFileName}.css' media='all' rel='Stylesheet' type='text/css' /> |
12 | 18 | <meta name="ROBOTS" content="NOINDEX, NOFOLLOW" /> |
13 | 19 | <meta name = "viewport" content = "width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" /> |
14 | | - <link rel="apple-touch-icon" href="http://en.m.wikipedia.org/apple-touch-icon.png" /> |
| 20 | + ${wgAppleTouchIconTag} |
15 | 21 | <script type='text/javascript'> |
16 | 22 | //<![CDATA[ |
17 | 23 | var title = "{$title}"; |