tra('Skype'), 'documentation' => 'PluginSkype', 'description' => tra('Add a link for calling or chating with a Skype user'), 'iconname' => 'skype', 'introduced' => 1, 'prefs' => [ 'wikiplugin_skype' ], 'body' => tra('Name or number to call or chat with.') . " " . tra("do not forget to check the tools / options/ privacy / allow my status to be show on the web"), 'params' => [ 'action' => [ 'required' => false, 'name' => tra('Action'), 'description' => tra('Set whether to call or chat. Default is chat'), 'since' => '1', 'default' => 'chat', 'filter' => 'word', 'options' => [ ['text' => '', 'value' => ''], ['text' => tra('Call'), 'value' => 'call'], ['text' => tra('Chat'), 'value' => 'chat'] ] ], 'showstatus' => [ 'required' => false, 'name' => tra('Show status'), 'description' => tra('Show a status icon or not i.e. if online/offline/etc. Default is to not show status.'), 'since' => '7.0', 'default' => 'n', 'filter' => 'alpha', 'options' => [ ['text' => tra('yes'), 'value' => 'y'], ['text' => tra('no'), 'value' => 'n'] ] ], ] ]; } function wikiplugin_skype($data, $params) { extract($params, EXTR_SKIP); if (empty($data)) { return ("You need to add a Skype username
" . "~np~{SKYPE()}username{SKYPE}~/np~"); } if (! isset($action)) { $action = "chat"; } if (! isset($showstatus)) { $showstatus = "n"; } $ret = ""; $ret .= ""; if ($showstatus == "y") { $ret .= "\"""; } else { $ret .= tra($action) . " " . $data; } $ret .= ""; return $ret; }