Inserts standard <head> includes for NST WUI pages.
The following parameters are recognized:
Pass "xml" if you want valid XML output (omit or set to "quirks" for quirks mode HTML).
This macro should be used in the <head> section of a NST WUI page. It inserts the necessary code to: Set the HTML page icon. Load the standard CSS info. Load the core javascript functions.
Example of using the macro:
<head> <title> Title Of My WUI Page </title> @wuiHeadIncludes() </head>
Assuming the com.ccg.macros.at.All
class is within your CLASSPATH
and the
config/html.at
macros file has been
generated (Hint: run make atmacros in the
wui
directory), a developer should be able to
run the above example by copy/pasting from below:
[root@probe root]#
java com.ccg.macros.at.All <<EOF
@include("config/html.at",,"d")
<head> <title> Title Of My WUI Page </title> @wuiHeadIncludes() </head>
EOF
This macro is defined as:
<link@htmlAttr("rel","icon") @htmlAttr("href","@imageDirUrl()/nsticon.png") @htmlAttr("type","image/png")@ifEqual("@param(0)","xml"," /")> <link@htmlAttr("rel","apple-touch-icon") @htmlAttr("href","@imageDirUrl()/nstlogo_apple_72x72.png") @htmlAttr("type","image/png")@ifEqual("@param(0)","xml"," /")> <link@htmlAttr("href","@cssDirUrl()/console.css") @htmlAttr("rel","stylesheet") @htmlAttr("type","text/css")@ifEqual("@param(0)","xml"," /")> <link@htmlAttr("href","@cssDirUrl()/site.css") @htmlAttr("rel","stylesheet") @htmlAttr("type","text/css")@ifEqual("@param(0)","xml"," /")> <link@htmlAttr("href","@cssDirUrl()/domtt.css") @htmlAttr("rel","stylesheet") @htmlAttr("type","text/css")@ifEqual("@param(0)","xml"," /")> <link@htmlAttr("href","@cssDirUrl()/jquery-ui.css") @htmlAttr("rel","stylesheet") @htmlAttr("type","text/css")@ifEqual("@param(0)","xml"," /")> <link@htmlAttr("href","@cssDirUrl()/NstPopup.css") @htmlAttr("rel","stylesheet") @htmlAttr("type","text/css")@ifEqual("@param(0)","xml"," /")> <link@htmlAttr("href","@cssDirUrl()/keyboard.css") @htmlAttr("rel","stylesheet") @htmlAttr("type","text/css")@ifEqual("@param(0)","xml"," /")> <!--[if gte IE 9]> <style type="text/css"> .wuiInputButton, input.wuiInputButton, button.wuiInputButton, button.NstButtonFactory, button.NstButton { border-style: outset; } .wuiInputButton:hover, input.wuiInputButton:hover, button.wuiInputButton:hover, button.NstButtonFactory:hover, button.NstButton:hover { border-style: outset; } </style> <![endif]--> @htmlEntity("script"," // jQuery base library ","@htmlAttr("src","/nstwui/javascript/jquery.js")@htmlAttr("type","text/javascript")") @htmlEntity("script"," // jQuery UI functions for supporting window dragging and resizing ","@htmlAttr("src","/nstwui/javascript/jquery-ui.js")@htmlAttr("type","text/javascript")") @htmlEntity("script"," // Support library for DOM tool tips and menus ","@htmlAttr("src","/nstwui/javascript/domLib.js")@htmlAttr("type","text/javascript")") @htmlEntity("script"," // DOM tool tips ","@htmlAttr("src","/nstwui/javascript/domTT.js")@htmlAttr("type","text/javascript")") @htmlEntity("script"," // Necessary for draggable DOM Tooltips ","@htmlAttr("src","/nstwui/javascript/domTT_drag.js")@htmlAttr("type","text/javascript")") @ifUnifiedMenu(" @htmlEntity("script"," // DOM menus (functions) ","@htmlAttr("src","/nstwui/javascript/domMenu.js")@htmlAttr("type","text/javascript")") @htmlEntity("script"," // DOM menus (menu data) ","@htmlAttr("src","/nstwui/javascript/domMenuItems.js")@htmlAttr("type","text/javascript")") ") @htmlEntity("script"," // Session information as a JavaScript array (_SESSION[]) ","@htmlAttr("src","/nstwui/php/system/session-ajax.php")@htmlAttr("type","text/javascript")") @htmlEntity("script"," // NST core JavaScript library ","@htmlAttr("src","/nstwui/javascript/core.js")@htmlAttr("type","text/javascript")") @htmlEntity("script"," // NST JavaScript console ","@htmlAttr("src","/nstwui/javascript/console.js")@htmlAttr("type","text/javascript")") @htmlEntity("script"," // NST popup windows ","@htmlAttr("src","/nstwui/javascript/NstPopup.js")@htmlAttr("type","text/javascript")") @htmlEntity("script"," // NST Font Control ","@htmlAttr("src","/nstwui/javascript/FontControl.js")@htmlAttr("type","text/javascript")") @htmlEntity("script"," // NST Progress Widget ","@htmlAttr("src","/nstwui/javascript/Progress.js")@htmlAttr("type","text/javascript")") @htmlEntity("script"," // Standard NST WUI JavaScript ","@htmlAttr("src","/nstwui/javascript/nstwui.js")@htmlAttr("type","text/javascript")") @htmlEntity("script"," // Virtual Graphical Keyboard ","@htmlAttr("src","/nstwui/javascript/keyboard.js")@htmlAttr("type","text/javascript")") @htmlEntity("script"," // Color Picker ","@htmlAttr("src","/nstwui/javascript/jscolor/jscolor.js")@htmlAttr("type","text/javascript")") @htmlEntity("script"," // Pre-load statistics for NIC interfaces @comment(" (some pages like ifconfig // need this list of NICs pre-loaded in order to build objects on the fly) ") ","@htmlAttr("src","/nstwui/php/networking/interface-json.php?op=script")@htmlAttr("type","text/javascript")")