/** * Create a link * * @param string $class - the classes for the anchor tag * @param string $url - the fully formed URL e.g. http://www.oik-plugins.com * @param string $linktori - is the text or image * @param string $alt - if NULL will use $linktori * @param string $id - the unique ID for the anchor tag * @param string $extra - anything else that needs to go in the <a> tag. e.g. 'onclick=then some javascript' * * @uses retlink() * */ function alink($class = NULL, $url, $linktori = NULL, $alt = NULL, $id = NULL, $extra = NULL) { $link = retlink($class, $url, $linktori, $alt, $id, $extra); e($link); }
/** * Display the plugin settings table form */ function oik_plugins_settings() { $default_plugin_server = oik_get_plugins_server(); $link = retlink(null, $default_plugin_server, $default_plugin_server, "default oik plugins server"); p("The default oik plugins server is currently set to: " . $link); bw_form(); stag("table", "widefat "); stag("thead"); bw_tablerow(array("plugin", "version", "server", "apikey", "expiration", "actions")); etag("thead"); _oik_plugins_settings_table(); etag("table"); p(isubmit("_oik_plugins_add_plugin", "Add plugin", null, "button-primary")); etag("form"); }