|
140 | 140 | * NOTE: This function is heavily inspired by "writeMBPortlet(), context.php" of
|
141 | 141 | * the "Monobook for Dokuwiki" template by Terence J. Grant.
|
142 | 142 | *
|
143 |
| - * @param array The tab data to render within the snippet. Each element |
144 |
| - * is represented through a subarray: |
| 143 | + * @param array The tab data to render within the snippet. Each element is |
| 144 | + * represented by a subarray: |
145 | 145 | * $array = array("tab1" => array("text" => "hello world!",
|
146 | 146 | * "href" => "http://www.example.com"
|
147 | 147 | * "nofollow" => true),
|
@@ -281,7 +281,7 @@ function _monobook_renderTabs($arr)
|
281 | 281 | * the "Monobook for Dokuwiki" template by Terence J. Grant.
|
282 | 282 | *
|
283 | 283 | * @param array The box data to render within the snippet. Each box is
|
284 |
| - * represented through a subarray: |
| 284 | + * represented by a subarray: |
285 | 285 | * $array = array("box-id1" => array("headline" => "hello world!",
|
286 | 286 | * "xhtml" => "I am <i>here</i>."));
|
287 | 287 | * Available keys within the subarrays:
|
@@ -361,8 +361,8 @@ function _monobook_renderBoxes($arr)
|
361 | 361 | /**
|
362 | 362 | * Helper to render the footer buttons (like a dynamic XHTML snippet)
|
363 | 363 | *
|
364 |
| - * @param array The button data to render within the snippet. Each element |
365 |
| - * is represented through a subarray: |
| 364 | + * @param array The button data to render within the snippet. Each element is |
| 365 | + * represented by a subarray: |
366 | 366 | * $array = array("btn1" => array("img" => DOKU_TPL."static/img/button-monobook.png",
|
367 | 367 | * "href" => "https://andreashaerter.com/",
|
368 | 368 | * "width" => 80,
|
@@ -473,15 +473,6 @@ function _monobook_renderButtons($arr)
|
473 | 473 | tpl_metaheaders();
|
474 | 474 | echo "<meta name=\"viewport\" content=\"width=device-width,initial-scale=1\" />";
|
475 | 475 |
|
476 |
| -//manually load needed CSS? this is a workaround for PHP Bug #49642. In some |
477 |
| -//version/os combinations PHP is not able to parse INI-file entries if there |
478 |
| -//are slashes "/" used for the keynames (see bugreport for more information: |
479 |
| -//<http://bugs.php.net/bug.php?id=49692>). to trigger this workaround, simply |
480 |
| -//delete/rename monobook's style.ini. |
481 |
| -if (!file_exists(DOKU_TPLINC."style.ini")){ |
482 |
| - echo "<link rel=\"stylesheet\" media=\"all\" type=\"text/css\" href=\"".DOKU_TPL."bug49642.php".((!empty($lang["direction"]) && $lang["direction"] === "rtl") ? "?langdir=rtl" : "")."\" />\n"; //var comes from DokuWiki core |
483 |
| -} |
484 |
| - |
485 | 476 | //include default or userdefined favicon
|
486 | 477 | //
|
487 | 478 | //note: since 2011-04-22 "Rincewind RC1", there is a core function named
|
|
0 commit comments