Package org.olat.core.gui.components.htmlheader

Examples of org.olat.core.gui.components.htmlheader.HtmlHeaderComponent


    String jsHeader = "<script type='text/javascript'>o_info.JSTracingUri='"
        + mapperUri
        + "/';o_info.JSTracingLogDebugEnabled="
        + isLogDebugEnabled()
        + ";</script>";
    HtmlHeaderComponent JSTracingHeader = new HtmlHeaderComponent(
        "JSTracingHeader", null, jsHeader);
    mainVC.put("JSTracingHeader", JSTracingHeader);

    putInitialPanel(mainVC);
  }
View Full Code Here


    // rss link
    String rssLink = RSSUtil.getPersonalRssLink(ureq);
    welcome.contextPut("rssLink", rssLink);
    StringOutput staticUrl = new StringOutput();
    StaticMediaDispatcher.renderStaticURI(staticUrl, "js/egg.js");
    welcome.put("htmlHeader", new HtmlHeaderComponent("rss", null, "<link rel=\"alternate\" type=\"application/rss+xml\" title=\""
        + StringEscapeUtils.escapeHtml(translate("welcome.rss")) + "\" href=\"" + rssLink + "\" />\n" + "<script type=\"text/javascript\" src=\""
        + staticUrl.toString() + "\"></script>"));

    // add portal
    if (myPortal == null) myPortal = PortalFactory.createPortal("homeportal", getWindowControl(), ureq);
View Full Code Here

        }
      };
      String uri = mapreg.register(cssUriMapper);
      final String fulluri = uri + cssFileRef; // the stylesheet's relative
      // path
      hc = new HtmlHeaderComponent("custom-css", null, "<link rel=\"StyleSheet\" href=\"" + fulluri
          + "\" type=\"text/css\" media=\"screen\"/>");
      main.put("css-inset2", hc);
    }
  }
View Full Code Here

TOP

Related Classes of org.olat.core.gui.components.htmlheader.HtmlHeaderComponent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.