UIOutput.make(tofill, (pageItem.getPageId() == 0 ? "helpnewwindow" : "helpnewwindow2"),
messageLocator.getMessage("simplepage.opens-in-new"));
UILink.make(tofill, "directurl").
decorate(new UIFreeAttributeDecorator("rel", "#Main" + Web.escapeJavascript(placement.getId()) + "_directurl")).
decorate(new UIFreeAttributeDecorator("title", messageLocator.getMessage("simplepage.direct-link")));
<BUG>if (inline) {</BUG>
UIOutput.make(tofill, "directurl-div").
decorate(new UIFreeAttributeDecorator("id", "Main" + Web.escapeJavascript(placement.getId()) + "_directurl"));
UIOutput.make(tofill, "directurl-input").
decorate(new UIFreeAttributeDecorator("onclick", "toggleShortUrlOutput('" + myUrl() + "/portal/directtool/" + placement.getId() + "/', this, 'Main" + Web.escapeJavascript(placement.getId()) + "_urlholder');"));
UIOutput.make(tofill, "directurl-textarea", myUrl() + "/portal/directtool/" + placement.getId() + "/").
decorate(new UIFreeAttributeDecorator("class", "portlet title-tools Main" + Web.escapeJavascript(placement.getId()) + "_urlholder"));
<BUG>} else</BUG>
UIOutput.make(tofill, "directimage").decorate(new UIFreeAttributeDecorator("alt",

UIOutput.make(tofill, (pageItem.getPageId() == 0 ? "helpnewwindow" : "helpnewwindow2"),
messageLocator.getMessage("simplepage.opens-in-new"));
UILink.make(tofill, "directurl").
decorate(new UIFreeAttributeDecorator("rel", "#Main" + Web.escapeJavascript(placement.getId()) + "_directurl")).
decorate(new UIFreeAttributeDecorator("title", messageLocator.getMessage("simplepage.direct-link")));
UIOutput.make(tofill, "directurl-div").
decorate(new UIFreeAttributeDecorator("id", "Main" + Web.escapeJavascript(placement.getId()) + "_directurl"));
UIOutput.make(tofill, "directurl-input").
decorate(new UIFreeAttributeDecorator("onclick", "toggleShortUrlOutput('" + myUrl() + "/portal/directtool/" + placement.getId() + "/', this, 'Main" + Web.escapeJavascript(placement.getId()) + "_urlholder');"));
UIOutput.make(tofill, "directurl-textarea", myUrl() + "/portal/directtool/" + placement.getId() + "/").
decorate(new UIFreeAttributeDecorator("class", "portlet title-tools Main" + Web.escapeJavascript(placement.getId()) + "_urlholder"));
UIOutput.make(tofill, "directimage").decorate(new UIFreeAttributeDecorator("alt",
