1 | <?php |
||
11 | class tpl { |
||
12 | |||
13 | static $icons = array( |
||
14 | 'default' => '00-default_checkbox-blank-circle-outline.svg', |
||
15 | 'edit' => '01-edit_pencil.svg', |
||
16 | 'create' => '02-create_pencil.svg', |
||
17 | 'draft' => '03-draft_android-studio.svg', |
||
18 | 'show' => '04-show_file-document.svg', |
||
19 | 'source' => '05-source_file-xml.svg', |
||
20 | 'revert' => '06-revert_replay.svg', |
||
21 | 'revs' => '07-revisions_history.svg', |
||
22 | 'backlink' => '08-backlink_link-variant.svg', |
||
23 | 'subscribe' => '09-subscribe_email-outline.svg', |
||
24 | 'top' => '10-top_arrow-up.svg', |
||
25 | 'mediaManager' => '11-mediamanager_folder-image.svg', |
||
26 | 'img_backto' => '12-back_arrow-left.svg', |
||
27 | |||
28 | ); |
||
29 | |||
30 | /** |
||
31 | * Return the HTML for one of the default actions |
||
32 | * |
||
33 | * Reimplements parts of tpl_actionlink |
||
34 | * |
||
35 | * @param string $action |
||
36 | * @return string |
||
37 | */ |
||
38 | static public function pageToolAction($action) { |
||
62 | |||
63 | /** |
||
64 | * Return the HTML for a page action |
||
65 | * |
||
66 | * Plugins could use this |
||
67 | * |
||
68 | * @param string $link The link |
||
69 | * @param string $caption The label of the action |
||
70 | * @param string $svg The icon to show |
||
71 | * @param string $key Accesskey |
||
72 | * @return string |
||
73 | */ |
||
74 | static public function pageToolItem($link, $caption, $svg, $key = '') { |
||
91 | } |
||
92 |
In PHP, under loose comparison (like
==
, or!=
, orswitch
conditions), values of different types might be equal.For
string
values, the empty string''
is a special case, in particular the following results might be unexpected: